]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'mlxsw-Various-static-checkers-fixes'
authorDavid S. Miller <davem@davemloft.net>
Fri, 27 Mar 2020 22:06:50 +0000 (15:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Mar 2020 22:06:50 +0000 (15:06 -0700)
commit42b8e6f67e5089d5fce7a30829dcb8ad008426e9
tree975d23ab7473a4eb36b5d96f988abeca67ab6bd3
parent8700f56e54d7ba977968598bcb1b6933b60a458e
parentfc645ef0ae069dd1bd92f8bfb2e851cd37ddb8cd
Merge branch 'mlxsw-Various-static-checkers-fixes'

Ido Schimmel says:

====================
mlxsw: Various static checkers fixes

Jakub told me he gets some warnings with W=1, so I decided to check with
sparse, smatch and coccinelle as well. This patch set fixes all the
issues found. None are actual bugs / regressions and therefore not
targeted at net.

Patches #1-#2 add missing kernel-doc comments.

Patch #3 removes dead code.

Patch #4 reworks the ACL code to avoid defining a static variable in a
header file.

Patch #5 removes unnecessary conversion to bool that coccinelle warns
about.

Patch #6 avoids false-positive uninitialized symbol errors emitted by
smatch.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>