[PATCH] nvme-keyring: mark nvme_dhchap_psk_hash() as static inline

Keith Busch kbusch at kernel.org
Mon Nov 3 07:35:09 PST 2025


On Sat, Nov 01, 2025 at 08:17:01PM -0700, Chaitanya Kulkarni wrote:
> Fix build warning when CONFIG_NVME_KEYRING is not enabled:
> 
>   include/linux/nvme-keyring.h:57:4: warning: no previous prototype for
>   function 'nvme_dhchap_psk_hash' [-Wmissing-prototypes]
> 
> The nvme_dhchap_psk_hash() stub function in the #else block is missing
> the 'static inline' qualifiers that all other stub functions in the same
> block have. Add them to fix the warning.

Thanks, applied to nvme-6.19.



More information about the Linux-nvme mailing list