Hi Mark, Liam, and all

I always get this warning from regulator_lock_supply

        LINUX/drivers/regulator/core.c: In function 'regulator_lock_supply':
        LINUX/drivers/regulator/core.c:142:6: warning: unused variable 'i' 
[-Wunused-variable]
          int i = 0;

my .config has

        > grep CONFIG_DEBUG_LOCK_ALLOC .config
        # CONFIG_DEBUG_LOCK_ALLOC is not set


I don't like this bad idea, but...

        #ifdef CONFIG_DEBUG_LOCK_ALLOC
                int i = 0;
        #endif

Reply via email to