[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <2025111500-ladder-siren-1b39@gregkh>
Date: Sat, 15 Nov 2025 08:17:11 -0500
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Chang Junzheng <guagua210311@...com>
Cc: outreachy@...ts.linux.dev, Vaibhav Agarwal <vaibhav.sr@...il.com>,
Mark Greer <mgreer@...malcreek.com>,
Johan Hovold <johan@...nel.org>, Alex Elder <elder@...nel.org>,
greybus-dev@...ts.linaro.org, linux-staging@...ts.linux.dev,
linux-kernel@...r.kernel.org,
Chang Junzheng <guagua210311@...look.com>
Subject: Re: [PATCH v2] staging: greybus: audio_manager_module: make envp
array static const
On Fri, Nov 14, 2025 at 09:40:43AM +0800, Chang Junzheng wrote:
> From: Chang Junzheng <guagua210311@...look.com>
>
> Fix checkpatch.pl warning by changing envp array declaration to
> static const char * const. This improves code safety and follows
> kernel coding style recommendations.
>
> Signed-off-by: Chang Junzheng <guagua210311@...com>
> ---
> Changes in v2:
> - Restored original indentation of array elements
> - Only changed the array declaration as originally intended
>
> drivers/staging/greybus/audio_manager_module.c | 16 ++++++++--------
> 1 file changed, 8 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/staging/greybus/audio_manager_module.c b/drivers/staging/greybus/audio_manager_module.c
> index 4a4dfb42f50f..78013d59fc93 100644
> --- a/drivers/staging/greybus/audio_manager_module.c
> +++ b/drivers/staging/greybus/audio_manager_module.c
> @@ -159,14 +159,14 @@ static void send_add_uevent(struct gb_audio_manager_module *module)
> char ip_devices_string[64];
> char op_devices_string[64];
>
> - char *envp[] = {
> - name_string,
> - vid_string,
> - pid_string,
> - intf_id_string,
> - ip_devices_string,
> - op_devices_string,
> - NULL
> + static const char * const envp[] = {
Did you test build this change? Why not?
Powered by blists - more mailing lists