Skip to contentSkip to conversation

ARM: decompress: remove unused ARCH_HAS_DECOMP_WDOG

PATCH New Shawn Guo 2 participants 3 messages Dec 12, 2012 – Dec 13, 2012 Arm (32-bit)

lore
Share & tools
lore

Shawn Guo

author
#0 lore raw

PATCH 1/1 ARM: decompress: remove unused ARCH_HAS_DECOMP_WDOG

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.

---
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(-)
arch/arm/boot/compressed/decompress.c +0 -2
index 9deb56a..24b0475 100644
@@ -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);}
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 ARM: decompress: remove unused ARCH_HAS_DECOMP_WDOG

Quoted 3 lines · Shawn Guo

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.

author
#2 lore raw

PATCH 1/1 ARM: decompress: remove unused ARCH_HAS_DECOMP_WDOG

Quoted 8 lines · Russell King - ARM Linux
Quoted 3 lines · Shawn Guo

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