summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2024-10-29 17:03:06 +0300
committerAndreas Schwab <schwab@suse.de>2024-10-30 12:18:28 +0300
commit19c7c4e87e562af27aac5add4be1ba1f483900da (patch)
tree98ad6e37632e75e8dfb59baab219b3305966638a /drivers
parent2c60958976538fa12d5900b74825ad20ef644600 (diff)
downloadlinux-19c7c4e87e562af27aac5add4be1ba1f483900da.tar.xz
drm/starfive: set FOP_UNSIGNED_OFFSET in starfive_drm_driver_fopsHEADvisionfiveesmil_starlight
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')
-rw-r--r--drivers/gpu/drm/starfive/starfive_drm_drv.c1
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 5e0207b74022..73f0b25af0fb 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 = {