[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <70ae7b56-7fcd-9677-4768-e8a7343c5d75@lwfinger.net>
Date: Thu, 29 Jun 2017 20:26:59 -0500
From: Larry Finger <Larry.Finger@...inger.net>
To: Andy Whitcroft <apw@...onical.com>, Joe Perches <joe@...ches.com>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: Inconsistency in scripts/checkpatch.pl
Andy and Joe,
In some new rtlwifi code, I get the following for one of the new macros:
CHECK: Macro argument '__h2c' may be better as '(__h2c)' to avoid precedence issues
#45005: FILE:
drivers/net/wireless/realtek/rtlwifi/halmac/halmac_original_h2c_nic.h:1163:
+#define AOAC_RSVD_PAGE3_GET_LOC_AOAC_REPORT(__h2c) \
+ LE_BITS_TO_4BYTE(__h2c + 0X00, 16, 8)
When I make that change, I get
CHECK: No space is necessary after a cast
#45004: FILE:
drivers/net/wireless/realtek/rtlwifi/halmac/halmac_original_h2c_nic.h:1162:
+ LE_BITS_TO_4BYTE((__h2c) + 0X00, 16, 8)
Which CHECK should I fix? To my eye, the second form is the false positive.
Larry
Powered by blists - more mailing lists