* [PATCH] soc: ti: wkup_m3_ipc: replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE
@ 2022-05-05 2:48 Yihao Han
2022-06-18 2:40 ` Nishanth Menon
0 siblings, 1 reply; 2+ messages in thread
From: Yihao Han @ 2022-05-05 2:48 UTC (permalink / raw)
To: Nishanth Menon, Santosh Shilimkar, linux-kernel, linux-arm-kernel
Cc: kernel, Yihao Han
Fix the following coccicheck warning:
./drivers/soc/ti/wkup_m3_ipc.c:198:0-23: WARNING:
wkup_m3_ipc_option_fops should be defined with
DEFINE_DEBUGFS_ATTRIBUTE
Signed-off-by: Yihao Han <hanyihao@vivo.com>
---
drivers/soc/ti/wkup_m3_ipc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/soc/ti/wkup_m3_ipc.c b/drivers/soc/ti/wkup_m3_ipc.c
index 0076d467ff6b..2142d8fb3f5c 100644
--- a/drivers/soc/ti/wkup_m3_ipc.c
+++ b/drivers/soc/ti/wkup_m3_ipc.c
@@ -195,7 +195,7 @@ static int option_set(void *data, u64 val)
return 0;
}
-DEFINE_SIMPLE_ATTRIBUTE(wkup_m3_ipc_option_fops, option_get, option_set,
+DEFINE_DEBUGFS_ATTRIBUTE(wkup_m3_ipc_option_fops, option_get, option_set,
"%llu\n");
static int wkup_m3_ipc_dbg_init(struct wkup_m3_ipc *m3_ipc)
--
2.17.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] soc: ti: wkup_m3_ipc: replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE
2022-05-05 2:48 [PATCH] soc: ti: wkup_m3_ipc: replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE Yihao Han
@ 2022-06-18 2:40 ` Nishanth Menon
0 siblings, 0 replies; 2+ messages in thread
From: Nishanth Menon @ 2022-06-18 2:40 UTC (permalink / raw)
To: Yihao Han; +Cc: Santosh Shilimkar, linux-kernel, linux-arm-kernel, kernel
On 19:48-20220504, Yihao Han wrote:
> Fix the following coccicheck warning:
> ./drivers/soc/ti/wkup_m3_ipc.c:198:0-23: WARNING:
> wkup_m3_ipc_option_fops should be defined with
> DEFINE_DEBUGFS_ATTRIBUTE
>
> Signed-off-by: Yihao Han <hanyihao@vivo.com>
> ---
> drivers/soc/ti/wkup_m3_ipc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/soc/ti/wkup_m3_ipc.c b/drivers/soc/ti/wkup_m3_ipc.c
> index 0076d467ff6b..2142d8fb3f5c 100644
> --- a/drivers/soc/ti/wkup_m3_ipc.c
> +++ b/drivers/soc/ti/wkup_m3_ipc.c
> @@ -195,7 +195,7 @@ static int option_set(void *data, u64 val)
> return 0;
> }
>
> -DEFINE_SIMPLE_ATTRIBUTE(wkup_m3_ipc_option_fops, option_get, option_set,
> +DEFINE_DEBUGFS_ATTRIBUTE(wkup_m3_ipc_option_fops, option_get, option_set,
> "%llu\n");
Please run ./scripts/checkpatch --strict patch
+CHECK: Alignment should match open parenthesis
+#29: FILE: drivers/soc/ti/wkup_m3_ipc.c:199:
++DEFINE_DEBUGFS_ATTRIBUTE(wkup_m3_ipc_option_fops, option_get, option_set,
+ "%llu\n");
+ mechanically convert to the typical style using --fix or --fix-inplace.
+ them to the maintainer, see CHECKPATCH in MAINTAINERS.
Could you fix and post a V2?
>
> static int wkup_m3_ipc_dbg_init(struct wkup_m3_ipc *m3_ipc)
> --
> 2.17.1
>
--
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-06-18 2:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-05 2:48 [PATCH] soc: ti: wkup_m3_ipc: replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE Yihao Han
2022-06-18 2:40 ` Nishanth Menon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox