From 496b6167686033237855aef9863d7f7794de1752 Mon Sep 17 00:00:00 2001 From: hauke Date: Tue, 22 Oct 2019 13:19:47 +0000 Subject: [PATCH] When building r128drm(4), gcc objects to shifting into bit 31 of a (signed) int. Make sure we are shifting an unsigned in those cases. See also . XXX There are probably more of these in the header. --- sys/external/bsd/drm/dist/shared-core/r128_drv.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/external/bsd/drm/dist/shared-core/r128_drv.h b/sys/external/bsd/drm/dist/shared-core/r128_drv.h index 0ba716097cb5..7047521df26f 100644 --- a/sys/external/bsd/drm/dist/shared-core/r128_drv.h +++ b/sys/external/bsd/drm/dist/shared-core/r128_drv.h @@ -277,7 +277,7 @@ extern long r128_compat_ioctl(struct file *filp, unsigned int cmd, */ #define R128_PM4_BUFFER_OFFSET 0x0700 #define R128_PM4_BUFFER_CNTL 0x0704 -# define R128_PM4_MASK (15 << 28) +# define R128_PM4_MASK (15u << 28) # define R128_PM4_NONPM4 (0 << 28) # define R128_PM4_192PIO (1 << 28) # define R128_PM4_192BM (2 << 28) @@ -286,8 +286,8 @@ extern long r128_compat_ioctl(struct file *filp, unsigned int cmd, # define R128_PM4_64PIO_128INDBM (5 << 28) # define R128_PM4_64BM_128INDBM (6 << 28) # define R128_PM4_64PIO_64VCBM_64INDBM (7 << 28) -# define R128_PM4_64BM_64VCBM_64INDBM (8 << 28) -# define R128_PM4_64PIO_64VCPIO_64INDPIO (15 << 28) +# define R128_PM4_64BM_64VCBM_64INDBM (8u << 28) +# define R128_PM4_64PIO_64VCPIO_64INDPIO (15u << 28) # define R128_PM4_BUFFER_CNTL_NOUPDATE (1 << 27) #define R128_PM4_BUFFER_WM_CNTL 0x0708