All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: decompress: remove unused ARCH_HAS_DECOMP_WDOG
@ 2012-12-12 13:01 Shawn Guo
  2012-12-12 18:42 ` Russell King - ARM Linux
  0 siblings, 1 reply; 3+ messages in thread
From: Shawn Guo @ 2012-12-12 13:01 UTC (permalink / raw)
  To: linux-arm-kernel

ARCH_HAS_DECOMP_WDOG is only used in lib/inflate.c which is not
included in arch/arm/boot/compressed/decompress.c now.  That said,
ARCH_HAS_DECOMP_WDOG is not used at all.  Let's remove it.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
---
Russell,

If you're fine with patch, I will send a follow-up patch to remove all
those arch_decomp_wdog() from platform uncompress.h which does nothing
at all.

Shawn

 arch/arm/boot/compressed/decompress.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/arm/boot/compressed/decompress.c b/arch/arm/boot/compressed/decompress.c
index 9deb56a..24b0475 100644
--- a/arch/arm/boot/compressed/decompress.c
+++ b/arch/arm/boot/compressed/decompress.c
@@ -13,8 +13,6 @@ extern void error(char *);
 #define STATIC static
 #define STATIC_RW_DATA	/* non-static please */
 
-#define ARCH_HAS_DECOMP_WDOG
-
 /* Diagnostic functions */
 #ifdef DEBUG
 #  define Assert(cond,msg) {if(!(cond)) error(msg);}
-- 
1.7.9.5

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

* [PATCH] ARM: decompress: remove unused ARCH_HAS_DECOMP_WDOG
  2012-12-12 13:01 [PATCH] ARM: decompress: remove unused ARCH_HAS_DECOMP_WDOG Shawn Guo
@ 2012-12-12 18:42 ` Russell King - ARM Linux
  2012-12-13 15:36   ` Shawn Guo
  0 siblings, 1 reply; 3+ messages in thread
From: Russell King - ARM Linux @ 2012-12-12 18:42 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Dec 12, 2012 at 09:01:17PM +0800, Shawn Guo wrote:
> ARCH_HAS_DECOMP_WDOG is only used in lib/inflate.c which is not
> included in arch/arm/boot/compressed/decompress.c now.  That said,
> ARCH_HAS_DECOMP_WDOG is not used at all.  Let's remove it.

There are some implementations of the watchdog callbacks - I wonder
if the change to the decompressor code has broken those and no one's
noticed.  They seem to be Samsung platforms.

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

* [PATCH] ARM: decompress: remove unused ARCH_HAS_DECOMP_WDOG
  2012-12-12 18:42 ` Russell King - ARM Linux
@ 2012-12-13 15:36   ` Shawn Guo
  0 siblings, 0 replies; 3+ messages in thread
From: Shawn Guo @ 2012-12-13 15:36 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Dec 12, 2012 at 06:42:15PM +0000, Russell King - ARM Linux wrote:
> On Wed, Dec 12, 2012 at 09:01:17PM +0800, Shawn Guo wrote:
> > ARCH_HAS_DECOMP_WDOG is only used in lib/inflate.c which is not
> > included in arch/arm/boot/compressed/decompress.c now.  That said,
> > ARCH_HAS_DECOMP_WDOG is not used at all.  Let's remove it.
> 
> There are some implementations of the watchdog callbacks - I wonder
> if the change to the decompressor code has broken those and no one's
> noticed.  They seem to be Samsung platforms.

I noticed the implementations on Samsung platforms.  But they are all
wrapped by CONFIG_S3C_BOOT_WATCHDOG which is not defined any where.
So if you agree with the patch, I will send another follow-up to
Samsung maintainer removing all those dead codes.

Shawn

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

end of thread, other threads:[~2012-12-13 15:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-12 13:01 [PATCH] ARM: decompress: remove unused ARCH_HAS_DECOMP_WDOG Shawn Guo
2012-12-12 18:42 ` Russell King - ARM Linux
2012-12-13 15:36   ` Shawn Guo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.