public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Krishna Kurapati PSSNV <quic_kriskura@quicinc.com>
Cc: Nathan Chancellor <nathan@kernel.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org,
	Andrey Strachuk <strochuk@ispras.ru>
Subject: Re: [GIT PULL] USB / Thunderbolt driver changes for 6.0-rc1
Date: Mon, 8 Aug 2022 15:07:00 +0200	[thread overview]
Message-ID: <YvEKdIRlBvSYe34C@kroah.com> (raw)
In-Reply-To: <d0f1c9ae-91aa-2c52-b86a-f111908d6b22@quicinc.com>

On Wed, Aug 03, 2022 at 09:26:55PM +0530, Krishna Kurapati PSSNV wrote:
> 
> On 8/3/2022 9:20 PM, Greg KH wrote:
> > On Wed, Aug 03, 2022 at 08:43:49AM -0700, Nathan Chancellor wrote:
> > > On Wed, Aug 03, 2022 at 04:10:26PM +0200, Greg KH wrote:
> > > > Andrey Strachuk (1):
> > > >        usb: cdns3: change place of 'priv_ep' assignment in cdns3_gadget_ep_dequeue(), cdns3_gadget_ep_enable()
> > > For the record, this breaks allmodconfig with clang (I haven't seen a
> > > formal report on it anywhere and this missed -next coverage because
> > > Stephen is on vacation):
> > > 
> > >      drivers/usb/cdns3/cdns3-gadget.c:2290:11: error: variable 'priv_dev' is uninitialized when used here [-Werror,-Wuninitialized]
> > >                      dev_dbg(priv_dev->dev, "usbss: invalid parameters\n");
> > >                              ^~~~~~~~
> > >      include/linux/dev_printk.h:155:18: note: expanded from macro 'dev_dbg'
> > >              dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
> > >                              ^~~
> > >      include/linux/dynamic_debug.h:167:7: note: expanded from macro 'dynamic_dev_dbg'
> > >                              dev, fmt, ##__VA_ARGS__)
> > >                              ^~~
> > >      include/linux/dynamic_debug.h:152:56: note: expanded from macro '_dynamic_func_call'
> > >              __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
> > >                                                                  ^~~~~~~~~~~
> > >      include/linux/dynamic_debug.h:134:15: note: expanded from macro '__dynamic_func_call'
> > >                      func(&id, ##__VA_ARGS__);               \
> > >                                  ^~~~~~~~~~~
> > >      drivers/usb/cdns3/cdns3-gadget.c:2278:31: note: initialize the variable 'priv_dev' to silence this warning
> > >              struct cdns3_device *priv_dev;
> > >                                          ^
> > >                                          = NULL
> > >      1 error generated.
> > > 
> > > I know you don't take patches during the merge window, so I guess we'll
> > > just have to have x86_64 allmodconfig be broken with clang for -rc1? :/
> > I can send fix-up patches that break the build before -rc1 if you have
> > it.  Also you can send it and Linus can pick it up directly if it breaks
> > his workflow.
> > 
> > Odd that this was never reported, 0-day didn't even say anything?
> > 
> > thanks,
> > 
> > greg k-h
> Hi Greg,
>   On a similar note. There was another issue reported in which randconfig
> for i386 build breaks as usb_hub_find_child API is not present as usbcore
> isn't compiled in that config (CONFIG_USB isn't set).
> Patch to fix has been pushed recently and is in review:
> https://lore.kernel.org/linux-usb/1659337215-20421-1-git-send-email-quic_kriskura@quicinc.com/
> 
> Would it be possible to pick it up in rc1 to make sure nothing breaks
> further because of it.
> I can respin patch if something is off in it.

See my comments to that patch, and Johan's attempt at it.  Something
larger is broken here, let's not paper over the issue right now with a
#ifdef in the .c file.  Fix it properly for 6.0-final.  Builds without
CONFIG_USB and gadget-only mode enabled are rare but this can be fixed
up after -rc1 is out, no rush right now.

thanks,

greg k-h

  reply	other threads:[~2022-08-08 13:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-03 14:10 [GIT PULL] USB / Thunderbolt driver changes for 6.0-rc1 Greg KH
2022-08-03 15:43 ` Nathan Chancellor
2022-08-03 15:50   ` Greg KH
2022-08-03 15:56     ` Krishna Kurapati PSSNV
2022-08-08 13:07       ` Greg KH [this message]
2022-08-03 15:58     ` Nathan Chancellor
2022-08-04 18:45   ` Linus Torvalds
2022-08-04 18:50     ` Nathan Chancellor
2022-08-04 19:26 ` pr-tracker-bot

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=YvEKdIRlBvSYe34C@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=nathan@kernel.org \
    --cc=quic_kriskura@quicinc.com \
    --cc=strochuk@ispras.ru \
    --cc=torvalds@linux-foundation.org \
    /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