mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/4] Removing dead code
@ 2010-07-14 13:21 Christian Dietrich
  2010-07-14 13:21 ` [PATCH 1/4] drivers/media/dvb: Remove dead Configs Christian Dietrich
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Christian Dietrich @ 2010-07-14 13:21 UTC (permalink / raw)
  To: Mauro Carvalho Chehab, Patrick Boettcher, Olivier Grenie,
	Márton Németh, Tejun Heo, Muralidharan Karicheri,
	Vaibhav Hiremath, Julia Lawall, Jonathan Corbet, linux-media,
	linux-kernel
  Cc: vamos-dev

Hi all!
       
        As part of the VAMOS[0] research project at the University of
Erlangen we are looking at multiple integrity errors in linux'
configuration system.

        I've been running a check on the drivers/media sourcetree for
config Items not defined in Kconfig and found 4 such cases. Sourcecode
blocks depending on these Items are not reachable from a vanilla
kernel -- dead code. I've seen such dead blocks made on purpose
e.g. while integrating new features into the kernel but generally
they're just useless.

        There were also CONFIG_ options set within a source file. This
created code blocks which were always selected and compiled.

        Each of the patches in this patchset removes on such dead
config Item, I'd be glad if you consider applying them. I've been
doing deeper analysis of such issues before and can do so again but
I'm not so sure they were fastly usefull.

        I build the patches against a vanilla kernel in order to
try if the kernel compiles with this patches

        Please keep me informed of this patch getting confirmed /
merged so we can keep track of it.

Regards

        Christian Dietrich

[0] http://vamos1.informatik.uni-erlangen.de/

Christian Dietrich (4):
  drivers/media/dvb: Remove dead Configs
  drivers/media/dvb: Remove undead configs
  drivers/media/video: Remove dead CONFIG_FB_OMAP2_FORCE_AUTO_UPDATE
  drivers/media/video: Remove dead CONFIG_OLPC_X0_1

 drivers/media/dvb/frontends/dib0090.c |  126 ---------------------------------
 drivers/media/video/omap/omap_vout.c  |    8 --
 drivers/media/video/ov7670.c          |   37 ----------
 3 files changed, 0 insertions(+), 171 deletions(-)


^ permalink raw reply	[flat|nested] 7+ messages in thread
* [PATCH 0/4] Removing dead code
@ 2010-08-10  9:11 Christian Dietrich
  0 siblings, 0 replies; 7+ messages in thread
From: Christian Dietrich @ 2010-08-10  9:11 UTC (permalink / raw)
  To: David Howells, KOSAKI Motohiro, Andreas Dilger, Jiri Kosina,
	Andrew Morton, Rusty Russell, Thomas Gleixner, John Stultz,
	Tejun Heo, linux-kernel
  Cc: vamos-dev

Hi all!
       
        As part of the VAMOS[0] research project at the University of
Erlangen we are looking at multiple integrity errors in linux'
configuration system.

        I've been running a check on the arch/frv sourcetree for
config Items not defined in Kconfig and found 4 such cases. Sourcecode
blocks depending on these Items are not reachable from a vanilla
kernel -- dead code. I've seen such dead blocks made on purpose
e.g. while integrating new features into the kernel but generally
they're just useless.

        Each of the patches in this patchset removes on such dead
config Item, I'd be glad if you consider applying them. I've been
doing deeper analysis of such issues before and can do so again but
I'm not so sure they were fastly usefull.


I wasn't able to build a vanilla kernel allyesconfig, therefore these
patches might break something. But because they are just removing dead
code it is unlikely.

Another problem i encountered was CONFIG_PREEMPT, which isn't
selectable in frv Kconfig because it doesn include
kernel/Kconfig.preempt. But there ist plenty of evidence for me, that
there is preemption support in frv.


        Please keep me informed of this patch getting confirmed /
merged so we can keep track of it.

Regards

        Christian Dietrich

[0] http://vamos1.informatik.uni-erlangen.de/

Christian Dietrich (4):
  arch/frv: Removing dead RAMKERNEL config option
  arch/frv: Removing dead HEARTBEAT config option
  arch/frv: Removing dead NO_KERNEL_MSG config option
  arch/frv: Removing dead DEBUG_STACK_USAGE config option

 arch/frv/include/asm/bug.h         |    4 ----
 arch/frv/include/asm/thread_info.h |   11 -----------
 arch/frv/kernel/debug-stub.c       |    2 --
 arch/frv/kernel/time.c             |    6 ------
 arch/frv/mm/init.c                 |   17 -----------------
 5 files changed, 0 insertions(+), 40 deletions(-)


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-08-10  9:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-14 13:21 [PATCH 0/4] Removing dead code Christian Dietrich
2010-07-14 13:21 ` [PATCH 1/4] drivers/media/dvb: Remove dead Configs Christian Dietrich
2010-07-14 13:21 ` [PATCH 2/4] drivers/media/dvb: Remove undead configs Christian Dietrich
2010-07-14 13:21 ` [PATCH 3/4] drivers/media/video: Remove dead CONFIG_FB_OMAP2_FORCE_AUTO_UPDATE Christian Dietrich
2010-07-14 13:21 ` [PATCH 4/4] drivers/media/video: Remove dead CONFIG_OLPC_X0_1 Christian Dietrich
2010-07-19 22:39   ` Jonathan Corbet
2010-08-10  9:11 [PATCH 0/4] Removing dead code Christian Dietrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®