From: Nathan Chancellor <nathan@kernel.org>
To: Ladislav Michl <ladis@triops.cz>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
kernel test robot <lkp@intel.com>,
llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
linux-usb@vger.kernel.org
Subject: Re: [usb:usb-testing 25/42] drivers/usb/dwc3/dwc3-octeon.c:403:10: warning: shift count >= width of type
Date: Mon, 31 Jul 2023 08:49:06 -0700 [thread overview]
Message-ID: <20230731154906.GA1823389@dev-arch.thelio-3990X> (raw)
In-Reply-To: <fbceb8e5444eab23788501b002926e07f54fdd7c.camel@triops.cz>
Hi Ladislav,
On Fri, Jul 28, 2023 at 08:48:20AM +0200, Ladislav Michl wrote:
> Hi Greg,
>
> I'm sorry for late reply (travelling)
>
> On Wed, 2023-07-26 at 06:39 +0200, Greg Kroah-Hartman wrote:
> > On Wed, Jul 26, 2023 at 05:09:56AM +0800, kernel test robot wrote:
> > > Hi Ladislav,
> > >
> > > First bad commit (maybe != root cause):
> > >
> > > tree:
> > > https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-
> > > testing
> > > head: ac47051f0bb8ccf1eaedb296a19fcb541474db53
> > > commit: b3061c5a15fe460502e9574b4663dd7c6ed80b48 [25/42] usb: dwc3:
> > > dwc3-octeon: Convert to glue driver
> >
> > Ladislav, I've dropped your dwc3-octeon patches from my tree now,
> > please fix up and resend when you have this resolved.
>
> As I didn't find a better place to ask, I'm asking here:
> all registers are 64bit and driver is now using GENMASK and BIT
> macros to access their values. Reported problem comes from 32bit
> configuration, where BIT is UL(1) << (nr) and BITS_PER_LONG is 32.
> Is using GENMASK_ULL and BIT_ULL preferred way to go here? I'm not a
> bit fan of "fixing" code just to silence warning on irrelevant
> configurations, but will do it unless someone points me to better way.
I am not Greg but I see you did not get a response on this yet. Yes, you
should use the _ULL macros to ensure the values are always 64-bit, which
will avoid this issue altogether.
Cheers,
Nathan
next prev parent reply other threads:[~2023-07-31 15:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-25 21:09 [usb:usb-testing 25/42] drivers/usb/dwc3/dwc3-octeon.c:403:10: warning: shift count >= width of type kernel test robot
2023-07-26 4:39 ` Greg Kroah-Hartman
2023-07-28 6:48 ` Ladislav Michl
2023-07-31 15:49 ` Nathan Chancellor [this message]
2023-07-31 15:55 ` Ladislav Michl
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=20230731154906.GA1823389@dev-arch.thelio-3990X \
--to=nathan@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=ladis@triops.cz \
--cc=linux-usb@vger.kernel.org \
--cc=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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