Skip to contentSkip to conversation

soc: qcom: rmtfs: allow building the module with COMPILE_TEST=y

PATCH Superseded Bartosz Golaszewski 2 participants 5 messages Oct 14, 2024 – Nov 4, 2024

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

PATCH 1/2 soc: qcom: rmtfs: allow building the module with COMPILE_TEST=y

From: Bartosz Golaszewski <[email protected]>

Make it possible to build the module when COMPILE_TEST is enabled for better build coverage.

---
 drivers/soc/qcom/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/qcom/Kconfig +1 -1
index 74b9121240f8..58e63cf0036b 100644
@@ -139,7 +139,7 @@ config QCOM_RAMP_CTRL
 
 config QCOM_RMTFS_MEM
 	tristate "Qualcomm Remote Filesystem memory driver"
-	depends on ARCH_QCOM
+	depends on ARCH_QCOM || COMPILE_TEST
 	select QCOM_SCM
 	help
 	  The Qualcomm remote filesystem memory driver is used for allocating
Signature · 1 line
2.43.0
#1 lore raw

PATCH 2/2 soc: qcom: rmtfs: constify rmtfs_class

From: Bartosz Golaszewski <[email protected]>

The rmtfs class object is never modified and can be made constant.

---
 drivers/soc/qcom/rmtfs_mem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/qcom/rmtfs_mem.c +1 -1
index df850d073102..469e34864fbe 100644
@@ -125,7 +125,7 @@ static int qcom_rmtfs_mem_release(struct inode *inode, struct file *filp)
 	return 0;
 }
 
-static struct class rmtfs_class = {
+static const struct class rmtfs_class = {
 	.name           = "rmtfs",
 };
 
Signature · 1 line
2.43.0
Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] soc: qcom: rmtfs: constify rmtfs_class

Quoted 9 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

The rmtfs class object is never modified and can be made constant.

---
 drivers/soc/qcom/rmtfs_mem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 2 lines
With best wishes
Dmitry
#3 lore raw
In reply to Bartosz Golaszewski
Quoted 25 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Make it possible to build the module when COMPILE_TEST is enabled for better build coverage.

---
 drivers/soc/qcom/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/qcom/Kconfig +1 -2
index 74b9121240f8..58e63cf0036b 100644
@@ -139,7 +139,7 @@ config QCOM_RAMP_CTRL
 
 config QCOM_RMTFS_MEM
        tristate "Qualcomm Remote Filesystem memory driver"
-       depends on ARCH_QCOM
+       depends on ARCH_QCOM || COMPILE_TEST
        select QCOM_SCM
        help
          The Qualcomm remote filesystem memory driver is used for allocating
--
Quoted 2 lines

2.43.0

Gentle ping.

Bart

Reviewed-by on v1 1/2
#4 lore raw
In reply to Bartosz Golaszewski
Quoted 10 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Make it possible to build the module when COMPILE_TEST is enabled for better build coverage.

---
 drivers/soc/qcom/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 2 lines
With best wishes
Dmitry