linux
Unused variable when BF60x is enabled
Bug fixed by commit 36855dcfc98
Type | UnusedVariable |
Config | "PM && BF60x" (2nd degree) |
Fix-in | mapping |
Location | arch/blackfin/ |
int bfin_pm_suspend_mem_enter(void) { int wakeup; // ERROR #ifndef CONFIG_BF60x wakeup = 0; #endif return 0; } int main(int argc, char** argv) { bfin_pm_suspend_mem_enter(); return 0; }
diff --git a/simple/36855dc.c b/simple/36855dc.c --- a/simple/36855dc.c +++ b/simple/36855dc.c @@ -1,6 +1,8 @@ int bfin_pm_suspend_mem_enter(void) { +#ifndef CONFIG_BF60x int wakeup; // ERROR +#endif #ifndef CONFIG_BF60x wakeup = 0;
int main(int argc, char** argv) { // bfin_pm_suspend_mem_enter(); int wakeup; // ERROR #ifndef CONFIG_BF60x wakeup = 0; #endif return 0; }
. arch/blackfin/mach-common/pm.c:144: int wakeup, ret;