On Fri, May 23, 2025 at 09:42:07PM -0500, Bjorn Helgaas wrote: > What I would prefer is something like the first paragraph in that > section: the #ifdef in a header file that declares the function and > defines a no-op stub, with the implementation in some pwrctrl file. pci_pwrctrl_create_device() is static, but it is possible to #ifdef the whole function in the .c file and provide the stub in an #else branch. That's easier to follow than #ifdef'ing portions of the function. Thanks, Lukas