]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'pa-fox-validation'
authorDavid S. Miller <davem@davemloft.net>
Sun, 21 Mar 2021 01:53:41 +0000 (18:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 21 Mar 2021 01:53:41 +0000 (18:53 -0700)
commitcfe7050a2e52731d6ee06f75af38091da8b72891
tree5166ffbf6e447daf06da1e57a400e30ce27b01f6
parent72f4213ec11908b3710a2171af01dfc4de8e0cbb
parentecaddf3517869877bbb10f0c307bbec626d7cc72
Merge branch 'pa-fox-validation'

Alex Elder says:

====================
ipa: fix validation

There is sanity checking code in the IPA driver that's meant to be
enabled only during development.  This allows the driver to make
certain assumptions, but not have to verify those assumptions are
true at (operational) runtime.  This code is built conditional on
IPA_VALIDATION, set (if desired) inside the IPA makefile.

Unfortunately, this validation code has some errors.  First, there
are some mismatched arguments supplied to some dev_err() calls in
ipa_cmd_table_valid() and ipa_cmd_header_valid(), and these are
exposed if validation is enabled.  Second, the tag that enables
this conditional code isn't used consistently (it's IPA_VALIDATE
in some spots and IPA_VALIDATION in others).

This series fixes those two problems with the conditional validation
code.

Version 2 removes the two patches that introduced ipa_assert().  It
also modifies the description in the first patch so that it mentions
the changes made to ipa_cmd_table_valid().
====================

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