2007-05-03 10:40:22

by Robert P. J. Day

[permalink] [raw]
Subject: dead CONFIG_ variables: drivers/video/


$ ../dead_config.sh drivers/video
========== FB_68328_INVERT ==========
drivers/video/68328fb.c:53:#if defined(CONFIG_FB_68328_INVERT)
========== FB_AU1200_DEVS ==========
drivers/video/au1200fb.c:52:#ifndef CONFIG_FB_AU1200_DEVS
drivers/video/au1200fb.c:53:#define CONFIG_FB_AU1200_DEVS 4
drivers/video/au1200fb.c:160:static struct au1200fb_device _au1200fb_devices[CONFIG_FB_AU1200_DEVS];
drivers/video/au1200fb.c:714: for (i = 0; i < CONFIG_FB_AU1200_DEVS; ++i) {
drivers/video/au1200fb.c:1635: for (plane = 0; plane < CONFIG_FB_AU1200_DEVS; ++plane) {
drivers/video/au1200fb.c:1730: for (plane = 0; plane < CONFIG_FB_AU1200_DEVS; ++plane)
drivers/video/au1200fb.c:1850: for (plane = 0; plane < CONFIG_FB_AU1200_DEVS; ++plane) {
========== FB_MATROX_32MB ==========
drivers/video/matrox/matroxfb_base.c:307:#ifdef CONFIG_FB_MATROX_32MB
drivers/video/matrox/matroxfb_base.c:327:#ifdef CONFIG_FB_MATROX_32MB
drivers/video/matrox/matroxfb_base.c:339:#ifdef CONFIG_FB_MATROX_32MB
drivers/video/matrox/matroxfb_base.c:1342:#ifdef CONFIG_FB_MATROX_32MB
drivers/video/matrox/matroxfb_base.c:1619:#ifdef CONFIG_FB_MATROX_32MB
drivers/video/matrox/matroxfb_DAC1064.c:1053:#ifdef CONFIG_FB_MATROX_32MB
drivers/video/matrox/matroxfb_base.h:58:#define CONFIG_FB_MATROX_32MB
drivers/video/matrox/matroxfb_base.h:466:#ifdef CONFIG_FB_MATROX_32MB
========== FB_NVIDIA_DEBUG ==========
drivers/video/nvidia/nvidia.c:40:#undef CONFIG_FB_NVIDIA_DEBUG
drivers/video/nvidia/nvidia.c:41:#ifdef CONFIG_FB_NVIDIA_DEBUG
drivers/video/nvidia/nvidia.c:50:#ifdef CONFIG_FB_NVIDIA_DEBUG
========== FB_SOFT_CURSOR ==========
drivers/video/sis/sis_main.c:1906:#ifdef CONFIG_FB_SOFT_CURSOR
========== MACH_MX1FS2 ==========
drivers/video/imxfb.c:410:#ifndef CONFIG_MACH_MX1FS2
arch/arm/tools/mach-types:486:mx1fs2 MACH_MX1FS2 MX1FS2 470
========== MACH_PIMX1 ==========
drivers/video/imxfb.c:404:#ifndef CONFIG_MACH_PIMX1
arch/arm/tools/mach-types:678:pimx1 MACH_PIMX1 PIMX1 664

rday

--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================


2007-05-03 11:16:32

by Russell King

[permalink] [raw]
Subject: Re: dead CONFIG_ variables: drivers/video/

On Thu, May 03, 2007 at 06:40:03AM -0400, Robert P. J. Day wrote:
> $ ../dead_config.sh drivers/video
> ========== MACH_MX1FS2 ==========
> drivers/video/imxfb.c:410:#ifndef CONFIG_MACH_MX1FS2
> arch/arm/tools/mach-types:486:mx1fs2 MACH_MX1FS2 MX1FS2 470
> ========== MACH_PIMX1 ==========
> drivers/video/imxfb.c:404:#ifndef CONFIG_MACH_PIMX1
> arch/arm/tools/mach-types:678:pimx1 MACH_PIMX1 PIMX1 664

Sascha, any comments on these?

--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of:

2007-05-03 12:04:12

by Antonino A. Daplas

[permalink] [raw]
Subject: Re: dead CONFIG_ variables: drivers/video/

On Thu, 2007-05-03 at 06:40 -0400, Robert P. J. Day wrote:
> $ ../dead_config.sh drivers/video
> ========== FB_68328_INVERT ==========
> drivers/video/68328fb.c:53:#if defined(CONFIG_FB_68328_INVERT)

Can be made part of Kconfig, I think

> ========== FB_AU1200_DEVS ==========
> drivers/video/au1200fb.c:52:#ifndef CONFIG_FB_AU1200_DEVS
> drivers/video/au1200fb.c:53:#define CONFIG_FB_AU1200_DEVS 4
> drivers/video/au1200fb.c:160:static struct au1200fb_device _au1200fb_devices[CONFIG_FB_AU1200_DEVS];
> drivers/video/au1200fb.c:714: for (i = 0; i < CONFIG_FB_AU1200_DEVS; ++i) {
> drivers/video/au1200fb.c:1635: for (plane = 0; plane < CONFIG_FB_AU1200_DEVS; ++plane) {
> drivers/video/au1200fb.c:1730: for (plane = 0; plane < CONFIG_FB_AU1200_DEVS; ++plane)
> drivers/video/au1200fb.c:1850: for (plane = 0; plane < CONFIG_FB_AU1200_DEVS; ++plane) {

Not sure about this one.

> ========== FB_MATROX_32MB ==========
> drivers/video/matrox/matroxfb_base.c:307:#ifdef CONFIG_FB_MATROX_32MB
> drivers/video/matrox/matroxfb_base.c:327:#ifdef CONFIG_FB_MATROX_32MB
> drivers/video/matrox/matroxfb_base.c:339:#ifdef CONFIG_FB_MATROX_32MB
> drivers/video/matrox/matroxfb_base.c:1342:#ifdef CONFIG_FB_MATROX_32MB
> drivers/video/matrox/matroxfb_base.c:1619:#ifdef CONFIG_FB_MATROX_32MB
> drivers/video/matrox/matroxfb_DAC1064.c:1053:#ifdef CONFIG_FB_MATROX_32MB
> drivers/video/matrox/matroxfb_base.h:58:#define CONFIG_FB_MATROX_32MB
> drivers/video/matrox/matroxfb_base.h:466:#ifdef CONFIG_FB_MATROX_32MB

This needs to be part of Kconfig.

> ========== FB_NVIDIA_DEBUG ==========
> drivers/video/nvidia/nvidia.c:40:#undef CONFIG_FB_NVIDIA_DEBUG
> drivers/video/nvidia/nvidia.c:41:#ifdef CONFIG_FB_NVIDIA_DEBUG
> drivers/video/nvidia/nvidia.c:50:#ifdef CONFIG_FB_NVIDIA_DEBUG

False positive, may be renamed.

> ========== FB_SOFT_CURSOR ==========
> drivers/video/sis/sis_main.c:1906:#ifdef CONFIG_FB_SOFT_CURSOR

This is dead, FB_SOFT_CURSOR is truly gone.

Thanks.

Tony

2007-05-03 12:35:55

by Robert P. J. Day

[permalink] [raw]
Subject: Re: dead CONFIG_ variables: drivers/video/

On Thu, 3 May 2007, Antonino A. Daplas wrote:

> On Thu, 2007-05-03 at 06:40 -0400, Robert P. J. Day wrote:
> > $ ../dead_config.sh drivers/video
> > ========== FB_68328_INVERT ==========
> > drivers/video/68328fb.c:53:#if defined(CONFIG_FB_68328_INVERT)
>
> Can be made part of Kconfig, I think
>
> > ========== FB_AU1200_DEVS ==========
> > drivers/video/au1200fb.c:52:#ifndef CONFIG_FB_AU1200_DEVS
> > drivers/video/au1200fb.c:53:#define CONFIG_FB_AU1200_DEVS 4
> > drivers/video/au1200fb.c:160:static struct au1200fb_device _au1200fb_devices[CONFIG_FB_AU1200_DEVS];
> > drivers/video/au1200fb.c:714: for (i = 0; i < CONFIG_FB_AU1200_DEVS; ++i) {
> > drivers/video/au1200fb.c:1635: for (plane = 0; plane < CONFIG_FB_AU1200_DEVS; ++plane) {
> > drivers/video/au1200fb.c:1730: for (plane = 0; plane < CONFIG_FB_AU1200_DEVS; ++plane)
> > drivers/video/au1200fb.c:1850: for (plane = 0; plane < CONFIG_FB_AU1200_DEVS; ++plane) {
>
> Not sure about this one.
>
> > ========== FB_MATROX_32MB ==========
> > drivers/video/matrox/matroxfb_base.c:307:#ifdef CONFIG_FB_MATROX_32MB
> > drivers/video/matrox/matroxfb_base.c:327:#ifdef CONFIG_FB_MATROX_32MB
> > drivers/video/matrox/matroxfb_base.c:339:#ifdef CONFIG_FB_MATROX_32MB
> > drivers/video/matrox/matroxfb_base.c:1342:#ifdef CONFIG_FB_MATROX_32MB
> > drivers/video/matrox/matroxfb_base.c:1619:#ifdef CONFIG_FB_MATROX_32MB
> > drivers/video/matrox/matroxfb_DAC1064.c:1053:#ifdef CONFIG_FB_MATROX_32MB
> > drivers/video/matrox/matroxfb_base.h:58:#define CONFIG_FB_MATROX_32MB
> > drivers/video/matrox/matroxfb_base.h:466:#ifdef CONFIG_FB_MATROX_32MB
>
> This needs to be part of Kconfig.
>
> > ========== FB_NVIDIA_DEBUG ==========
> > drivers/video/nvidia/nvidia.c:40:#undef CONFIG_FB_NVIDIA_DEBUG
> > drivers/video/nvidia/nvidia.c:41:#ifdef CONFIG_FB_NVIDIA_DEBUG
> > drivers/video/nvidia/nvidia.c:50:#ifdef CONFIG_FB_NVIDIA_DEBUG
>
> False positive, may be renamed.
>
> > ========== FB_SOFT_CURSOR ==========
> > drivers/video/sis/sis_main.c:1906:#ifdef CONFIG_FB_SOFT_CURSOR
>
> This is dead, FB_SOFT_CURSOR is truly gone.
>
> Thanks.


um ... just so there's no misunderstanding, *i* don't plan on fixing
any of this, i'm just running the script and reporting it. i'm
assuming the respective maintainers can take it from here.

rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================

2007-05-03 13:20:08

by Antonino A. Daplas

[permalink] [raw]
Subject: Re: dead CONFIG_ variables: drivers/video/

On Thu, 2007-05-03 at 08:35 -0400, Robert P. J. Day wrote:
> On Thu, 3 May 2007, Antonino A. Daplas wrote:
>

> um ... just so there's no misunderstanding, *i* don't plan on fixing
> any of this, i'm just running the script and reporting it. i'm
> assuming the respective maintainers can take it from here.

I know, just trying to elicit comments from other people.

Tony

2007-05-03 14:16:53

by Sascha Hauer

[permalink] [raw]
Subject: Re: dead CONFIG_ variables: drivers/video/

On Thu, May 03, 2007 at 12:16:14PM +0100, Russell King wrote:
> On Thu, May 03, 2007 at 06:40:03AM -0400, Robert P. J. Day wrote:
> > $ ../dead_config.sh drivers/video
> > ========== MACH_MX1FS2 ==========
> > drivers/video/imxfb.c:410:#ifndef CONFIG_MACH_MX1FS2
> > arch/arm/tools/mach-types:486:mx1fs2 MACH_MX1FS2 MX1FS2 470

MX1FS2 is one of our development boards, this entry can be removed
(I haven't started this board for ages)

> > ========== MACH_PIMX1 ==========
> > drivers/video/imxfb.c:404:#ifndef CONFIG_MACH_PIMX1
> > arch/arm/tools/mach-types:678:pimx1 MACH_PIMX1 PIMX1 664

This is Pavels board. I think this can also be removed. The call to
imx_gpio_mode() can also be done in the board file. If we do so we
should cc Pavel.

Sascha

--
Pengutronix - Linux Solutions for Science and Industry
Entwicklungszentrum Nord http://www.pengutronix.de