aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace
diff options
context:
space:
mode:
authorAndrew Lunn <[email protected]>2020-11-10 04:02:44 +0100
committerJakub Kicinski <[email protected]>2020-11-12 14:49:39 -0800
commit6015e6f2efc620fe0b43e92ddd620f2446ce82e8 (patch)
treef54fa69957f0be31c9546aefbb2d7d3de361cf30 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace
parent606ddf1f046e5e15c4865722f8dd1b9cf10042f1 (diff)
drivers: net: smc911x: Work around set but unused status
drivers/net/ethernet/smsc/smc911x.c: In function ‘smc911x_phy_interrupt’: drivers/net/ethernet/smsc/smc911x.c:976:6: warning: variable ‘status’ set but not used [-Wunused-but-set-variable] 976 | int status; A comment indicates the status needs to be read from the PHY, otherwise bad things happen. But due to the macro magic, it is hard to perform the read without assigning it to a variable. So add _always_unused attribute to status to tell the compiler we don't expect to use the value. Signed-off-by: Andrew Lunn <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace')
0 files changed, 0 insertions, 0 deletions