On Sat, Jan 7, 2017 at 1:43 AM, Vladimir Zapolskiy <vz@xxxxxxxxx> wrote: > On 01/07/2017 12:45 AM, Andy Shevchenko wrote: >> On Fri, Jan 6, 2017 at 11:46 PM, Vladimir Zapolskiy <vz@xxxxxxxxx> wrote: >>>> + if (IS_BUILTIN(CONFIG_OF) && dev->of_node) { >>> >>> IS_BUILTIN(CONFIG_OF) looks excessive, check for non-NULL dev->of_node >>> should be sufficient. >> >> Sorry, but you missed the point. >> This will enable compile time optimization and basically be collapsed to no-op. >> > > Good point, do you plan to add more "IS_BUILTIN(CONFIG_OF)" checks all > over the code to reduce the size of the built image? There is no black and white, don't be silly. > >>>> + } >>>> + } else if (IS_BUILTIN(CONFIG_ACPI) && ACPI_HANDLE(dev)) { >>>> + dev_dbg(dev, "ACPI slave is not supported yet\n"); >>>> + } >>> >>> If so, then it might be better to drop else-if stub for now. >> >> Please, don't. >> > > Why do you ask for this stub to be added? 1. Exactly the reason you asked above. Here is the code which has built differently on different platforms. x86 usually is not using CONFIG_OF, ARM doesn't ACPI (versus ARM64). Check GPIO library for existing examples. 2. We might add that support later, but here is again, just no-op. So, what is your strong argument here against that? -- With Best Regards, Andy Shevchenko -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html