public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Warnings from include/linux/gpio/consumer.h with CONFIG_GPIOLIB=n
@ 2017-09-02  4:49 Florian Fainelli
  2017-09-12  7:25 ` Linus Walleij
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Fainelli @ 2017-09-02  4:49 UTC (permalink / raw)
  To: open list, linux-gpio, Linus Walleij; +Cc: Sergei Shtylyov, Andrew Lunn

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 that deals with
GPIOs under an #if IS_ENABLED(CONFIG_GPIOLIB) or something? The
particular piece of code that I just saw this with is
drivers/net/phy/mdio_bus.c.

Thanks!
-- 
Florian

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-12  7:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-02  4:49 Warnings from include/linux/gpio/consumer.h with CONFIG_GPIOLIB=n Florian Fainelli
2017-09-12  7:25 ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox