drivers/firmware/efi/mokvar-table.c:142:33: sparse: sparse: incorrect type in argument 1 (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c3d0e3fd41b7f0f5d5d5b6022ab7e813f04ea727
commit: 58c909022a5a56cd1d9e89c8c5461fd1f6a27bb5 efi: Support for MOK variable config table
date: 8 months ago
config: ia64-allmodconfig (attached as .config)
compiler: ia64-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
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# 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 58c909022a5a56cd1d9e89c8c5461fd1f6a27bb5
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/firmware/efi/mokvar-table.c:142:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *va @@
drivers/firmware/efi/mokvar-table.c:142:33: sparse: expected void volatile [noderef] __iomem *addr
drivers/firmware/efi/mokvar-table.c:142:33: sparse: got void *va
>> drivers/firmware/efi/mokvar-table.c:151:28: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *va @@ got void [noderef] __iomem * @@
drivers/firmware/efi/mokvar-table.c:151:28: sparse: expected void *va
drivers/firmware/efi/mokvar-table.c:151:28: sparse: got void [noderef] __iomem *
drivers/firmware/efi/mokvar-table.c:179:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *va @@
drivers/firmware/efi/mokvar-table.c:179:17: sparse: expected void volatile [noderef] __iomem *addr
drivers/firmware/efi/mokvar-table.c:179:17: sparse: got void *va
vim +142 drivers/firmware/efi/mokvar-table.c
77
78 /*
79 * efi_mokvar_table_init() - Early boot validation of EFI MOK config table
80 *
81 * If present, validate and compute the size of the EFI MOK variable
82 * configuration table. This table may be provided by an EFI boot loader
83 * as an alternative to ordinary EFI variables, due to platform-dependent
84 * limitations. The memory occupied by this table is marked as reserved.
85 *
86 * This routine must be called before efi_free_boot_services() in order
87 * to guarantee that it can mark the table as reserved.
88 *
89 * Implicit inputs:
90 * efi.mokvar_table: Physical address of EFI MOK variable config table
91 * or special value that indicates no such table.
92 *
93 * Implicit outputs:
94 * efi_mokvar_table_size: Computed size of EFI MOK variable config table.
95 * The table is considered present and valid if this
96 * is non-zero.
97 */
98 void __init efi_mokvar_table_init(void)
99 {
100 efi_memory_desc_t md;
101 u64 end_pa;
102 void *va = NULL;
103 size_t cur_offset = 0;
104 size_t offset_limit;
105 size_t map_size = 0;
106 size_t map_size_needed = 0;
107 size_t size;
108 struct efi_mokvar_table_entry *mokvar_entry;
109 int err = -EINVAL;
110
111 if (!efi_enabled(EFI_MEMMAP))
112 return;
113
114 if (efi.mokvar_table == EFI_INVALID_TABLE_ADDR)
115 return;
116 /*
117 * The EFI MOK config table must fit within a single EFI memory
118 * descriptor range.
119 */
120 err = efi_mem_desc_lookup(efi.mokvar_table, &md);
121 if (err) {
122 pr_warn("EFI MOKvar config table is not within the EFI memory map\n");
123 return;
124 }
125 end_pa = efi_mem_desc_end(&md);
126 if (efi.mokvar_table >= end_pa) {
127 pr_err("EFI memory descriptor containing MOKvar config table is invalid\n");
128 return;
129 }
130 offset_limit = end_pa - efi.mokvar_table;
131 /*
132 * Validate the MOK config table. Since there is no table header
133 * from which we could get the total size of the MOK config table,
134 * we compute the total size as we validate each variably sized
135 * entry, remapping as necessary.
136 */
137 while (cur_offset + sizeof(*mokvar_entry) <= offset_limit) {
138 mokvar_entry = va + cur_offset;
139 map_size_needed = cur_offset + sizeof(*mokvar_entry);
140 if (map_size_needed > map_size) {
141 if (va)
> 142 early_memunmap(va, map_size);
143 /*
144 * Map a little more than the fixed size entry
145 * header, anticipating some data. It's safe to
146 * do so as long as we stay within current memory
147 * descriptor.
148 */
149 map_size = min(map_size_needed + 2*EFI_PAGE_SIZE,
150 offset_limit);
> 151 va = early_memremap(efi.mokvar_table, map_size);
152 if (!va) {
153 pr_err("Failed to map EFI MOKvar config table pa=0x%lx, size=%zu.\n",
154 efi.mokvar_table, map_size);
155 return;
156 }
157 mokvar_entry = va + cur_offset;
158 }
159
160 /* Check for last sentinel entry */
161 if (mokvar_entry->name[0] == '\0') {
162 if (mokvar_entry->data_size != 0)
163 break;
164 err = 0;
165 break;
166 }
167
168 /* Sanity check that the name is null terminated */
169 size = strnlen(mokvar_entry->name,
170 sizeof(mokvar_entry->name));
171 if (size >= sizeof(mokvar_entry->name))
172 break;
173
174 /* Advance to the next entry */
175 cur_offset = map_size_needed + mokvar_entry->data_size;
176 }
177
178 if (va)
179 early_memunmap(va, map_size);
180 if (err) {
181 pr_err("EFI MOKvar config table is not valid\n");
182 return;
183 }
184 efi_mem_reserve(efi.mokvar_table, map_size_needed);
185 efi_mokvar_table_size = map_size_needed;
186 }
187
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[arm-platforms:irq/domain_cleanup 22/40] include/linux/pgtable.h:1511:2: error: Missing MAX_POSSIBLE_PHYSMEM_BITS definition
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/domain_cleanup
head: 15ae82a261d8c7675a17bf904a86210f95382cab
commit: 71069bb8e7be1c9c49daf89a6bccb7878d55a3dd [22/40] irqdomain: Introduce irq_resolve_mapping()
config: x86_64-randconfig-a005-20210519 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8e93d10633d751a3e9169bf9fa68326925ffa097)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/com...
git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
git fetch --no-tags arm-platforms irq/domain_cleanup
git checkout 71069bb8e7be1c9c49daf89a6bccb7878d55a3dd
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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 arch/x86/entry/vdso/vdso32/vclock_gettime.c:29:
In file included from arch/x86/entry/vdso/vdso32/../vclock_gettime.c:15:
In file included from arch/x86/entry/vdso/../../../../lib/vdso/gettimeofday.c:5:
In file included from include/vdso/datapage.h:137:
In file included from arch/x86/include/asm/vdso/gettimeofday.h:21:
In file included from include/clocksource/hyperv_timer.h:18:
In file included from arch/x86/include/asm/mshyperv.h:7:
In file included from include/linux/msi.h:7:
In file included from arch/x86/include/asm/msi.h:5:
In file included from arch/x86/include/asm/irqdomain.h:5:
In file included from include/linux/irqdomain.h:34:
In file included from include/linux/irq.h:21:
In file included from include/linux/slab.h:136:
In file included from include/linux/kasan.h:28:
>> include/linux/pgtable.h:1511:2: error: Missing MAX_POSSIBLE_PHYSMEM_BITS definition
#error Missing MAX_POSSIBLE_PHYSMEM_BITS definition
^
In file included from arch/x86/entry/vdso/vdso32/vclock_gettime.c:29:
arch/x86/entry/vdso/vdso32/../vclock_gettime.c:70:5: warning: no previous prototype for function '__vdso_clock_gettime64' [-Wmissing-prototypes]
int __vdso_clock_gettime64(clockid_t clock, struct __kernel_timespec *ts)
^
arch/x86/entry/vdso/vdso32/../vclock_gettime.c:70:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __vdso_clock_gettime64(clockid_t clock, struct __kernel_timespec *ts)
^
static
1 warning and 1 error generated.
vim +1511 include/linux/pgtable.h
^1da177e4c3f415 include/asm-generic/pgtable.h Linus Torvalds 2005-04-16 1503
cef397038167ac1 include/linux/pgtable.h Arnd Bergmann 2020-11-11 1504 #if !defined(MAX_POSSIBLE_PHYSMEM_BITS) && !defined(CONFIG_64BIT)
cef397038167ac1 include/linux/pgtable.h Arnd Bergmann 2020-11-11 1505 #ifdef CONFIG_PHYS_ADDR_T_64BIT
cef397038167ac1 include/linux/pgtable.h Arnd Bergmann 2020-11-11 1506 /*
cef397038167ac1 include/linux/pgtable.h Arnd Bergmann 2020-11-11 1507 * ZSMALLOC needs to know the highest PFN on 32-bit architectures
cef397038167ac1 include/linux/pgtable.h Arnd Bergmann 2020-11-11 1508 * with physical address space extension, but falls back to
cef397038167ac1 include/linux/pgtable.h Arnd Bergmann 2020-11-11 1509 * BITS_PER_LONG otherwise.
cef397038167ac1 include/linux/pgtable.h Arnd Bergmann 2020-11-11 1510 */
cef397038167ac1 include/linux/pgtable.h Arnd Bergmann 2020-11-11 @1511 #error Missing MAX_POSSIBLE_PHYSMEM_BITS definition
cef397038167ac1 include/linux/pgtable.h Arnd Bergmann 2020-11-11 1512 #else
cef397038167ac1 include/linux/pgtable.h Arnd Bergmann 2020-11-11 1513 #define MAX_POSSIBLE_PHYSMEM_BITS 32
cef397038167ac1 include/linux/pgtable.h Arnd Bergmann 2020-11-11 1514 #endif
cef397038167ac1 include/linux/pgtable.h Arnd Bergmann 2020-11-11 1515 #endif
cef397038167ac1 include/linux/pgtable.h Arnd Bergmann 2020-11-11 1516
:::::: The code at line 1511 was first introduced by commit
:::::: cef397038167ac15d085914493d6c86385773709 arch: pgtable: define MAX_POSSIBLE_PHYSMEM_BITS where needed
:::::: TO: Arnd Bergmann <arnd(a)arndb.de>
:::::: CC: Arnd Bergmann <arnd(a)arndb.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[chrome-os:chromeos-5.10 11827/11855] drivers/pinctrl/pinctrl-single.c:725:6: error: variable 'num_pins_in_register' set but not used
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head: 7f83e3957ff9006bacf8f0384e1f4992b8308c59
commit: a2f0fe92566de31d701bbb9952d576b48c1c4dd3 [11827/11855] CHROMIUM: Merge 'v5.10.37' into chromeos-5.10
config: csky-randconfig-r023-20210519 (attached as .config)
compiler: csky-linux-gcc (GCC) 9.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
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.10
git checkout a2f0fe92566de31d701bbb9952d576b48c1c4dd3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=csky
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/pinctrl/pinctrl-single.c: In function 'pcs_allocate_pin_table':
>> drivers/pinctrl/pinctrl-single.c:725:6: error: variable 'num_pins_in_register' set but not used [-Werror=unused-but-set-variable]
725 | int num_pins_in_register = 0;
| ^~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/num_pins_in_register +725 drivers/pinctrl/pinctrl-single.c
8b8b091bf07fa7 Tony Lindgren 2012-07-10 712
8b8b091bf07fa7 Tony Lindgren 2012-07-10 713 /**
8b8b091bf07fa7 Tony Lindgren 2012-07-10 714 * pcs_allocate_pin_table() - adds all the pins for the pinctrl driver
8b8b091bf07fa7 Tony Lindgren 2012-07-10 715 * @pcs: pcs driver instance
8b8b091bf07fa7 Tony Lindgren 2012-07-10 716 *
8b8b091bf07fa7 Tony Lindgren 2012-07-10 717 * In case of errors, resources are freed in pcs_free_resources.
8b8b091bf07fa7 Tony Lindgren 2012-07-10 718 *
8b8b091bf07fa7 Tony Lindgren 2012-07-10 719 * If your hardware needs holes in the address space, then just set
8b8b091bf07fa7 Tony Lindgren 2012-07-10 720 * up multiple driver instances.
8b8b091bf07fa7 Tony Lindgren 2012-07-10 721 */
150632b09aadf1 Greg Kroah-Hartman 2012-12-21 722 static int pcs_allocate_pin_table(struct pcs_device *pcs)
8b8b091bf07fa7 Tony Lindgren 2012-07-10 723 {
8b8b091bf07fa7 Tony Lindgren 2012-07-10 724 int mux_bytes, nr_pins, i;
6f924b0b7cbe2a Manjunathappa, Prakash 2013-05-21 @725 int num_pins_in_register = 0;
8b8b091bf07fa7 Tony Lindgren 2012-07-10 726
8b8b091bf07fa7 Tony Lindgren 2012-07-10 727 mux_bytes = pcs->width / BITS_PER_BYTE;
4e7e8017a80e18 Manjunathappa, Prakash 2013-05-21 728
4e7e8017a80e18 Manjunathappa, Prakash 2013-05-21 729 if (pcs->bits_per_mux) {
4e7e8017a80e18 Manjunathappa, Prakash 2013-05-21 730 pcs->bits_per_pin = fls(pcs->fmask);
4e7e8017a80e18 Manjunathappa, Prakash 2013-05-21 731 nr_pins = (pcs->size * BITS_PER_BYTE) / pcs->bits_per_pin;
6f924b0b7cbe2a Manjunathappa, Prakash 2013-05-21 732 num_pins_in_register = pcs->width / pcs->bits_per_pin;
4e7e8017a80e18 Manjunathappa, Prakash 2013-05-21 733 } else {
8b8b091bf07fa7 Tony Lindgren 2012-07-10 734 nr_pins = pcs->size / mux_bytes;
4e7e8017a80e18 Manjunathappa, Prakash 2013-05-21 735 }
8b8b091bf07fa7 Tony Lindgren 2012-07-10 736
8b8b091bf07fa7 Tony Lindgren 2012-07-10 737 dev_dbg(pcs->dev, "allocating %i pins\n", nr_pins);
a86854d0c599b3 Kees Cook 2018-06-12 738 pcs->pins.pa = devm_kcalloc(pcs->dev,
a86854d0c599b3 Kees Cook 2018-06-12 739 nr_pins, sizeof(*pcs->pins.pa),
8b8b091bf07fa7 Tony Lindgren 2012-07-10 740 GFP_KERNEL);
8b8b091bf07fa7 Tony Lindgren 2012-07-10 741 if (!pcs->pins.pa)
8b8b091bf07fa7 Tony Lindgren 2012-07-10 742 return -ENOMEM;
8b8b091bf07fa7 Tony Lindgren 2012-07-10 743
8b8b091bf07fa7 Tony Lindgren 2012-07-10 744 pcs->desc.pins = pcs->pins.pa;
8b8b091bf07fa7 Tony Lindgren 2012-07-10 745 pcs->desc.npins = nr_pins;
8b8b091bf07fa7 Tony Lindgren 2012-07-10 746
8b8b091bf07fa7 Tony Lindgren 2012-07-10 747 for (i = 0; i < pcs->desc.npins; i++) {
8b8b091bf07fa7 Tony Lindgren 2012-07-10 748 unsigned offset;
8b8b091bf07fa7 Tony Lindgren 2012-07-10 749 int res;
8b8b091bf07fa7 Tony Lindgren 2012-07-10 750
da40d5fec5d70e Hanna Hawa 2021-03-19 751 offset = pcs_pin_reg_offset_get(pcs, i);
353fcebf49e24e Hanna Hawa 2021-03-19 752 res = pcs_add_pin(pcs, offset);
8b8b091bf07fa7 Tony Lindgren 2012-07-10 753 if (res < 0) {
8b8b091bf07fa7 Tony Lindgren 2012-07-10 754 dev_err(pcs->dev, "error adding pins: %i\n", res);
8b8b091bf07fa7 Tony Lindgren 2012-07-10 755 return res;
8b8b091bf07fa7 Tony Lindgren 2012-07-10 756 }
8b8b091bf07fa7 Tony Lindgren 2012-07-10 757 }
8b8b091bf07fa7 Tony Lindgren 2012-07-10 758
8b8b091bf07fa7 Tony Lindgren 2012-07-10 759 return 0;
8b8b091bf07fa7 Tony Lindgren 2012-07-10 760 }
8b8b091bf07fa7 Tony Lindgren 2012-07-10 761
:::::: The code at line 725 was first introduced by commit
:::::: 6f924b0b7cbe2a3d9c08f6134343fd366c35fdfa pinctrl: pinctrl-single: pin names for pinctrl-single.bits
:::::: TO: Manjunathappa, Prakash <prakash.pm(a)ti.com>
:::::: CC: Linus Walleij <linus.walleij(a)linaro.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[kdave:for-next 46/66] scrub.c:undefined reference to `__divdi3'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-next
head: 7b1e6a22a4fd0dafc5b97a2c92fd3b13ccab2bdc
commit: b4a9f4bee31449bcea678b88146c420130a7a63d [46/66] btrfs: scrub: per-device bandwidth control
config: riscv-randconfig-c023-20210519 (attached as .config)
compiler: riscv32-linux-gcc (GCC) 9.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://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git/commit/?i...
git remote add kdave https://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git
git fetch --no-tags kdave for-next
git checkout b4a9f4bee31449bcea678b88146c420130a7a63d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv
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 >>):
riscv32-linux-ld: section .data LMA [0000000000800000,0000000000a0ee5b] overlaps section .text LMA [0000000000086ce0,0000000000c429a5]
riscv32-linux-ld: section __ex_table LMA [00000000012c3620,00000000012c4607] overlaps section .rodata LMA [0000000000c42a00,000000000134b268]
riscv32-linux-ld: section .rodata VMA [00000000c0c42a00,00000000c134b268] overlaps section .bss VMA [00000000c0bca000,00000000c12c361f]
riscv32-linux-ld: fs/btrfs/scrub.o: in function `scrub_put_ctx':
scrub.c:(.text+0x1ed4): undefined reference to `__udivdi3'
riscv32-linux-ld: fs/btrfs/scrub.o: in function `.L395':
>> scrub.c:(.text+0x1f5e): undefined reference to `__divdi3'
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for LOCKDEP
Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86)
Selected by
- PROVE_LOCKING && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
- LOCK_STAT && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
- DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[linux-stable-rc:linux-4.19.y 2415/4433] arch/riscv/include/asm/processor.h:82:2: error: implicit declaration of function 'barrier'
by kernel test robot
Hi Arvind,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.19.y
head: da830a1e3cb8f3c83379e2ba1d109c5991a1b8e7
commit: b207caff4176e3a6ba273243da2db2e595e4aad2 [2415/4433] compiler.h: fix barrier_data() on clang
config: riscv-allyesconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 9.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://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gi...
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-4.19.y
git checkout b207caff4176e3a6ba273243da2db2e595e4aad2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv
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 include/linux/prefetch.h:15,
from drivers/net/ethernet/intel/i40evf/i40e_txrx.c:4:
arch/riscv/include/asm/processor.h: In function 'cpu_relax':
>> arch/riscv/include/asm/processor.h:82:2: error: implicit declaration of function 'barrier' [-Werror=implicit-function-declaration]
82 | barrier();
| ^~~~~~~
In file included from include/linux/sctp.h:57,
from drivers/net/ethernet/intel/i40evf/i40evf.h:17,
from drivers/net/ethernet/intel/i40evf/i40e_txrx.c:7:
include/uapi/linux/sctp.h: At top level:
include/uapi/linux/sctp.h:390:1: warning: alignment 4 of 'struct sctp_paddr_change' is less than 8 [-Wpacked-not-aligned]
390 | } __attribute__((packed, aligned(4)));
| ^
include/uapi/linux/sctp.h:719:1: warning: alignment 4 of 'struct sctp_setpeerprim' is less than 8 [-Wpacked-not-aligned]
719 | } __attribute__((packed, aligned(4)));
| ^
include/uapi/linux/sctp.h:718:26: warning: 'sspp_addr' offset 4 in 'struct sctp_setpeerprim' isn't aligned to 8 [-Wpacked-not-aligned]
718 | struct sockaddr_storage sspp_addr;
| ^~~~~~~~~
include/uapi/linux/sctp.h:732:1: warning: alignment 4 of 'struct sctp_prim' is less than 8 [-Wpacked-not-aligned]
732 | } __attribute__((packed, aligned(4)));
| ^
include/uapi/linux/sctp.h:731:26: warning: 'ssp_addr' offset 4 in 'struct sctp_prim' isn't aligned to 8 [-Wpacked-not-aligned]
731 | struct sockaddr_storage ssp_addr;
| ^~~~~~~~
include/uapi/linux/sctp.h:783:1: warning: alignment 4 of 'struct sctp_paddrparams' is less than 8 [-Wpacked-not-aligned]
783 | } __attribute__((packed, aligned(4)));
| ^
include/uapi/linux/sctp.h:775:26: warning: 'spp_address' offset 4 in 'struct sctp_paddrparams' isn't aligned to 8 [-Wpacked-not-aligned]
775 | struct sockaddr_storage spp_address;
| ^~~~~~~~~~~
include/uapi/linux/sctp.h:896:1: warning: alignment 4 of 'struct sctp_paddrinfo' is less than 8 [-Wpacked-not-aligned]
896 | } __attribute__((packed, aligned(4)));
| ^
include/uapi/linux/sctp.h:890:26: warning: 'spinfo_address' offset 4 in 'struct sctp_paddrinfo' isn't aligned to 8 [-Wpacked-not-aligned]
890 | struct sockaddr_storage spinfo_address;
| ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/barrier +82 arch/riscv/include/asm/processor.h
7db91e57a0acde Palmer Dabbelt 2017-07-10 73
7db91e57a0acde Palmer Dabbelt 2017-07-10 74
7db91e57a0acde Palmer Dabbelt 2017-07-10 75 static inline void cpu_relax(void)
7db91e57a0acde Palmer Dabbelt 2017-07-10 76 {
7db91e57a0acde Palmer Dabbelt 2017-07-10 77 #ifdef __riscv_muldiv
7db91e57a0acde Palmer Dabbelt 2017-07-10 78 int dummy;
7db91e57a0acde Palmer Dabbelt 2017-07-10 79 /* In lieu of a halt instruction, induce a long-latency stall. */
7db91e57a0acde Palmer Dabbelt 2017-07-10 80 __asm__ __volatile__ ("div %0, %0, zero" : "=r" (dummy));
7db91e57a0acde Palmer Dabbelt 2017-07-10 81 #endif
7db91e57a0acde Palmer Dabbelt 2017-07-10 @82 barrier();
7db91e57a0acde Palmer Dabbelt 2017-07-10 83 }
7db91e57a0acde Palmer Dabbelt 2017-07-10 84
:::::: The code at line 82 was first introduced by commit
:::::: 7db91e57a0acde126a162ababfb1e0ab190130cb RISC-V: Task implementation
:::::: TO: Palmer Dabbelt <palmer(a)dabbelt.com>
:::::: CC: Palmer Dabbelt <palmer(a)dabbelt.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[linux-stable-rc:linux-5.10.y 4713/5262] drivers/usb/dwc2/core_intr.c:710:7: error: 'struct dwc2_hsotg' has no member named 'bus_suspended'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.10.y
head: 689e89aee55c565fe90fcdf8a7e53f2f976c5946
commit: 62bb46f51f916d25c5ee7178d52baf4a80c5bf55 [4713/5262] usb: dwc2: Fix hibernation between host and device modes.
config: ia64-randconfig-r004-20210519 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.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://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gi...
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-5.10.y
git checkout 62bb46f51f916d25c5ee7178d52baf4a80c5bf55
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
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 arch/ia64/include/asm/pgtable.h:154,
from include/linux/pgtable.h:6,
from arch/ia64/include/asm/uaccess.h:40,
from include/linux/uaccess.h:11,
from arch/ia64/include/asm/sections.h:11,
from include/linux/interrupt.h:20,
from drivers/usb/dwc2/core_intr.c:45:
arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
arch/ia64/include/asm/mmu_context.h:137:41: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable]
137 | unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
| ^~~~~~~
drivers/usb/dwc2/core_intr.c: In function 'dwc_handle_gpwrdn_disc_det':
>> drivers/usb/dwc2/core_intr.c:710:7: error: 'struct dwc2_hsotg' has no member named 'bus_suspended'
710 | hsotg->bus_suspended = 0;
| ^~
vim +710 drivers/usb/dwc2/core_intr.c
662
663 /**
664 * dwc_handle_gpwrdn_disc_det() - Handles the gpwrdn disconnect detect.
665 * Exits hibernation without restoring registers.
666 *
667 * @hsotg: Programming view of DWC_otg controller
668 * @gpwrdn: GPWRDN register
669 */
670 static inline void dwc_handle_gpwrdn_disc_det(struct dwc2_hsotg *hsotg,
671 u32 gpwrdn)
672 {
673 u32 gpwrdn_tmp;
674
675 /* Switch-on voltage to the core */
676 gpwrdn_tmp = dwc2_readl(hsotg, GPWRDN);
677 gpwrdn_tmp &= ~GPWRDN_PWRDNSWTCH;
678 dwc2_writel(hsotg, gpwrdn_tmp, GPWRDN);
679 udelay(5);
680
681 /* Reset core */
682 gpwrdn_tmp = dwc2_readl(hsotg, GPWRDN);
683 gpwrdn_tmp &= ~GPWRDN_PWRDNRSTN;
684 dwc2_writel(hsotg, gpwrdn_tmp, GPWRDN);
685 udelay(5);
686
687 /* Disable Power Down Clamp */
688 gpwrdn_tmp = dwc2_readl(hsotg, GPWRDN);
689 gpwrdn_tmp &= ~GPWRDN_PWRDNCLMP;
690 dwc2_writel(hsotg, gpwrdn_tmp, GPWRDN);
691 udelay(5);
692
693 /* Deassert reset core */
694 gpwrdn_tmp = dwc2_readl(hsotg, GPWRDN);
695 gpwrdn_tmp |= GPWRDN_PWRDNRSTN;
696 dwc2_writel(hsotg, gpwrdn_tmp, GPWRDN);
697 udelay(5);
698
699 /* Disable PMU interrupt */
700 gpwrdn_tmp = dwc2_readl(hsotg, GPWRDN);
701 gpwrdn_tmp &= ~GPWRDN_PMUINTSEL;
702 dwc2_writel(hsotg, gpwrdn_tmp, GPWRDN);
703
704 /* De-assert Wakeup Logic */
705 gpwrdn_tmp = dwc2_readl(hsotg, GPWRDN);
706 gpwrdn_tmp &= ~GPWRDN_PMUACTV;
707 dwc2_writel(hsotg, gpwrdn_tmp, GPWRDN);
708
709 hsotg->hibernated = 0;
> 710 hsotg->bus_suspended = 0;
711
712 if (gpwrdn & GPWRDN_IDSTS) {
713 hsotg->op_state = OTG_STATE_B_PERIPHERAL;
714 dwc2_core_init(hsotg, false);
715 dwc2_enable_global_interrupts(hsotg);
716 dwc2_hsotg_core_init_disconnected(hsotg, false);
717 dwc2_hsotg_core_connect(hsotg);
718 } else {
719 hsotg->op_state = OTG_STATE_A_HOST;
720
721 /* Initialize the Core for Host mode */
722 dwc2_core_init(hsotg, false);
723 dwc2_enable_global_interrupts(hsotg);
724 dwc2_hcd_start(hsotg);
725 }
726 }
727
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
include/linux/avf/virtchnl.h:852:33: error: enumerator value for 'virtchnl_static_assert_virtchnl_rss_cfg' is not an integer constant
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 8ac91e6c6033ebc12c5c1e4aa171b81a662bd70f
commit: 222a8ab01698148c00c271cda82d96f4e6e7b0a8 ice: Enable RSS configure for AVF
date: 4 weeks ago
config: m68k-randconfig-r025-20210519 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.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://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 222a8ab01698148c00c271cda82d96f4e6e7b0a8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
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 drivers/net/ethernet/intel/i40e/i40e_prototype.h:9,
from drivers/net/ethernet/intel/i40e/i40e.h:41,
from drivers/net/ethernet/intel/i40e/i40e_main.c:11:
include/linux/avf/virtchnl.h:153:36: warning: division by zero [-Wdiv-by-zero]
153 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:844:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
844 | VIRTCHNL_CHECK_STRUCT_LEN(2312, virtchnl_proto_hdrs);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:844:33: error: enumerator value for 'virtchnl_static_assert_virtchnl_proto_hdrs' is not an integer constant
844 | VIRTCHNL_CHECK_STRUCT_LEN(2312, virtchnl_proto_hdrs);
| ^~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:153:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
153 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:153:36: warning: division by zero [-Wdiv-by-zero]
153 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:852:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
852 | VIRTCHNL_CHECK_STRUCT_LEN(2444, virtchnl_rss_cfg);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/avf/virtchnl.h:852:33: error: enumerator value for 'virtchnl_static_assert_virtchnl_rss_cfg' is not an integer constant
852 | VIRTCHNL_CHECK_STRUCT_LEN(2444, virtchnl_rss_cfg);
| ^~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:153:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
153 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:153:36: warning: division by zero [-Wdiv-by-zero]
153 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:893:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
893 | VIRTCHNL_CHECK_STRUCT_LEN(2604, virtchnl_fdir_rule);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:893:33: error: enumerator value for 'virtchnl_static_assert_virtchnl_fdir_rule' is not an integer constant
893 | VIRTCHNL_CHECK_STRUCT_LEN(2604, virtchnl_fdir_rule);
| ^~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:153:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
153 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:153:36: warning: division by zero [-Wdiv-by-zero]
153 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:947:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
947 | VIRTCHNL_CHECK_STRUCT_LEN(2616, virtchnl_fdir_add);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:947:33: error: enumerator value for 'virtchnl_static_assert_virtchnl_fdir_add' is not an integer constant
947 | VIRTCHNL_CHECK_STRUCT_LEN(2616, virtchnl_fdir_add);
| ^~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:153:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
153 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
vim +/virtchnl_static_assert_virtchnl_rss_cfg +852 include/linux/avf/virtchnl.h
851
> 852 VIRTCHNL_CHECK_STRUCT_LEN(2444, virtchnl_rss_cfg);
853
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months