[hch-misc:swiotlb-init-cleanup 8/9] arch/x86/kernel/pci-swiotlb.c:19:19: warning: declaration specifier missing, defaulting to 'int'
by kernel test robot
tree: git://git.infradead.org/users/hch/misc.git swiotlb-init-cleanup
head: 3a793a9dab917734e620d2806265aff8c0228fa4
commit: ef34052a1649b34ac0d609aacd6f610f818ec5f0 [8/9] swiotlb: make the swiotlb_init interface more useful
config: x86_64-randconfig-a005 (https://download.01.org/0day-ci/archive/20220215/202202150231.OIUAqkov-lk...)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project ea071884b0cc7210b3cc5fe858f0e892a779a23b)
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 hch-misc git://git.infradead.org/users/hch/misc.git
git fetch --no-tags hch-misc swiotlb-init-cleanup
git checkout ef34052a1649b34ac0d609aacd6f610f818ec5f0
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/kernel/ kernel/dma/
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 >>):
arch/x86/kernel/pci-swiotlb.c:19:1: error: pasting formed '__iommu_entry_(', an invalid preprocessing token
IOMMU_INIT_FINISH(NULL,
^
arch/x86/include/asm/iommu_table.h:91:2: note: expanded from macro 'IOMMU_INIT_FINISH'
__IOMMU_INIT(_detect, _depend, _init, _late_init, 1)
^
arch/x86/include/asm/iommu_table.h:53:17: note: expanded from macro '__IOMMU_INIT'
__iommu_entry_##_detect __used \
^
>> arch/x86/kernel/pci-swiotlb.c:19:19: warning: declaration specifier missing, defaulting to 'int'
IOMMU_INIT_FINISH(NULL,
^
include/linux/stddef.h:8:16: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^
arch/x86/kernel/pci-swiotlb.c:19:19: error: expected ')'
include/linux/stddef.h:8:23: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^
arch/x86/kernel/pci-swiotlb.c:19:19: note: to match this '('
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^
>> arch/x86/kernel/pci-swiotlb.c:19:1: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers]
IOMMU_INIT_FINISH(NULL,
^
arch/x86/include/asm/iommu_table.h:91:2: note: expanded from macro 'IOMMU_INIT_FINISH'
__IOMMU_INIT(_detect, _depend, _init, _late_init, 1)
^
arch/x86/include/asm/iommu_table.h:52:9: note: expanded from macro '__IOMMU_INIT'
static const struct iommu_table_entry \
^
arch/x86/kernel/pci-swiotlb.c:19:1: error: illegal initializer (only variables can be initialized)
arch/x86/include/asm/iommu_table.h:91:2: note: expanded from macro 'IOMMU_INIT_FINISH'
__IOMMU_INIT(_detect, _depend, _init, _late_init, 1)
^
arch/x86/include/asm/iommu_table.h:53:3: note: expanded from macro '__IOMMU_INIT'
__iommu_entry_##_detect __used \
^
arch/x86/include/asm/iommu_table.h:53:3: note: expanded from macro '__iommu_entry_'
arch/x86/kernel/pci-swiotlb.c:44:5: error: use of undeclared identifier 'pci_swiotlb_detect_override'; did you mean 'pci_swiotlb_detect_4gb'?
pci_swiotlb_detect_override,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
pci_swiotlb_detect_4gb
arch/x86/include/asm/iommu_table.h:94:24: note: expanded from macro 'IOMMU_INIT'
__IOMMU_INIT(_detect, _depend, _init, _late_init, 0)
^
arch/x86/include/asm/iommu_table.h:56:14: note: expanded from macro '__IOMMU_INIT'
= {_detect, _depend, _early_init, _late_init, \
^
arch/x86/kernel/pci-swiotlb.c:28:12: note: 'pci_swiotlb_detect_4gb' declared here
int __init pci_swiotlb_detect_4gb(void)
^
arch/x86/kernel/pci-swiotlb.c:43:1: error: '__iommu_entry_pci_swiotlb_detect_4gb' causes a section type conflict with '__iommu_entry_'
IOMMU_INIT(pci_swiotlb_detect_4gb,
^
arch/x86/include/asm/iommu_table.h:94:2: note: expanded from macro 'IOMMU_INIT'
__IOMMU_INIT(_detect, _depend, _init, _late_init, 0)
^
arch/x86/include/asm/iommu_table.h:53:3: note: expanded from macro '__IOMMU_INIT'
__iommu_entry_##_detect __used \
^
<scratch space>:175:1: note: expanded from here
__iommu_entry_pci_swiotlb_detect_4gb
^
arch/x86/kernel/pci-swiotlb.c:19:1: note: declared here
IOMMU_INIT_FINISH(NULL,
^
arch/x86/include/asm/iommu_table.h:91:2: note: expanded from macro 'IOMMU_INIT_FINISH'
__IOMMU_INIT(_detect, _depend, _init, _late_init, 1)
^
arch/x86/include/asm/iommu_table.h:53:3: note: expanded from macro '__IOMMU_INIT'
__iommu_entry_##_detect __used \
^
arch/x86/include/asm/iommu_table.h:53:3: note: expanded from macro '__iommu_entry_'
2 warnings and 5 errors generated.
vim +/int +19 arch/x86/kernel/pci-swiotlb.c
18
> 19 IOMMU_INIT_FINISH(NULL,
20 pci_xen_swiotlb_detect,
21 pci_swiotlb_init,
22 pci_swiotlb_late_init);
23
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
[RFC PATCH] usb: gadget: f_uac1: ac_int_ep_desc_comp can be static
by kernel test robot
drivers/usb/gadget/function/f_uac1.c:144:34: warning: symbol 'ac_int_ep_desc_comp' was not declared. Should it be static?
Reported-by: kernel test robot <lkp(a)intel.com>
Signed-off-by: kernel test robot <lkp(a)intel.com>
---
drivers/usb/gadget/function/f_uac1.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/gadget/function/f_uac1.c b/drivers/usb/gadget/function/f_uac1.c
index 118da07b66a9dc..adfe84c7de1143 100644
--- a/drivers/usb/gadget/function/f_uac1.c
+++ b/drivers/usb/gadget/function/f_uac1.c
@@ -141,7 +141,7 @@ static struct usb_endpoint_descriptor ac_int_ep_desc = {
.bInterval = 4,
};
-struct usb_ss_ep_comp_descriptor ac_int_ep_desc_comp = {
+static struct usb_ss_ep_comp_descriptor ac_int_ep_desc_comp = {
.bLength = sizeof(ac_int_ep_desc_comp),
.bDescriptorType = USB_DT_SS_ENDPOINT_COMP,
.bMaxBurst = 0,
7 months, 1 week
Re: [RFC V2 01/21] rv: Add Runtime Verification (RV) interface
by kernel test robot
Hi Daniel,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on rostedt-trace/for-next]
[also build test WARNING on lwn/docs-next linus/master v5.17-rc4 next-20220214]
[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/Daniel-Bristot-de-Oliveira/The-R...
base: https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git for-next
config: hexagon-allyesconfig (https://download.01.org/0day-ci/archive/20220215/202202150143.3BpCqVdF-lk...)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project ea071884b0cc7210b3cc5fe858f0e892a779a23b)
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/f99370d1c81f0a3b56d6630ff62631f6e...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Daniel-Bristot-de-Oliveira/The-Runtime-Verification-RV-interface/20220214-193144
git checkout f99370d1c81f0a3b56d6630ff62631f6ecfdf8d8
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash kernel/trace/rv/
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 >>):
>> kernel/trace/rv/rv.c:189:6: warning: no previous prototype for function 'disable_monitor' [-Wmissing-prototypes]
void disable_monitor(struct rv_monitor_def *mdef)
^
kernel/trace/rv/rv.c:189:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void disable_monitor(struct rv_monitor_def *mdef)
^
static
>> kernel/trace/rv/rv.c:202:6: warning: no previous prototype for function 'enable_monitor' [-Wmissing-prototypes]
void enable_monitor(struct rv_monitor_def *mdef)
^
kernel/trace/rv/rv.c:202:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void enable_monitor(struct rv_monitor_def *mdef)
^
static
2 warnings generated.
vim +/disable_monitor +189 kernel/trace/rv/rv.c
185
186 /*
187 * Disable a given runtime monitor.
188 */
> 189 void disable_monitor(struct rv_monitor_def *mdef)
190 {
191 if (mdef->monitor->enabled) {
192 mdef->monitor->enabled = 0;
193 mdef->monitor->stop();
194 }
195
196 mdef->enabled = 0;
197 }
198
199 /*
200 * Enable a given monitor.
201 */
> 202 void enable_monitor(struct rv_monitor_def *mdef)
203 {
204 /*
205 * Reset all internal monitors before starting.
206 */
207 mdef->monitor->reset();
208 if (!mdef->monitor->enabled)
209 mdef->monitor->start();
210
211 mdef->monitor->enabled = 1;
212 mdef->enabled = 1;
213 }
214
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
[willy-pagecache:for-next 58/85] mm/folio-compat.c:181:9: error: implicit declaration of function 'folio_mlock'; did you mean 'folio_lock'?
by kernel test robot
tree: git://git.infradead.org/users/willy/pagecache for-next
head: c267b33d0001488f1d9dad12d6a87655e174d914
commit: 2cefeaf011db4a95ecb515cc2ca61d091a792ac1 [58/85] mm/rmap: Turn page_mlock() into folio_mlock()
config: h8300-alldefconfig (https://download.01.org/0day-ci/archive/20220214/202202142352.7A4VgqBz-lk...)
compiler: h8300-linux-gcc (GCC) 11.2.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 willy-pagecache git://git.infradead.org/users/willy/pagecache
git fetch --no-tags willy-pagecache for-next
git checkout 2cefeaf011db4a95ecb515cc2ca61d091a792ac1
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=h8300 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 >>):
mm/folio-compat.c:169:6: warning: no previous prototype for 'clear_page_mlock' [-Wmissing-prototypes]
169 | void clear_page_mlock(struct page *page)
| ^~~~~~~~~~~~~~~~
mm/folio-compat.c:174:6: error: redefinition of 'mlock_vma_page'
174 | void mlock_vma_page(struct page *page)
| ^~~~~~~~~~~~~~
In file included from mm/folio-compat.c:11:
mm/internal.h:503:20: note: previous definition of 'mlock_vma_page' with type 'void(struct page *)'
503 | static inline void mlock_vma_page(struct page *page) { }
| ^~~~~~~~~~~~~~
mm/folio-compat.c: In function 'mlock_vma_page':
mm/folio-compat.c:176:9: error: implicit declaration of function 'mlock_vma_folio'; did you mean 'mlock_vma_page'? [-Werror=implicit-function-declaration]
176 | mlock_vma_folio(page_folio(page));
| ^~~~~~~~~~~~~~~
| mlock_vma_page
mm/folio-compat.c: At top level:
mm/folio-compat.c:179:6: warning: no previous prototype for 'page_mlock' [-Wmissing-prototypes]
179 | void page_mlock(struct page *page)
| ^~~~~~~~~~
mm/folio-compat.c: In function 'page_mlock':
>> mm/folio-compat.c:181:9: error: implicit declaration of function 'folio_mlock'; did you mean 'folio_lock'? [-Werror=implicit-function-declaration]
181 | folio_mlock(page_folio(page));
| ^~~~~~~~~~~
| folio_lock
cc1: some warnings being treated as errors
vim +181 mm/folio-compat.c
178
179 void page_mlock(struct page *page)
180 {
> 181 folio_mlock(page_folio(page));
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
vmlinux.o: warning: objtool: __sev_es_nmi_complete()+0x39: call to ghcb_set_sw_exit_code() leaves .noinstr.text section
by kernel test robot
CC: linux-kernel(a)vger.kernel.org
TO: Nick Desaulniers <ndesaulniers(a)google.com>
CC: Kees Cook <keescook(a)chromium.org>
CC: Fangrui Song <maskray(a)google.com>
CC: Miguel Ojeda <ojeda(a)kernel.org>
CC: Nathan Chancellor <nathan(a)kernel.org>
Hi Nick,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 754e0b0e35608ed5206d6a67a791563c631cec07
commit: 380d53c45ff21f66870ee965b62613137f9d010d compiler_attributes.h: define __no_profile, add to noinstr
date: 8 months ago
config: x86_64-randconfig-a001 (https://download.01.org/0day-ci/archive/20220214/202202142331.ZR5kseK5-lk...)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project ea071884b0cc7210b3cc5fe858f0e892a779a23b)
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 380d53c45ff21f66870ee965b62613137f9d010d
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
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 >>):
vmlinux.o: warning: objtool: do_syscall_64()+0x18: call to static_key_count() leaves .noinstr.text section
vmlinux.o: warning: objtool: do_int80_syscall_32()+0x25: call to static_key_count() leaves .noinstr.text section
vmlinux.o: warning: objtool: __do_fast_syscall_32()+0x29: call to static_key_count() leaves .noinstr.text section
vmlinux.o: warning: objtool: vc_switch_off_ist()+0x27: call to ip_within_syscall_gap() leaves .noinstr.text section
vmlinux.o: warning: objtool: fixup_bad_iret()+0x21: call to memset() leaves .noinstr.text section
vmlinux.o: warning: objtool: in_task_stack()+0xc: call to task_stack_page() leaves .noinstr.text section
vmlinux.o: warning: objtool: in_entry_stack()+0x9: call to cpu_entry_stack() leaves .noinstr.text section
>> vmlinux.o: warning: objtool: __sev_es_nmi_complete()+0x39: call to ghcb_set_sw_exit_code() leaves .noinstr.text section
vmlinux.o: warning: objtool: safe_stack_exc_vmm_communication()+0x2b: call to memset() leaves .noinstr.text section
vmlinux.o: warning: objtool: debug_locks_off()+0x20: call to console_verbose() leaves .noinstr.text section
kallsyms failure: relative symbol value 0xffffffff045a1000 out of range in relative mode
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week