[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <yq1seduunc2.fsf@ca-mkp.ca.oracle.com>
Date: Mon, 01 Dec 2025 12:25:26 -0500
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Bean Huo <beanhuo@...pp.de>
Cc: avri.altman@...disk.com, bvanassche@....org, alim.akhtar@...sung.com,
jejb@...ux.ibm.com, martin.petersen@...cle.com,
can.guo@....qualcomm.com, beanhuo@...ron.com,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel test
robot <lkp@...el.com>
Subject: Re: [PATCH] scsi: ufs: core: Fix link error when CONFIG_RPMB=m
Hi Bean!
> When CONFIG_SCSI_UFSHCD=y and CONFIG_RPMB=m, the kernel fails to link
> with undefined references to ufs_rpmb_probe() and ufs_rpmb_remove():
>
> ld: drivers/ufs/core/ufshcd.c:8950: undefined reference to `ufs_rpmb_probe'
> ld: drivers/ufs/core/ufshcd.c:10505: undefined reference to `ufs_rpmb_remove'
>
> The issue occurs because IS_ENABLED(CONFIG_RPMB) evaluates to true
> when CONFIG_RPMB=m, causing the header to declare the real function
> prototypes.
This now breaks the modular build for me.
--
Martin K. Petersen
Powered by blists - more mailing lists