diff options
author | Andreas Schwab <schwab@suse.de> | 2024-10-29 17:03:06 +0300 |
---|---|---|
committer | Emil Renner Berthing <emil.renner.berthing@canonical.com> | 2025-02-17 12:04:33 +0300 |
commit | 905568cdfe8c1ca04b5be903348028ebe1ed8b63 (patch) | |
tree | 8711f7641f7da12f025eb0a01f81c80a8a123aaf /drivers/gpu | |
parent | 2be41de1520c36f5d913f49530cb72ef3b74b279 (diff) | |
download | linux-905568cdfe8c1ca04b5be903348028ebe1ed8b63.tar.xz |
drm/starfive: set FOP_UNSIGNED_OFFSET in starfive_drm_driver_fops
This fixes the error from drm_open:
[ +0.000020] [ C1] WARNING: CPU: 1 PID: 1110 at drivers/gpu/drm/drm_file.c
Signed-off-by: Andreas Schwab <schwab@suse.de>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/starfive/starfive_drm_drv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/starfive/starfive_drm_drv.c b/drivers/gpu/drm/starfive/starfive_drm_drv.c index 94ecbdc2878f..9bffcfe0cdfd 100644 --- a/drivers/gpu/drm/starfive/starfive_drm_drv.c +++ b/drivers/gpu/drm/starfive/starfive_drm_drv.c @@ -56,6 +56,7 @@ static const struct file_operations starfive_drm_driver_fops = { .unlocked_ioctl = drm_ioctl, .compat_ioctl = drm_compat_ioctl, .release = drm_release, + .fop_flags = FOP_UNSIGNED_OFFSET, }; static struct drm_driver starfive_drm_driver = { |