diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2024-12-10 12:27:10 -0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-12-11 20:12:59 -0800 |
commit | c4117091d029087abde76e6947d43dca8f1db20b (patch) | |
tree | 2f023638b28f29618d836a5f4561d32a63f34919 /lib/packing_test.c | |
parent | ae7837bb3d9d0bad1230353bbafb92b3e6ad3941 (diff) | |
download | linux-stable-c4117091d029087abde76e6947d43dca8f1db20b.tar.gz linux-stable-c4117091d029087abde76e6947d43dca8f1db20b.tar.bz2 linux-stable-c4117091d029087abde76e6947d43dca8f1db20b.zip |
lib: packing: create __pack() and __unpack() variants without error checking
A future variant of the API, which works on arrays of packed_field
structures, will make most of these checks redundant. The idea will be
that we want to perform sanity checks at compile time, not once
for every function call.
Introduce new variants of pack() and unpack(), which elide the sanity
checks, assuming that the input was pre-sanitized.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://patch.msgid.link/20241210-packing-pack-fields-and-ice-implementation-v10-1-ee56a47479ac@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'lib/packing_test.c')
0 files changed, 0 insertions, 0 deletions