Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1556471
| From | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] video: fbdev: maxinefb: add __initdata to maxinefb_fix |
| Date | 2017-01-11 14:10 +0100 |
| Message-ID | <sYqP7-7ld-25@gated-at.bofh.it> (permalink) |
| References | <sURkS-2H5-27@gated-at.bofh.it> <sYqP7-7ld-27@gated-at.bofh.it> <sURkS-2H5-27@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi,
On Sunday, January 01, 2017 10:06:17 PM Bhumika Goyal wrote:
> 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.
>
> Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Thanks, queued fpr 4.11.
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
> ---
> drivers/video/fbdev/maxinefb.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/video/fbdev/maxinefb.c b/drivers/video/fbdev/maxinefb.c
> index 5cf52d3..cab7333 100644
> --- a/drivers/video/fbdev/maxinefb.c
> +++ b/drivers/video/fbdev/maxinefb.c
> @@ -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,
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH] video: fbdev: maxinefb: add __initdata to maxinefb_fix Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> - 2017-01-11 14:10 +0100
csiph-web