From: Khadija Kamran <kamrankhadijadj@gmail.com>
To: outreachy@lists.linux.dev
Cc: Vaibhav Agarwal <vaibhav.sr@gmail.com>,
Mark Greer <mgreer@animalcreek.com>,
Johan Hovold <johan@kernel.org>, Alex Elder <elder@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev,
linux-kernel@vger.kernel.org,
Sumitra Sharma <sumitraartsy@gmail.com>
Subject: Re: [PATCH] Staging: greybus: Fix lines ending with '('
Date: Mon, 20 Mar 2023 14:33:43 +0500 [thread overview]
Message-ID: <ZBgod938/PJX1xsE@khadija-virtual-machine> (raw)
In-Reply-To: <20230319164520.GA125117@sumitra.com>
On Sun, Mar 19, 2023 at 09:45:20AM -0700, Sumitra Sharma wrote:
> The coding style used to limit lines to 80 characters,
> which led to splitting of these function headers into multiple
> lines and ends the first line with a '('.
> Such splits causes checks reported by the checkpatch.
>
> Place the function parameters of each function immediately after
> '(' in a single line to align the function headers.
>
> Signed-off-by: Sumitra Sharma <sumitraartsy@gmail.com>
> ---
> .../staging/greybus/audio_manager_module.c | 40 +++++++++----------
> 1 file changed, 18 insertions(+), 22 deletions(-)
>
> diff --git a/drivers/staging/greybus/audio_manager_module.c b/drivers/staging/greybus/audio_manager_module.c
> index 0a0f0a394c84..81b4ba607a0e 100644
> --- a/drivers/staging/greybus/audio_manager_module.c
> +++ b/drivers/staging/greybus/audio_manager_module.c
> @@ -70,9 +70,8 @@ static void gb_audio_module_release(struct kobject *kobj)
> kfree(module);
> }
>
> -static ssize_t gb_audio_module_name_show(
> - struct gb_audio_manager_module *module,
> - struct gb_audio_manager_module_attribute *attr, char *buf)
> +static ssize_t gb_audio_module_name_show(struct gb_audio_manager_module *module,
> + struct gb_audio_manager_module_attribute *attr, char *buf)
> {
> return sprintf(buf, "%s", module->desc.name);
> }
> @@ -80,9 +79,8 @@ static ssize_t gb_audio_module_name_show(
> static struct gb_audio_manager_module_attribute gb_audio_module_name_attribute =
> __ATTR(name, 0664, gb_audio_module_name_show, NULL);
>
> -static ssize_t gb_audio_module_vid_show(
> - struct gb_audio_manager_module *module,
> - struct gb_audio_manager_module_attribute *attr, char *buf)
> +static ssize_t gb_audio_module_vid_show(struct gb_audio_manager_module *module,
> + struct gb_audio_manager_module_attribute *attr, char *buf)
> {
> return sprintf(buf, "%d", module->desc.vid);
> }
> @@ -90,9 +88,8 @@ static ssize_t gb_audio_module_vid_show(
> static struct gb_audio_manager_module_attribute gb_audio_module_vid_attribute =
> __ATTR(vid, 0664, gb_audio_module_vid_show, NULL);
>
> -static ssize_t gb_audio_module_pid_show(
> - struct gb_audio_manager_module *module,
> - struct gb_audio_manager_module_attribute *attr, char *buf)
> +static ssize_t gb_audio_module_pid_show(struct gb_audio_manager_module *module,
> + struct gb_audio_manager_module_attribute *attr, char *buf)
> {
> return sprintf(buf, "%d", module->desc.pid);
> }
> @@ -100,9 +97,9 @@ static ssize_t gb_audio_module_pid_show(
> static struct gb_audio_manager_module_attribute gb_audio_module_pid_attribute =
> __ATTR(pid, 0664, gb_audio_module_pid_show, NULL);
>
> -static ssize_t gb_audio_module_intf_id_show(
> - struct gb_audio_manager_module *module,
> - struct gb_audio_manager_module_attribute *attr, char *buf)
> +static ssize_t gb_audio_module_intf_id_show(struct gb_audio_manager_module *module,
> + struct gb_audio_manager_module_attribute *attr,
> + char *buf)
> {
> return sprintf(buf, "%d", module->desc.intf_id);
> }
> @@ -111,9 +108,9 @@ static struct gb_audio_manager_module_attribute
> gb_audio_module_intf_id_attribute =
> __ATTR(intf_id, 0664, gb_audio_module_intf_id_show, NULL);
>
> -static ssize_t gb_audio_module_ip_devices_show(
> - struct gb_audio_manager_module *module,
> - struct gb_audio_manager_module_attribute *attr, char *buf)
> +static ssize_t gb_audio_module_ip_devices_show(struct gb_audio_manager_module *module,
> + struct gb_audio_manager_module_attribute *attr,
> + char *buf)
> {
> return sprintf(buf, "0x%X", module->desc.ip_devices);
> }
> @@ -122,9 +119,9 @@ static struct gb_audio_manager_module_attribute
> gb_audio_module_ip_devices_attribute =
> __ATTR(ip_devices, 0664, gb_audio_module_ip_devices_show, NULL);
>
> -static ssize_t gb_audio_module_op_devices_show(
> - struct gb_audio_manager_module *module,
> - struct gb_audio_manager_module_attribute *attr, char *buf)
> +static ssize_t gb_audio_module_op_devices_show(struct gb_audio_manager_module *module,
> + struct gb_audio_manager_module_attribute *attr,
> + char *buf)
> {
> return sprintf(buf, "0x%X", module->desc.op_devices);
> }
> @@ -181,10 +178,9 @@ static void send_add_uevent(struct gb_audio_manager_module *module)
> kobject_uevent_env(&module->kobj, KOBJ_ADD, envp);
> }
>
> -int gb_audio_manager_module_create(
> - struct gb_audio_manager_module **module,
> - struct kset *manager_kset,
> - int id, struct gb_audio_manager_module_descriptor *desc)
> +int gb_audio_manager_module_create(struct gb_audio_manager_module **module,
> + struct kset *manager_kset,
> + int id, struct gb_audio_manager_module_descriptor *desc)
> {
> int err;
> struct gb_audio_manager_module *m;
> --
> 2.25.1
>
>
Hi Mentors,
I came across a same check error in greybus/audio_topology file.
Would it be okay to send a patch similar to this one?
Regards,
Khadija
prev parent reply other threads:[~2023-03-20 9:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-19 16:45 [PATCH] Staging: greybus: Fix lines ending with '(' Sumitra Sharma
2023-03-20 9:33 ` Khadija Kamran [this message]
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=ZBgod938/PJX1xsE@khadija-virtual-machine \
--to=kamrankhadijadj@gmail.com \
--cc=elder@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=greybus-dev@lists.linaro.org \
--cc=johan@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=mgreer@animalcreek.com \
--cc=outreachy@lists.linux.dev \
--cc=sumitraartsy@gmail.com \
--cc=vaibhav.sr@gmail.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