Re: [PATCH v5 19/26] hugetlb/userfaultfd: Handle UFFDIO_WRITEPROTECT
by kernel test robot
Hi Peter,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on kselftest/next]
[also build test ERROR on linus/master v5.14-rc2 next-20210720]
[cannot apply to hnaz-linux-mm/master asm-generic/master arm64/for-next/core linux/master tip/x86/core]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Peter-Xu/userfaultfd-wp-Support-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git next
config: s390-randconfig-r023-20210716 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 5d5b08761f944d5b9822d582378333cc4b36a0a7)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install s390 cross compiling tool for clang build
# apt-get install binutils-s390x-linux-gnu
# https://github.com/0day-ci/linux/commit/23779145f29982887db86a44763fa7943...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Peter-Xu/userfaultfd-wp-Support-shmem-and-hugetlbfs/20210716-041947
git checkout 23779145f29982887db86a44763fa794325c479f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from mm/hugetlb.c:19:
In file included from include/linux/memblock.h:14:
In file included from arch/s390/include/asm/dma.h:5:
In file included from arch/s390/include/asm/io.h:75:
include/asm-generic/io.h:464:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __raw_readb(PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:36:59: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
^
include/uapi/linux/swab.h:102:54: note: expanded from macro '__swab16'
#define __swab16(x) (__u16)__builtin_bswap16((__u16)(x))
^
In file included from mm/hugetlb.c:19:
In file included from include/linux/memblock.h:14:
In file included from arch/s390/include/asm/dma.h:5:
In file included from arch/s390/include/asm/io.h:75:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:115:54: note: expanded from macro '__swab32'
#define __swab32(x) (__u32)__builtin_bswap32((__u32)(x))
^
In file included from mm/hugetlb.c:19:
In file included from include/linux/memblock.h:14:
In file included from arch/s390/include/asm/dma.h:5:
In file included from arch/s390/include/asm/io.h:75:
include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writeb(value, PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:511:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:521:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:609:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:617:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:625:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:634:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:643:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:652:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
mm/hugetlb.c:5063:29: error: implicit declaration of function 'huge_pte_uffd_wp' [-Werror,-Wimplicit-function-declaration]
if (userfaultfd_wp(vma) && huge_pte_uffd_wp(huge_ptep_get(ptep)) &&
^
mm/hugetlb.c:5301:14: error: implicit declaration of function 'huge_pte_mkuffd_wp' [-Werror,-Wimplicit-function-declaration]
_dst_pte = huge_pte_mkuffd_wp(_dst_pte);
^
mm/hugetlb.c:5301:14: note: did you mean 'pte_mkuffd_wp'?
include/asm-generic/pgtable_uffd.h:18:30: note: 'pte_mkuffd_wp' declared here
static __always_inline pte_t pte_mkuffd_wp(pte_t pte)
^
mm/hugetlb.c:5301:12: error: assigning to 'pte_t' from incompatible type 'int'
_dst_pte = huge_pte_mkuffd_wp(_dst_pte);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mm/hugetlb.c:5595:11: error: implicit declaration of function 'huge_pte_mkuffd_wp' [-Werror,-Wimplicit-function-declaration]
pte = huge_pte_mkuffd_wp(huge_pte_wrprotect(pte));
^
mm/hugetlb.c:5595:9: error: assigning to 'pte_t' from incompatible type 'int'
pte = huge_pte_mkuffd_wp(huge_pte_wrprotect(pte));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> mm/hugetlb.c:5597:11: error: implicit declaration of function 'huge_pte_clear_uffd_wp' [-Werror,-Wimplicit-function-declaration]
pte = huge_pte_clear_uffd_wp(pte);
^
mm/hugetlb.c:5597:11: note: did you mean 'pte_clear_uffd_wp'?
include/asm-generic/pgtable_uffd.h:28:30: note: 'pte_clear_uffd_wp' declared here
static __always_inline pte_t pte_clear_uffd_wp(pte_t pte)
^
mm/hugetlb.c:5597:9: error: assigning to 'pte_t' from incompatible type 'int'
pte = huge_pte_clear_uffd_wp(pte);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
12 warnings and 7 errors generated.
vim +/huge_pte_clear_uffd_wp +5597 mm/hugetlb.c
5520
5521 unsigned long hugetlb_change_protection(struct vm_area_struct *vma,
5522 unsigned long address, unsigned long end,
5523 pgprot_t newprot, unsigned long cp_flags)
5524 {
5525 struct mm_struct *mm = vma->vm_mm;
5526 unsigned long start = address;
5527 pte_t *ptep;
5528 pte_t pte;
5529 struct hstate *h = hstate_vma(vma);
5530 unsigned long pages = 0;
5531 bool shared_pmd = false;
5532 struct mmu_notifier_range range;
5533 bool uffd_wp = cp_flags & MM_CP_UFFD_WP;
5534 bool uffd_wp_resolve = cp_flags & MM_CP_UFFD_WP_RESOLVE;
5535
5536 /*
5537 * In the case of shared PMDs, the area to flush could be beyond
5538 * start/end. Set range.start/range.end to cover the maximum possible
5539 * range if PMD sharing is possible.
5540 */
5541 mmu_notifier_range_init(&range, MMU_NOTIFY_PROTECTION_VMA,
5542 0, vma, mm, start, end);
5543 adjust_range_if_pmd_sharing_possible(vma, &range.start, &range.end);
5544
5545 BUG_ON(address >= end);
5546 flush_cache_range(vma, range.start, range.end);
5547
5548 mmu_notifier_invalidate_range_start(&range);
5549 i_mmap_lock_write(vma->vm_file->f_mapping);
5550 for (; address < end; address += huge_page_size(h)) {
5551 spinlock_t *ptl;
5552 ptep = huge_pte_offset(mm, address, huge_page_size(h));
5553 if (!ptep)
5554 continue;
5555 ptl = huge_pte_lock(h, mm, ptep);
5556 if (huge_pmd_unshare(mm, vma, &address, ptep)) {
5557 pages++;
5558 spin_unlock(ptl);
5559 shared_pmd = true;
5560 continue;
5561 }
5562 pte = huge_ptep_get(ptep);
5563 if (unlikely(is_hugetlb_entry_hwpoisoned(pte))) {
5564 spin_unlock(ptl);
5565 continue;
5566 }
5567 if (unlikely(is_hugetlb_entry_migration(pte))) {
5568 swp_entry_t entry = pte_to_swp_entry(pte);
5569
5570 if (is_writable_migration_entry(entry)) {
5571 pte_t newpte;
5572
5573 entry = make_readable_migration_entry(
5574 swp_offset(entry));
5575 newpte = swp_entry_to_pte(entry);
5576 if (uffd_wp)
5577 newpte = pte_swp_mkuffd_wp(newpte);
5578 else if (uffd_wp_resolve)
5579 newpte = pte_swp_clear_uffd_wp(newpte);
5580 set_huge_swap_pte_at(mm, address, ptep,
5581 newpte, huge_page_size(h));
5582 pages++;
5583 }
5584 spin_unlock(ptl);
5585 continue;
5586 }
5587 if (!huge_pte_none(pte)) {
5588 pte_t old_pte;
5589 unsigned int shift = huge_page_shift(hstate_vma(vma));
5590
5591 old_pte = huge_ptep_modify_prot_start(vma, address, ptep);
5592 pte = pte_mkhuge(huge_pte_modify(old_pte, newprot));
5593 pte = arch_make_huge_pte(pte, shift, vma->vm_flags);
5594 if (uffd_wp)
5595 pte = huge_pte_mkuffd_wp(huge_pte_wrprotect(pte));
5596 else if (uffd_wp_resolve)
> 5597 pte = huge_pte_clear_uffd_wp(pte);
5598 huge_ptep_modify_prot_commit(vma, address, ptep, old_pte, pte);
5599 pages++;
5600 }
5601 spin_unlock(ptl);
5602 }
5603 /*
5604 * Must flush TLB before releasing i_mmap_rwsem: x86's huge_pmd_unshare
5605 * may have cleared our pud entry and done put_page on the page table:
5606 * once we release i_mmap_rwsem, another task can do the final put_page
5607 * and that page table be reused and filled with junk. If we actually
5608 * did unshare a page of pmds, flush the range corresponding to the pud.
5609 */
5610 if (shared_pmd)
5611 flush_hugetlb_tlb_range(vma, range.start, range.end);
5612 else
5613 flush_hugetlb_tlb_range(vma, start, end);
5614 /*
5615 * No need to call mmu_notifier_invalidate_range() we are downgrading
5616 * page table protection not changing it to point to a new page.
5617 *
5618 * See Documentation/vm/mmu_notifier.rst
5619 */
5620 i_mmap_unlock_write(vma->vm_file->f_mapping);
5621 mmu_notifier_invalidate_range_end(&range);
5622
5623 return pages << h->order;
5624 }
5625
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
Re: [PATCH v3 8/9] MIPS: Retire MACH_PISTACHIO
by kernel test robot
Hi Jiaxun,
I love your patch! Yet something to improve:
[auto build test ERROR on robh/for-next]
[also build test ERROR on clk/clk-next linus/master v5.14-rc2 next-20210720]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Jiaxun-Yang/MIPS-Migrate-pistach...
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: mips-randconfig-r026-20210720 (attached as .config)
compiler: mips64-linux-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/7815f6aeaf55e4b6b9de98455f68c185a...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Jiaxun-Yang/MIPS-Migrate-pistachio-to-generic-kernel/20210721-110732
git checkout 7815f6aeaf55e4b6b9de98455f68c185a5ac5916
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> arch/mips/Kconfig:1062: can't open file "arch/mips/pistachio/Kconfig"
--
>> arch/mips/Kconfig:1062: can't open file "arch/mips/pistachio/Kconfig"
make[3]: *** [scripts/kconfig/Makefile:77: syncconfig] Error 1
make[2]: *** [Makefile:626: syncconfig] Error 2
make[1]: *** [Makefile:735: include/config/auto.conf.cmd] Error 2
make[1]: Failed to remake makefile 'include/config/auto.conf.cmd'.
make[1]: Failed to remake makefile 'include/config/auto.conf'.
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:220: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
>> arch/mips/Kconfig:1062: can't open file "arch/mips/pistachio/Kconfig"
make[2]: *** [scripts/kconfig/Makefile:77: olddefconfig] Error 1
make[1]: *** [Makefile:626: olddefconfig] Error 2
make: *** [Makefile:220: __sub-make] Error 2
make: Target 'olddefconfig' not remade because of errors.
--
>> arch/mips/Kconfig:1062: can't open file "arch/mips/pistachio/Kconfig"
make[3]: *** [scripts/kconfig/Makefile:77: syncconfig] Error 1
make[2]: *** [Makefile:626: syncconfig] Error 2
make[1]: *** [Makefile:735: include/config/auto.conf.cmd] Error 2
make[1]: Failed to remake makefile 'include/config/auto.conf.cmd'.
make[1]: Failed to remake makefile 'include/config/auto.conf'.
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:220: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +1062 arch/mips/Kconfig
^1da177e4c3f415 Linus Torvalds 2005-04-16 1050
e8c7c482347574e Ralf Baechle 2008-09-16 1051 source "arch/mips/alchemy/Kconfig"
3b12308f3337c09 Sergey Ryazanov 2014-10-29 1052 source "arch/mips/ath25/Kconfig"
d4a67d9dc8a5a80 Gabor Juhos 2011-01-04 1053 source "arch/mips/ath79/Kconfig"
a656ffcbc7a98a8 Hauke Mehrtens 2011-07-23 1054 source "arch/mips/bcm47xx/Kconfig"
e7300d04bd0809e Maxime Bizon 2009-08-18 1055 source "arch/mips/bcm63xx/Kconfig"
8945e37e103b165 Kevin Cernekee 2014-12-25 1056 source "arch/mips/bmips/Kconfig"
eed0eabd12ef061 Paul Burton 2016-10-05 1057 source "arch/mips/generic/Kconfig"
a103e9b951f9094 Paul Cercueil 2020-09-06 1058 source "arch/mips/ingenic/Kconfig"
5e83d4305467c43 Ralf Baechle 2005-10-29 1059 source "arch/mips/jazz/Kconfig"
8ec6d93508f705d John Crispin 2011-03-30 1060 source "arch/mips/lantiq/Kconfig"
2572f00db8a68bb Joshua Henderson 2016-01-13 1061 source "arch/mips/pic32/Kconfig"
af0cfb2c44ee5cd Ezequiel Garcia 2015-08-06 @1062 source "arch/mips/pistachio/Kconfig"
ae2b5bb6570481b John Crispin 2013-01-20 1063 source "arch/mips/ralink/Kconfig"
29c4869946f9182 Ralf Baechle 2005-02-07 1064 source "arch/mips/sgi-ip27/Kconfig"
38b18f725874224 Ralf Baechle 2005-02-03 1065 source "arch/mips/sibyte/Kconfig"
22b1d707ffc99fa Atsushi Nemoto 2008-07-11 1066 source "arch/mips/txx9/Kconfig"
5e83d4305467c43 Ralf Baechle 2005-10-29 1067 source "arch/mips/vr41xx/Kconfig"
a86c7f72454c4e8 David Daney 2008-12-11 1068 source "arch/mips/cavium-octeon/Kconfig"
71e2f4dd5a65bd8 Jiaxun Yang 2019-10-20 1069 source "arch/mips/loongson2ef/Kconfig"
30ad29bb48881ee Huacai Chen 2015-04-21 1070 source "arch/mips/loongson32/Kconfig"
30ad29bb48881ee Huacai Chen 2015-04-21 1071 source "arch/mips/loongson64/Kconfig"
7f058e852b229ec Jayachandran C 2011-05-07 1072 source "arch/mips/netlogic/Kconfig"
38b18f725874224 Ralf Baechle 2005-02-03 1073
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[mellanox:queue-next 2/2] drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c:416:7: error: 'struct bnxt_en_dev' has no member named 'en_ops'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux.git queue-next
head: e3b8e3b12bdebe46dc5c2b8627b3d2b212e0b67d
commit: e3b8e3b12bdebe46dc5c2b8627b3d2b212e0b67d [2/2] Merge branch 'testing/rdma-next' into queue-next
config: i386-allyesconfig (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux.git/commit...
git remote add mellanox https://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux.git
git fetch --no-tags mellanox queue-next
git checkout e3b8e3b12bdebe46dc5c2b8627b3d2b212e0b67d
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c: In function 'bnxt_ulp_probe':
>> drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c:416:7: error: 'struct bnxt_en_dev' has no member named 'en_ops'
416 | edev->en_ops = &bnxt_en_ops_tbl;
| ^~
>> drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c:416:19: error: 'bnxt_en_ops_tbl' undeclared (first use in this function)
416 | edev->en_ops = &bnxt_en_ops_tbl;
| ^~~~~~~~~~~~~~~
drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c:416:19: note: each undeclared identifier is reported only once for each function it appears in
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for PHY_SPARX5_SERDES
Depends on (ARCH_SPARX5 || COMPILE_TEST && OF && HAS_IOMEM
Selected by
- SPARX5_SWITCH && NETDEVICES && ETHERNET && NET_VENDOR_MICROCHIP && NET_SWITCHDEV && HAS_IOMEM && OF
vim +416 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c
a588e4580a7ecb Michael Chan 2016-12-07 405
a588e4580a7ecb Michael Chan 2016-12-07 406 struct bnxt_en_dev *bnxt_ulp_probe(struct net_device *dev)
a588e4580a7ecb Michael Chan 2016-12-07 407 {
a588e4580a7ecb Michael Chan 2016-12-07 408 struct bnxt *bp = netdev_priv(dev);
a588e4580a7ecb Michael Chan 2016-12-07 409 struct bnxt_en_dev *edev;
a588e4580a7ecb Michael Chan 2016-12-07 410
a588e4580a7ecb Michael Chan 2016-12-07 411 edev = bp->edev;
a588e4580a7ecb Michael Chan 2016-12-07 412 if (!edev) {
a588e4580a7ecb Michael Chan 2016-12-07 413 edev = kzalloc(sizeof(*edev), GFP_KERNEL);
a588e4580a7ecb Michael Chan 2016-12-07 414 if (!edev)
a588e4580a7ecb Michael Chan 2016-12-07 415 return ERR_PTR(-ENOMEM);
a588e4580a7ecb Michael Chan 2016-12-07 @416 edev->en_ops = &bnxt_en_ops_tbl;
:::::: The code at line 416 was first introduced by commit
:::::: a588e4580a7ecb715dab8bf09725b97aa0e0e3a0 bnxt_en: Add interface to support RDMA driver.
:::::: TO: Michael Chan <michael.chan(a)broadcom.com>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
Re: [PATCH 1/2] dt-bindings: display: panel: Add ilitek ili9341 panel bindings
by kernel test robot
Hi,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on robh/for-next]
[also build test WARNING on linus/master v5.14-rc2 next-20210719]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/dillon-minfei-gmail-com/Add-ilit...
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
compiler: arm-linux-gnueabi-gcc (GCC) 10.3.0
reproduce: make ARCH=arm dtbs_check
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
dtcheck warnings: (new ones prefixed by >>)
arch/arm/boot/dts/stm32f429-disco.dt.yaml:0:0: /interrupt-controller@e000e100: failed to match any schema with compatible: ['arm,armv7m-nvic']
arch/arm/boot/dts/stm32f429-disco.dt.yaml:0:0: /timer@e000e010: failed to match any schema with compatible: ['arm,armv7m-systick']
arch/arm/boot/dts/stm32f429-disco.dt.yaml:0:0: /soc/i2c@40005c00/stmpe811@41: failed to match any schema with compatible: ['st,stmpe811']
arch/arm/boot/dts/stm32f429-disco.dt.yaml:0:0: /soc/i2c@40005c00/stmpe811@41/stmpe_touchscreen: failed to match any schema with compatible: ['st,stmpe-ts']
arch/arm/boot/dts/stm32f429-disco.dt.yaml: l3gd20@0: 'spi-max-frequency' does not match any of the regexes: 'pinctrl-[0-9]+'
From schema: Documentation/devicetree/bindings/iio/st,st-sensors.yaml
>> arch/arm/boot/dts/stm32f429-disco.dt.yaml: display@1: compatible: ['st,sf-tc240t-9370-t'] is too short
From schema: Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml
arch/arm/boot/dts/stm32f429-disco.dt.yaml:0:0: /soc/crc@40023000: failed to match any schema with compatible: ['st,stm32f4-crc']
arch/arm/boot/dts/stm32f429-disco.dt.yaml:0:0: /soc/rcc@40023800: failed to match any schema with compatible: ['st,stm32f42xx-rcc', 'st,stm32-rcc']
arch/arm/boot/dts/stm32f429-disco.dt.yaml:0:0: /soc/rcc@40023800: failed to match any schema with compatible: ['st,stm32f42xx-rcc', 'st,stm32-rcc']
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
Re: [PATCH v3 8/9] MIPS: Retire MACH_PISTACHIO
by kernel test robot
Hi Jiaxun,
I love your patch! Yet something to improve:
[auto build test ERROR on robh/for-next]
[also build test ERROR on clk/clk-next linus/master v5.14-rc2 next-20210720]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Jiaxun-Yang/MIPS-Migrate-pistach...
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: mips-buildonly-randconfig-r003-20210721 (attached as .config)
compiler: mips-linux-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/7815f6aeaf55e4b6b9de98455f68c185a...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Jiaxun-Yang/MIPS-Migrate-pistachio-to-generic-kernel/20210721-110732
git checkout 7815f6aeaf55e4b6b9de98455f68c185a5ac5916
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> arch/mips/Kconfig:1062: can't open file "arch/mips/pistachio/Kconfig"
--
>> arch/mips/Kconfig:1062: can't open file "arch/mips/pistachio/Kconfig"
make[3]: *** [scripts/kconfig/Makefile:77: syncconfig] Error 1
make[2]: *** [Makefile:626: syncconfig] Error 2
make[1]: *** [Makefile:735: include/config/auto.conf.cmd] Error 2
make[1]: Failed to remake makefile 'include/config/auto.conf.cmd'.
make[1]: Failed to remake makefile 'include/config/auto.conf'.
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:220: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
>> arch/mips/Kconfig:1062: can't open file "arch/mips/pistachio/Kconfig"
make[2]: *** [scripts/kconfig/Makefile:77: olddefconfig] Error 1
make[1]: *** [Makefile:626: olddefconfig] Error 2
make: *** [Makefile:220: __sub-make] Error 2
make: Target 'olddefconfig' not remade because of errors.
--
>> arch/mips/Kconfig:1062: can't open file "arch/mips/pistachio/Kconfig"
make[3]: *** [scripts/kconfig/Makefile:77: syncconfig] Error 1
make[2]: *** [Makefile:626: syncconfig] Error 2
make[1]: *** [Makefile:735: include/config/auto.conf.cmd] Error 2
make[1]: Failed to remake makefile 'include/config/auto.conf.cmd'.
make[1]: Failed to remake makefile 'include/config/auto.conf'.
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:220: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +1062 arch/mips/Kconfig
^1da177e4c3f41 Linus Torvalds 2005-04-16 1050
e8c7c482347574 Ralf Baechle 2008-09-16 1051 source "arch/mips/alchemy/Kconfig"
3b12308f3337c0 Sergey Ryazanov 2014-10-29 1052 source "arch/mips/ath25/Kconfig"
d4a67d9dc8a5a8 Gabor Juhos 2011-01-04 1053 source "arch/mips/ath79/Kconfig"
a656ffcbc7a98a Hauke Mehrtens 2011-07-23 1054 source "arch/mips/bcm47xx/Kconfig"
e7300d04bd0809 Maxime Bizon 2009-08-18 1055 source "arch/mips/bcm63xx/Kconfig"
8945e37e103b16 Kevin Cernekee 2014-12-25 1056 source "arch/mips/bmips/Kconfig"
eed0eabd12ef06 Paul Burton 2016-10-05 1057 source "arch/mips/generic/Kconfig"
a103e9b951f909 Paul Cercueil 2020-09-06 1058 source "arch/mips/ingenic/Kconfig"
5e83d4305467c4 Ralf Baechle 2005-10-29 1059 source "arch/mips/jazz/Kconfig"
8ec6d93508f705 John Crispin 2011-03-30 1060 source "arch/mips/lantiq/Kconfig"
2572f00db8a68b Joshua Henderson 2016-01-13 1061 source "arch/mips/pic32/Kconfig"
af0cfb2c44ee5c Ezequiel Garcia 2015-08-06 @1062 source "arch/mips/pistachio/Kconfig"
ae2b5bb6570481 John Crispin 2013-01-20 1063 source "arch/mips/ralink/Kconfig"
29c4869946f918 Ralf Baechle 2005-02-07 1064 source "arch/mips/sgi-ip27/Kconfig"
38b18f72587422 Ralf Baechle 2005-02-03 1065 source "arch/mips/sibyte/Kconfig"
22b1d707ffc99f Atsushi Nemoto 2008-07-11 1066 source "arch/mips/txx9/Kconfig"
5e83d4305467c4 Ralf Baechle 2005-10-29 1067 source "arch/mips/vr41xx/Kconfig"
a86c7f72454c4e David Daney 2008-12-11 1068 source "arch/mips/cavium-octeon/Kconfig"
71e2f4dd5a65bd Jiaxun Yang 2019-10-20 1069 source "arch/mips/loongson2ef/Kconfig"
30ad29bb48881e Huacai Chen 2015-04-21 1070 source "arch/mips/loongson32/Kconfig"
30ad29bb48881e Huacai Chen 2015-04-21 1071 source "arch/mips/loongson64/Kconfig"
7f058e852b229e Jayachandran C 2011-05-07 1072 source "arch/mips/netlogic/Kconfig"
38b18f72587422 Ralf Baechle 2005-02-03 1073
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/processpptables.c:841:6: warning: performing pointer subtraction with a null pointer has undefined behavior
by kernel test robot
Hi Dave,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 8cae8cd89f05f6de223d63e6d15e31c8ba9cf53b
commit: 0c8d22fcae2f9590a07b000e1724f665820b77f7 Merge tag 'amd-drm-next-5.10-2020-09-03' of git://people.freedesktop.org/~agd5f/linux into drm-next
date: 11 months ago
config: powerpc64-randconfig-r012-20210720 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project c781eb153bfbd1b52b03efe34f56bbeccbb8aba6)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 0c8d22fcae2f9590a07b000e1724f665820b77f7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/processpptables.c:23:
In file included from drivers/gpu/drm/amd/amdgpu/../pm/inc/pp_debug.h:34:
In file included from include/linux/kernel.h:12:
In file included from include/linux/bitops.h:29:
In file included from arch/powerpc/include/asm/bitops.h:62:
arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
#define __lwsync() __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
^
<built-in>:310:9: note: previous definition is here
#define __lwsync __builtin_ppc_lwsync
^
>> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/processpptables.c:841:6: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
GetIndexIntoMasterTable(DATA, PowerPlayInfo),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/atombios.h:7133:132: note: expanded from macro 'GetIndexIntoMasterTable'
#define GetIndexIntoMasterTable(MasterOrData, FieldName) (((char*)(&((ATOM_MASTER_LIST_OF_##MasterOrData##_TABLES*)0)->FieldName)-(char*)0)/sizeof(USHORT))
^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/processpptables.c:1089:5: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
GetIndexIntoMasterTable(DATA, FirmwareInfo),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/atombios.h:7133:132: note: expanded from macro 'GetIndexIntoMasterTable'
#define GetIndexIntoMasterTable(MasterOrData, FieldName) (((char*)(&((ATOM_MASTER_LIST_OF_##MasterOrData##_TABLES*)0)->FieldName)-(char*)0)/sizeof(USHORT))
^~~~~~~~~
3 warnings generated.
--
In file included from drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu8_hwmgr.c:23:
In file included from drivers/gpu/drm/amd/amdgpu/../pm/inc/pp_debug.h:34:
In file included from include/linux/kernel.h:12:
In file included from include/linux/bitops.h:29:
In file included from arch/powerpc/include/asm/bitops.h:62:
arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
#define __lwsync() __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
^
<built-in>:310:9: note: previous definition is here
#define __lwsync __builtin_ppc_lwsync
^
>> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu8_hwmgr.c:319:4: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
GetIndexIntoMasterTable(DATA, IntegratedSystemInfo),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/atombios.h:7133:132: note: expanded from macro 'GetIndexIntoMasterTable'
#define GetIndexIntoMasterTable(MasterOrData, FieldName) (((char*)(&((ATOM_MASTER_LIST_OF_##MasterOrData##_TABLES*)0)->FieldName)-(char*)0)/sizeof(USHORT))
^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu8_hwmgr.c:2044:5: warning: no previous prototype for function 'smu8_init_function_pointers' [-Wmissing-prototypes]
int smu8_init_function_pointers(struct pp_hwmgr *hwmgr)
^
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu8_hwmgr.c:2044:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int smu8_init_function_pointers(struct pp_hwmgr *hwmgr)
^
static
3 warnings generated.
--
In file included from drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/process_pptables_v1_0.c:23:
In file included from drivers/gpu/drm/amd/amdgpu/../pm/inc/pp_debug.h:34:
In file included from include/linux/kernel.h:12:
In file included from include/linux/bitops.h:29:
In file included from arch/powerpc/include/asm/bitops.h:62:
arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
#define __lwsync() __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
^
<built-in>:310:9: note: previous definition is here
#define __lwsync __builtin_ppc_lwsync
^
>> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/process_pptables_v1_0.c:136:14: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/atombios.h:7133:132: note: expanded from macro 'GetIndexIntoMasterTable'
#define GetIndexIntoMasterTable(MasterOrData, FieldName) (((char*)(&((ATOM_MASTER_LIST_OF_##MasterOrData##_TABLES*)0)->FieldName)-(char*)0)/sizeof(USHORT))
^~~~~~~~~
2 warnings generated.
--
In file included from drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:23:
In file included from drivers/gpu/drm/amd/amdgpu/../pm/inc/pp_debug.h:34:
In file included from include/linux/kernel.h:12:
In file included from include/linux/bitops.h:29:
In file included from arch/powerpc/include/asm/bitops.h:62:
arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
#define __lwsync() __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
^
<built-in>:310:9: note: previous definition is here
#define __lwsync __builtin_ppc_lwsync
^
In file included from drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:31:
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppevvmath.h:336:7: warning: variable 'X_LessThanOne' set but not used [-Wunused-but-set-variable]
bool X_LessThanOne, Y_LessThanOne;
^
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppevvmath.h:336:22: warning: variable 'Y_LessThanOne' set but not used [-Wunused-but-set-variable]
bool X_LessThanOne, Y_LessThanOne;
^
>> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:145:5: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
GetIndexIntoMasterTable(DATA, VRAM_Info), &size, &frev, &crev);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/atombios.h:7133:132: note: expanded from macro 'GetIndexIntoMasterTable'
#define GetIndexIntoMasterTable(MasterOrData, FieldName) (((char*)(&((ATOM_MASTER_LIST_OF_##MasterOrData##_TABLES*)0)->FieldName)-(char*)0)/sizeof(USHORT))
^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:191:4: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
GetIndexIntoMasterTable(COMMAND, DynamicMemorySettings),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/atombios.h:7133:132: note: expanded from macro 'GetIndexIntoMasterTable'
#define GetIndexIntoMasterTable(MasterOrData, FieldName) (((char*)(&((ATOM_MASTER_LIST_OF_##MasterOrData##_TABLES*)0)->FieldName)-(char*)0)/sizeof(USHORT))
^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:203:14: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
int index = GetIndexIntoMasterTable(DATA, VoltageObjectInfo);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/atombios.h:7133:132: note: expanded from macro 'GetIndexIntoMasterTable'
#define GetIndexIntoMasterTable(MasterOrData, FieldName) (((char*)(&((ATOM_MASTER_LIST_OF_##MasterOrData##_TABLES*)0)->FieldName)-(char*)0)/sizeof(USHORT))
^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:261:4: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
GetIndexIntoMasterTable(COMMAND, ComputeMemoryClockParam),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/atombios.h:7133:132: note: expanded from macro 'GetIndexIntoMasterTable'
#define GetIndexIntoMasterTable(MasterOrData, FieldName) (((char*)(&((ATOM_MASTER_LIST_OF_##MasterOrData##_TABLES*)0)->FieldName)-(char*)0)/sizeof(USHORT))
^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:308:4: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
GetIndexIntoMasterTable(COMMAND, ComputeMemoryClockParam),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/atombios.h:7133:132: note: expanded from macro 'GetIndexIntoMasterTable'
#define GetIndexIntoMasterTable(MasterOrData, FieldName) (((char*)(&((ATOM_MASTER_LIST_OF_##MasterOrData##_TABLES*)0)->FieldName)-(char*)0)/sizeof(USHORT))
^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:329:4: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
GetIndexIntoMasterTable(COMMAND, ComputeMemoryClockParam),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/atombios.h:7133:132: note: expanded from macro 'GetIndexIntoMasterTable'
#define GetIndexIntoMasterTable(MasterOrData, FieldName) (((char*)(&((ATOM_MASTER_LIST_OF_##MasterOrData##_TABLES*)0)->FieldName)-(char*)0)/sizeof(USHORT))
^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:359:4: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
GetIndexIntoMasterTable(COMMAND, ComputeMemoryEnginePLL),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/atombios.h:7133:132: note: expanded from macro 'GetIndexIntoMasterTable'
#define GetIndexIntoMasterTable(MasterOrData, FieldName) (((char*)(&((ATOM_MASTER_LIST_OF_##MasterOrData##_TABLES*)0)->FieldName)-(char*)0)/sizeof(USHORT))
^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:383:4: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
GetIndexIntoMasterTable(COMMAND, ComputeMemoryEnginePLL),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/atombios.h:7133:132: note: expanded from macro 'GetIndexIntoMasterTable'
#define GetIndexIntoMasterTable(MasterOrData, FieldName) (((char*)(&((ATOM_MASTER_LIST_OF_##MasterOrData##_TABLES*)0)->FieldName)-(char*)0)/sizeof(USHORT))
^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:420:4: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
GetIndexIntoMasterTable(COMMAND, ComputeMemoryEnginePLL),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/atombios.h:7133:132: note: expanded from macro 'GetIndexIntoMasterTable'
#define GetIndexIntoMasterTable(MasterOrData, FieldName) (((char*)(&((ATOM_MASTER_LIST_OF_##MasterOrData##_TABLES*)0)->FieldName)-(char*)0)/sizeof(USHORT))
^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:453:4: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
GetIndexIntoMasterTable(COMMAND, ComputeMemoryEnginePLL),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/atombios.h:7133:132: note: expanded from macro 'GetIndexIntoMasterTable'
#define GetIndexIntoMasterTable(MasterOrData, FieldName) (((char*)(&((ATOM_MASTER_LIST_OF_##MasterOrData##_TABLES*)0)->FieldName)-(char*)0)/sizeof(USHORT))
^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:490:4: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
GetIndexIntoMasterTable(DATA, FirmwareInfo),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/atombios.h:7133:132: note: expanded from macro 'GetIndexIntoMasterTable'
#define GetIndexIntoMasterTable(MasterOrData, FieldName) (((char*)(&((ATOM_MASTER_LIST_OF_##MasterOrData##_TABLES*)0)->FieldName)-(char*)0)/sizeof(USHORT))
^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:610:5: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
GetIndexIntoMasterTable(DATA, GPIO_Pin_LUT),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/atombios.h:7133:132: note: expanded from macro 'GetIndexIntoMasterTable'
#define GetIndexIntoMasterTable(MasterOrData, FieldName) (((char*)(&((ATOM_MASTER_LIST_OF_##MasterOrData##_TABLES*)0)->FieldName)-(char*)0)/sizeof(USHORT))
^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:678:6: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
GetIndexIntoMasterTable(DATA, ASIC_ProfilingInfo),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/atombios.h:7133:132: note: expanded from macro 'GetIndexIntoMasterTable'
#define GetIndexIntoMasterTable(MasterOrData, FieldName) (((char*)(&((ATOM_MASTER_LIST_OF_##MasterOrData##_TABLES*)0)->FieldName)-(char*)0)/sizeof(USHORT))
^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:744:4: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
GetIndexIntoMasterTable(COMMAND, ReadEfuseValue),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/atombios.h:7133:132: note: expanded from macro 'GetIndexIntoMasterTable'
#define GetIndexIntoMasterTable(MasterOrData, FieldName) (((char*)(&((ATOM_MASTER_LIST_OF_##MasterOrData##_TABLES*)0)->FieldName)-(char*)0)/sizeof(USHORT))
^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:765:4: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
GetIndexIntoMasterTable(COMMAND, ReadEfuseValue),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/atombios.h:7133:132: note: expanded from macro 'GetIndexIntoMasterTable'
#define GetIndexIntoMasterTable(MasterOrData, FieldName) (((char*)(&((ATOM_MASTER_LIST_OF_##MasterOrData##_TABLES*)0)->FieldName)-(char*)0)/sizeof(USHORT))
^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:785:4: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
GetIndexIntoMasterTable(COMMAND, ReadEfuseValue),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/atombios.h:7133:132: note: expanded from macro 'GetIndexIntoMasterTable'
#define GetIndexIntoMasterTable(MasterOrData, FieldName) (((char*)(&((ATOM_MASTER_LIST_OF_##MasterOrData##_TABLES*)0)->FieldName)-(char*)0)/sizeof(USHORT))
^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:806:4: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
GetIndexIntoMasterTable(COMMAND, ReadEfuseValue),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/atombios.h:7133:132: note: expanded from macro 'GetIndexIntoMasterTable'
#define GetIndexIntoMasterTable(MasterOrData, FieldName) (((char*)(&((ATOM_MASTER_LIST_OF_##MasterOrData##_TABLES*)0)->FieldName)-(char*)0)/sizeof(USHORT))
--
In file included from drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomfwctrl.c:24:
In file included from drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomfwctrl.h:27:
In file included from drivers/gpu/drm/amd/amdgpu/../pm/inc/hwmgr.h:26:
In file included from include/linux/seq_file.h:7:
In file included from include/linux/bug.h:5:
In file included from arch/powerpc/include/asm/bug.h:109:
In file included from include/asm-generic/bug.h:20:
In file included from include/linux/kernel.h:12:
In file included from include/linux/bitops.h:29:
In file included from arch/powerpc/include/asm/bitops.h:62:
arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
#define __lwsync() __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
^
<built-in>:310:9: note: previous definition is here
#define __lwsync __builtin_ppc_lwsync
^
>> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomfwctrl.c:60:8: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
idx = GetIndexIntoMasterDataTable(voltageobject_info);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomfwctrl.h:34:74: note: expanded from macro 'GetIndexIntoMasterDataTable'
(((char*)(&((struct atom_master_list_of_data_tables_v2_1*)0)->FieldName)-(char*)0)/sizeof(uint16_t))
^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomfwctrl.c:168:8: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
idx = GetIndexIntoMasterDataTable(gpio_pin_lut);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomfwctrl.h:34:74: note: expanded from macro 'GetIndexIntoMasterDataTable'
(((char*)(&((struct atom_master_list_of_data_tables_v2_1*)0)->FieldName)-(char*)0)/sizeof(uint16_t))
^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomfwctrl.c:258:8: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
idx = GetIndexIntoMasterCmdTable(computegpuclockparam);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomfwctrl.h:32:80: note: expanded from macro 'GetIndexIntoMasterCmdTable'
(((char*)(&((struct atom_master_list_of_command_functions_v2_1*)0)->FieldName)-(char*)0)/sizeof(uint16_t))
^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomfwctrl.c:285:8: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
idx = GetIndexIntoMasterDataTable(asic_profiling_info);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomfwctrl.h:34:74: note: expanded from macro 'GetIndexIntoMasterDataTable'
(((char*)(&((struct atom_master_list_of_data_tables_v2_1*)0)->FieldName)-(char*)0)/sizeof(uint16_t))
^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomfwctrl.c:469:8: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
idx = GetIndexIntoMasterDataTable(smu_info);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomfwctrl.h:34:74: note: expanded from macro 'GetIndexIntoMasterDataTable'
(((char*)(&((struct atom_master_list_of_data_tables_v2_1*)0)->FieldName)-(char*)0)/sizeof(uint16_t))
^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomfwctrl.c:505:7: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
ix = GetIndexIntoMasterCmdTable(getsmuclockinfo);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomfwctrl.h:32:80: note: expanded from macro 'GetIndexIntoMasterCmdTable'
(((char*)(&((struct atom_master_list_of_command_functions_v2_1*)0)->FieldName)-(char*)0)/sizeof(uint16_t))
^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomfwctrl.c:594:7: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
ix = GetIndexIntoMasterDataTable(firmwareinfo);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomfwctrl.h:34:74: note: expanded from macro 'GetIndexIntoMasterDataTable'
(((char*)(&((struct atom_master_list_of_data_tables_v2_1*)0)->FieldName)-(char*)0)/sizeof(uint16_t))
^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomfwctrl.c:626:7: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
ix = GetIndexIntoMasterDataTable(smc_dpm_info);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomfwctrl.h:34:74: note: expanded from macro 'GetIndexIntoMasterDataTable'
(((char*)(&((struct atom_master_list_of_data_tables_v2_1*)0)->FieldName)-(char*)0)/sizeof(uint16_t))
^~~~~~~~~
9 warnings generated.
--
In file included from drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:23:
In file included from drivers/gpu/drm/amd/amdgpu/../pm/inc/pp_debug.h:34:
In file included from include/linux/kernel.h:12:
In file included from include/linux/bitops.h:29:
In file included from arch/powerpc/include/asm/bitops.h:62:
arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
#define __lwsync() __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
^
<built-in>:310:9: note: previous definition is here
#define __lwsync __builtin_ppc_lwsync
^
>> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:3075:14: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
int index = GetIndexIntoMasterTable(DATA, FirmwareInfo);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/atombios.h:7133:132: note: expanded from macro 'GetIndexIntoMasterTable'
#define GetIndexIntoMasterTable(MasterOrData, FieldName) (((char*)(&((ATOM_MASTER_LIST_OF_##MasterOrData##_TABLES*)0)->FieldName)-(char*)0)/sizeof(USHORT))
^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:5207:5: warning: no previous prototype for function 'smu7_init_function_pointers' [-Wmissing-prototypes]
int smu7_init_function_pointers(struct pp_hwmgr *hwmgr)
^
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:5207:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int smu7_init_function_pointers(struct pp_hwmgr *hwmgr)
^
static
3 warnings generated.
--
In file included from drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_processpptables.c:23:
In file included from include/linux/module.h:12:
In file included from include/linux/list.h:9:
In file included from include/linux/kernel.h:12:
In file included from include/linux/bitops.h:29:
In file included from arch/powerpc/include/asm/bitops.h:62:
arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
#define __lwsync() __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
^
<built-in>:310:9: note: previous definition is here
#define __lwsync __builtin_ppc_lwsync
^
>> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_processpptables.c:49:14: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
int index = GetIndexIntoMasterDataTable(powerplayinfo);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomfwctrl.h:34:74: note: expanded from macro 'GetIndexIntoMasterDataTable'
(((char*)(&((struct atom_master_list_of_data_tables_v2_1*)0)->FieldName)-(char*)0)/sizeof(uint16_t))
^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_processpptables.c:1182:5: warning: no previous prototype for function 'vega10_pp_tables_initialize' [-Wmissing-prototypes]
int vega10_pp_tables_initialize(struct pp_hwmgr *hwmgr)
^
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_processpptables.c:1182:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int vega10_pp_tables_initialize(struct pp_hwmgr *hwmgr)
^
static
3 warnings generated.
..
vim +841 drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/processpptables.c
3bace359149391 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c Jammy Zhou 2015-07-21 826
3bace359149391 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c Jammy Zhou 2015-07-21 827 static const ATOM_PPLIB_POWERPLAYTABLE *get_powerplay_table(
3bace359149391 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c Jammy Zhou 2015-07-21 828 struct pp_hwmgr *hwmgr)
3bace359149391 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c Jammy Zhou 2015-07-21 829 {
cf17039f489d3d drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c Eric Huang 2016-05-31 830 const void *table_addr = hwmgr->soft_pp_table;
3bace359149391 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c Jammy Zhou 2015-07-21 831 uint8_t frev, crev;
3bace359149391 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c Jammy Zhou 2015-07-21 832 uint16_t size;
3bace359149391 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c Jammy Zhou 2015-07-21 833
cf17039f489d3d drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c Eric Huang 2016-05-31 834 if (!table_addr) {
741deade2a704a drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c Alex Deucher 2018-09-13 835 if (hwmgr->chip_id == CHIP_RAVEN) {
3b4ca9e6494d19 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c Rex Zhu 2017-08-24 836 table_addr = &soft_dummy_pp_table[0];
3b4ca9e6494d19 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c Rex Zhu 2017-08-24 837 hwmgr->soft_pp_table = &soft_dummy_pp_table[0];
3b4ca9e6494d19 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c Rex Zhu 2017-08-24 838 hwmgr->soft_pp_table_size = sizeof(soft_dummy_pp_table);
3b4ca9e6494d19 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c Rex Zhu 2017-08-24 839 } else {
b3892e2bb519fe drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c Rex Zhu 2018-03-26 840 table_addr = smu_atom_get_data_table(hwmgr->adev,
3bace359149391 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c Jammy Zhou 2015-07-21 @841 GetIndexIntoMasterTable(DATA, PowerPlayInfo),
3bace359149391 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c Jammy Zhou 2015-07-21 842 &size, &frev, &crev);
3bace359149391 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c Jammy Zhou 2015-07-21 843 hwmgr->soft_pp_table = table_addr;
cf17039f489d3d drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c Eric Huang 2016-05-31 844 hwmgr->soft_pp_table_size = size;
cf17039f489d3d drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c Eric Huang 2016-05-31 845 }
3b4ca9e6494d19 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c Rex Zhu 2017-08-24 846 }
3bace359149391 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c Jammy Zhou 2015-07-21 847
3bace359149391 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c Jammy Zhou 2015-07-21 848 return (const ATOM_PPLIB_POWERPLAYTABLE *)table_addr;
3bace359149391 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c Jammy Zhou 2015-07-21 849 }
3bace359149391 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c Jammy Zhou 2015-07-21 850
:::::: The code at line 841 was first introduced by commit
:::::: 3bace359149391c6547cefe3bf729f365bcf3ef6 drm/amd/powerplay: add hardware manager sub-component
:::::: TO: Jammy Zhou <Jammy.Zhou(a)amd.com>
:::::: CC: Alex Deucher <alexander.deucher(a)amd.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months