On Wed, 03 Apr 2024 09:23:31 +0200, Ahmad Fatoum wrote: > While we run the preprocessor over device trees before compiling them, > we don't define the Kconfig symbols and including <generated/autoconf.h> > would fail. > > The file defines __is_defined however, which can be useful for other > macros that are either defined to 1 or undefined like the macros we > define for device tree fragments to indicate which file they are being > appended to. To make it possible to use __is_defined from fragments, > move the kconfig-independent part out of <linux/kconfig.h> into > <linux/is_defined.h>. > > [...] Applied, thanks! [1/2] include: kconfig.h: move __is_defined definition into new header https://git.pengutronix.de/cgit/barebox/commit/?id=71b94b24f462 (link may not be stable) [2/2] include: is_defined: implement __if_defined helper https://git.pengutronix.de/cgit/barebox/commit/?id=1674da1f95ce (link may not be stable) Best regards, -- Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>