Linux USB
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Linyu Yuan <quic_linyyuan@quicinc.com>
Cc: linux-usb@vger.kernel.org, Jack Pham <quic_jackp@quicinc.com>
Subject: Re: [PATCH v2] usb: gadget: update DECLARE_USB_FUNCTION(_INIT) macro
Date: Mon, 9 May 2022 08:43:09 +0200	[thread overview]
Message-ID: <Yni3/cq6LX4lyHVq@kroah.com> (raw)
In-Reply-To: <1652077685-30622-1-git-send-email-quic_linyyuan@quicinc.com>

On Mon, May 09, 2022 at 02:28:05PM +0800, Linyu Yuan wrote:
> Take DECLARE_USB_FUNCTION_INIT(ffs, ffs_alloc_inst, ffs_alloc) as example,
> it will generate function ffsmod_init/ffsmod_exit()
> and variable ffsusb_func.

I do not think "as example" is needed here, right?

> Add possible character '_' in the macro which will generate
> function/variable name in common format, ffs_mod_init/ffs_mod_exit()
> and ffs_usb_func.

Ok, but why do this?  Why not add any other character?  What problem
does this solve?

> 
> It will apply to all gadget functions which use this macro.

That is a given for any macro, and you do nto needs to state this.

> 
> Also do minor change accordingly to f_loopback.c and f_sourcesink.c.

Why "also"?  What minor change are you making and why?

When you have "also" in a changelog text, that's a huge hint it should
be more than one commit, and I think this should be more than one commit
(hint, the f_loopback.c change can go first).

> Signed-off-by: Linyu Yuan <quic_linyyuan@quicinc.com>
> ---
> v2: fix issue report by kernel test robot <lkp@intel.com>
> 
>  drivers/usb/gadget/function/f_loopback.c   | 12 +-----------
>  drivers/usb/gadget/function/f_sourcesink.c |  6 +++---
>  include/linux/usb/composite.h              | 14 +++++++-------
>  3 files changed, 11 insertions(+), 21 deletions(-)

As the first version showed, you didn't test-build this so I really do
not understand why it is needed as you obviously are not using this
change anywhere..  Why the extra churn for no real advantage?

thanks,

greg k-h

  reply	other threads:[~2022-05-09  6:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-09  6:28 [PATCH v2] usb: gadget: update DECLARE_USB_FUNCTION(_INIT) macro Linyu Yuan
2022-05-09  6:43 ` Greg Kroah-Hartman [this message]
2022-05-09  6:51   ` Linyu Yuan (QUIC)
2022-05-09  9:04 ` kernel test robot
2022-05-09  9:24 ` kernel test robot
2022-05-09 10:45 ` kernel test robot

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=Yni3/cq6LX4lyHVq@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=quic_jackp@quicinc.com \
    --cc=quic_linyyuan@quicinc.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