Linux-Rockchip Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Dafna Hirschfeld <dafna@fastmail.com>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: linux-media@vger.kernel.org, Heiko Stuebner <heiko@sntech.de>,
	Paul Elder <paul.elder@ideasonboard.com>,
	Tomasz Figa <tfiga@google.com>,
	linux-rockchip@lists.infradead.org
Subject: Re: [PATCH v3.1 13/17] media: rkisp1: Compile debugfs support conditionally
Date: Tue, 22 Mar 2022 06:12:57 +0200	[thread overview]
Message-ID: <20220322041257.5mdj5zc7ajgtteor@guri> (raw)
In-Reply-To: <20220321124437.12749-1-laurent.pinchart@ideasonboard.com>

On 21.03.2022 14:44, Laurent Pinchart wrote:
> When CONFIG_DEBUGFS is disabled, there's no need to compile the debugfs
> support in. Make it conditional.
> 
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

Reviewed-by: Dafna Hirschfeld <dafna@fastmail.com>

> ---
> Changes since v3:
> 
> - Fix double mention of rkisp1-debug.o in Makefile
> ---
>  .../media/platform/rockchip/rkisp1/Makefile    | 18 ++++++++++--------
>  .../platform/rockchip/rkisp1/rkisp1-common.h   |  9 +++++++++
>  2 files changed, 19 insertions(+), 8 deletions(-)
> 
> diff --git a/drivers/media/platform/rockchip/rkisp1/Makefile b/drivers/media/platform/rockchip/rkisp1/Makefile
> index 1a39bdcc608e..f7543a82aa10 100644
> --- a/drivers/media/platform/rockchip/rkisp1/Makefile
> +++ b/drivers/media/platform/rockchip/rkisp1/Makefile
> @@ -1,11 +1,13 @@
>  # SPDX-License-Identifier: GPL-2.0
>  
> +rockchip-isp1-y := rkisp1-capture.o \
> +		   rkisp1-common.o \
> +		   rkisp1-dev.o \
> +		   rkisp1-isp.o \
> +		   rkisp1-resizer.o \
> +		   rkisp1-stats.o \
> +		   rkisp1-params.o
> +
> +rockchip-isp1-$(CONFIG_DEBUG_FS) += rkisp1-debug.o
> +
>  obj-$(CONFIG_VIDEO_ROCKCHIP_ISP1) += rockchip-isp1.o
> -rockchip-isp1-objs += 	rkisp1-capture.o \
> -			rkisp1-common.o \
> -			rkisp1-debug.o \
> -			rkisp1-dev.o \
> -			rkisp1-isp.o \
> -			rkisp1-resizer.o \
> -			rkisp1-stats.o \
> -			rkisp1-params.o
> diff --git a/drivers/media/platform/rockchip/rkisp1/rkisp1-common.h b/drivers/media/platform/rockchip/rkisp1/rkisp1-common.h
> index 07a92ed8bdc8..a7ffe2830fa8 100644
> --- a/drivers/media/platform/rockchip/rkisp1/rkisp1-common.h
> +++ b/drivers/media/platform/rockchip/rkisp1/rkisp1-common.h
> @@ -518,7 +518,16 @@ void rkisp1_stats_unregister(struct rkisp1_device *rkisp1);
>  int rkisp1_params_register(struct rkisp1_device *rkisp1);
>  void rkisp1_params_unregister(struct rkisp1_device *rkisp1);
>  
> +#if IS_ENABLED(CONFIG_DEBUG_FS)
>  void rkisp1_debug_init(struct rkisp1_device *rkisp1);
>  void rkisp1_debug_cleanup(struct rkisp1_device *rkisp1);
> +#else
> +static inline void rkisp1_debug_init(struct rkisp1_device *rkisp1)
> +{
> +}
> +static inline void rkisp1_debug_cleanup(struct rkisp1_device *rkisp1)
> +{
> +}
> +#endif
>  
>  #endif /* _RKISP1_COMMON_H */
> -- 
> Regards,
> 
> Laurent Pinchart
> 

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

  reply	other threads:[~2022-03-22  4:13 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-19 16:30 [PATCH v3 00/17] media: rkisp1: Misc bug fixes and cleanups Laurent Pinchart
2022-03-19 16:30 ` [PATCH v3 01/17] media: rkisp1: capture: Initialize entity before video device Laurent Pinchart
2022-03-19 16:30 ` [PATCH v3 02/17] media: rkisp1: capture: Fix and simplify (un)registration Laurent Pinchart
2022-03-19 16:30 ` [PATCH v3 03/17] media: rkisp1: isp: " Laurent Pinchart
2022-03-22  4:23   ` Dafna Hirschfeld
2022-03-22  9:58     ` Laurent Pinchart
2022-03-19 16:30 ` [PATCH v3 04/17] media: rkisp1: resizer: " Laurent Pinchart
2022-03-19 16:30 ` [PATCH v3 05/17] media: rkisp1: params: " Laurent Pinchart
2022-03-22  4:27   ` Dafna Hirschfeld
2022-03-22 10:01     ` Laurent Pinchart
2022-03-19 16:30 ` [PATCH v3 06/17] media: rkisp1: stats: Simplify (un)registration Laurent Pinchart
2022-03-19 16:30 ` [PATCH v3 07/17] media: rkisp1: Simplify rkisp1_entities_register() error path Laurent Pinchart
2022-03-19 16:30 ` [PATCH v3 08/17] media: rkisp1: regs: Don't use BIT() macro for multi-bit register fields Laurent Pinchart
2022-03-22  5:07   ` Dafna Hirschfeld
2022-03-19 16:30 ` [PATCH v3 09/17] media: rkisp1: regs: Rename CCL, ICCL and IRCL registers with VI_ prefix Laurent Pinchart
2022-03-22  5:12   ` Dafna Hirschfeld
2022-03-19 16:30 ` [PATCH v3 10/17] media: rkisp1: Swap value and address arguments to rkisp1_write() Laurent Pinchart
2022-03-22  4:37   ` Dafna Hirschfeld
2022-03-19 16:30 ` [PATCH v3 11/17] media: rkisp1: resizer: Simplify register access Laurent Pinchart
2022-03-19 16:30 ` [PATCH v3 12/17] media: rkisp1: Move debugfs code to a separate file Laurent Pinchart
2022-03-22  4:12   ` Dafna Hirschfeld
2022-03-19 16:30 ` [PATCH v3 13/17] media: rkisp1: Compile debugfs support conditionally Laurent Pinchart
2022-03-21 12:11   ` kernel test robot
2022-03-21 12:44   ` [PATCH v3.1 " Laurent Pinchart
2022-03-22  4:12     ` Dafna Hirschfeld [this message]
2022-03-19 16:30 ` [PATCH v3 14/17] media: rkisp1: debug: Collect input status by sampling ISP_FLAGS_SHD Laurent Pinchart
2022-03-22  3:56   ` Dafna Hirschfeld
2022-03-22  8:32     ` Laurent Pinchart
2022-03-25 18:22       ` Dafna Hirschfeld
2022-03-19 16:30 ` [PATCH v3 15/17] media: rkisp1: debug: Add debugfs files to dump core and ISP registers Laurent Pinchart
2022-03-22  5:25   ` Dafna Hirschfeld
2022-03-22 10:08     ` Laurent Pinchart
2022-03-19 16:30 ` [PATCH v3 16/17] media: rkisp1: debug: Move resizer register dump to debugfs Laurent Pinchart
2022-03-22  5:28   ` Dafna Hirschfeld
2022-03-22 10:10     ` Laurent Pinchart
2022-03-19 16:31 ` [PATCH v3 17/17] media: rkisp1: capture: Bypass the main device for handling querycap Laurent Pinchart
2022-03-22  5:08   ` Dafna Hirschfeld

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220322041257.5mdj5zc7ajgtteor@guri \
    --to=dafna@fastmail.com \
    --cc=heiko@sntech.de \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=paul.elder@ideasonboard.com \
    --cc=tfiga@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox