sys: Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
Revert r357349, since the clang 10.0.0 warning was actually correct, andthe ! operator should have been a ~ instead: Merge r357348 from the clang 10.0.0 import branch: Disable new clang 10.0.0
Revert r357349, since the clang 10.0.0 warning was actually correct, andthe ! operator should have been a ~ instead: Merge r357348 from the clang 10.0.0 import branch: Disable new clang 10.0.0 warnings about converting the result of shift operations to a boolean in tpm(4): sys/dev/tpm/tpm_crb.c:301:32: error: converting the result of '<<' to a boolean; did you mean '(1 << (0)) != 0'? [-Werror,-Wint-in-bool-context] WR4(sc, TPM_CRB_CTRL_CANCEL, !TPM_CRB_CTRL_CANCEL_CMD); ^ sys/dev/tpm/tpm_crb.c:73:34: note: expanded from macro 'TPM_CRB_CTRL_CANCEL_CMD' #define TPM_CRB_CTRL_CANCEL_CMD BIT(0) ^ sys/dev/tpm/tpm20.h:60:19: note: expanded from macro 'BIT' #define BIT(x) (1 << (x)) ^ Such warnings can be useful in C++ contexts, but not so much in kernel drivers, where this type of bit twiddling is commonplace. So disable it for this case.Noticed by: cemMFC after: 3 days
show more ...
Disable new clang 10.0.0 warnings about converting the result of shiftoperations to a boolean in tpm(4):sys/dev/tpm/tpm_crb.c:301:32: error: converting the result of '<<' to a boolean; did you mea
Disable new clang 10.0.0 warnings about converting the result of shiftoperations to a boolean in tpm(4):sys/dev/tpm/tpm_crb.c:301:32: error: converting the result of '<<' to a boolean; did you mean '(1 << (0)) != 0'? [-Werror,-Wint-in-bool-context] WR4(sc, TPM_CRB_CTRL_CANCEL, !TPM_CRB_CTRL_CANCEL_CMD); ^sys/dev/tpm/tpm_crb.c:73:34: note: expanded from macro 'TPM_CRB_CTRL_CANCEL_CMD'#define TPM_CRB_CTRL_CANCEL_CMD BIT(0) ^sys/dev/tpm/tpm20.h:60:19: note: expanded from macro 'BIT'#define BIT(x) (1 << (x)) ^Such warnings can be useful in C++ contexts, but not so much in kerneldrivers, where this type of bit twiddling is commonplace. So disable itfor this case.MFC after: 3 days
Fix `make` in sys/modulesSponsored by: The FreeBSD Foundation
Include the new TPM 2.0 driver in the TPM module.Update the appropriate Makefile to build the new drivertogether with the old one.Submitted by: Kornel Duleba <[email protected]>Reported by: k
Include the new TPM 2.0 driver in the TPM module.Update the appropriate Makefile to build the new drivertogether with the old one.Submitted by: Kornel Duleba <[email protected]>Reported by: kibObtained from: SemihalfSponsored by: Stormshield
sys/modules: normalize .CURDIR-relative paths to SRCTOPThis simplifies make output/logicTested with: `cd sys/modules; make ALL_MODULES=` on amd64MFC after: 1 monthSponsored by: Dell EMC Isilon
Hook tpm.4 manual to build.
Add tpm(4) driver for Trusted Platform Module.You may want to look at http://bsssd.sourceforge.net/ .Submitted by: Hans-Joerg Hoexer <[email protected]>