mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/5] drivers/regulator: Remove dead CONFIG_TWL4030_ALLOW_UNSUPPORTED
@ 2010-07-14 14:04 Christian Dietrich
  2010-07-14 14:04 ` [PATCH 2/5] drivers/mfd: Remove dead CONFIG_TWL4030_MADC Christian Dietrich
                   ` (4 more replies)
  0 siblings, 5 replies; 21+ messages in thread
From: Christian Dietrich @ 2010-07-14 14:04 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Juha Keski-Saari, Rajendra Nayak,
	Samuel Ortiz, linux-kernel
  Cc: vamos-dev

CONFIG_TWL4030_ALLOW_UNSUPPORTED doesn't exist in Kconfig and is never
defined anywhere else, therefore removing all references for it from
the source code.

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
---
 drivers/regulator/twl-regulator.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/drivers/regulator/twl-regulator.c b/drivers/regulator/twl-regulator.c
index 7e5892e..8843927 100644
--- a/drivers/regulator/twl-regulator.c
+++ b/drivers/regulator/twl-regulator.c
@@ -244,11 +244,7 @@ static int twlreg_set_mode(struct regulator_dev *rdev, unsigned mode)
  * VAUX3 at 3V is incorrectly listed in some TI manuals as unsupported.
  * TI are revising the twl5030/tps659x0 specs to support that 3.0V setting.
  */
-#ifdef CONFIG_TWL4030_ALLOW_UNSUPPORTED
-#define UNSUP_MASK	0x0000
-#else
 #define UNSUP_MASK	0x8000
-#endif
 
 #define UNSUP(x)	(UNSUP_MASK | (x))
 #define IS_UNSUP(x)	(UNSUP_MASK & (x))
-- 
1.7.0.4


^ permalink raw reply	[flat|nested] 21+ messages in thread
* [PATCH 0/2] Removing dead code
@ 2010-08-23  9:59 Christian Dietrich
  0 siblings, 0 replies; 21+ messages in thread
From: Christian Dietrich @ 2010-08-23  9:59 UTC (permalink / raw)
  To: Tejun Heo, Jiri Kosina, Daniel Mack, Joseph Chan,
	Florian Tobias Schandinat, Andrew Morton, Jonathan Corbet,
	Erik-Jan Post, linux-kernel, linux-fbdev
  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/video sourcetree for
config Items not defined in Kconfig and found 2 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 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 (2):
  drivers/video: Removing dead FB_VIA_CAMERA config option
  drivers/video: Removing dead FB_68328_INVERT config option

 drivers/video/68328fb.c   |    4 ----
 drivers/video/via/accel.c |   16 ----------------
 include/linux/via-core.h  |    5 +----
 3 files changed, 1 insertions(+), 24 deletions(-)


^ permalink raw reply	[flat|nested] 21+ messages in thread
* [PATCH 0/2] Removing dead code
@ 2010-06-28 13:40 Christoph Egger
  0 siblings, 0 replies; 21+ messages in thread
From: Christoph Egger @ 2010-06-28 13:40 UTC (permalink / raw)
  To: Tony Luck, Fenghua Yu, linux-ia64, linux-kernel

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/ia64 sourcetree for
config Items not defined in Kconfig and found 2 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.

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

Regards

        Christoph Egger

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

Christoph Egger (2):
  Removing dead CONFIG_PARAVIRT_GUEST_ASM_CLOBBER_CHECK
  Removing dead CONFIG_IOMMU_DEBUG

 arch/ia64/include/asm/native/inst.h |   96 ++++++++--------------------------
 arch/ia64/kernel/pci-dma.c          |    4 --
 2 files changed, 23 insertions(+), 77 deletions(-)


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

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

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-14 14:04 [PATCH 1/5] drivers/regulator: Remove dead CONFIG_TWL4030_ALLOW_UNSUPPORTED Christian Dietrich
2010-07-14 14:04 ` [PATCH 2/5] drivers/mfd: Remove dead CONFIG_TWL4030_MADC Christian Dietrich
2010-07-14 14:04 ` [PATCH 3/5] drivers/rtc: Remove unneeded ifdef CONFIG_PM Christian Dietrich
2010-07-15 13:19   ` [rtc-linux] " Wan ZongShun
2010-07-14 14:04 ` [PATCH 4/5] drivers/mmc/host/msm-sdcc: Remove dead config options Christian Dietrich
2010-07-14 15:39   ` David Brown
2010-07-14 14:05 ` [PATCH 5/5] Remove REDWOOD_5 and REDWOOD_6 config options and conditional code Christian Dietrich
2010-07-15  7:42   ` [5/5] " Milton Miller
2010-07-16 12:28     ` [PATCH 0/2] Removing dead code Christian Dietrich
2010-07-16 12:29       ` [PATCH 1/2] Remove REDWOOD_[456] config options and conditional code Christian Dietrich
2010-07-16 14:20         ` Josh Boyer
2010-07-16 15:45           ` Milton Miller
2010-07-16 20:45           ` David Miller
2010-07-18 16:52           ` Artem Bityutskiy
2010-07-19  0:00         ` Benjamin Herrenschmidt
2010-07-16 12:29       ` [PATCH 2/2] Removed redwood/mtd mapping Christian Dietrich
2010-07-14 14:11 ` [PATCH 1/5] drivers/regulator: Remove dead CONFIG_TWL4030_ALLOW_UNSUPPORTED Mark Brown
2010-07-14 14:16   ` Christian Dietrich
2010-07-14 14:18     ` Mark Brown
  -- strict thread matches above, loose matches on Subject: below --
2010-08-23  9:59 [PATCH 0/2] Removing dead code Christian Dietrich
2010-06-28 13:40 Christoph Egger

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®