From dc88ef371e6a57eb6809df5ae473aa6d5f2bdd35 Mon Sep 17 00:00:00 2001 From: kettenis Date: Thu, 11 Jul 2024 12:39:53 +0000 Subject: [PATCH] Turn FBINFO_xxx defines into proper flags. Gets rid of an unwanted warning introduced by a recent commit to drm_fbdev_dma.c. ok jsg@ --- sys/dev/pci/drm/include/linux/fb.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sys/dev/pci/drm/include/linux/fb.h b/sys/dev/pci/drm/include/linux/fb.h index fa1035d8b15..ed622af7273 100644 --- a/sys/dev/pci/drm/include/linux/fb.h +++ b/sys/dev/pci/drm/include/linux/fb.h @@ -60,11 +60,9 @@ struct fb_info { #define FBINFO_STATE_RUNNING 0 #define FBINFO_STATE_SUSPENDED 1 -#define FBINFO_DEFAULT 0 -#define FBINFO_VIRTFB 1 -#define FBINFO_READS_FAST 2 - -#define FBINFO_HIDE_SMEM_START 0 +#define FBINFO_VIRTFB 0x0001 +#define FBINFO_READS_FAST 0x0002 +#define FBINFO_HIDE_SMEM_START 0x0004 #define FB_ROTATE_UR 0 #define FB_ROTATE_CW 1 -- 2.20.1