summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2019-03-07 17:57:42 +0100
committerDavid S. Miller <davem@davemloft.net>2019-03-07 18:52:56 +0100
commitf9d19a7494e5341a7f256823e32788ae560ca22f (patch)
treee465b8ced396d82b924852f251fa98c5db33c3ac /drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
parentethtool: reduce stack usage with clang (diff)
downloadlinux-f9d19a7494e5341a7f256823e32788ae560ca22f.tar.xz
linux-f9d19a7494e5341a7f256823e32788ae560ca22f.zip
net: atm: Use IS_ENABLED in atm_dev_ioctl
When building with -Wsometimes-uninitialized, Clang warns: net/atm/resources.c:256:6: warning: variable 'number' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] net/atm/resources.c:212:7: warning: variable 'iobuf_len' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] Clang won't realize that compat is 0 when CONFIG_COMPAT is not set until the constant folding stage, which happens after this semantic analysis. Use IS_ENABLED instead so that the zero is present at the semantic analysis stage, which eliminates this warning. Link: https://github.com/ClangBuiltLinux/linux/issues/386 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/stmmac_main.c')
0 files changed, 0 insertions, 0 deletions