Thread (6 messages) 6 messages, 3 authors, 2021-01-18

Re: [PATCH v2 1/2] kconfig.h: Add IF_ENABLED() macro

From: Paul Cercueil <paul@crapouillou.net>
Date: 2021-01-11 08:46:39
Also in: lkml

Hi,

Le lun. 14 déc. 2020 à 10:05, Linus Walleij 
[off-list ref] a écrit :
On Mon, Dec 14, 2020 at 12:54 AM Paul Cercueil [off-list ref] 
wrote:
quoted
 IF_ENABLED(CONFIG_FOO, ptr) evaluates to (ptr) if CONFIG_FOO is set 
to 'y'
 or 'm', NULL otherwise. The (ptr) argument must be a pointer.

 The IF_ENABLED() macro can be very useful to help GCC drop dead 
code.
I can apply this with the other patch to the pinctrl subsystem if 
Arnd or
someone else who is good at KConfig provides an ACK.
Arnd? Any feedback?

Cheers,
-Paul

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help