ARM: decompress: remove unused ARCH_HAS_DECOMP_WDOG
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
@@ -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
PATCH 1/1 ARM: decompress: remove unused ARCH_HAS_DECOMP_WDOG
Quoted 3 lines · Shawn Guo
ARCH_HAS_DECOMP_WDOGis only used inlib/inflate.cwhich is not included inarch/arm/boot/compressed/decompress.cnow. That said,ARCH_HAS_DECOMP_WDOGis 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.
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_WDOGis only used inlib/inflate.cwhich is not included inarch/arm/boot/compressed/decompress.cnow. That said,ARCH_HAS_DECOMP_WDOGis 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