Pascal Van Leeuwen <pvanleeuwen@xxxxxxxxxxxxxxxx> wrote: > ... the proper way to do this is not by > doing an #ifdef but by using a regular if with IS_ENABLED like so: > > if (IS_ENABLED(CONFIG_PCI)) {} See also: http://doc.cat-v.org/henry_spencer/ifdef_considered_harmful