All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] soc: qcom: rmtfs: allow building the module with COMPILE_TEST=y
@ 2024-10-14 13:03 Bartosz Golaszewski
  2024-10-14 13:03 ` [PATCH 2/2] soc: qcom: rmtfs: constify rmtfs_class Bartosz Golaszewski
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Bartosz Golaszewski @ 2024-10-14 13:03 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio
  Cc: linux-arm-msm, linux-kernel, Bartosz Golaszewski

From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

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

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
 drivers/soc/qcom/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig
index 74b9121240f8..58e63cf0036b 100644
--- a/drivers/soc/qcom/Kconfig
+++ b/drivers/soc/qcom/Kconfig
@@ -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
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] soc: qcom: rmtfs: constify rmtfs_class
  2024-10-14 13:03 [PATCH 1/2] soc: qcom: rmtfs: allow building the module with COMPILE_TEST=y Bartosz Golaszewski
@ 2024-10-14 13:03 ` Bartosz Golaszewski
  2024-11-04 10:54   ` Dmitry Baryshkov
  2024-11-04  8:09 ` [PATCH 1/2] soc: qcom: rmtfs: allow building the module with COMPILE_TEST=y Bartosz Golaszewski
  2024-11-04 10:55 ` Dmitry Baryshkov
  2 siblings, 1 reply; 5+ messages in thread
From: Bartosz Golaszewski @ 2024-10-14 13:03 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio
  Cc: linux-arm-msm, linux-kernel, Bartosz Golaszewski

From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

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

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
 drivers/soc/qcom/rmtfs_mem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/soc/qcom/rmtfs_mem.c b/drivers/soc/qcom/rmtfs_mem.c
index df850d073102..469e34864fbe 100644
--- a/drivers/soc/qcom/rmtfs_mem.c
+++ b/drivers/soc/qcom/rmtfs_mem.c
@@ -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",
 };
 
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] soc: qcom: rmtfs: allow building the module with COMPILE_TEST=y
  2024-10-14 13:03 [PATCH 1/2] soc: qcom: rmtfs: allow building the module with COMPILE_TEST=y Bartosz Golaszewski
  2024-10-14 13:03 ` [PATCH 2/2] soc: qcom: rmtfs: constify rmtfs_class Bartosz Golaszewski
@ 2024-11-04  8:09 ` Bartosz Golaszewski
  2024-11-04 10:55 ` Dmitry Baryshkov
  2 siblings, 0 replies; 5+ messages in thread
From: Bartosz Golaszewski @ 2024-11-04  8:09 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio
  Cc: linux-arm-msm, linux-kernel, Bartosz Golaszewski

On Mon, Oct 14, 2024 at 3:03 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
>
> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>
> Make it possible to build the module when COMPILE_TEST is enabled for
> better build coverage.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> ---
>  drivers/soc/qcom/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig
> index 74b9121240f8..58e63cf0036b 100644
> --- a/drivers/soc/qcom/Kconfig
> +++ b/drivers/soc/qcom/Kconfig
> @@ -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
> --
> 2.43.0
>

Gentle ping.

Bart

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] soc: qcom: rmtfs: constify rmtfs_class
  2024-10-14 13:03 ` [PATCH 2/2] soc: qcom: rmtfs: constify rmtfs_class Bartosz Golaszewski
@ 2024-11-04 10:54   ` Dmitry Baryshkov
  0 siblings, 0 replies; 5+ messages in thread
From: Dmitry Baryshkov @ 2024-11-04 10:54 UTC (permalink / raw)
  To: Bartosz Golaszewski
  Cc: Bjorn Andersson, Konrad Dybcio, linux-arm-msm, linux-kernel,
	Bartosz Golaszewski

On Mon, Oct 14, 2024 at 03:03:03PM +0200, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> 
> The rmtfs class object is never modified and can be made constant.
> 
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> ---
>  drivers/soc/qcom/rmtfs_mem.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

-- 
With best wishes
Dmitry

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] soc: qcom: rmtfs: allow building the module with COMPILE_TEST=y
  2024-10-14 13:03 [PATCH 1/2] soc: qcom: rmtfs: allow building the module with COMPILE_TEST=y Bartosz Golaszewski
  2024-10-14 13:03 ` [PATCH 2/2] soc: qcom: rmtfs: constify rmtfs_class Bartosz Golaszewski
  2024-11-04  8:09 ` [PATCH 1/2] soc: qcom: rmtfs: allow building the module with COMPILE_TEST=y Bartosz Golaszewski
@ 2024-11-04 10:55 ` Dmitry Baryshkov
  2 siblings, 0 replies; 5+ messages in thread
From: Dmitry Baryshkov @ 2024-11-04 10:55 UTC (permalink / raw)
  To: Bartosz Golaszewski
  Cc: Bjorn Andersson, Konrad Dybcio, linux-arm-msm, linux-kernel,
	Bartosz Golaszewski

On Mon, Oct 14, 2024 at 03:03:02PM +0200, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> 
> Make it possible to build the module when COMPILE_TEST is enabled for
> better build coverage.
> 
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> ---
>  drivers/soc/qcom/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

-- 
With best wishes
Dmitry

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-11-04 10:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-14 13:03 [PATCH 1/2] soc: qcom: rmtfs: allow building the module with COMPILE_TEST=y Bartosz Golaszewski
2024-10-14 13:03 ` [PATCH 2/2] soc: qcom: rmtfs: constify rmtfs_class Bartosz Golaszewski
2024-11-04 10:54   ` Dmitry Baryshkov
2024-11-04  8:09 ` [PATCH 1/2] soc: qcom: rmtfs: allow building the module with COMPILE_TEST=y Bartosz Golaszewski
2024-11-04 10:55 ` Dmitry Baryshkov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.