On Mon, Feb 26, 2018 at 11:34 AM, Jean Delvare <jdelvare@xxxxxxx> wrote: > When ACPI debugging is disabled, I see warnings like this one: > > drivers/i2c/busses/i2c-scmi.c: In function "acpi_smbus_cmi_add_cap": > drivers/i2c/busses/i2c-scmi.c:328:39: warning: suggest braces around empty body in an "else" statement [-Wempty-body] > drivers/i2c/busses/i2c-scmi.c:338:12: warning: suggest braces around empty body in an "else" statement [-Wempty-body] > > It is caused by ACPI_DEBUG_PRINT (or other similar macros) resolving > to nothing. Make them resolve to the classic "do {} while (0)" > construct instead if the compiler likes that, or just {} if not, to > silent all such warnings. So first of all, acpi_smbus_cmi_add_cap() shouldn't really use ACPI_DEBUG_PRINT() and similar. They belong to ACPICA and their use should be limited to it. I know that they are used in the other parts of the ACPI subsystem, but they really should be replaced with the kernel's proper debug statements in there. Thanks, Rafael -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html