diff options
| author | Dee-Jay Anthony Logozzo <dj@djl.id.au> | 2021-08-11 23:41:32 +1000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-08-12 10:21:50 +0200 |
| commit | 959aabedcd91ba659e17191f1d3da96ceb1c4147 (patch) | |
| tree | 2123536b97c732bf26810b5f42bd42c27f66ed77 /tools/perf/scripts/python | |
| parent | 25ee7e89d45debc195cc8cec2483e07bbccd1472 (diff) | |
| download | linux-959aabedcd91ba659e17191f1d3da96ceb1c4147.tar.gz linux-959aabedcd91ba659e17191f1d3da96ceb1c4147.zip | |
staging: gdm724x: Place macro argument within parentheses
Place the macro arguments within parentheses to avoid precedence issues.
This solves the following checkpatch.pl warnings
CHECK: Macro argument 'len' may be better as '(len)' to avoid precedence issues
+#define ND_NLMSG_S_LEN(len) (len + ND_IFINDEX_LEN)
CHECK: Macro argument 'nlh' may be better as '(nlh)' to avoid precedence issues
+#define ND_NLMSG_R_LEN(nlh) (nlh->nlmsg_len - ND_IFINDEX_LEN)
Signed-off-by: Dee-Jay Anthony Logozzo <dj@djl.id.au>
Link: https://lore.kernel.org/r/20210811134132.5240-1-dj@djl.id.au
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
