video: fbdev: maxinefb: add __initdata to maxinefb_fix
PATCH 1/1 video: fbdev: maxinefb: add __initdata to maxinefb_fix
The object maxinefb_fix of type fb_fix_screeninfo is never referenced after initialization by maxinefb_init. In the init function, the object and one of its fields is only stored into another variable. So, the object and its fields are never referenced anywhere after initialization and therefore add __initdata to its declaration.
--- drivers/video/fbdev/maxinefb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/maxinefb.c +1 -1
@@ -51,7 +51,7 @@ .vmode = FB_VMODE_NONINTERLACED, }; -static struct fb_fix_screeninfo maxinefb_fix = { +static struct fb_fix_screeninfo maxinefb_fix__initdata = { .id ="Maxine" , .smem_len = (1024 *768 ), .type =FB_TYPE_PACKED_PIXELS ,
Signature · 1 line
1.9.1
Hi,
Quoted 7 lines · Bhumika Goyal
The object
maxinefb_fixof typefb_fix_screeninfois never referenced after initialization bymaxinefb_init. In the init function, the object and one of its fields is only stored into another variable. So, the object and its fields are never referenced anywhere after initialization and therefore add__initdatato its declaration.Signed-off-by Bhumika Goyal <[email protected]>
Thanks, queued fpr 4.11.
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
Quoted 17 lines
--- drivers/video/fbdev/maxinefb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/video/fbdev/maxinefb.c +1
-1@@ -51,7 +51,7 @@ .vmode = FB_VMODE_NONINTERLACED, }; -static struct fb_fix_screeninfo maxinefb_fix = { +static struct fb_fix_screeninfo maxinefb_fix__initdata = { .id ="Maxine" , .smem_len = (1024 *768 ), .type =FB_TYPE_PACKED_PIXELS ,