Re: [PATCH] fbcon: fix sparse warning about shadowing 'p' symbol

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 9 Dec 2007 22:34:33 +0100
Marcin __lusarz <[email protected]> wrote:

> fbcon: fix sparse warning about shadowing 'p' symbol
> 

Please always quote error messages and warnings in the changelog when
fixing them, thanks.

> ---
>  drivers/video/console/fbcon.c |   10 +++++-----
>  1 files changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c
> index 0f32f4a..849e114 100644
> --- a/drivers/video/console/fbcon.c
> +++ b/drivers/video/console/fbcon.c
> @@ -2795,7 +2795,7 @@ static int fbcon_scrolldelta(struct vc_data *vc, int lines)
>  {
>  	struct fb_info *info = registered_fb[con2fb_map[fg_console]];
>  	struct fbcon_ops *ops = info->fbcon_par;
> -	struct display *p = &fb_display[fg_console];
> +	struct display *disp = &fb_display[fg_console];

We have a global symbol called "p"?  That would be bad.  Where is it?

(The patch is good anwyay - "p" is a poorly chosen identifier here).
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux