[pci:pci/edr 4/10] drivers/pci/pcie/err.c:168:28: error: use of undeclared identifier 'service'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/edr
head: 3a4c9f97543f0dbf580dd3646164e829ba08e600
commit: d9dbf5828770b236fcae3cc866d844fe360174d0 [4/10] PCI/ERR: Remove service dependency in pcie_do_recovery()
config: x86_64-defconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 0fca766458da04bbc6d33b3f9ecd57e615c556c1)
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout d9dbf5828770b236fcae3cc866d844fe360174d0
# save the attached .config to linux build tree
COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/pci/pcie/err.c:168:28: error: use of undeclared identifier 'service'
status = reset_link(dev, service);
^
1 error generated.
vim +/service +168 drivers/pci/pcie/err.c
2e28bc84cf6eec Oza Pawandeep 2018-05-17 148
d9dbf5828770b2 Kuppuswamy Sathyanarayanan 2020-03-23 149 void pcie_do_recovery(struct pci_dev *dev,
d9dbf5828770b2 Kuppuswamy Sathyanarayanan 2020-03-23 150 enum pci_channel_state state,
d9dbf5828770b2 Kuppuswamy Sathyanarayanan 2020-03-23 151 pci_ers_result_t (*reset_link)(struct pci_dev *pdev))
2e28bc84cf6eec Oza Pawandeep 2018-05-17 152 {
542aeb9c8f930e Keith Busch 2018-09-20 153 pci_ers_result_t status = PCI_ERS_RESULT_CAN_RECOVER;
542aeb9c8f930e Keith Busch 2018-09-20 154 struct pci_bus *bus;
2e28bc84cf6eec Oza Pawandeep 2018-05-17 155
bfcb79fca19d26 Keith Busch 2018-09-20 156 /*
bfcb79fca19d26 Keith Busch 2018-09-20 157 * Error recovery runs on all subordinates of the first downstream port.
bfcb79fca19d26 Keith Busch 2018-09-20 158 * If the downstream port detected the error, it is cleared at the end.
bfcb79fca19d26 Keith Busch 2018-09-20 159 */
bfcb79fca19d26 Keith Busch 2018-09-20 160 if (!(pci_pcie_type(dev) == PCI_EXP_TYPE_ROOT_PORT ||
bfcb79fca19d26 Keith Busch 2018-09-20 161 pci_pcie_type(dev) == PCI_EXP_TYPE_DOWNSTREAM))
bfcb79fca19d26 Keith Busch 2018-09-20 162 dev = dev->bus->self;
542aeb9c8f930e Keith Busch 2018-09-20 163 bus = dev->subordinate;
bfcb79fca19d26 Keith Busch 2018-09-20 164
542aeb9c8f930e Keith Busch 2018-09-20 165 pci_dbg(dev, "broadcast error_detected message\n");
b5dfbeacf74865 Kuppuswamy Sathyanarayanan 2020-03-27 166 if (state == pci_channel_io_frozen) {
542aeb9c8f930e Keith Busch 2018-09-20 167 pci_walk_bus(bus, report_frozen_detected, &status);
6d2c89441571ea Kuppuswamy Sathyanarayanan 2020-03-23 @168 status = reset_link(dev, service);
:::::: The code at line 168 was first introduced by commit
:::::: 6d2c89441571ea534d6240f7724f518936c44f8d PCI/ERR: Update error status after reset_link()
:::::: TO: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy(a)linux.intel.com>
:::::: CC: Bjorn Helgaas <bhelgaas(a)google.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[peterz-queue:x86/wip-rwx 3/5] arch/s390/kernel/module.c:438:8: error: too few arguments to function 'apply_rela'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/wip-rwx
head: 2b692130d9ed6906e72abfffc730fdd34af3c6cf
commit: 918ebf691eda91f6ebcf198967d64aa16fc77822 [3/5] livepatch: Use text_poke() for relocations
config: s390-debug_defconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 918ebf691eda91f6ebcf198967d64aa16fc77822
# save the attached .config to linux build tree
GCC_VERSION=9.3.0 make.cross ARCH=s390
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/s390/kernel/module.c: In function 'apply_rela_bits':
arch/s390/kernel/module.c:199:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
199 | write(loc, &val, 1);
| ^~~
| |
| Elf64_Addr {aka long long unsigned int}
arch/s390/kernel/module.c:199:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
arch/s390/kernel/module.c:203:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
203 | write(loc, &tmp, 2);
| ^~~
| |
| Elf64_Addr {aka long long unsigned int}
arch/s390/kernel/module.c:203:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
arch/s390/kernel/module.c:205:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
205 | write(loc, &val, 2);
| ^~~
| |
| Elf64_Addr {aka long long unsigned int}
arch/s390/kernel/module.c:205:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
arch/s390/kernel/module.c:209:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
209 | write(loc, &tmp, 4);
| ^~~
| |
| Elf64_Addr {aka long long unsigned int}
arch/s390/kernel/module.c:209:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
arch/s390/kernel/module.c:211:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
211 | write(loc, &val, 4);
| ^~~
| |
| Elf64_Addr {aka long long unsigned int}
arch/s390/kernel/module.c:211:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
arch/s390/kernel/module.c:213:9: warning: passing argument 1 of 'write' makes pointer from integer without a cast [-Wint-conversion]
213 | write(loc, &val, 8);
| ^~~
| |
| Elf64_Addr {aka long long unsigned int}
arch/s390/kernel/module.c:213:9: note: expected 'void *' but argument is of type 'Elf64_Addr' {aka 'long long unsigned int'}
arch/s390/kernel/module.c: In function '__apply_relocate_add':
>> arch/s390/kernel/module.c:438:8: error: too few arguments to function 'apply_rela'
438 | rc = apply_rela(rela, base, symtab, strtab, me);
| ^~~~~~~~~~
arch/s390/kernel/module.c:218:12: note: declared here
218 | static int apply_rela(Elf_Rela *rela, Elf_Addr base, Elf_Sym *symtab,
| ^~~~~~~~~~
vim +/apply_rela +438 arch/s390/kernel/module.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 418
918ebf691eda91 Peter Zijlstra 2019-10-21 419 static int __apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab,
^1da177e4c3f41 Linus Torvalds 2005-04-16 420 unsigned int symindex, unsigned int relsec,
918ebf691eda91 Peter Zijlstra 2019-10-21 421 struct module *me,
918ebf691eda91 Peter Zijlstra 2019-10-21 422 void (*write)(void *addr, const void *data, size_t len))
^1da177e4c3f41 Linus Torvalds 2005-04-16 423 {
^1da177e4c3f41 Linus Torvalds 2005-04-16 424 Elf_Addr base;
^1da177e4c3f41 Linus Torvalds 2005-04-16 425 Elf_Sym *symtab;
^1da177e4c3f41 Linus Torvalds 2005-04-16 426 Elf_Rela *rela;
^1da177e4c3f41 Linus Torvalds 2005-04-16 427 unsigned long i, n;
^1da177e4c3f41 Linus Torvalds 2005-04-16 428 int rc;
^1da177e4c3f41 Linus Torvalds 2005-04-16 429
^1da177e4c3f41 Linus Torvalds 2005-04-16 430 DEBUGP("Applying relocate section %u to %u\n",
^1da177e4c3f41 Linus Torvalds 2005-04-16 431 relsec, sechdrs[relsec].sh_info);
^1da177e4c3f41 Linus Torvalds 2005-04-16 432 base = sechdrs[sechdrs[relsec].sh_info].sh_addr;
^1da177e4c3f41 Linus Torvalds 2005-04-16 433 symtab = (Elf_Sym *) sechdrs[symindex].sh_addr;
^1da177e4c3f41 Linus Torvalds 2005-04-16 434 rela = (Elf_Rela *) sechdrs[relsec].sh_addr;
^1da177e4c3f41 Linus Torvalds 2005-04-16 435 n = sechdrs[relsec].sh_size / sizeof(Elf_Rela);
^1da177e4c3f41 Linus Torvalds 2005-04-16 436
^1da177e4c3f41 Linus Torvalds 2005-04-16 437 for (i = 0; i < n; i++, rela++) {
083e14c09b7ae0 Martin Schwidefsky 2013-01-11 @438 rc = apply_rela(rela, base, symtab, strtab, me);
^1da177e4c3f41 Linus Torvalds 2005-04-16 439 if (rc)
^1da177e4c3f41 Linus Torvalds 2005-04-16 440 return rc;
^1da177e4c3f41 Linus Torvalds 2005-04-16 441 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 442 return 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16 443 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 444
:::::: The code at line 438 was first introduced by commit
:::::: 083e14c09b7ae0247b9944a386fdc32cd0719da1 s390/modules: add relocation overflow checking
:::::: TO: Martin Schwidefsky <schwidefsky(a)de.ibm.com>
:::::: CC: Martin Schwidefsky <schwidefsky(a)de.ibm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
Re: [PATCH net] inet_diag: add cgroup id attribute
by kbuild test robot
Hi Dmitry,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on net/master]
[also build test ERROR on linus/master v5.6]
[cannot apply to net-next/master next-20200330]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Dmitry-Yakunin/inet_diag-add-cgr...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git a0ba26f37ea04e025a793ef5e5ac809221728ecb
config: mips-64r6el_defconfig (attached as .config)
compiler: mips64el-linux-gcc (GCC) 5.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=5.5.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
net/ipv4/inet_diag.c: In function 'inet_diag_msg_attrs_fill':
>> net/ipv4/inet_diag.c:166:20: error: implicit declaration of function 'sock_cgroup_ptr' [-Werror=implicit-function-declaration]
cgroup_id(sock_cgroup_ptr(&sk->sk_cgrp_data)),
^
net/ipv4/inet_diag.c:166:20: warning: passing argument 1 of 'cgroup_id' makes pointer from integer without a cast [-Wint-conversion]
In file included from include/net/netprio_cgroup.h:11:0,
from include/linux/netdevice.h:42,
from include/net/inet_sock.h:19,
from include/net/icmp.h:19,
from net/ipv4/inet_diag.c:18:
include/linux/cgroup.h:308:19: note: expected 'struct cgroup *' but argument is of type 'int'
static inline u64 cgroup_id(struct cgroup *cgrp)
^
cc1: some warnings being treated as errors
vim +/sock_cgroup_ptr +166 net/ipv4/inet_diag.c
142
143 if (net_admin && nla_put_u32(skb, INET_DIAG_MARK, sk->sk_mark))
144 goto errout;
145
146 if (ext & (1 << (INET_DIAG_CLASS_ID - 1)) ||
147 ext & (1 << (INET_DIAG_TCLASS - 1))) {
148 u32 classid = 0;
149
150 #ifdef CONFIG_SOCK_CGROUP_DATA
151 classid = sock_cgroup_classid(&sk->sk_cgrp_data);
152 #endif
153 /* Fallback to socket priority if class id isn't set.
154 * Classful qdiscs use it as direct reference to class.
155 * For cgroup2 classid is always zero.
156 */
157 if (!classid)
158 classid = sk->sk_priority;
159
160 if (nla_put_u32(skb, INET_DIAG_CLASS_ID, classid))
161 goto errout;
162 }
163
164 #ifdef CONFIG_CGROUPS
165 if (nla_put_u64_64bit(skb, INET_DIAG_CGROUP_ID,
> 166 cgroup_id(sock_cgroup_ptr(&sk->sk_cgrp_data)),
167 INET_DIAG_PAD))
168 goto errout;
169 #endif
170
171 r->idiag_uid = from_kuid_munged(user_ns, sock_i_uid(sk));
172 r->idiag_inode = sock_i_ino(sk);
173
174 return 0;
175 errout:
176 return 1;
177 }
178 EXPORT_SYMBOL_GPL(inet_diag_msg_attrs_fill);
179
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[linux-next:master 9847/13366] include/vdso/const.h:7:17: note: in expansion of macro '_UL'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 27a8b6c16291760cfb7d955c58d8e34dc27ec9dc
commit: 8165b57bca2167acc150b708a9a6b7322f235e91 [9847/13366] linux/const.h: Extract common header for vDSO
config: arm-randconfig-a001-20200330 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 8165b57bca2167acc150b708a9a6b7322f235e91
# save the attached .config to linux build tree
GCC_VERSION=9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from include/vdso/const.h:5,
from include/linux/const.h:4,
from include/linux/bits.h:5,
from include/linux/bitops.h:5,
from include/linux/kernel.h:12,
from include/asm-generic/bug.h:19,
from arch/arm/include/asm/bug.h:60,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/current.h:5,
from ./arch/arm/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from arch/arm/kernel/asm-offsets.c:11:
arch/arm/include/asm/memory.h: In function '__virt_to_phys_nodebug':
./include/generated/autoconf.h:846:28: error: invalid suffix "xUL" on integer constant
846 | #define CONFIG_PHYS_OFFSET 0x
| ^~
include/uapi/linux/const.h:20:20: note: in definition of macro '__AC'
20 | #define __AC(X,Y) (X##Y)
| ^
include/uapi/linux/const.h:25:18: note: in expansion of macro '_AC'
25 | #define _UL(x) (_AC(x, UL))
| ^~~
>> include/vdso/const.h:7:17: note: in expansion of macro '_UL'
7 | #define UL(x) (_UL(x))
| ^~~
arch/arm/include/asm/memory.h:141:26: note: in expansion of macro 'UL'
141 | #define PLAT_PHYS_OFFSET UL(CONFIG_PHYS_OFFSET)
| ^~
arch/arm/include/asm/memory.h:141:29: note: in expansion of macro 'CONFIG_PHYS_OFFSET'
141 | #define PLAT_PHYS_OFFSET UL(CONFIG_PHYS_OFFSET)
| ^~~~~~~~~~~~~~~~~~
arch/arm/include/asm/memory.h:244:21: note: in expansion of macro 'PLAT_PHYS_OFFSET'
244 | #define PHYS_OFFSET PLAT_PHYS_OFFSET
| ^~~~~~~~~~~~~~~~
arch/arm/include/asm/memory.h:249:40: note: in expansion of macro 'PHYS_OFFSET'
249 | return (phys_addr_t)x - PAGE_OFFSET + PHYS_OFFSET;
| ^~~~~~~~~~~
arch/arm/include/asm/memory.h: In function '__phys_to_virt':
./include/generated/autoconf.h:846:28: error: invalid suffix "xUL" on integer constant
846 | #define CONFIG_PHYS_OFFSET 0x
| ^~
include/uapi/linux/const.h:20:20: note: in definition of macro '__AC'
20 | #define __AC(X,Y) (X##Y)
| ^
include/uapi/linux/const.h:25:18: note: in expansion of macro '_AC'
25 | #define _UL(x) (_AC(x, UL))
| ^~~
>> include/vdso/const.h:7:17: note: in expansion of macro '_UL'
7 | #define UL(x) (_UL(x))
| ^~~
arch/arm/include/asm/memory.h:141:26: note: in expansion of macro 'UL'
141 | #define PLAT_PHYS_OFFSET UL(CONFIG_PHYS_OFFSET)
| ^~
arch/arm/include/asm/memory.h:141:29: note: in expansion of macro 'CONFIG_PHYS_OFFSET'
141 | #define PLAT_PHYS_OFFSET UL(CONFIG_PHYS_OFFSET)
| ^~~~~~~~~~~~~~~~~~
arch/arm/include/asm/memory.h:244:21: note: in expansion of macro 'PLAT_PHYS_OFFSET'
244 | #define PHYS_OFFSET PLAT_PHYS_OFFSET
| ^~~~~~~~~~~~~~~~
arch/arm/include/asm/memory.h:254:13: note: in expansion of macro 'PHYS_OFFSET'
254 | return x - PHYS_OFFSET + PAGE_OFFSET;
| ^~~~~~~~~~~
In file included from arch/arm/include/asm/memory.h:370,
from arch/arm/include/asm/page.h:160,
from arch/arm/include/asm/thread_info.h:14,
from include/linux/thread_info.h:38,
from include/asm-generic/current.h:5,
from ./arch/arm/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from arch/arm/kernel/asm-offsets.c:11:
include/linux/mm.h: In function 'virt_to_head_page':
./include/generated/autoconf.h:846:28: error: invalid suffix "xUL" on integer constant
846 | #define CONFIG_PHYS_OFFSET 0x
| ^~
include/asm-generic/memory_model.h:69:27: note: in definition of macro '__pfn_to_page'
69 | ({ unsigned long __pfn = (pfn); \
| ^~~
include/uapi/linux/const.h:21:18: note: in expansion of macro '__AC'
21 | #define _AC(X,Y) __AC(X,Y)
| ^~~~
include/uapi/linux/const.h:25:18: note: in expansion of macro '_AC'
25 | #define _UL(x) (_AC(x, UL))
| ^~~
>> include/vdso/const.h:7:17: note: in expansion of macro '_UL'
7 | #define UL(x) (_UL(x))
| ^~~
arch/arm/include/asm/memory.h:141:26: note: in expansion of macro 'UL'
141 | #define PLAT_PHYS_OFFSET UL(CONFIG_PHYS_OFFSET)
| ^~
arch/arm/include/asm/memory.h:141:29: note: in expansion of macro 'CONFIG_PHYS_OFFSET'
141 | #define PLAT_PHYS_OFFSET UL(CONFIG_PHYS_OFFSET)
| ^~~~~~~~~~~~~~~~~~
arch/arm/include/asm/memory.h:244:21: note: in expansion of macro 'PLAT_PHYS_OFFSET'
244 | #define PHYS_OFFSET PLAT_PHYS_OFFSET
| ^~~~~~~~~~~~~~~~
arch/arm/include/asm/memory.h:245:42: note: in expansion of macro 'PHYS_OFFSET'
245 | #define PHYS_PFN_OFFSET ((unsigned long)(PHYS_OFFSET >> PAGE_SHIFT))
| ^~~~~~~~~~~
arch/arm/include/asm/memory.h:261:3: note: in expansion of macro 'PHYS_PFN_OFFSET'
261 | PHYS_PFN_OFFSET)
| ^~~~~~~~~~~~~~~
arch/arm/include/asm/memory.h:364:41: note: in expansion of macro 'virt_to_pfn'
364 | #define virt_to_page(kaddr) pfn_to_page(virt_to_pfn(kaddr))
| ^~~~~~~~~~~
include/linux/mm.h:721:22: note: in expansion of macro 'virt_to_page'
721 | struct page *page = virt_to_page(x);
| ^~~~~~~~~~~~
include/linux/scatterlist.h: In function 'sg_set_buf':
./include/generated/autoconf.h:846:28: error: invalid suffix "xUL" on integer constant
846 | #define CONFIG_PHYS_OFFSET 0x
| ^~
include/asm-generic/memory_model.h:69:27: note: in definition of macro '__pfn_to_page'
69 | ({ unsigned long __pfn = (pfn); \
| ^~~
include/uapi/linux/const.h:21:18: note: in expansion of macro '__AC'
21 | #define _AC(X,Y) __AC(X,Y)
| ^~~~
include/uapi/linux/const.h:25:18: note: in expansion of macro '_AC'
25 | #define _UL(x) (_AC(x, UL))
| ^~~
>> include/vdso/const.h:7:17: note: in expansion of macro '_UL'
7 | #define UL(x) (_UL(x))
| ^~~
arch/arm/include/asm/memory.h:141:26: note: in expansion of macro 'UL'
141 | #define PLAT_PHYS_OFFSET UL(CONFIG_PHYS_OFFSET)
| ^~
arch/arm/include/asm/memory.h:141:29: note: in expansion of macro 'CONFIG_PHYS_OFFSET'
141 | #define PLAT_PHYS_OFFSET UL(CONFIG_PHYS_OFFSET)
| ^~~~~~~~~~~~~~~~~~
arch/arm/include/asm/memory.h:244:21: note: in expansion of macro 'PLAT_PHYS_OFFSET'
244 | #define PHYS_OFFSET PLAT_PHYS_OFFSET
| ^~~~~~~~~~~~~~~~
arch/arm/include/asm/memory.h:245:42: note: in expansion of macro 'PHYS_OFFSET'
245 | #define PHYS_PFN_OFFSET ((unsigned long)(PHYS_OFFSET >> PAGE_SHIFT))
| ^~~~~~~~~~~
arch/arm/include/asm/memory.h:261:3: note: in expansion of macro 'PHYS_PFN_OFFSET'
261 | PHYS_PFN_OFFSET)
| ^~~~~~~~~~~~~~~
arch/arm/include/asm/memory.h:364:41: note: in expansion of macro 'virt_to_pfn'
364 | #define virt_to_page(kaddr) pfn_to_page(virt_to_pfn(kaddr))
| ^~~~~~~~~~~
include/linux/scatterlist.h:145:18: note: in expansion of macro 'virt_to_page'
145 | sg_set_page(sg, virt_to_page(buf), buflen, offset_in_page(buf));
| ^~~~~~~~~~~~
In file included from include/vdso/const.h:5,
from include/linux/const.h:4,
from include/linux/bits.h:5,
from include/linux/bitops.h:5,
from include/linux/kernel.h:12,
from include/asm-generic/bug.h:19,
from arch/arm/include/asm/bug.h:60,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/current.h:5,
from ./arch/arm/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from arch/arm/kernel/asm-offsets.c:11:
arch/arm/include/asm/dma-mapping.h: In function 'virt_to_dma':
./include/generated/autoconf.h:846:28: error: invalid suffix "xUL" on integer constant
846 | #define CONFIG_PHYS_OFFSET 0x
| ^~
include/uapi/linux/const.h:20:20: note: in definition of macro '__AC'
20 | #define __AC(X,Y) (X##Y)
| ^
include/uapi/linux/const.h:25:18: note: in expansion of macro '_AC'
25 | #define _UL(x) (_AC(x, UL))
| ^~~
>> include/vdso/const.h:7:17: note: in expansion of macro '_UL'
7 | #define UL(x) (_UL(x))
| ^~~
arch/arm/include/asm/memory.h:141:26: note: in expansion of macro 'UL'
141 | #define PLAT_PHYS_OFFSET UL(CONFIG_PHYS_OFFSET)
| ^~
arch/arm/include/asm/memory.h:141:29: note: in expansion of macro 'CONFIG_PHYS_OFFSET'
141 | #define PLAT_PHYS_OFFSET UL(CONFIG_PHYS_OFFSET)
| ^~~~~~~~~~~~~~~~~~
arch/arm/include/asm/memory.h:244:21: note: in expansion of macro 'PLAT_PHYS_OFFSET'
244 | #define PHYS_OFFSET PLAT_PHYS_OFFSET
| ^~~~~~~~~~~~~~~~
arch/arm/include/asm/memory.h:245:42: note: in expansion of macro 'PHYS_OFFSET'
245 | #define PHYS_PFN_OFFSET ((unsigned long)(PHYS_OFFSET >> PAGE_SHIFT))
| ^~~~~~~~~~~
arch/arm/include/asm/memory.h:261:3: note: in expansion of macro 'PHYS_PFN_OFFSET'
261 | PHYS_PFN_OFFSET)
| ^~~~~~~~~~~~~~~
arch/arm/include/asm/dma-mapping.h:67:26: note: in expansion of macro 'virt_to_pfn'
67 | return pfn_to_dma(dev, virt_to_pfn(addr));
| ^~~~~~~~~~~
In file included from arch/arm/include/asm/memory.h:370,
from arch/arm/include/asm/page.h:160,
from arch/arm/include/asm/thread_info.h:14,
from include/linux/thread_info.h:38,
from include/asm-generic/current.h:5,
from ./arch/arm/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from arch/arm/kernel/asm-offsets.c:11:
include/linux/dma-mapping.h: In function 'dma_map_single_attrs':
./include/generated/autoconf.h:846:28: error: invalid suffix "xUL" on integer constant
846 | #define CONFIG_PHYS_OFFSET 0x
| ^~
include/asm-generic/memory_model.h:69:27: note: in definition of macro '__pfn_to_page'
69 | ({ unsigned long __pfn = (pfn); \
| ^~~
include/uapi/linux/const.h:21:18: note: in expansion of macro '__AC'
21 | #define _AC(X,Y) __AC(X,Y)
| ^~~~
include/uapi/linux/const.h:25:18: note: in expansion of macro '_AC'
25 | #define _UL(x) (_AC(x, UL))
| ^~~
>> include/vdso/const.h:7:17: note: in expansion of macro '_UL'
7 | #define UL(x) (_UL(x))
| ^~~
arch/arm/include/asm/memory.h:141:26: note: in expansion of macro 'UL'
141 | #define PLAT_PHYS_OFFSET UL(CONFIG_PHYS_OFFSET)
| ^~
arch/arm/include/asm/memory.h:141:29: note: in expansion of macro 'CONFIG_PHYS_OFFSET'
141 | #define PLAT_PHYS_OFFSET UL(CONFIG_PHYS_OFFSET)
| ^~~~~~~~~~~~~~~~~~
arch/arm/include/asm/memory.h:244:21: note: in expansion of macro 'PLAT_PHYS_OFFSET'
244 | #define PHYS_OFFSET PLAT_PHYS_OFFSET
| ^~~~~~~~~~~~~~~~
arch/arm/include/asm/memory.h:245:42: note: in expansion of macro 'PHYS_OFFSET'
245 | #define PHYS_PFN_OFFSET ((unsigned long)(PHYS_OFFSET >> PAGE_SHIFT))
| ^~~~~~~~~~~
arch/arm/include/asm/memory.h:261:3: note: in expansion of macro 'PHYS_PFN_OFFSET'
261 | PHYS_PFN_OFFSET)
| ^~~~~~~~~~~~~~~
arch/arm/include/asm/memory.h:364:41: note: in expansion of macro 'virt_to_pfn'
364 | #define virt_to_page(kaddr) pfn_to_page(virt_to_pfn(kaddr))
| ^~~~~~~~~~~
include/linux/dma-mapping.h:588:33: note: in expansion of macro 'virt_to_page'
588 | return dma_map_page_attrs(dev, virt_to_page(ptr), offset_in_page(ptr),
| ^~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:101: arch/arm/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1112: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:179: sub-make] Error 2
28 real 27 user 18 sys 161.01% cpu make prepare
vim +/_UL +7 include/vdso/const.h
6
> 7 #define UL(x) (_UL(x))
8 #define ULL(x) (_ULL(x))
9
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[alaahl:for-upstream 2120/2349] drivers/net/ethernet/mellanox/mlx4/crdump.c:45:10: error: initializer element is not constant
by kbuild test robot
Hi Jacob,
FYI, the error/warning still remains.
tree: https://github.com/alaahl/linux.git for-upstream
head: ecee81987e3e8acb5d4cc0f18412874388547efb
commit: e8937681797c9af491c8a1e362a9db4f4aa1f471 [2120/2349] devlink: prepare to support region operations
config: i386-allyesconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-6) 7.4.0
reproduce:
git checkout e8937681797c9af491c8a1e362a9db4f4aa1f471
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/net/ethernet/mellanox/mlx4/crdump.c:45:10: error: initializer element is not constant
.name = region_cr_space_str,
^~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/mellanox/mlx4/crdump.c:45:10: note: (near initialization for 'region_cr_space_ops.name')
drivers/net/ethernet/mellanox/mlx4/crdump.c:49:10: error: initializer element is not constant
.name = region_fw_health_str,
^~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/mellanox/mlx4/crdump.c:49:10: note: (near initialization for 'region_fw_health_ops.name')
vim +45 drivers/net/ethernet/mellanox/mlx4/crdump.c
43
44 static const struct devlink_region_ops region_cr_space_ops = {
> 45 .name = region_cr_space_str,
46 };
47
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
Re: [PATCH net] inet_diag: add cgroup id attribute
by kbuild test robot
Hi Dmitry,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on net/master]
[also build test ERROR on linus/master v5.6]
[cannot apply to net-next/master sparc-next/master next-20200327]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Dmitry-Yakunin/inet_diag-add-cgr...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git a0ba26f37ea04e025a793ef5e5ac809221728ecb
config: um-x86_64_defconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-6) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=um SUBARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
net/ipv4/inet_diag.c: In function 'inet_diag_msg_attrs_fill':
>> net/ipv4/inet_diag.c:166:20: error: implicit declaration of function 'sock_cgroup_ptr'; did you mean 'task_cgroup_path'? [-Werror=implicit-function-declaration]
cgroup_id(sock_cgroup_ptr(&sk->sk_cgrp_data)),
^~~~~~~~~~~~~~~
task_cgroup_path
>> net/ipv4/inet_diag.c:166:20: warning: passing argument 1 of 'cgroup_id' makes pointer from integer without a cast [-Wint-conversion]
In file included from include/net/netprio_cgroup.h:11:0,
from include/linux/netdevice.h:42,
from include/net/inet_sock.h:19,
from include/net/icmp.h:19,
from net/ipv4/inet_diag.c:18:
include/linux/cgroup.h:308:19: note: expected 'struct cgroup *' but argument is of type 'int'
static inline u64 cgroup_id(struct cgroup *cgrp)
^~~~~~~~~
cc1: some warnings being treated as errors
vim +166 net/ipv4/inet_diag.c
142
143 if (net_admin && nla_put_u32(skb, INET_DIAG_MARK, sk->sk_mark))
144 goto errout;
145
146 if (ext & (1 << (INET_DIAG_CLASS_ID - 1)) ||
147 ext & (1 << (INET_DIAG_TCLASS - 1))) {
148 u32 classid = 0;
149
150 #ifdef CONFIG_SOCK_CGROUP_DATA
151 classid = sock_cgroup_classid(&sk->sk_cgrp_data);
152 #endif
153 /* Fallback to socket priority if class id isn't set.
154 * Classful qdiscs use it as direct reference to class.
155 * For cgroup2 classid is always zero.
156 */
157 if (!classid)
158 classid = sk->sk_priority;
159
160 if (nla_put_u32(skb, INET_DIAG_CLASS_ID, classid))
161 goto errout;
162 }
163
164 #ifdef CONFIG_CGROUPS
165 if (nla_put_u64_64bit(skb, INET_DIAG_CGROUP_ID,
> 166 cgroup_id(sock_cgroup_ptr(&sk->sk_cgrp_data)),
167 INET_DIAG_PAD))
168 goto errout;
169 #endif
170
171 r->idiag_uid = from_kuid_munged(user_ns, sock_i_uid(sk));
172 r->idiag_inode = sock_i_ino(sk);
173
174 return 0;
175 errout:
176 return 1;
177 }
178 EXPORT_SYMBOL_GPL(inet_diag_msg_attrs_fill);
179
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months