On Tue, 15 Oct 2019, Lakshmi Ramasubramanian wrote: > +inline bool is_secondary_trusted_keyring(struct key *keyring) > +{ > + #ifdef CONFIG_SECONDARY_TRUSTED_KEYRING > + return (keyring == secondary_trusted_keys); > + #else > + return false; > + #endif > +} > + > +inline bool is_platform_trusted_keyring(struct key *keyring) > +{ > + #ifdef CONFIG_INTEGRITY_PLATFORM_KEYRING > + return (keyring == platform_trusted_keys); > + #else > + return false; > + #endif > +} See "Conditional Compilation" in Documentation/process/coding-style.rst i.e. compile out at the function level, in the header file for these, do not indent the directives, add a matching comment for the #endif. -- James Morris <jamorris@xxxxxxxxxxxxxxxxx>