All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 7528/14955] arch/powerpc/mm/book3s64/hash_4k.c:34:29: sparse: sparse: cast to non-scalar
@ 2020-06-02 19:04 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-06-02 19:04 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3224 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   0e21d4620dd047da7952f44a2e1ac777ded2d57e
commit: 7b364f0949ae2dd205d5e9afa4b82ee17030d928 [7528/14955] READ_ONCE: Drop pointer qualifiers when reading from scalar types
config: powerpc64-randconfig-s032-20200602 (attached as .config)
compiler: powerpc64le-linux-gcc (GCC) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-244-g0ee050a8-dirty
        git checkout 7b364f0949ae2dd205d5e9afa4b82ee17030d928
        # save the attached .config to linux build tree
        make W=1 C=1 ARCH=powerpc64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)

>> arch/powerpc/mm/book3s64/hash_4k.c:34:29: sparse: sparse: cast to non-scalar
>> arch/powerpc/mm/book3s64/hash_4k.c:34:29: sparse: sparse: cast from non-scalar

vim +34 arch/powerpc/mm/book3s64/hash_4k.c

a43c0eb8364c02 arch/powerpc/mm/hash64_4k.c Aneesh Kumar K.V 2015-12-01  18  
a43c0eb8364c02 arch/powerpc/mm/hash64_4k.c Aneesh Kumar K.V 2015-12-01  19  int __hash_page_4K(unsigned long ea, unsigned long access, unsigned long vsid,
a43c0eb8364c02 arch/powerpc/mm/hash64_4k.c Aneesh Kumar K.V 2015-12-01  20  		   pte_t *ptep, unsigned long trap, unsigned long flags,
a43c0eb8364c02 arch/powerpc/mm/hash64_4k.c Aneesh Kumar K.V 2015-12-01  21  		   int ssize, int subpg_prot)
a43c0eb8364c02 arch/powerpc/mm/hash64_4k.c Aneesh Kumar K.V 2015-12-01  22  {
a8548686463b67 arch/powerpc/mm/hash64_4k.c Ram Pai          2017-11-06  23  	real_pte_t rpte;
a43c0eb8364c02 arch/powerpc/mm/hash64_4k.c Aneesh Kumar K.V 2015-12-01  24  	unsigned long hpte_group;
a43c0eb8364c02 arch/powerpc/mm/hash64_4k.c Aneesh Kumar K.V 2015-12-01  25  	unsigned long rflags, pa;
a43c0eb8364c02 arch/powerpc/mm/hash64_4k.c Aneesh Kumar K.V 2015-12-01  26  	unsigned long old_pte, new_pte;
a43c0eb8364c02 arch/powerpc/mm/hash64_4k.c Aneesh Kumar K.V 2015-12-01  27  	unsigned long vpn, hash, slot;
a43c0eb8364c02 arch/powerpc/mm/hash64_4k.c Aneesh Kumar K.V 2015-12-01  28  	unsigned long shift = mmu_psize_defs[MMU_PAGE_4K].shift;
a43c0eb8364c02 arch/powerpc/mm/hash64_4k.c Aneesh Kumar K.V 2015-12-01  29  
a43c0eb8364c02 arch/powerpc/mm/hash64_4k.c Aneesh Kumar K.V 2015-12-01  30  	/*
a43c0eb8364c02 arch/powerpc/mm/hash64_4k.c Aneesh Kumar K.V 2015-12-01  31  	 * atomically mark the linux large page PTE busy and dirty
a43c0eb8364c02 arch/powerpc/mm/hash64_4k.c Aneesh Kumar K.V 2015-12-01  32  	 */
a43c0eb8364c02 arch/powerpc/mm/hash64_4k.c Aneesh Kumar K.V 2015-12-01  33  	do {
a43c0eb8364c02 arch/powerpc/mm/hash64_4k.c Aneesh Kumar K.V 2015-12-01 @34  		pte_t pte = READ_ONCE(*ptep);

:::::: The code at line 34 was first introduced by commit
:::::: a43c0eb8364c022725df586e91dd753633374d66 powerpc/mm: Convert 4k insert from asm to C

:::::: TO: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
:::::: CC: Michael Ellerman <mpe@ellerman.id.au>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 29747 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-02 19:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-02 19:04 [linux-next:master 7528/14955] arch/powerpc/mm/book3s64/hash_4k.c:34:29: sparse: sparse: cast to non-scalar kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.