diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2026-04-24 09:29:51 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2026-04-24 09:29:51 -0700 |
| commit | bbc4af7ad94c452c00e64fc400fc1317351969b4 (patch) | |
| tree | d0b26a09925b3435fc75b2558088de61380fbc4b /certs | |
| parent | eefe0b9dee5db64ec87707c8e44f31851f257389 (diff) | |
| parent | 4f96b7c68a9904e01049ef610d701b382dca9574 (diff) | |
| download | linux-next-history-bbc4af7ad94c452c00e64fc400fc1317351969b4.tar.gz | |
Merge tag 'clang-fixes-7.1-1' of git://git.kernel.org/pub/scm/linux/kernel/git/nathan/linux
Pull Clang build fix from Nathan Chancellor:
- Wrap declaration and assignment of key_pass in certs/extract-cert.c
with '#ifdef' that matches its only usage to clear up an instance of
a new clang subwarning, -Wunused-but-set-global.
* tag 'clang-fixes-7.1-1' of git://git.kernel.org/pub/scm/linux/kernel/git/nathan/linux:
extract-cert: Wrap key_pass with '#ifdef USE_PKCS11_ENGINE'
Diffstat (limited to 'certs')
| -rw-r--r-- | certs/extract-cert.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/certs/extract-cert.c b/certs/extract-cert.c index 8c762f908443c..f3eb2c4928845 100644 --- a/certs/extract-cert.c +++ b/certs/extract-cert.c @@ -41,7 +41,9 @@ void format(void) exit(2); } +#ifdef USE_PKCS11_ENGINE static const char *key_pass; +#endif static BIO *wb; static char *cert_dst; static bool verbose; @@ -133,7 +135,9 @@ int main(int argc, char **argv) if (verbose_env && strchr(verbose_env, '1')) verbose = true; - key_pass = getenv("KBUILD_SIGN_PIN"); +#ifdef USE_PKCS11_ENGINE + key_pass = getenv("KBUILD_SIGN_PIN"); +#endif if (argc != 3) format(); |
