]> 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)
commit71e8c9d517bdc3b376ab5278bd43b7ac04dbfa36
tree5166ffbf6e447daf06da1e57a400e30ce27b01f6
parent7c82af7c2d3705aa17cec830919a41dc42cc0a53
parent4d628c30fba09e318869dc9974be49bfe8736de1
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>