From: Dan Carpenter <dan.carpenter@oracle.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: kernel test robot <lkp@intel.com>,
virtualization@lists.linux-foundation.org,
netdev@vger.kernel.org, linux-staging@lists.linux.dev,
linux-riscv@lists.infradead.org, linux-rdma@vger.kernel.org,
linux-pci@vger.kernel.org, linux-parport@lists.infradead.org,
linux-omap@vger.kernel.org, linux-mm@kvack.org,
linux-fbdev@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org,
dri-devel@lists.freedesktop.org, bpf@vger.kernel.org,
amd-gfx@lists.freedesktop.org, alsa-devel@alsa-project.org
Subject: Re: [linux-next:master] BUILD REGRESSION 8cb8311e95e3bb58bd84d6350365f14a718faa6d
Date: Thu, 26 May 2022 11:19:28 +0300 [thread overview]
Message-ID: <20220526081928.GB2146@kadam> (raw)
In-Reply-To: <20220525145056.953631743a4c494aabf000dc@linux-foundation.org>
On Wed, May 25, 2022 at 02:50:56PM -0700, Andrew Morton wrote:
> On Thu, 26 May 2022 05:35:20 +0800 kernel test robot <lkp@intel.com> wrote:
>
> > tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> > branch HEAD: 8cb8311e95e3bb58bd84d6350365f14a718faa6d Add linux-next specific files for 20220525
> >
> > Error/Warning reports:
> >
> > ...
> >
> > Unverified Error/Warning (likely false positive, please contact us if interested):
>
> Could be so.
>
> > mm/shmem.c:1948 shmem_getpage_gfp() warn: should '(((1) << 12) / 512) << folio_order(folio)' be a 64 bit type?
>
> I've been seeing this one for a while. And from this report I can't
> figure out what tool emitted it. Clang?
This is a Smatch warning.
I normally look over Smatch warnings before forwarding kbuild-bot emails
but this email is a grab bag of static checker warnings from different
tools.
This warning has a high rate of false positives so I'm going to disable
it by default.
>
> >
> > ...
> >
> > |-- i386-randconfig-m021
> > | `-- mm-shmem.c-shmem_getpage_gfp()-warn:should-((()-)-)-folio_order(folio)-be-a-bit-type
>
> If you're going to use randconfig then shouldn't you make the config
> available? Or maybe quote the KCONFIG_SEED - presumably there's a way
> for others to regenerate.
>
> Anyway, the warning seems wrong to me.
>
>
> #define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT)
>
> #define BLOCKS_PER_PAGE (PAGE_SIZE/512)
>
> inode->i_blocks += BLOCKS_PER_PAGE << folio_order(folio);
>
> so the RHS here should have unsigned long type. Being able to generate
> the cpp output would be helpful. That requires the .config.
The heuristic is that "inode->i_blocks" is a u64 but this .config must
be for a 32bit CPU.
I'm just going to turn off all these warnings until I can figure out a
better heuristic.
regards,
dan carpenter
next prev parent reply other threads:[~2022-05-26 8:20 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-25 21:35 [linux-next:master] BUILD REGRESSION 8cb8311e95e3bb58bd84d6350365f14a718faa6d kernel test robot
2022-05-25 21:50 ` Andrew Morton
2022-05-25 22:07 ` Jessica Clarke
2022-05-25 22:20 ` Andrew Morton
2022-05-26 1:16 ` Matthew Wilcox
2022-05-26 8:48 ` Dan Carpenter
2022-05-26 14:28 ` Matthew Wilcox
2022-05-26 15:03 ` Dan Carpenter
2022-05-26 8:19 ` Dan Carpenter [this message]
2022-05-26 8:32 ` Arnd Bergmann
2022-06-16 5:11 ` Chen, Rong A
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=20220526081928.GB2146@kadam \
--to=dan.carpenter@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=alsa-devel@alsa-project.org \
--cc=amd-gfx@lists.freedesktop.org \
--cc=bpf@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=kvm@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux-parport@lists.infradead.org \
--cc=linux-pci@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=linux-staging@lists.linux.dev \
--cc=lkp@intel.com \
--cc=netdev@vger.kernel.org \
--cc=virtualization@lists.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;
as well as URLs for NNTP newsgroup(s).