Before refine the code, check with kernel checkpatch.pl:
total: 18 errors, 19 warnings, 846 lines checked
After refine the code, check with kernel checkpatch.pl:
scripts/checkpatch.pl --terse -f --max-line-length 132 tpm2_security.c
tpm2_security.c:1: WARNING: Missing or malformed SPDX-License-Identifier
tag in line 1
tpm2_security.c:57: WARNING: do not add new typedefs
total: 0 errors, 2 warnings, 852 lines checked
Before refine the code, check with kernel checkpatch.pl: total: 18 errors, 19 warnings, 846 lines checked
After refine the code, check with kernel checkpatch.pl: scripts/checkpatch.pl --terse -f --max-line-length 132 tpm2_security.c tpm2_security.c:1: WARNING: Missing or malformed SPDX-License-Identifier tag in line 1 tpm2_security.c:57: WARNING: do not add new typedefs total: 0 errors, 2 warnings, 852 lines checked
Tracked-On: OAM-86837 Signed-off-by: Ming Tan ming.tan@intel.com