lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0902030907350.15898@anakin>
Date:	Tue, 3 Feb 2009 09:09:38 +0100 (CET)
From:	Geert Uytterhoeven <geert@...ux-m68k.org>
To:	Randy Dunlap <randy.dunlap@...cle.com>
cc:	Andrew Morton <akpm@...ux-foundation.org>,
	linux-fbdev-devel@...ts.sourceforge.net,
	Benjamin Herrenschmidt <benh@...nel.crashing.org>,
	linux-kernel@...r.kernel.org
Subject: Re: [Linux-fbdev-devel] [PATCH 1/2] atyfb: fix CONFIG_ namespace
 violations

On Mon, 2 Feb 2009, Randy Dunlap wrote:
> On Sat, 31 Jan 2009 12:10:08 -0800 Andrew Morton wrote:
> > On Sat, 31 Jan 2009 11:53:36 -0800 Randy Dunlap <randy.dunlap@...cle.com> wrote:
> > 
> > > so staging adds a new config symbol that conflicts with the
> > > (incorrect namespace) usage in mach64.h.
> > > 
> > > mach64 needs to change IMO, even though it is older.
> > 
> > Sigh, yes, that file has gone on a rampage through the namespace
> > rules.  I'll take a look at it sometime.
> > --
> 
> I went ahead with a minimal set of changes, but you can toss them
> and do more if you prefer.
> 
> ---
> 
> From: Randy Dunlap <randy.dunlap@...cle.com>
> 
> [1/2] Fix namespace violations by changing non-kconfig CONFIG_ names
> to CNFG_*.
> 
> Signed-off-by: Randy Dunlap <randy.dunlap@...cle.com>
> cc: Benjamin Herrenschmidt <benh@...nel.crashing.org>
> ---
>  drivers/video/aty/aty128fb.c    |    8 ++++----
>  drivers/video/aty/atyfb_base.c  |   22 +++++++++++-----------
>  drivers/video/aty/radeon_base.c |   10 +++++-----
>  drivers/video/aty/radeon_pm.c   |   18 +++++++++---------
>  include/video/aty128.h          |    4 ++--
>  include/video/mach64.h          |   24 ++++++++++++------------
>  include/video/radeon.h          |   18 +++++++++---------
>  7 files changed, 52 insertions(+), 52 deletions(-)
> 
> --- linux-2.6.29-rc3-git3.orig/drivers/video/aty/atyfb_base.c
> +++ linux-2.6.29-rc3-git3/drivers/video/aty/atyfb_base.c
> @@ -135,7 +135,7 @@
>  #if defined(CONFIG_PM) || defined(CONFIG_PMAC_BACKLIGHT) || \
>  defined (CONFIG_FB_ATY_GENERIC_LCD) || defined(CONFIG_FB_ATY_BACKLIGHT)
>  static const u32 lt_lcd_regs[] = {
> -	CONFIG_PANEL_LG,
> +	CNFG_PANEL_LG,

These were the official names as used in the ATI docs. After these changes, you
can no longer easily grep for them.

Perhaps it's better to prefix everything with ATI_? yes, I know it's more work
(for the writer), but we want to optimize for the reader, right?

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@...ux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ