Re: [PATCH] scsi: ufs: core: Fix link error when CONFIG_RPMB=m
From: Arnd Bergmann
Date: Wed Dec 03 2025 - 09:39:27 EST
On Wed, Dec 3, 2025, at 07:15, kernel test robot wrote:
>
> All errors (new ones prefixed by >>):
>
>>> drivers/ufs/core/ufs-rpmb.c:135:5: error: redefinition of 'ufs_rpmb_probe'
> 135 | int ufs_rpmb_probe(struct ufs_hba *hba)
> | ^
> drivers/ufs/core/ufshcd-priv.h:445:19: note: previous definition is here
> 445 | static inline int ufs_rpmb_probe(struct ufs_hba *hba)
> | ^
>>> drivers/ufs/core/ufs-rpmb.c:234:6: error: redefinition of 'ufs_rpmb_remove'
The declaration and definitio are inconsistent: the former is inside of
an #ifdef block, the latter is not. I think either way works, but it
needs to be the same for both.
Arnd