aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-perl.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2020-04-08 21:04:31 +0200
committerCasey Schaufler <[email protected]>2020-05-06 14:46:26 -0700
commit00720f0e7f288d29681d265c23b22bb0f0f4e5b4 (patch)
tree69654d40a3c48c9472b35e5b1f59f51cf9ee05d3 /tools/perf/util/scripting-engines/trace-event-perl.c
parent7111951b8d4973bda27ff663f2cf18b663d15b48 (diff)
smack: avoid unused 'sip' variable warning
The mix of IS_ENABLED() and #ifdef checks has left a combination that causes a warning about an unused variable: security/smack/smack_lsm.c: In function 'smack_socket_connect': security/smack/smack_lsm.c:2838:24: error: unused variable 'sip' [-Werror=unused-variable] 2838 | struct sockaddr_in6 *sip = (struct sockaddr_in6 *)sap; Change the code to use C-style checks consistently so the compiler can handle it correctly. Fixes: 87fbfffcc89b ("broken ping to ipv6 linklocal addresses on debian buster") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Casey Schaufler <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions