Skip to contentSkip to conversation

pds_vdpa: protect Makefile from unconfigured debugfs

PATCH In review Shannon Nelson 3 participants 3 messages Jul 6, 2023 – Jul 10, 2023

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pds_vdpa: protect Makefile from unconfigured debugfs

debugfs.h protects itself from an undefined DEBUG_FS, so it is not necessary to check it in the driver code or the Makefile. The driver code had been updated for this, but the Makefile had missed the update.

Fixes a16291b5bcbb ("pds_vdpa: Add new vDPA driver for AMD/Pensando DSC")
---
 drivers/vdpa/pds/Makefile | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/vdpa/pds/Makefile +1 -2
index 2e22418e3ab3..c2d314d4614d 100644
@@ -5,6 +5,5 @@ obj-$(CONFIG_PDS_VDPA) := pds_vdpa.o
 
 pds_vdpa-y := aux_drv.o \
 	      cmds.o \
+	      debugfs.o \
 	      vdpa_dev.o
-
-pds_vdpa-$(CONFIG_DEBUG_FS) += debugfs.o
Signature · 1 line
2.17.1
Reviewed-by Tested-by on v1 1/1
#1 lore raw
Quoted 8 lines · Shannon Nelson

debugfs.h protects itself from an undefined DEBUG_FS, so it is not necessary to check it in the driver code or the Makefile. The driver code had been updated for this, but the Makefile had missed the update.

Fixes a16291b5bcbb ("pds_vdpa: Add new vDPA driver for AMD/Pensando DSC")

Thanks.

Quoted 16 lines
---
 drivers/vdpa/pds/Makefile | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/vdpa/pds/Makefile +1 -2
index 2e22418e3ab3..c2d314d4614d 100644
@@ -5,6 +5,5 @@ obj-$(CONFIG_PDS_VDPA) := pds_vdpa.o
 
 pds_vdpa-y := aux_drv.o \
 	      cmds.o \
+	      debugfs.o \
 	      vdpa_dev.o
-
-pds_vdpa-$(CONFIG_DEBUG_FS) += debugfs.o
Signature · 1 line
~Randy
Acked-by on v1 1/1
#2 lore raw
In reply to Shannon Nelson
Quoted 9 lines · Shannon Nelson

debugfs.h protects itself from an undefined DEBUG_FS, so it is not necessary to check it in the driver code or the Makefile. The driver code had been updated for this, but the Makefile had missed the update.

Fixes a16291b5bcbb ("pds_vdpa: Add new vDPA driver for AMD/Pensando DSC")

Thanks

Quoted 19 lines
---
 drivers/vdpa/pds/Makefile | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/vdpa/pds/Makefile +1 -3
index 2e22418e3ab3..c2d314d4614d 100644
@@ -5,6 +5,5 @@ obj-$(CONFIG_PDS_VDPA) := pds_vdpa.o
 
 pds_vdpa-y := aux_drv.o \
              cmds.o \
+             debugfs.o \
              vdpa_dev.o
-
-pds_vdpa-$(CONFIG_DEBUG_FS) += debugfs.o
--

2.17.1