drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c:1807:1: warning: unused variable 'iwl_dbgfs_dbg_time_point_ops'
by kernel test robot
Hi Mordechay,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0c18f29aae7ce3dadd26d8ee3505d07cc982df75
commit: 9dbb62a29042e543ab6671dc12c1473c3cbc58c2 iwlwifi: mvm: add debugfs entry to trigger a dump as any time-point
date: 5 months ago
config: x86_64-randconfig-r015-20210623 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project b259740801d3515810ecc15bf0c24b0d476a1608)
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/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 9dbb62a29042e543ab6671dc12c1473c3cbc58c2
# 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 warnings (new ones prefixed by >>):
>> drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c:1807:1: warning: unused variable 'iwl_dbgfs_dbg_time_point_ops' [-Wunused-const-variable]
MVM_DEBUGFS_WRITE_FILE_OPS(dbg_time_point, 64);
^
drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c:1554:2: note: expanded from macro 'MVM_DEBUGFS_WRITE_FILE_OPS'
_MVM_DEBUGFS_WRITE_FILE_OPS(name, bufsz, struct iwl_mvm)
^
drivers/net/wireless/intel/iwlwifi/mvm/debugfs.h:39:37: note: expanded from macro '_MVM_DEBUGFS_WRITE_FILE_OPS'
static const struct file_operations iwl_dbgfs_##name##_ops = { \
^
<scratch space>:26:1: note: expanded from here
iwl_dbgfs_dbg_time_point_ops
^
1 warning generated.
vim +/iwl_dbgfs_dbg_time_point_ops +1807 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
1780
1781 /* Device wide debugfs entries */
1782 MVM_DEBUGFS_READ_FILE_OPS(ctdp_budget);
1783 MVM_DEBUGFS_WRITE_FILE_OPS(stop_ctdp, 8);
1784 MVM_DEBUGFS_WRITE_FILE_OPS(force_ctkill, 8);
1785 MVM_DEBUGFS_WRITE_FILE_OPS(tx_flush, 16);
1786 MVM_DEBUGFS_WRITE_FILE_OPS(sta_drain, 8);
1787 MVM_DEBUGFS_WRITE_FILE_OPS(send_echo_cmd, 8);
1788 MVM_DEBUGFS_READ_WRITE_FILE_OPS(sram, 64);
1789 MVM_DEBUGFS_READ_WRITE_FILE_OPS(set_nic_temperature, 64);
1790 MVM_DEBUGFS_READ_FILE_OPS(nic_temp);
1791 MVM_DEBUGFS_READ_FILE_OPS(stations);
1792 MVM_DEBUGFS_READ_FILE_OPS(rs_data);
1793 MVM_DEBUGFS_READ_FILE_OPS(bt_notif);
1794 MVM_DEBUGFS_READ_FILE_OPS(bt_cmd);
1795 MVM_DEBUGFS_READ_WRITE_FILE_OPS(disable_power_off, 64);
1796 MVM_DEBUGFS_READ_FILE_OPS(fw_rx_stats);
1797 MVM_DEBUGFS_READ_FILE_OPS(drv_rx_stats);
1798 MVM_DEBUGFS_READ_FILE_OPS(fw_ver);
1799 MVM_DEBUGFS_READ_FILE_OPS(phy_integration_ver);
1800 MVM_DEBUGFS_WRITE_FILE_OPS(fw_restart, 10);
1801 MVM_DEBUGFS_WRITE_FILE_OPS(fw_nmi, 10);
1802 MVM_DEBUGFS_WRITE_FILE_OPS(bt_tx_prio, 10);
1803 MVM_DEBUGFS_WRITE_FILE_OPS(bt_force_ant, 10);
1804 MVM_DEBUGFS_READ_WRITE_FILE_OPS(scan_ant_rxchain, 8);
1805 MVM_DEBUGFS_READ_WRITE_FILE_OPS(fw_dbg_conf, 8);
1806 MVM_DEBUGFS_WRITE_FILE_OPS(fw_dbg_collect, 64);
> 1807 MVM_DEBUGFS_WRITE_FILE_OPS(dbg_time_point, 64);
1808 MVM_DEBUGFS_WRITE_FILE_OPS(indirection_tbl,
1809 (IWL_RSS_INDIRECTION_TABLE_SIZE * 2));
1810 MVM_DEBUGFS_WRITE_FILE_OPS(inject_packet, 512);
1811 MVM_DEBUGFS_WRITE_FILE_OPS(inject_beacon_ie, 512);
1812 MVM_DEBUGFS_WRITE_FILE_OPS(inject_beacon_ie_restore, 512);
1813
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[linux-next:master 186/12271] kernel/trace/trace_events_hist.c:4566:13: warning: stack frame size (1344) exceeds limit (1024) in function 'hist_trigger_print_key'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 4238b1710eadd18dd16de0288a2bc5bb84614b4e
commit: b1b3e4b16c4801379ba4d9c8807dc78bd0e40f2b [186/12271] kallsyms: Increase maximum kernel symbol length to 512
config: powerpc-randconfig-r004-20210622 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project b259740801d3515810ecc15bf0c24b0d476a1608)
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout b1b3e4b16c4801379ba4d9c8807dc78bd0e40f2b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
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 kernel/trace/trace_events_hist.c:8:
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:11:
In file included from include/linux/bitops.h:32:
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>:309:9: note: previous definition is here
#define __lwsync __builtin_ppc_lwsync
^
kernel/trace/trace_events_hist.c:5200:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
int ret;
^
>> kernel/trace/trace_events_hist.c:4566:13: warning: stack frame size (1344) exceeds limit (1024) in function 'hist_trigger_print_key' [-Wframe-larger-than]
static void hist_trigger_print_key(struct seq_file *m,
^
3 warnings generated.
vim +/hist_trigger_print_key +4566 kernel/trace/trace_events_hist.c
69a0200c2e25d6 Tom Zanussi 2016-03-03 4565
a3785b7eca8fd4 Tom Zanussi 2019-02-13 @4566 static void hist_trigger_print_key(struct seq_file *m,
a3785b7eca8fd4 Tom Zanussi 2019-02-13 4567 struct hist_trigger_data *hist_data,
a3785b7eca8fd4 Tom Zanussi 2019-02-13 4568 void *key,
7ef224d1d0e3a1 Tom Zanussi 2016-03-03 4569 struct tracing_map_elt *elt)
7ef224d1d0e3a1 Tom Zanussi 2016-03-03 4570 {
7ef224d1d0e3a1 Tom Zanussi 2016-03-03 4571 struct hist_field *key_field;
c6afad49d127f6 Tom Zanussi 2016-03-03 4572 char str[KSYM_SYMBOL_LEN];
69a0200c2e25d6 Tom Zanussi 2016-03-03 4573 bool multiline = false;
85013256cf0162 Tom Zanussi 2017-09-22 4574 const char *field_name;
7ef224d1d0e3a1 Tom Zanussi 2016-03-03 4575 unsigned int i;
7ef224d1d0e3a1 Tom Zanussi 2016-03-03 4576 u64 uval;
7ef224d1d0e3a1 Tom Zanussi 2016-03-03 4577
7ef224d1d0e3a1 Tom Zanussi 2016-03-03 4578 seq_puts(m, "{ ");
7ef224d1d0e3a1 Tom Zanussi 2016-03-03 4579
7ef224d1d0e3a1 Tom Zanussi 2016-03-03 4580 for_each_hist_key_field(i, hist_data) {
7ef224d1d0e3a1 Tom Zanussi 2016-03-03 4581 key_field = hist_data->fields[i];
7ef224d1d0e3a1 Tom Zanussi 2016-03-03 4582
7ef224d1d0e3a1 Tom Zanussi 2016-03-03 4583 if (i > hist_data->n_vals)
7ef224d1d0e3a1 Tom Zanussi 2016-03-03 4584 seq_puts(m, ", ");
7ef224d1d0e3a1 Tom Zanussi 2016-03-03 4585
85013256cf0162 Tom Zanussi 2017-09-22 4586 field_name = hist_field_name(key_field, 0);
85013256cf0162 Tom Zanussi 2017-09-22 4587
0c4a6b4666e8eb Tom Zanussi 2016-03-03 4588 if (key_field->flags & HIST_FIELD_FL_HEX) {
0c4a6b4666e8eb Tom Zanussi 2016-03-03 4589 uval = *(u64 *)(key + key_field->offset);
85013256cf0162 Tom Zanussi 2017-09-22 4590 seq_printf(m, "%s: %llx", field_name, uval);
c6afad49d127f6 Tom Zanussi 2016-03-03 4591 } else if (key_field->flags & HIST_FIELD_FL_SYM) {
c6afad49d127f6 Tom Zanussi 2016-03-03 4592 uval = *(u64 *)(key + key_field->offset);
c6afad49d127f6 Tom Zanussi 2016-03-03 4593 sprint_symbol_no_offset(str, uval);
85013256cf0162 Tom Zanussi 2017-09-22 4594 seq_printf(m, "%s: [%llx] %-45s", field_name,
85013256cf0162 Tom Zanussi 2017-09-22 4595 uval, str);
c6afad49d127f6 Tom Zanussi 2016-03-03 4596 } else if (key_field->flags & HIST_FIELD_FL_SYM_OFFSET) {
c6afad49d127f6 Tom Zanussi 2016-03-03 4597 uval = *(u64 *)(key + key_field->offset);
c6afad49d127f6 Tom Zanussi 2016-03-03 4598 sprint_symbol(str, uval);
85013256cf0162 Tom Zanussi 2017-09-22 4599 seq_printf(m, "%s: [%llx] %-55s", field_name,
85013256cf0162 Tom Zanussi 2017-09-22 4600 uval, str);
6b4827ad028a1a Tom Zanussi 2016-03-03 4601 } else if (key_field->flags & HIST_FIELD_FL_EXECNAME) {
af6a29bcaf8ff2 Tom Zanussi 2018-01-15 4602 struct hist_elt_data *elt_data = elt->private_data;
af6a29bcaf8ff2 Tom Zanussi 2018-01-15 4603 char *comm;
af6a29bcaf8ff2 Tom Zanussi 2018-01-15 4604
af6a29bcaf8ff2 Tom Zanussi 2018-01-15 4605 if (WARN_ON_ONCE(!elt_data))
af6a29bcaf8ff2 Tom Zanussi 2018-01-15 4606 return;
af6a29bcaf8ff2 Tom Zanussi 2018-01-15 4607
af6a29bcaf8ff2 Tom Zanussi 2018-01-15 4608 comm = elt_data->comm;
6b4827ad028a1a Tom Zanussi 2016-03-03 4609
6b4827ad028a1a Tom Zanussi 2016-03-03 4610 uval = *(u64 *)(key + key_field->offset);
85013256cf0162 Tom Zanussi 2017-09-22 4611 seq_printf(m, "%s: %-16s[%10llu]", field_name,
85013256cf0162 Tom Zanussi 2017-09-22 4612 comm, uval);
316961988b5ec7 Tom Zanussi 2016-03-03 4613 } else if (key_field->flags & HIST_FIELD_FL_SYSCALL) {
316961988b5ec7 Tom Zanussi 2016-03-03 4614 const char *syscall_name;
316961988b5ec7 Tom Zanussi 2016-03-03 4615
316961988b5ec7 Tom Zanussi 2016-03-03 4616 uval = *(u64 *)(key + key_field->offset);
316961988b5ec7 Tom Zanussi 2016-03-03 4617 syscall_name = get_syscall_name(uval);
316961988b5ec7 Tom Zanussi 2016-03-03 4618 if (!syscall_name)
316961988b5ec7 Tom Zanussi 2016-03-03 4619 syscall_name = "unknown_syscall";
316961988b5ec7 Tom Zanussi 2016-03-03 4620
85013256cf0162 Tom Zanussi 2017-09-22 4621 seq_printf(m, "%s: %-30s[%3llu]", field_name,
85013256cf0162 Tom Zanussi 2017-09-22 4622 syscall_name, uval);
69a0200c2e25d6 Tom Zanussi 2016-03-03 4623 } else if (key_field->flags & HIST_FIELD_FL_STACKTRACE) {
69a0200c2e25d6 Tom Zanussi 2016-03-03 4624 seq_puts(m, "stacktrace:\n");
69a0200c2e25d6 Tom Zanussi 2016-03-03 4625 hist_trigger_stacktrace_print(m,
69a0200c2e25d6 Tom Zanussi 2016-03-03 4626 key + key_field->offset,
69a0200c2e25d6 Tom Zanussi 2016-03-03 4627 HIST_STACKTRACE_DEPTH);
69a0200c2e25d6 Tom Zanussi 2016-03-03 4628 multiline = true;
4b94f5b7b4a5ff Namhyung Kim 2016-03-03 4629 } else if (key_field->flags & HIST_FIELD_FL_LOG2) {
85013256cf0162 Tom Zanussi 2017-09-22 4630 seq_printf(m, "%s: ~ 2^%-2llu", field_name,
4b94f5b7b4a5ff Namhyung Kim 2016-03-03 4631 *(u64 *)(key + key_field->offset));
0c4a6b4666e8eb Tom Zanussi 2016-03-03 4632 } else if (key_field->flags & HIST_FIELD_FL_STRING) {
85013256cf0162 Tom Zanussi 2017-09-22 4633 seq_printf(m, "%s: %-50s", field_name,
76a3b0c8ac344e Tom Zanussi 2016-03-03 4634 (char *)(key + key_field->offset));
7ef224d1d0e3a1 Tom Zanussi 2016-03-03 4635 } else {
76a3b0c8ac344e Tom Zanussi 2016-03-03 4636 uval = *(u64 *)(key + key_field->offset);
85013256cf0162 Tom Zanussi 2017-09-22 4637 seq_printf(m, "%s: %10llu", field_name, uval);
7ef224d1d0e3a1 Tom Zanussi 2016-03-03 4638 }
7ef224d1d0e3a1 Tom Zanussi 2016-03-03 4639 }
7ef224d1d0e3a1 Tom Zanussi 2016-03-03 4640
69a0200c2e25d6 Tom Zanussi 2016-03-03 4641 if (!multiline)
69a0200c2e25d6 Tom Zanussi 2016-03-03 4642 seq_puts(m, " ");
69a0200c2e25d6 Tom Zanussi 2016-03-03 4643
7ef224d1d0e3a1 Tom Zanussi 2016-03-03 4644 seq_puts(m, "}");
a3785b7eca8fd4 Tom Zanussi 2019-02-13 4645 }
a3785b7eca8fd4 Tom Zanussi 2019-02-13 4646
:::::: The code at line 4566 was first introduced by commit
:::::: a3785b7eca8fd45c7c39f2ddfcd67368af30c1b4 tracing: Add hist trigger snapshot() action
:::::: TO: Tom Zanussi <tom.zanussi(a)linux.intel.com>
:::::: CC: Steven Rostedt (VMware) <rostedt(a)goodmis.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
drivers/vdpa/virtio_pci/vp_vdpa.c:168 vp_vdpa_request_irq() warn: inconsistent indenting
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0c18f29aae7ce3dadd26d8ee3505d07cc982df75
commit: 64b9f64f80a6f4b7ea51bf0510119cb15e801dc6 vdpa: introduce virtio pci driver
date: 7 weeks ago
config: microblaze-randconfig-m031-20210622 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
smatch warnings:
drivers/vdpa/virtio_pci/vp_vdpa.c:168 vp_vdpa_request_irq() warn: inconsistent indenting
vim +168 drivers/vdpa/virtio_pci/vp_vdpa.c
124
125 static int vp_vdpa_request_irq(struct vp_vdpa *vp_vdpa)
126 {
127 struct virtio_pci_modern_device *mdev = &vp_vdpa->mdev;
128 struct pci_dev *pdev = mdev->pci_dev;
129 int i, ret, irq;
130 int queues = vp_vdpa->queues;
131 int vectors = queues + 1;
132
133 ret = pci_alloc_irq_vectors(pdev, vectors, vectors, PCI_IRQ_MSIX);
134 if (ret != vectors) {
135 dev_err(&pdev->dev,
136 "vp_vdpa: fail to allocate irq vectors want %d but %d\n",
137 vectors, ret);
138 return ret;
139 }
140
141 vp_vdpa->vectors = vectors;
142
143 for (i = 0; i < queues; i++) {
144 snprintf(vp_vdpa->vring[i].msix_name, VP_VDPA_NAME_SIZE,
145 "vp-vdpa[%s]-%d\n", pci_name(pdev), i);
146 irq = pci_irq_vector(pdev, i);
147 ret = devm_request_irq(&pdev->dev, irq,
148 vp_vdpa_vq_handler,
149 0, vp_vdpa->vring[i].msix_name,
150 &vp_vdpa->vring[i]);
151 if (ret) {
152 dev_err(&pdev->dev,
153 "vp_vdpa: fail to request irq for vq %d\n", i);
154 goto err;
155 }
156 vp_modern_queue_vector(mdev, i, i);
157 vp_vdpa->vring[i].irq = irq;
158 }
159
160 snprintf(vp_vdpa->msix_name, VP_VDPA_NAME_SIZE, "vp-vdpa[%s]-config\n",
161 pci_name(pdev));
162 irq = pci_irq_vector(pdev, queues);
163 ret = devm_request_irq(&pdev->dev, irq, vp_vdpa_config_handler, 0,
164 vp_vdpa->msix_name, vp_vdpa);
165 if (ret) {
166 dev_err(&pdev->dev,
167 "vp_vdpa: fail to request irq for vq %d\n", i);
> 168 goto err;
169 }
170 vp_modern_config_vector(mdev, queues);
171 vp_vdpa->config_irq = irq;
172
173 return 0;
174 err:
175 vp_vdpa_free_irq(vp_vdpa);
176 return ret;
177 }
178
---
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 20/54] KVM: x86/mmu: Add struct and helpers to retrieve MMU role bits from regs
by kernel test robot
Hi Sean,
I love your patch! Perhaps something to improve:
[auto build test WARNING on kvm/queue]
[also build test WARNING on next-20210622]
[cannot apply to linus/master vhost/linux-next v5.13-rc7]
[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/Sean-Christopherson/KVM-x86-mmu-...
base: https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
config: x86_64-randconfig-a002-20210622 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project b3634d3e88b7f26534a5057bff182b7dced584fc)
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://github.com/0day-ci/linux/commit/01d7a0135a12b1e0e5134d0575e424fd2...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Sean-Christopherson/KVM-x86-mmu-Bug-fixes-and-summer-cleaning/20210623-020645
git checkout 01d7a0135a12b1e0e5134d0575e424fd20d1a90f
# 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 warnings (new ones prefixed by >>):
>> arch/x86/kvm/mmu/mmu.c:209:26: warning: no previous prototype for function 'vcpu_to_role_regs' [-Wmissing-prototypes]
struct kvm_mmu_role_regs vcpu_to_role_regs(struct kvm_vcpu *vcpu)
^
arch/x86/kvm/mmu/mmu.c:209:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct kvm_mmu_role_regs vcpu_to_role_regs(struct kvm_vcpu *vcpu)
^
static
arch/x86/kvm/mmu/mmu.c:199:1: warning: unused function '____is_cr0_wp' [-Wunused-function]
BUILD_MMU_ROLE_REGS_ACCESSOR(cr0, wp, X86_CR0_WP);
^
arch/x86/kvm/mmu/mmu.c:194:20: note: expanded from macro 'BUILD_MMU_ROLE_REGS_ACCESSOR'
static inline bool ____is_##reg##_##name(struct kvm_mmu_role_regs *regs)\
^
<scratch space>:58:1: note: expanded from here
____is_cr0_wp
^
arch/x86/kvm/mmu/mmu.c:200:1: warning: unused function '____is_cr4_pse' [-Wunused-function]
BUILD_MMU_ROLE_REGS_ACCESSOR(cr4, pse, X86_CR4_PSE);
^
arch/x86/kvm/mmu/mmu.c:194:20: note: expanded from macro 'BUILD_MMU_ROLE_REGS_ACCESSOR'
static inline bool ____is_##reg##_##name(struct kvm_mmu_role_regs *regs)\
^
<scratch space>:62:1: note: expanded from here
____is_cr4_pse
^
arch/x86/kvm/mmu/mmu.c:202:1: warning: unused function '____is_cr4_smep' [-Wunused-function]
BUILD_MMU_ROLE_REGS_ACCESSOR(cr4, smep, X86_CR4_SMEP);
^
arch/x86/kvm/mmu/mmu.c:194:20: note: expanded from macro 'BUILD_MMU_ROLE_REGS_ACCESSOR'
static inline bool ____is_##reg##_##name(struct kvm_mmu_role_regs *regs)\
^
<scratch space>:70:1: note: expanded from here
____is_cr4_smep
^
arch/x86/kvm/mmu/mmu.c:203:1: warning: unused function '____is_cr4_smap' [-Wunused-function]
BUILD_MMU_ROLE_REGS_ACCESSOR(cr4, smap, X86_CR4_SMAP);
^
arch/x86/kvm/mmu/mmu.c:194:20: note: expanded from macro 'BUILD_MMU_ROLE_REGS_ACCESSOR'
static inline bool ____is_##reg##_##name(struct kvm_mmu_role_regs *regs)\
^
<scratch space>:74:1: note: expanded from here
____is_cr4_smap
^
arch/x86/kvm/mmu/mmu.c:204:1: warning: unused function '____is_cr4_pke' [-Wunused-function]
BUILD_MMU_ROLE_REGS_ACCESSOR(cr4, pke, X86_CR4_PKE);
^
arch/x86/kvm/mmu/mmu.c:194:20: note: expanded from macro 'BUILD_MMU_ROLE_REGS_ACCESSOR'
static inline bool ____is_##reg##_##name(struct kvm_mmu_role_regs *regs)\
^
<scratch space>:78:1: note: expanded from here
____is_cr4_pke
^
arch/x86/kvm/mmu/mmu.c:205:1: warning: unused function '____is_cr4_la57' [-Wunused-function]
BUILD_MMU_ROLE_REGS_ACCESSOR(cr4, la57, X86_CR4_LA57);
^
arch/x86/kvm/mmu/mmu.c:194:20: note: expanded from macro 'BUILD_MMU_ROLE_REGS_ACCESSOR'
static inline bool ____is_##reg##_##name(struct kvm_mmu_role_regs *regs)\
^
<scratch space>:82:1: note: expanded from here
____is_cr4_la57
^
arch/x86/kvm/mmu/mmu.c:206:1: warning: unused function '____is_efer_nx' [-Wunused-function]
BUILD_MMU_ROLE_REGS_ACCESSOR(efer, nx, EFER_NX);
^
arch/x86/kvm/mmu/mmu.c:194:20: note: expanded from macro 'BUILD_MMU_ROLE_REGS_ACCESSOR'
static inline bool ____is_##reg##_##name(struct kvm_mmu_role_regs *regs)\
^
<scratch space>:85:1: note: expanded from here
____is_efer_nx
^
8 warnings generated.
vim +/vcpu_to_role_regs +209 arch/x86/kvm/mmu/mmu.c
208
> 209 struct kvm_mmu_role_regs vcpu_to_role_regs(struct kvm_vcpu *vcpu)
210 {
211 struct kvm_mmu_role_regs regs = {
212 .cr0 = kvm_read_cr0_bits(vcpu, KVM_MMU_CR0_ROLE_BITS),
213 .cr4 = kvm_read_cr4_bits(vcpu, KVM_MMU_CR4_ROLE_BITS),
214 .efer = vcpu->arch.efer,
215 };
216
217 return regs;
218 }
219
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
Re: [to-be-updated] mm-rename-pud_page_vaddr-to-pud_pgtable-and-make-it-return-pmd_t.patch removed from -mm tree
by kernel test robot
Hi,
I love your patch! Perhaps something to improve:
[auto build test WARNING on powerpc/next]
[also build test WARNING on tip/x86/mm asm-generic/master linus/master sparc/master v5.13-rc7]
[cannot apply to sparc-next/master next-20210622]
[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/akpm-linux-foundation-org/mm-ren...
base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: riscv-randconfig-r036-20210622 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project b3634d3e88b7f26534a5057bff182b7dced584fc)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://github.com/0day-ci/linux/commit/490957abd94a7b67576c0029c771c6691...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review akpm-linux-foundation-org/mm-rename-pud_page_vaddr-to-pud_pgtable-and-make-it-return-pmd_t-patch-removed-from-mm-tree/20210617-075958
git checkout 490957abd94a7b67576c0029c771c6691dce1878
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 warnings (new ones prefixed by >>):
>> arch/riscv/mm/kasan_init.c:122:29: warning: comparison between pointer and integer ('pmd_t *' and 'unsigned long') [-Wpointer-integer-compare]
if (pgd_page_vaddr(*pgdp) == (unsigned long)lm_alias(kasan_early_shadow_pmd) &&
~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/mm/kasan_init.c:154:30: warning: comparison between pointer and integer ('pmd_t *' and 'unsigned long') [-Wpointer-integer-compare]
if (pgd_page_vaddr(*pgd_k) == (unsigned long)lm_alias(kasan_early_shadow_pmd)) {
~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
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
- LOCK_STAT && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
- DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
vim +122 arch/riscv/mm/kasan_init.c
d127c19c7bea61 Alexandre Ghiti 2021-02-08 107
1987501b1130c6 Jisheng Zhang 2021-03-30 108 static void __init kasan_populate_pgd(unsigned long vaddr, unsigned long end)
d127c19c7bea61 Alexandre Ghiti 2021-02-08 109 {
d127c19c7bea61 Alexandre Ghiti 2021-02-08 110 phys_addr_t phys_addr;
d127c19c7bea61 Alexandre Ghiti 2021-02-08 111 pgd_t *pgdp = pgd_offset_k(vaddr);
d127c19c7bea61 Alexandre Ghiti 2021-02-08 112 unsigned long next;
d127c19c7bea61 Alexandre Ghiti 2021-02-08 113
d127c19c7bea61 Alexandre Ghiti 2021-02-08 114 do {
d127c19c7bea61 Alexandre Ghiti 2021-02-08 115 next = pgd_addr_end(vaddr, end);
d7fbcf40df86bb Alexandre Ghiti 2021-02-08 116
d7fbcf40df86bb Alexandre Ghiti 2021-02-08 117 /*
d7fbcf40df86bb Alexandre Ghiti 2021-02-08 118 * pgdp can't be none since kasan_early_init initialized all KASAN
d7fbcf40df86bb Alexandre Ghiti 2021-02-08 119 * shadow region with kasan_early_shadow_pmd: if this is stillthe case,
d7fbcf40df86bb Alexandre Ghiti 2021-02-08 120 * that means we can try to allocate a hugepage as a replacement.
d7fbcf40df86bb Alexandre Ghiti 2021-02-08 121 */
d7fbcf40df86bb Alexandre Ghiti 2021-02-08 @122 if (pgd_page_vaddr(*pgdp) == (unsigned long)lm_alias(kasan_early_shadow_pmd) &&
d7fbcf40df86bb Alexandre Ghiti 2021-02-08 123 IS_ALIGNED(vaddr, PGDIR_SIZE) && (next - vaddr) >= PGDIR_SIZE) {
d7fbcf40df86bb Alexandre Ghiti 2021-02-08 124 phys_addr = memblock_phys_alloc(PGDIR_SIZE, PGDIR_SIZE);
d7fbcf40df86bb Alexandre Ghiti 2021-02-08 125 if (phys_addr) {
d7fbcf40df86bb Alexandre Ghiti 2021-02-08 126 set_pgd(pgdp, pfn_pgd(PFN_DOWN(phys_addr), PAGE_KERNEL));
d7fbcf40df86bb Alexandre Ghiti 2021-02-08 127 continue;
d7fbcf40df86bb Alexandre Ghiti 2021-02-08 128 }
d7fbcf40df86bb Alexandre Ghiti 2021-02-08 129 }
d7fbcf40df86bb Alexandre Ghiti 2021-02-08 130
d127c19c7bea61 Alexandre Ghiti 2021-02-08 131 kasan_populate_pmd(pgdp, vaddr, next);
d127c19c7bea61 Alexandre Ghiti 2021-02-08 132 } while (pgdp++, vaddr = next, vaddr != end);
d127c19c7bea61 Alexandre Ghiti 2021-02-08 133 }
d127c19c7bea61 Alexandre Ghiti 2021-02-08 134
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months