diff mbox series

scsi: mpi3mr: refer CONFIG_SCSI_MPI3MR in makefile

Message ID 20221207023659.2411785-1-shinichiro.kawasaki@wdc.com (mailing list archive)
State Accepted
Headers show
Series scsi: mpi3mr: refer CONFIG_SCSI_MPI3MR in makefile | expand

Commit Message

Shinichiro Kawasaki Dec. 7, 2022, 2:36 a.m. UTC
When kconfig item CONFIG_SCSI_MPI3MR was introduced for mpi3mr driver,
makefile of the driver was not modified to refer the kconfig item. Then
mpi3mr.ko is built regardless of the kconfig item value y or m. Also
"make localmodconfig" can not find the kconfig item in the makefile,
then it does not generate CONFIG_SCSI_MPI3MR=m even when mpi3mr.ko is
loaded on the system. Refer the kconfig item to avoid the issues.

Fixes: c4f7ac64616e ("scsi: mpi3mr: Add mpi30 Rev-R headers and Kconfig")
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
---
 drivers/scsi/mpi3mr/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Damien Le Moal Dec. 7, 2022, 3:28 a.m. UTC | #1
On 2022/12/07 11:36, Shin'ichiro Kawasaki wrote:
> When kconfig item CONFIG_SCSI_MPI3MR was introduced for mpi3mr driver,
> makefile of the driver was not modified to refer the kconfig item. Then
> mpi3mr.ko is built regardless of the kconfig item value y or m. Also
> "make localmodconfig" can not find the kconfig item in the makefile,
> then it does not generate CONFIG_SCSI_MPI3MR=m even when mpi3mr.ko is
> loaded on the system. Refer the kconfig item to avoid the issues.
> 
> Fixes: c4f7ac64616e ("scsi: mpi3mr: Add mpi30 Rev-R headers and Kconfig")
> Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
> ---
>  drivers/scsi/mpi3mr/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/scsi/mpi3mr/Makefile b/drivers/scsi/mpi3mr/Makefile
> index ef86ca46646b..3bf8cf34e1c3 100644
> --- a/drivers/scsi/mpi3mr/Makefile
> +++ b/drivers/scsi/mpi3mr/Makefile
> @@ -1,5 +1,5 @@
>  # mpi3mr makefile
> -obj-m += mpi3mr.o
> +obj-$(CONFIG_SCSI_MPI3MR) += mpi3mr.o
>  mpi3mr-y +=  mpi3mr_os.o     \
>  		mpi3mr_fw.o \
>  		mpi3mr_app.o \

Looks good to me.

Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Sathya Prakash Veerichetty Dec. 8, 2022, 6:03 p.m. UTC | #2
On Tue, Dec 6, 2022 at 8:28 PM Damien Le Moal
<damien.lemoal@opensource.wdc.com> wrote:
>
> On 2022/12/07 11:36, Shin'ichiro Kawasaki wrote:
> > When kconfig item CONFIG_SCSI_MPI3MR was introduced for mpi3mr driver,
> > makefile of the driver was not modified to refer the kconfig item. Then
> > mpi3mr.ko is built regardless of the kconfig item value y or m. Also
> > "make localmodconfig" can not find the kconfig item in the makefile,
> > then it does not generate CONFIG_SCSI_MPI3MR=m even when mpi3mr.ko is
> > loaded on the system. Refer the kconfig item to avoid the issues.
> >
> > Fixes: c4f7ac64616e ("scsi: mpi3mr: Add mpi30 Rev-R headers and Kconfig")
> > Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
> > ---
> >  drivers/scsi/mpi3mr/Makefile | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/scsi/mpi3mr/Makefile b/drivers/scsi/mpi3mr/Makefile
> > index ef86ca46646b..3bf8cf34e1c3 100644
> > --- a/drivers/scsi/mpi3mr/Makefile
> > +++ b/drivers/scsi/mpi3mr/Makefile
> > @@ -1,5 +1,5 @@
> >  # mpi3mr makefile
> > -obj-m += mpi3mr.o
> > +obj-$(CONFIG_SCSI_MPI3MR) += mpi3mr.o
> >  mpi3mr-y +=  mpi3mr_os.o     \
> >               mpi3mr_fw.o \
> >               mpi3mr_app.o \
>
> Looks good to me.
>
> Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
>
> --
> Damien Le Moal
> Western Digital Research
>

Acked-by: Sathya Prakash Veerichetty <sathya.prakash@broadcom.com>
Martin K. Petersen Dec. 14, 2022, 3:01 a.m. UTC | #3
Shin'ichiro,

> When kconfig item CONFIG_SCSI_MPI3MR was introduced for mpi3mr driver,
> makefile of the driver was not modified to refer the kconfig item. Then
> mpi3mr.ko is built regardless of the kconfig item value y or m. Also
> "make localmodconfig" can not find the kconfig item in the makefile,
> then it does not generate CONFIG_SCSI_MPI3MR=m even when mpi3mr.ko is
> loaded on the system. Refer the kconfig item to avoid the issues.

Applied to 6.2/scsi-staging, thanks!
diff mbox series

Patch

diff --git a/drivers/scsi/mpi3mr/Makefile b/drivers/scsi/mpi3mr/Makefile
index ef86ca46646b..3bf8cf34e1c3 100644
--- a/drivers/scsi/mpi3mr/Makefile
+++ b/drivers/scsi/mpi3mr/Makefile
@@ -1,5 +1,5 @@ 
 # mpi3mr makefile
-obj-m += mpi3mr.o
+obj-$(CONFIG_SCSI_MPI3MR) += mpi3mr.o
 mpi3mr-y +=  mpi3mr_os.o     \
 		mpi3mr_fw.o \
 		mpi3mr_app.o \