Use checkpatch.pl to make thinkpad_acpi.c error free: add parenthesis to complex macros
PATCH 1/1 Use checkpatch.pl to make thinkpad_acpi.c error free: add parenthesis to complex macros
From: Simranjit Singh <[email protected]>
Added parentheses around complex macros following checkpatch.pl for thinkpad_acpi.c
Signed-off-by Simranjit Singh
---
drivers/platform/x86/thinkpad_acpi.c +6 -6
@@ -1650,23 +1650,23 @@ static void tpacpi_remove_driver_attributes(struct device_driver *drv)TPV_Q (PCI_VENDOR_ID_IBM , __id1, __id2, __bv1, __bv2)/* Outdated IBM BIOSes often lack the EC id string */ -#define TPV_QI1 (__id1, __id2, __bv1, __bv2, __ev1, __ev2) \ +#define (TPV_QI1(__id1, __id2, __bv1, __bv2, __ev1, __ev2) \TPV_Q_X (PCI_VENDOR_ID_IBM , __id1, __id2, \ __bv1, __bv2,TPID (__id1, __id2), \ __ev1, __ev2), \TPV_Q_X (PCI_VENDOR_ID_IBM , __id1, __id2, \ __bv1, __bv2,TPACPI_MATCH_UNKNOWN , \ - __ev1, __ev2) + __ev1, __ev2))/* Outdated IBM BIOSes often lack the EC id string */ -#define TPV_QI2 (__bid1, __bid2, __bv1, __bv2, \ +#define (TPV_QI2(__bid1, __bid2, __bv1, __bv2, \ __eid1, __eid2, __ev1, __ev2) \TPV_Q_X (PCI_VENDOR_ID_IBM , __bid1, __bid2, \ __bv1, __bv2,TPID (__eid1, __eid2), \ __ev1, __ev2), \TPV_Q_X (PCI_VENDOR_ID_IBM , __bid1, __bid2, \ __bv1, __bv2,TPACPI_MATCH_UNKNOWN , \ - __ev1, __ev2) + __ev1, __ev2))#define TPV_QL0 (__id1, __id2, __bv1, __bv2) \ TPV_Q(PCI_VENDOR_ID_LENOVO, __id1, __id2, __bv1, __bv2)
@@ -6238,8 +6238,8 @@ static ssize_t thermal_temp_input_show(struct device *dev, THERMAL_SENSOR_ATTR_TEMP(16, 15), }; -#define THERMAL_ATTRS (X ) \ - &sensor_dev_attr_thermal_temp_input[X].dev_attr.attr +#define (THERMAL_ATTRS(X) \ + &sensor_dev_attr_thermal_temp_input[X].dev_attr.attr)static struct attribute *thermal_temp_input_attr[] = {THERMAL_ATTRS (8 ),
Quoted 3 lines · Simranjit Singh
From: Simranjit Singh <[email protected]>
Added parentheses around complex macros following checkpatch.pl for
thinkpad_acpi.c
Same story.
Signature · 2 lines
With Best Regards, Andy Shevchenko