drivers/iommu/rockchip-iommu.c:839:43: error: 'struct dev_archdata' has no member named 'iommu'
by kbuild test robot
Hi Krzysztof,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 051e6b7e34b9bd24f46725f74994a4d3a653966e
commit: e93a1695d7fb551376b1c1220a267d032b6ad159 iommu: Enable compile testing for some of drivers
date: 2 months ago
config: ia64-randconfig-r015-20200515 (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
git checkout e93a1695d7fb551376b1c1220a267d032b6ad159
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
drivers/iommu/rockchip-iommu.c: In function 'rk_iommu_from_dev':
>> drivers/iommu/rockchip-iommu.c:839:43: error: 'struct dev_archdata' has no member named 'iommu'
839 | struct rk_iommudata *data = dev->archdata.iommu;
| ^
drivers/iommu/rockchip-iommu.c: In function 'rk_iommu_add_device':
drivers/iommu/rockchip-iommu.c:1063:22: error: 'struct dev_archdata' has no member named 'iommu'
1063 | data = dev->archdata.iommu;
| ^
drivers/iommu/rockchip-iommu.c: In function 'rk_iommu_remove_device':
drivers/iommu/rockchip-iommu.c:1084:43: error: 'struct dev_archdata' has no member named 'iommu'
1084 | struct rk_iommudata *data = dev->archdata.iommu;
| ^
drivers/iommu/rockchip-iommu.c: In function 'rk_iommu_of_xlate':
drivers/iommu/rockchip-iommu.c:1115:15: error: 'struct dev_archdata' has no member named 'iommu'
1115 | dev->archdata.iommu = data;
| ^
vim +839 drivers/iommu/rockchip-iommu.c
c68a292152d322 Daniel Kurtz 2014-11-03 836
c68a292152d322 Daniel Kurtz 2014-11-03 837 static struct rk_iommu *rk_iommu_from_dev(struct device *dev)
c68a292152d322 Daniel Kurtz 2014-11-03 838 {
5fd577c3eac3bd Jeffy Chen 2018-03-23 @839 struct rk_iommudata *data = dev->archdata.iommu;
c68a292152d322 Daniel Kurtz 2014-11-03 840
5fd577c3eac3bd Jeffy Chen 2018-03-23 841 return data ? data->iommu : NULL;
c68a292152d322 Daniel Kurtz 2014-11-03 842 }
c68a292152d322 Daniel Kurtz 2014-11-03 843
:::::: The code at line 839 was first introduced by commit
:::::: 5fd577c3eac3bdb9aebfec01e9b3d7f07a14f2dd iommu/rockchip: Use OF_IOMMU to attach devices automatically
:::::: TO: Jeffy Chen <jeffy.chen(a)rock-chips.com>
:::::: CC: Joerg Roedel <jroedel(a)suse.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[RFC PATCH] staging: rtl8192u: indicate_packets() can be static
by kbuild test robot
Signed-off-by: kbuild test robot <lkp(a)intel.com>
---
ieee80211_rx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c
index 3309f64be4c94..bceff1ba3d7d4 100644
--- a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c
+++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c
@@ -520,7 +520,7 @@ static bool AddReorderEntry(struct rx_ts_record *pTS, struct rx_reorder_entry *p
return true;
}
-void indicate_packets(struct ieee80211_device *ieee, struct ieee80211_rxb *rxb)
+static void indicate_packets(struct ieee80211_device *ieee, struct ieee80211_rxb *rxb)
{
struct net_device_stats *stats = &ieee->stats;
struct net_device *dev = ieee->dev;
2 years, 4 months
[peterz-queue:locking/kcsan 14/21] arch/riscv/mm/pageattr.c:30:21: sparse: sparse: cast to non-scalar
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/kcsan
head: ffed638b6a2180da8fd002a46632d746af72b299
commit: 7b364f0949ae2dd205d5e9afa4b82ee17030d928 [14/21] READ_ONCE: Drop pointer qualifiers when reading from scalar types
config: riscv-randconfig-s001-20200518 (attached as .config)
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-193-gb8fad4bc-dirty
git checkout 7b364f0949ae2dd205d5e9afa4b82ee17030d928
# save the attached .config to linux build tree
make C=1 ARCH=riscv CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> arch/riscv/mm/pageattr.c:30:21: sparse: sparse: cast to non-scalar
>> arch/riscv/mm/pageattr.c:30:21: sparse: sparse: cast from non-scalar
arch/riscv/mm/pageattr.c:43:21: sparse: sparse: cast to non-scalar
arch/riscv/mm/pageattr.c:43:21: sparse: sparse: cast from non-scalar
arch/riscv/mm/pageattr.c:56:21: sparse: sparse: cast to non-scalar
arch/riscv/mm/pageattr.c:56:21: sparse: sparse: cast from non-scalar
arch/riscv/mm/pageattr.c:69:21: sparse: sparse: cast to non-scalar
arch/riscv/mm/pageattr.c:69:21: sparse: sparse: cast from non-scalar
arch/riscv/mm/pageattr.c:82:21: sparse: sparse: cast to non-scalar
arch/riscv/mm/pageattr.c:82:21: sparse: sparse: cast from non-scalar
arch/riscv/mm/pageattr.c:130:5: sparse: sparse: symbol 'set_memory_ro' was not declared. Should it be static?
arch/riscv/mm/pageattr.c:136:5: sparse: sparse: symbol 'set_memory_rw' was not declared. Should it be static?
arch/riscv/mm/pageattr.c:142:5: sparse: sparse: symbol 'set_memory_x' was not declared. Should it be static?
arch/riscv/mm/pageattr.c:147:5: sparse: sparse: symbol 'set_memory_nx' was not declared. Should it be static?
vim +30 arch/riscv/mm/pageattr.c
d3ab332a5021235 Zong Li 2020-03-10 26
d3ab332a5021235 Zong Li 2020-03-10 27 static int pageattr_pgd_entry(pgd_t *pgd, unsigned long addr,
d3ab332a5021235 Zong Li 2020-03-10 28 unsigned long next, struct mm_walk *walk)
d3ab332a5021235 Zong Li 2020-03-10 29 {
d3ab332a5021235 Zong Li 2020-03-10 @30 pgd_t val = READ_ONCE(*pgd);
d3ab332a5021235 Zong Li 2020-03-10 31
d3ab332a5021235 Zong Li 2020-03-10 32 if (pgd_leaf(val)) {
d3ab332a5021235 Zong Li 2020-03-10 33 val = __pgd(set_pageattr_masks(pgd_val(val), walk));
d3ab332a5021235 Zong Li 2020-03-10 34 set_pgd(pgd, val);
d3ab332a5021235 Zong Li 2020-03-10 35 }
d3ab332a5021235 Zong Li 2020-03-10 36
d3ab332a5021235 Zong Li 2020-03-10 37 return 0;
d3ab332a5021235 Zong Li 2020-03-10 38 }
d3ab332a5021235 Zong Li 2020-03-10 39
:::::: The code at line 30 was first introduced by commit
:::::: d3ab332a5021235a74fd832a49c6a99404920d88 riscv: add ARCH_HAS_SET_MEMORY support
:::::: TO: Zong Li <zong.li(a)sifive.com>
:::::: CC: Palmer Dabbelt <palmerdabbelt(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
Re: [PATCH] HID: i2c-hid: Enable touchpad wakeup from Suspend-to-Idle
by kbuild test robot
Hi Kai-Heng,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.7-rc6 next-20200515]
[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/Kai-Heng-Feng/HID-i2c-hid-Enable...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git b9bbe6ed63b2b9f2c9ee5cbd0f2c946a2723f4ce
config: parisc-randconfig-r031-20200518 (attached as .config)
compiler: hppa64-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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/module.h:12,
from drivers/hid/i2c-hid/i2c-hid-core.c:21:
drivers/hid/i2c-hid/i2c-hid-core.c: In function 'i2c_hid_probe':
>> drivers/hid/i2c-hid/i2c-hid-core.c:1075:6: error: 'acpi_gbl_FADT' undeclared (first use in this function)
1075 | if (acpi_gbl_FADT.flags & ACPI_FADT_LOW_POWER_S0) {
| ^~~~~~~~~~~~~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
>> drivers/hid/i2c-hid/i2c-hid-core.c:1075:2: note: in expansion of macro 'if'
1075 | if (acpi_gbl_FADT.flags & ACPI_FADT_LOW_POWER_S0) {
| ^~
drivers/hid/i2c-hid/i2c-hid-core.c:1075:6: note: each undeclared identifier is reported only once for each function it appears in
1075 | if (acpi_gbl_FADT.flags & ACPI_FADT_LOW_POWER_S0) {
| ^~~~~~~~~~~~~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
>> drivers/hid/i2c-hid/i2c-hid-core.c:1075:2: note: in expansion of macro 'if'
1075 | if (acpi_gbl_FADT.flags & ACPI_FADT_LOW_POWER_S0) {
| ^~
vim +/acpi_gbl_FADT +1075 drivers/hid/i2c-hid/i2c-hid-core.c
995
996 static int i2c_hid_probe(struct i2c_client *client,
997 const struct i2c_device_id *dev_id)
998 {
999 int ret;
1000 struct i2c_hid *ihid;
1001 struct hid_device *hid;
1002 __u16 hidRegister;
1003 struct i2c_hid_platform_data *platform_data = client->dev.platform_data;
1004
1005 dbg_hid("HID probe called for i2c 0x%02x\n", client->addr);
1006
1007 if (!client->irq) {
1008 dev_err(&client->dev,
1009 "HID over i2c has not been provided an Int IRQ\n");
1010 return -EINVAL;
1011 }
1012
1013 if (client->irq < 0) {
1014 if (client->irq != -EPROBE_DEFER)
1015 dev_err(&client->dev,
1016 "HID over i2c doesn't have a valid IRQ\n");
1017 return client->irq;
1018 }
1019
1020 ihid = devm_kzalloc(&client->dev, sizeof(*ihid), GFP_KERNEL);
1021 if (!ihid)
1022 return -ENOMEM;
1023
1024 if (client->dev.of_node) {
1025 ret = i2c_hid_of_probe(client, &ihid->pdata);
1026 if (ret)
1027 return ret;
1028 } else if (!platform_data) {
1029 ret = i2c_hid_acpi_pdata(client, &ihid->pdata);
1030 if (ret)
1031 return ret;
1032 } else {
1033 ihid->pdata = *platform_data;
1034 }
1035
1036 /* Parse platform agnostic common properties from ACPI / device tree */
1037 i2c_hid_fwnode_probe(client, &ihid->pdata);
1038
1039 ihid->pdata.supplies[0].supply = "vdd";
1040 ihid->pdata.supplies[1].supply = "vddl";
1041
1042 ret = devm_regulator_bulk_get(&client->dev,
1043 ARRAY_SIZE(ihid->pdata.supplies),
1044 ihid->pdata.supplies);
1045 if (ret)
1046 return ret;
1047
1048 ret = regulator_bulk_enable(ARRAY_SIZE(ihid->pdata.supplies),
1049 ihid->pdata.supplies);
1050 if (ret < 0)
1051 return ret;
1052
1053 if (ihid->pdata.post_power_delay_ms)
1054 msleep(ihid->pdata.post_power_delay_ms);
1055
1056 i2c_set_clientdata(client, ihid);
1057
1058 ihid->client = client;
1059
1060 hidRegister = ihid->pdata.hid_descriptor_address;
1061 ihid->wHIDDescRegister = cpu_to_le16(hidRegister);
1062
1063 init_waitqueue_head(&ihid->wait);
1064 mutex_init(&ihid->reset_lock);
1065
1066 /* we need to allocate the command buffer without knowing the maximum
1067 * size of the reports. Let's use HID_MIN_BUFFER_SIZE, then we do the
1068 * real computation later. */
1069 ret = i2c_hid_alloc_buffers(ihid, HID_MIN_BUFFER_SIZE);
1070 if (ret < 0)
1071 goto err_regulator;
1072
1073 i2c_hid_acpi_fix_up_power(&client->dev);
1074
> 1075 if (acpi_gbl_FADT.flags & ACPI_FADT_LOW_POWER_S0) {
1076 device_set_wakeup_capable(&client->dev, true);
1077 device_wakeup_enable(&client->dev);
1078 }
1079
1080 device_enable_async_suspend(&client->dev);
1081
1082 /* Make sure there is something at this address */
1083 ret = i2c_smbus_read_byte(client);
1084 if (ret < 0) {
1085 dev_dbg(&client->dev, "nothing at this address: %d\n", ret);
1086 ret = -ENXIO;
1087 goto err_regulator;
1088 }
1089
1090 ret = i2c_hid_fetch_hid_descriptor(ihid);
1091 if (ret < 0)
1092 goto err_regulator;
1093
1094 ret = i2c_hid_init_irq(client);
1095 if (ret < 0)
1096 goto err_regulator;
1097
1098 hid = hid_allocate_device();
1099 if (IS_ERR(hid)) {
1100 ret = PTR_ERR(hid);
1101 goto err_irq;
1102 }
1103
1104 ihid->hid = hid;
1105
1106 hid->driver_data = client;
1107 hid->ll_driver = &i2c_hid_ll_driver;
1108 hid->dev.parent = &client->dev;
1109 hid->bus = BUS_I2C;
1110 hid->version = le16_to_cpu(ihid->hdesc.bcdVersion);
1111 hid->vendor = le16_to_cpu(ihid->hdesc.wVendorID);
1112 hid->product = le16_to_cpu(ihid->hdesc.wProductID);
1113
1114 snprintf(hid->name, sizeof(hid->name), "%s %04hX:%04hX",
1115 client->name, hid->vendor, hid->product);
1116 strlcpy(hid->phys, dev_name(&client->dev), sizeof(hid->phys));
1117
1118 ihid->quirks = i2c_hid_lookup_quirk(hid->vendor, hid->product);
1119
1120 ret = hid_add_device(hid);
1121 if (ret) {
1122 if (ret != -ENODEV)
1123 hid_err(client, "can't add hid device: %d\n", ret);
1124 goto err_mem_free;
1125 }
1126
1127 return 0;
1128
1129 err_mem_free:
1130 hid_destroy_device(hid);
1131
1132 err_irq:
1133 free_irq(client->irq, ihid);
1134
1135 err_regulator:
1136 regulator_bulk_disable(ARRAY_SIZE(ihid->pdata.supplies),
1137 ihid->pdata.supplies);
1138 i2c_hid_free_buffers(ihid);
1139 return ret;
1140 }
1141
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[sashal-linux-stable:queue-4.14 38/79] Warning: ffffffff819d7472: 0f ff 48 8d ud0 -0x73(%rax),%ecx
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-4.14
head: 7a7ddea1b419e20931152e388252c661b6fca95c
commit: 405e6328081c15dd441b6671fa0d38e6b148c0a7 [38/79] net: ipv6_stub: use ip6_dst_lookup_flow instead of ip6_dst_lookup
config: x86_64-randconfig-a013-20200517 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 135b877874fae96b4372c8a3fbfaa8ff44ff86e3)
reproduce:
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
git checkout 405e6328081c15dd441b6671fa0d38e6b148c0a7
# 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: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
>> Warning: ffffffff819d7472: 0f ff 48 8d ud0 -0x73(%rax),%ecx
Warning: objdump says 4 bytes, but insn_get_length() says 2
Warning: arch/x86/tools/test_get_len found difference at <memcpy_page_flushcache>:ffffffff819d6c20
--
>> Warning: ffffffff819d74a6: 0f ff 49 8d ud0 -0x73(%rcx),%ecx
Warning: objdump says 4 bytes, but insn_get_length() says 2
Warning: arch/x86/tools/test_get_len found difference at <memcpy_page_flushcache>:ffffffff819d6c20
--
>> Warning: ffffffff819d7523: 0f ff 48 8d ud0 -0x73(%rax),%ecx
Warning: objdump says 4 bytes, but insn_get_length() says 2
Warning: arch/x86/tools/test_get_len found difference at <memcpy_page_flushcache>:ffffffff819d6c20
--
>> Warning: ffffffff819d753d: 0f ff 48 8d ud0 -0x73(%rax),%ecx
Warning: objdump says 4 bytes, but insn_get_length() says 2
Warning: arch/x86/tools/test_get_len found difference at <memcpy_page_flushcache>:ffffffff819d6c20
--
>> Warning: ffffffff819d75c4: 0f ff 48 8d ud0 -0x73(%rax),%ecx
Warning: objdump says 4 bytes, but insn_get_length() says 2
Warning: arch/x86/tools/test_get_len found difference at <memcpy_page_flushcache>:ffffffff819d6c20
--
>> Warning: ffffffff819d799f: 0f ff 48 8d ud0 -0x73(%rax),%ecx
Warning: objdump says 4 bytes, but insn_get_length() says 2
Warning: arch/x86/tools/test_get_len found difference at <memcpy_page_flushcache>:ffffffff819d6c20
--
>> Warning: ffffffff819d79d5: 0f ff 48 8d ud0 -0x73(%rax),%ecx
Warning: objdump says 4 bytes, but insn_get_length() says 2
Warning: arch/x86/tools/test_get_len found difference at <memcpy_page_flushcache>:ffffffff819d6c20
--
>> Warning: ffffffff819d79e7: 0f ff 48 8d ud0 -0x73(%rax),%ecx
Warning: objdump says 4 bytes, but insn_get_length() says 2
Warning: arch/x86/tools/test_get_len found difference at <memcpy_page_flushcache>:ffffffff819d6c20
--
>> Warning: ffffffff819d7a41: 0f ff 48 8d ud0 -0x73(%rax),%ecx
Warning: objdump says 4 bytes, but insn_get_length() says 2
Warning: arch/x86/tools/test_get_len found difference at <memcpy_page_flushcache>:ffffffff819d6c20
--
>> Warning: ffffffff819d7a47: 0f ff 49 8d ud0 -0x73(%rcx),%ecx
Warning: objdump says 4 bytes, but insn_get_length() says 2
Warning: arch/x86/tools/test_get_len found difference at <memcpy_page_flushcache>:ffffffff819d6c20
--
>> Warning: ffffffff819d7a90: 0f ff 49 8d ud0 -0x73(%rcx),%ecx
Warning: objdump says 4 bytes, but insn_get_length() says 2
Warning: arch/x86/tools/test_get_len found difference at <memcpy_page_flushcache>:ffffffff819d6c20
..
---
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 2/2] KVMM: Memory and interface related changes
by kbuild test robot
Hi Anastassios,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on v5.7-rc6]
[cannot apply to kvm/linux-next kvmarm/next tip/x86/core next-20200515]
[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/Anastassios-Nanos/Expose-KVM-API...
base: b9bbe6ed63b2b9f2c9ee5cbd0f2c946a2723f4ce
config: powerpc-defconfig (attached as .config)
compiler: powerpc64-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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c: In function 'hva_to_pfn_slow':
>> arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:1837:4: error: 'npages_local' undeclared (first use in this function)
1837 | npages_local = 1;
| ^~~~~~~~~~~~
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:1837:4: note: each undeclared identifier is reported only once for each function it appears in
vim +/npages_local +1837 arch/powerpc/kvm/../../../virt/kvm/kvm_main.c
1800
1801 /*
1802 * The slow path to get the pfn of the specified host virtual address,
1803 * 1 indicates success, -errno is returned if error is detected.
1804 */
1805 static int hva_to_pfn_slow(unsigned long addr, bool *async, bool write_fault,
1806 bool *writable, kvm_pfn_t *pfn)
1807 {
1808 unsigned int flags = FOLL_HWPOISON;
1809 struct page *page;
1810 int npages = 0;
1811
1812 might_sleep();
1813
1814 if (writable)
1815 *writable = write_fault;
1816
1817 if (write_fault)
1818 flags |= FOLL_WRITE;
1819 if (async)
1820 flags |= FOLL_NOWAIT;
1821
1822 if (kvmm_valid_addr(addr)) {
1823 npages = 1;
1824 page = vmalloc_to_page((void *)addr);
1825 } else {
1826 npages = get_user_pages_unlocked(addr, 1, &page, flags);
1827 }
1828 if (npages != 1)
1829 return npages;
1830
1831 /* map read fault as writable if possible */
1832 if (unlikely(!write_fault) && writable) {
1833 struct page *wpage;
1834 int lnpages = 0;
1835
1836 if (kvmm_valid_addr(addr)) {
> 1837 npages_local = 1;
1838 wpage = vmalloc_to_page((void *)addr);
1839 } else {
1840 lnpages = __get_user_pages_fast(addr, 1, 1, &wpage);
1841 }
1842
1843 if (lnpages == 1) {
1844 *writable = true;
1845 put_page(page);
1846 page = wpage;
1847 }
1848 }
1849 *pfn = page_to_pfn(page);
1850 return npages;
1851 }
1852
---
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 2/2] KVMM: Memory and interface related changes
by kbuild test robot
Hi Anastassios,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on v5.7-rc6]
[cannot apply to kvm/linux-next kvmarm/next tip/x86/core next-20200515]
[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/Anastassios-Nanos/Expose-KVM-API...
base: b9bbe6ed63b2b9f2c9ee5cbd0f2c946a2723f4ce
config: x86_64-randconfig-r006-20200518 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 135b877874fae96b4372c8a3fbfaa8ff44ff86e3)
reproduce:
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
# 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: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
>> arch/x86/kvm/../../../virt/kvm/kvm_main.c:1837:4: error: use of undeclared identifier 'npages_local'
npages_local = 1;
^
1 error generated.
vim +/npages_local +1837 arch/x86/kvm/../../../virt/kvm/kvm_main.c
1800
1801 /*
1802 * The slow path to get the pfn of the specified host virtual address,
1803 * 1 indicates success, -errno is returned if error is detected.
1804 */
1805 static int hva_to_pfn_slow(unsigned long addr, bool *async, bool write_fault,
1806 bool *writable, kvm_pfn_t *pfn)
1807 {
1808 unsigned int flags = FOLL_HWPOISON;
1809 struct page *page;
1810 int npages = 0;
1811
1812 might_sleep();
1813
1814 if (writable)
1815 *writable = write_fault;
1816
1817 if (write_fault)
1818 flags |= FOLL_WRITE;
1819 if (async)
1820 flags |= FOLL_NOWAIT;
1821
1822 if (kvmm_valid_addr(addr)) {
1823 npages = 1;
1824 page = vmalloc_to_page((void *)addr);
1825 } else {
1826 npages = get_user_pages_unlocked(addr, 1, &page, flags);
1827 }
1828 if (npages != 1)
1829 return npages;
1830
1831 /* map read fault as writable if possible */
1832 if (unlikely(!write_fault) && writable) {
1833 struct page *wpage;
1834 int lnpages = 0;
1835
1836 if (kvmm_valid_addr(addr)) {
> 1837 npages_local = 1;
1838 wpage = vmalloc_to_page((void *)addr);
1839 } else {
1840 lnpages = __get_user_pages_fast(addr, 1, 1, &wpage);
1841 }
1842
1843 if (lnpages == 1) {
1844 *writable = true;
1845 put_page(page);
1846 page = wpage;
1847 }
1848 }
1849 *pfn = page_to_pfn(page);
1850 return npages;
1851 }
1852
---
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 2/2] KVMM: Memory and interface related changes
by kbuild test robot
Hi Anastassios,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on v5.7-rc6]
[cannot apply to kvm/linux-next kvmarm/next tip/x86/core next-20200515]
[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/Anastassios-Nanos/Expose-KVM-API...
base: b9bbe6ed63b2b9f2c9ee5cbd0f2c946a2723f4ce
config: i386-randconfig-a016-20200518 (attached as .config)
compiler: gcc-5 (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
arch/x86/kvm/../../../virt/kvm/kvm_main.c: In function 'hva_to_pfn_slow':
>> arch/x86/kvm/../../../virt/kvm/kvm_main.c:1837:4: error: 'npages_local' undeclared (first use in this function)
npages_local = 1;
^
arch/x86/kvm/../../../virt/kvm/kvm_main.c:1837:4: note: each undeclared identifier is reported only once for each function it appears in
vim +/npages_local +1837 arch/x86/kvm/../../../virt/kvm/kvm_main.c
1800
1801 /*
1802 * The slow path to get the pfn of the specified host virtual address,
1803 * 1 indicates success, -errno is returned if error is detected.
1804 */
1805 static int hva_to_pfn_slow(unsigned long addr, bool *async, bool write_fault,
1806 bool *writable, kvm_pfn_t *pfn)
1807 {
1808 unsigned int flags = FOLL_HWPOISON;
1809 struct page *page;
1810 int npages = 0;
1811
1812 might_sleep();
1813
1814 if (writable)
1815 *writable = write_fault;
1816
1817 if (write_fault)
1818 flags |= FOLL_WRITE;
1819 if (async)
1820 flags |= FOLL_NOWAIT;
1821
1822 if (kvmm_valid_addr(addr)) {
1823 npages = 1;
1824 page = vmalloc_to_page((void *)addr);
1825 } else {
1826 npages = get_user_pages_unlocked(addr, 1, &page, flags);
1827 }
1828 if (npages != 1)
1829 return npages;
1830
1831 /* map read fault as writable if possible */
1832 if (unlikely(!write_fault) && writable) {
1833 struct page *wpage;
1834 int lnpages = 0;
1835
1836 if (kvmm_valid_addr(addr)) {
> 1837 npages_local = 1;
1838 wpage = vmalloc_to_page((void *)addr);
1839 } else {
1840 lnpages = __get_user_pages_fast(addr, 1, 1, &wpage);
1841 }
1842
1843 if (lnpages == 1) {
1844 *writable = true;
1845 put_page(page);
1846 page = wpage;
1847 }
1848 }
1849 *pfn = page_to_pfn(page);
1850 return npages;
1851 }
1852
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[RFC PATCH] i40e/vf_migration: i40e_vf_release() can be static
by kbuild test robot
Signed-off-by: kbuild test robot <lkp(a)intel.com>
---
i40e_vf_migration.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/intel/i40e/i40e_vf_migration.c b/drivers/net/ethernet/intel/i40e/i40e_vf_migration.c
index 96026dcf5c9df..d222c7531fa6e 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_vf_migration.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_vf_migration.c
@@ -51,7 +51,7 @@ static int i40e_vf_open(void *device_data)
return ret;
}
-void i40e_vf_release(void *device_data)
+static void i40e_vf_release(void *device_data)
{
struct i40e_vf_migration *i40e_vf_dev =
vfio_pci_vendor_data(device_data);
@@ -105,7 +105,7 @@ static struct vfio_device_ops i40e_vf_device_ops_node = {
.request = i40e_vf_request,
};
-void *i40e_vf_probe(struct pci_dev *pdev)
+static void *i40e_vf_probe(struct pci_dev *pdev)
{
struct i40e_vf_migration *i40e_vf_dev = NULL;
struct pci_dev *pf_dev, *vf_dev;
2 years, 4 months
Re: [RFC PATCH v4 08/10] i40e/vf_migration: VF live migration - pass-through VF first
by kbuild test robot
Hi Yan,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on vfio/next]
[also build test WARNING on jkirsher-next-queue/dev-queue linus/master v5.7-rc6 next-20200515]
[cannot apply to linux/master]
[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/Yan-Zhao/Introduce-vendor-ops-in...
base: https://github.com/awilliam/linux-vfio.git next
config: x86_64-allyesconfig (attached as .config)
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-193-gb8fad4bc-dirty
# save the attached .config to linux build tree
make C=1 ARCH=x86_64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/net/ethernet/intel/i40e/i40e_vf_migration.c:54:6: sparse: sparse: symbol 'i40e_vf_release' was not declared. Should it be static?
>> drivers/net/ethernet/intel/i40e/i40e_vf_migration.c:108:6: sparse: sparse: symbol 'i40e_vf_probe' was not declared. Should it be static?
Please review and possibly fold the followup patch.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months