Re: Warnings from include/linux/gpio/consumer.h with CONFIG_GPIOLIB=n

2017-09-12 Thread Linus Walleij
On Sat, Sep 2, 2017 at 6:49 AM, Florian Fainelli wrote: > I think Sergei or someone else was mentioning that before a while ago, > but when CONFIG_GPIOLIB=n most gpiod_* inline stubs have WARN_ON() that > will scare people. > > What do you recommend doing for code that might be built with or with

Warnings from include/linux/gpio/consumer.h with CONFIG_GPIOLIB=n

2017-09-01 Thread Florian Fainelli
Hi Linus, I think Sergei or someone else was mentioning that before a while ago, but when CONFIG_GPIOLIB=n most gpiod_* inline stubs have WARN_ON() that will scare people. What do you recommend doing for code that might be built with or without CONFIG_GPIOLIB, should we just encapsulate the part