drivers/spi/spi-altera-dfl.c:52:30: sparse: sparse: incorrect type in initializer (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: cb690f5238d71f543f4ce874aa59237cf53a877c
commit: ba2fc167e9447596a812e828842d0130ea9cd0e4 spi: altera: Add DFL bus driver for Altera API Controller
date: 7 months ago
config: m68k-randconfig-s031-20211109 (attached as .config)
compiler: m68k-linux-gcc (GCC) 11.2.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.4-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 ba2fc167e9447596a812e828842d0130ea9cd0e4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=m68k
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/spi/spi-altera-dfl.c:52:30: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void [noderef] __iomem *base @@ got void *context @@
drivers/spi/spi-altera-dfl.c:52:30: sparse: expected void [noderef] __iomem *base
drivers/spi/spi-altera-dfl.c:52:30: sparse: got void *context
drivers/spi/spi-altera-dfl.c:78:30: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void [noderef] __iomem *base @@ got void *context @@
drivers/spi/spi-altera-dfl.c:78:30: sparse: expected void [noderef] __iomem *base
drivers/spi/spi-altera-dfl.c:78:30: sparse: got void *context
>> drivers/spi/spi-altera-dfl.c:161:22: sparse: sparse: incorrect type in argument 3 (different address spaces) @@ expected void *bus_context @@ got void [noderef] __iomem *[assigned] base @@
drivers/spi/spi-altera-dfl.c:161:22: sparse: expected void *bus_context
drivers/spi/spi-altera-dfl.c:161:22: sparse: got void [noderef] __iomem *[assigned] base
vim +52 drivers/spi/spi-altera-dfl.c
48
49 static int indirect_bus_reg_read(void *context, unsigned int reg,
50 unsigned int *val)
51 {
> 52 void __iomem *base = context;
53 int loops;
54 u64 v;
55
56 writeq((reg >> 2) | INDIRECT_RD, base + INDIRECT_ADDR);
57
58 loops = 0;
59 while ((readq(base + INDIRECT_ADDR) & INDIRECT_RD) &&
60 (loops++ < INDIRECT_TIMEOUT))
61 cpu_relax();
62
63 if (loops >= INDIRECT_TIMEOUT) {
64 pr_err("%s timed out %d\n", __func__, loops);
65 return -ETIME;
66 }
67
68 v = readq(base + INDIRECT_RD_DATA);
69
70 *val = v & INDIRECT_DATA_MASK;
71
72 return 0;
73 }
74
75 static int indirect_bus_reg_write(void *context, unsigned int reg,
76 unsigned int val)
77 {
78 void __iomem *base = context;
79 int loops;
80
81 writeq(val, base + INDIRECT_WR_DATA);
82 writeq((reg >> 2) | INDIRECT_WR, base + INDIRECT_ADDR);
83
84 loops = 0;
85 while ((readq(base + INDIRECT_ADDR) & INDIRECT_WR) &&
86 (loops++ < INDIRECT_TIMEOUT))
87 cpu_relax();
88
89 if (loops >= INDIRECT_TIMEOUT) {
90 pr_err("%s timed out %d\n", __func__, loops);
91 return -ETIME;
92 }
93 return 0;
94 }
95
96 static const struct regmap_config indirect_regbus_cfg = {
97 .reg_bits = 32,
98 .reg_stride = 4,
99 .val_bits = 32,
100 .fast_io = true,
101 .max_register = 24,
102
103 .reg_write = indirect_bus_reg_write,
104 .reg_read = indirect_bus_reg_read,
105 };
106
107 static struct spi_board_info m10_bmc_info = {
108 .modalias = "m10-d5005",
109 .max_speed_hz = 12500000,
110 .bus_num = 0,
111 .chip_select = 0,
112 };
113
114 static void config_spi_master(void __iomem *base, struct spi_master *master)
115 {
116 u64 v;
117
118 v = readq(base + SPI_CORE_PARAMETER);
119
120 master->mode_bits = SPI_CS_HIGH;
121 if (FIELD_GET(CLK_POLARITY, v))
122 master->mode_bits |= SPI_CPOL;
123 if (FIELD_GET(CLK_PHASE, v))
124 master->mode_bits |= SPI_CPHA;
125
126 master->num_chipselect = FIELD_GET(NUM_CHIPSELECT, v);
127 master->bits_per_word_mask =
128 SPI_BPW_RANGE_MASK(1, FIELD_GET(DATA_WIDTH, v));
129 }
130
131 static int dfl_spi_altera_probe(struct dfl_device *dfl_dev)
132 {
133 struct device *dev = &dfl_dev->dev;
134 struct spi_master *master;
135 struct altera_spi *hw;
136 void __iomem *base;
137 int err = -ENODEV;
138
139 master = spi_alloc_master(dev, sizeof(struct altera_spi));
140 if (!master)
141 return -ENOMEM;
142
143 master->bus_num = dfl_dev->id;
144
145 hw = spi_master_get_devdata(master);
146
147 hw->dev = dev;
148
149 base = devm_ioremap_resource(dev, &dfl_dev->mmio_res);
150
151 if (IS_ERR(base)) {
152 dev_err(dev, "%s get mem resource fail!\n", __func__);
153 return PTR_ERR(base);
154 }
155
156 config_spi_master(base, master);
157 dev_dbg(dev, "%s cs %u bpm 0x%x mode 0x%x\n", __func__,
158 master->num_chipselect, master->bits_per_word_mask,
159 master->mode_bits);
160
> 161 hw->regmap = devm_regmap_init(dev, NULL, base, &indirect_regbus_cfg);
162 if (IS_ERR(hw->regmap))
163 return PTR_ERR(hw->regmap);
164
165 hw->irq = -EINVAL;
166
167 altera_spi_init_master(master);
168
169 err = devm_spi_register_master(dev, master);
170 if (err) {
171 dev_err(dev, "%s failed to register spi master %d\n", __func__, err);
172 goto exit;
173 }
174
175 if (!spi_new_device(master, &m10_bmc_info)) {
176 dev_err(dev, "%s failed to create SPI device: %s\n",
177 __func__, m10_bmc_info.modalias);
178 }
179
180 return 0;
181 exit:
182 spi_master_put(master);
183 return err;
184 }
185
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks
Re: [RFC PATCH v3 1/8] leds: add support for hardware driven LEDs
by kernel test robot
Hi Ansuel,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on net/master]
[also build test ERROR on linus/master next-20211109]
[cannot apply to pavel-leds/for-next robh/for-next net-next/master v5.15]
[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/Ansuel-Smith/Adds-support-for-PH...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git c45231a7668d6b632534f692b10592ea375b55b0
config: nios2-defconfig (attached as .config)
compiler: nios2-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
# https://github.com/0day-ci/linux/commit/3c1a17a4c47130a1b03b57bc11b643bcb...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Ansuel-Smith/Adds-support-for-PHY-LEDs-with-offload-triggers/20211109-102721
git checkout 3c1a17a4c47130a1b03b57bc11b643bcb62d088c
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=nios2 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 >>):
drivers/leds/led-triggers.c: In function 'led_trigger_set':
>> drivers/leds/led-triggers.c:205:29: error: 'struct led_classdev' has no member named 'hw_control_status'
205 | led_cdev->hw_control_status(led_cdev))
| ^~
>> drivers/leds/led-triggers.c:206:33: error: 'struct led_classdev' has no member named 'hw_control_stop'
206 | led_cdev->hw_control_stop(led_cdev);
| ^~
vim +205 drivers/leds/led-triggers.c
177
178 /* Caller must ensure led_cdev->trigger_lock held */
179 int led_trigger_set(struct led_classdev *led_cdev, struct led_trigger *trig)
180 {
181 char *event = NULL;
182 char *envp[2];
183 const char *name;
184 int ret;
185
186 if (!led_cdev->trigger && !trig)
187 return 0;
188
189 name = trig ? trig->name : "none";
190 event = kasprintf(GFP_KERNEL, "TRIGGER=%s", name);
191
192 /* Remove any existing trigger */
193 if (led_cdev->trigger) {
194 spin_lock(&led_cdev->trigger->leddev_list_lock);
195 list_del_rcu(&led_cdev->trig_list);
196 spin_unlock(&led_cdev->trigger->leddev_list_lock);
197
198 /* ensure it's no longer visible on the led_cdevs list */
199 synchronize_rcu();
200
201 cancel_work_sync(&led_cdev->set_brightness_work);
202 led_stop_software_blink(led_cdev);
203 /* Disable hardware mode on trigger change if supported */
204 if (led_cdev->blink_mode != SOFTWARE_CONTROLLED &&
> 205 led_cdev->hw_control_status(led_cdev))
> 206 led_cdev->hw_control_stop(led_cdev);
207 if (led_cdev->trigger->deactivate)
208 led_cdev->trigger->deactivate(led_cdev);
209 device_remove_groups(led_cdev->dev, led_cdev->trigger->groups);
210 led_cdev->trigger = NULL;
211 led_cdev->trigger_data = NULL;
212 led_cdev->activated = false;
213 led_set_brightness(led_cdev, LED_OFF);
214 }
215 if (trig) {
216 /* Make sure the trigger support the LED blink mode */
217 if (!led_trigger_is_supported(led_cdev, trig))
218 return -EINVAL;
219
220 spin_lock(&trig->leddev_list_lock);
221 list_add_tail_rcu(&led_cdev->trig_list, &trig->led_cdevs);
222 spin_unlock(&trig->leddev_list_lock);
223 led_cdev->trigger = trig;
224
225 if (trig->activate)
226 ret = trig->activate(led_cdev);
227 else
228 ret = 0;
229
230 if (ret)
231 goto err_activate;
232
233 ret = device_add_groups(led_cdev->dev, trig->groups);
234 if (ret) {
235 dev_err(led_cdev->dev, "Failed to add trigger attributes\n");
236 goto err_add_groups;
237 }
238 }
239
240 if (event) {
241 envp[0] = event;
242 envp[1] = NULL;
243 if (kobject_uevent_env(&led_cdev->dev->kobj, KOBJ_CHANGE, envp))
244 dev_err(led_cdev->dev,
245 "%s: Error sending uevent\n", __func__);
246 kfree(event);
247 }
248
249 return 0;
250
251 err_add_groups:
252
253 if (trig->deactivate)
254 trig->deactivate(led_cdev);
255 err_activate:
256
257 spin_lock(&led_cdev->trigger->leddev_list_lock);
258 list_del_rcu(&led_cdev->trig_list);
259 spin_unlock(&led_cdev->trigger->leddev_list_lock);
260 synchronize_rcu();
261 led_cdev->trigger = NULL;
262 led_cdev->trigger_data = NULL;
263 led_set_brightness(led_cdev, LED_OFF);
264 kfree(event);
265
266 return ret;
267 }
268 EXPORT_SYMBOL_GPL(led_trigger_set);
269
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks
[intel-lts:4.19/android_s 16636/25248] arch/mips/include/asm/vdso/gettimeofday.h:68:38: error: '__NR_clock_gettime64' undeclared
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 4.19/android_s
head: d47c20847da6957c8b15960571893193936c8c1e
commit: 6b7f832e465d88fca5f3a07b85e664f962c88e0b [16636/25248] BACKPORT: mips: Add support for generic vDSO
config: mips-randconfig-r016-20211028 (attached as .config)
compiler: mipsel-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
# https://github.com/intel/linux-intel-lts/commit/6b7f832e465d88fca5f3a07b8...
git remote add intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-lts 4.19/android_s
git checkout 6b7f832e465d88fca5f3a07b85e664f962c88e0b
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the intel-lts/4.19/android_s HEAD d47c20847da6957c8b15960571893193936c8c1e builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
In file included from lib/vdso/gettimeofday.c:26,
from <command-line>:
arch/mips/include/asm/vdso/gettimeofday.h: In function 'clock_gettime_fallback':
>> arch/mips/include/asm/vdso/gettimeofday.h:68:38: error: '__NR_clock_gettime64' undeclared (first use in this function)
68 | register long nr asm("v0") = __NR_clock_gettime64;
| ^~~~~~~~~~~~~~~~~~~~
arch/mips/include/asm/vdso/gettimeofday.h:68:38: note: each undeclared identifier is reported only once for each function it appears in
In file included from <command-line>:
lib/vdso/gettimeofday.c: In function '__cvdso_clock_gettime32':
lib/vdso/gettimeofday.c:113:20: error: invalid use of undefined type 'struct compat_timespec'
113 | res->tv_sec = ts.tv_sec;
| ^~
lib/vdso/gettimeofday.c:114:20: error: invalid use of undefined type 'struct compat_timespec'
114 | res->tv_nsec = ts.tv_nsec;
| ^~
arch/mips/vdso/vgettimeofday.c: At top level:
arch/mips/vdso/vgettimeofday.c:14:5: warning: no previous prototype for '__vdso_clock_gettime' [-Wmissing-prototypes]
14 | int __vdso_clock_gettime(clockid_t clock,
| ^~~~~~~~~~~~~~~~~~~~
arch/mips/vdso/vgettimeofday.c:20:5: warning: no previous prototype for '__vdso_gettimeofday' [-Wmissing-prototypes]
20 | int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
| ^~~~~~~~~~~~~~~~~~~
vim +/__NR_clock_gettime64 +68 arch/mips/include/asm/vdso/gettimeofday.h
57
58 static __always_inline long clock_gettime_fallback(
59 clockid_t _clkid,
60 struct __kernel_timespec *_ts)
61 {
62 register struct __kernel_timespec *ts asm("a1") = _ts;
63 register clockid_t clkid asm("a0") = _clkid;
64 register long ret asm("v0");
65 #if _MIPS_SIM == _MIPS_SIM_ABI64
66 register long nr asm("v0") = __NR_clock_gettime;
67 #else
> 68 register long nr asm("v0") = __NR_clock_gettime64;
69 #endif
70 register long error asm("a3");
71
72 asm volatile(
73 " syscall\n"
74 : "=r" (ret), "=r" (error)
75 : "r" (clkid), "r" (ts), "r" (nr)
76 : "$1", "$3", "$8", "$9", "$10", "$11", "$12", "$13",
77 "$14", "$15", "$24", "$25", "hi", "lo", "memory");
78
79 return error ? -ret : ret;
80 }
81
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks
arch/powerpc/mm/book3s64/pgtable.c:174:15: error: no previous prototype for 'create_section_mapping'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d2f38a3c6507b2520101f9a3807ed98f1bdc545a
commit: a927bd6ba952d13c52b8b385030943032f659a3e mm: fix phys_to_target_node() and memory_add_physaddr_to_nid() exports
date: 12 months ago
config: powerpc64-randconfig-r013-20211027 (attached as .config)
compiler: powerpc64le-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
# 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 a927bd6ba952d13c52b8b385030943032f659a3e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 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 errors (new ones prefixed by >>):
>> arch/powerpc/mm/book3s64/pgtable.c:174:15: error: no previous prototype for 'create_section_mapping' [-Werror=missing-prototypes]
174 | int __meminit create_section_mapping(unsigned long start, unsigned long end,
| ^~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/mm/book3s64/pgtable.c:405:6: error: no previous prototype for 'arch_report_meminfo' [-Werror=missing-prototypes]
405 | void arch_report_meminfo(struct seq_file *m)
| ^~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/create_section_mapping +174 arch/powerpc/mm/book3s64/pgtable.c
32b53c012e0bfe arch/powerpc/mm/pgtable-book3s64.c Reza Arbab 2017-01-03 172
32b53c012e0bfe arch/powerpc/mm/pgtable-book3s64.c Reza Arbab 2017-01-03 173 #ifdef CONFIG_MEMORY_HOTPLUG
4e00c5affdd4b0 arch/powerpc/mm/book3s64/pgtable.c Logan Gunthorpe 2020-04-10 @174 int __meminit create_section_mapping(unsigned long start, unsigned long end,
4e00c5affdd4b0 arch/powerpc/mm/book3s64/pgtable.c Logan Gunthorpe 2020-04-10 175 int nid, pgprot_t prot)
32b53c012e0bfe arch/powerpc/mm/pgtable-book3s64.c Reza Arbab 2017-01-03 176 {
32b53c012e0bfe arch/powerpc/mm/pgtable-book3s64.c Reza Arbab 2017-01-03 177 if (radix_enabled())
4e00c5affdd4b0 arch/powerpc/mm/book3s64/pgtable.c Logan Gunthorpe 2020-04-10 178 return radix__create_section_mapping(start, end, nid, prot);
32b53c012e0bfe arch/powerpc/mm/pgtable-book3s64.c Reza Arbab 2017-01-03 179
4e00c5affdd4b0 arch/powerpc/mm/book3s64/pgtable.c Logan Gunthorpe 2020-04-10 180 return hash__create_section_mapping(start, end, nid, prot);
32b53c012e0bfe arch/powerpc/mm/pgtable-book3s64.c Reza Arbab 2017-01-03 181 }
32b53c012e0bfe arch/powerpc/mm/pgtable-book3s64.c Reza Arbab 2017-01-03 182
:::::: The code at line 174 was first introduced by commit
:::::: 4e00c5affdd4b04e6392001716333971932f3d0c powerpc/mm: thread pgprot_t through create_section_mapping()
:::::: TO: Logan Gunthorpe <logang(a)deltatee.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks
[Amazon]アカウント例外プロンプト
by Amazon.co.jp
Amazon お客様
誰かがあなたのAmazonアカウントにログインして商品を購入しようとしていることに注意してください。
クレジットカードの盗難を防ぐため、ログイン後すぐに情報を更新してください。
あなたが24時間以内に確認できない場合は申し訳ありません。あなたの財産の安全のために、このアカウントの使用を制限します。あらかじめご理解ください。
お客様の Amazon アカウント
アカウント所有権の証明をご自身で行う場合は、Amazon 管理コンソールにログインし、所定の手順でお手続きください。アカウント所有権の証明についてのヘルプセンター記事も併せてご参照ください。
状態:
異常は更新待ちです
Amazonクリック&ログイン
今後ともよろしくお願い申し上げます。
Amazon チーム
© 1996-2021, Amazon. Inc. or its affiliates
10 months, 2 weeks
drivers/scsi/libfc/fc_encode.h:153:17: warning: 'strncpy' output may be truncated copying between 0 and 255 bytes from a string of length 255
by kernel test robot
Hi Arnd,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d2f38a3c6507b2520101f9a3807ed98f1bdc545a
commit: e31ac898ac298b7a0451b0406769a024bd286e4d scsi: libfc: Move scsi/fc_encode.h to libfc
date: 1 year ago
config: microblaze-randconfig-r023-20211109 (attached as .config)
compiler: microblaze-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
# 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 e31ac898ac298b7a0451b0406769a024bd286e4d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=microblaze
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 drivers/scsi/libfc/fc_elsct.c:18:
drivers/scsi/libfc/fc_encode.h: In function 'fc_ct_ns_fill':
>> drivers/scsi/libfc/fc_encode.h:153:17: warning: 'strncpy' output may be truncated copying between 0 and 255 bytes from a string of length 255 [-Wstringop-truncation]
153 | strncpy(ct->payload.snn.fr_name,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
154 | fc_host_symbolic_name(lport->host), len);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/libfc/fc_encode.h:143:17: warning: 'strncpy' output may be truncated copying between 0 and 255 bytes from a string of length 255 [-Wstringop-truncation]
143 | strncpy(ct->payload.spn.fr_name,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
144 | fc_host_symbolic_name(lport->host), len);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/strncpy +153 drivers/scsi/libfc/fc_encode.h
42e9a92fe6a909 include/scsi/fc_encode.h Robert Love 2008-12-09 81
42e9a92fe6a909 include/scsi/fc_encode.h Robert Love 2008-12-09 82 /**
1ea2c1daf4476a include/scsi/fc_encode.h Neerav Parikh 2012-01-22 83 * fc_ct_ns_fill() - Fill in a name service request frame
2ab7e1ecb81ce3 include/scsi/fc_encode.h Joe Eykholt 2009-08-25 84 * @lport: local port.
2ab7e1ecb81ce3 include/scsi/fc_encode.h Joe Eykholt 2009-08-25 85 * @fc_id: FC_ID of non-destination rport for GPN_ID and similar inquiries.
2ab7e1ecb81ce3 include/scsi/fc_encode.h Joe Eykholt 2009-08-25 86 * @fp: frame to contain payload.
2ab7e1ecb81ce3 include/scsi/fc_encode.h Joe Eykholt 2009-08-25 87 * @op: CT opcode.
2ab7e1ecb81ce3 include/scsi/fc_encode.h Joe Eykholt 2009-08-25 88 * @r_ctl: pointer to FC header R_CTL.
2ab7e1ecb81ce3 include/scsi/fc_encode.h Joe Eykholt 2009-08-25 89 * @fh_type: pointer to FC-4 type.
42e9a92fe6a909 include/scsi/fc_encode.h Robert Love 2008-12-09 90 */
1ea2c1daf4476a include/scsi/fc_encode.h Neerav Parikh 2012-01-22 91 static inline int fc_ct_ns_fill(struct fc_lport *lport,
2ab7e1ecb81ce3 include/scsi/fc_encode.h Joe Eykholt 2009-08-25 92 u32 fc_id, struct fc_frame *fp,
a46f327aa5caf2 include/scsi/fc_encode.h Joe Eykholt 2009-08-25 93 unsigned int op, enum fc_rctl *r_ctl,
42e9a92fe6a909 include/scsi/fc_encode.h Robert Love 2008-12-09 94 enum fc_fh_type *fh_type)
42e9a92fe6a909 include/scsi/fc_encode.h Robert Love 2008-12-09 95 {
42e9a92fe6a909 include/scsi/fc_encode.h Robert Love 2008-12-09 96 struct fc_ct_req *ct;
5f9a056db9c797 include/scsi/fc_encode.h Joe Eykholt 2009-11-03 97 size_t len;
42e9a92fe6a909 include/scsi/fc_encode.h Robert Love 2008-12-09 98
42e9a92fe6a909 include/scsi/fc_encode.h Robert Love 2008-12-09 99 switch (op) {
42e9a92fe6a909 include/scsi/fc_encode.h Robert Love 2008-12-09 100 case FC_NS_GPN_FT:
1ea2c1daf4476a include/scsi/fc_encode.h Neerav Parikh 2012-01-22 101 ct = fc_ct_hdr_fill(fp, op, sizeof(struct fc_ns_gid_ft),
1ea2c1daf4476a include/scsi/fc_encode.h Neerav Parikh 2012-01-22 102 FC_FST_DIR, FC_NS_SUBTYPE);
42e9a92fe6a909 include/scsi/fc_encode.h Robert Love 2008-12-09 103 ct->payload.gid.fn_fc4_type = FC_TYPE_FCP;
42e9a92fe6a909 include/scsi/fc_encode.h Robert Love 2008-12-09 104 break;
42e9a92fe6a909 include/scsi/fc_encode.h Robert Love 2008-12-09 105
2ab7e1ecb81ce3 include/scsi/fc_encode.h Joe Eykholt 2009-08-25 106 case FC_NS_GPN_ID:
1ea2c1daf4476a include/scsi/fc_encode.h Neerav Parikh 2012-01-22 107 ct = fc_ct_hdr_fill(fp, op, sizeof(struct fc_ns_fid),
1ea2c1daf4476a include/scsi/fc_encode.h Neerav Parikh 2012-01-22 108 FC_FST_DIR, FC_NS_SUBTYPE);
1ea2c1daf4476a include/scsi/fc_encode.h Neerav Parikh 2012-01-22 109 ct->payload.gid.fn_fc4_type = FC_TYPE_FCP;
2ab7e1ecb81ce3 include/scsi/fc_encode.h Joe Eykholt 2009-08-25 110 hton24(ct->payload.fid.fp_fid, fc_id);
2ab7e1ecb81ce3 include/scsi/fc_encode.h Joe Eykholt 2009-08-25 111 break;
2ab7e1ecb81ce3 include/scsi/fc_encode.h Joe Eykholt 2009-08-25 112
42e9a92fe6a909 include/scsi/fc_encode.h Robert Love 2008-12-09 113 case FC_NS_RFT_ID:
1ea2c1daf4476a include/scsi/fc_encode.h Neerav Parikh 2012-01-22 114 ct = fc_ct_hdr_fill(fp, op, sizeof(struct fc_ns_rft),
1ea2c1daf4476a include/scsi/fc_encode.h Neerav Parikh 2012-01-22 115 FC_FST_DIR, FC_NS_SUBTYPE);
7b2787ec15b9d1 include/scsi/fc_encode.h Robert Love 2010-05-07 116 hton24(ct->payload.rft.fid.fp_fid, lport->port_id);
42e9a92fe6a909 include/scsi/fc_encode.h Robert Love 2008-12-09 117 ct->payload.rft.fts = lport->fcts;
42e9a92fe6a909 include/scsi/fc_encode.h Robert Love 2008-12-09 118 break;
42e9a92fe6a909 include/scsi/fc_encode.h Robert Love 2008-12-09 119
ab593b187391bd include/scsi/fc_encode.h Joe Eykholt 2009-11-03 120 case FC_NS_RFF_ID:
1ea2c1daf4476a include/scsi/fc_encode.h Neerav Parikh 2012-01-22 121 ct = fc_ct_hdr_fill(fp, op, sizeof(struct fc_ns_rff_id),
1ea2c1daf4476a include/scsi/fc_encode.h Neerav Parikh 2012-01-22 122 FC_FST_DIR, FC_NS_SUBTYPE);
7b2787ec15b9d1 include/scsi/fc_encode.h Robert Love 2010-05-07 123 hton24(ct->payload.rff.fr_fid.fp_fid, lport->port_id);
ab593b187391bd include/scsi/fc_encode.h Joe Eykholt 2009-11-03 124 ct->payload.rff.fr_type = FC_TYPE_FCP;
ab593b187391bd include/scsi/fc_encode.h Joe Eykholt 2009-11-03 125 if (lport->service_params & FCP_SPPF_INIT_FCN)
ab593b187391bd include/scsi/fc_encode.h Joe Eykholt 2009-11-03 126 ct->payload.rff.fr_feat = FCP_FEAT_INIT;
ab593b187391bd include/scsi/fc_encode.h Joe Eykholt 2009-11-03 127 if (lport->service_params & FCP_SPPF_TARG_FCN)
ab593b187391bd include/scsi/fc_encode.h Joe Eykholt 2009-11-03 128 ct->payload.rff.fr_feat |= FCP_FEAT_TARG;
ab593b187391bd include/scsi/fc_encode.h Joe Eykholt 2009-11-03 129 break;
ab593b187391bd include/scsi/fc_encode.h Joe Eykholt 2009-11-03 130
c9c7bd7a5e7321 include/scsi/fc_encode.h Chris Leech 2009-11-03 131 case FC_NS_RNN_ID:
1ea2c1daf4476a include/scsi/fc_encode.h Neerav Parikh 2012-01-22 132 ct = fc_ct_hdr_fill(fp, op, sizeof(struct fc_ns_rn_id),
1ea2c1daf4476a include/scsi/fc_encode.h Neerav Parikh 2012-01-22 133 FC_FST_DIR, FC_NS_SUBTYPE);
7b2787ec15b9d1 include/scsi/fc_encode.h Robert Love 2010-05-07 134 hton24(ct->payload.rn.fr_fid.fp_fid, lport->port_id);
c9c7bd7a5e7321 include/scsi/fc_encode.h Chris Leech 2009-11-03 135 put_unaligned_be64(lport->wwnn, &ct->payload.rn.fr_wwn);
42e9a92fe6a909 include/scsi/fc_encode.h Robert Love 2008-12-09 136 break;
42e9a92fe6a909 include/scsi/fc_encode.h Robert Love 2008-12-09 137
c9866a548024c3 include/scsi/fc_encode.h Chris Leech 2009-11-03 138 case FC_NS_RSPN_ID:
5f9a056db9c797 include/scsi/fc_encode.h Joe Eykholt 2009-11-03 139 len = strnlen(fc_host_symbolic_name(lport->host), 255);
1ea2c1daf4476a include/scsi/fc_encode.h Neerav Parikh 2012-01-22 140 ct = fc_ct_hdr_fill(fp, op, sizeof(struct fc_ns_rspn) + len,
1ea2c1daf4476a include/scsi/fc_encode.h Neerav Parikh 2012-01-22 141 FC_FST_DIR, FC_NS_SUBTYPE);
7b2787ec15b9d1 include/scsi/fc_encode.h Robert Love 2010-05-07 142 hton24(ct->payload.spn.fr_fid.fp_fid, lport->port_id);
c9866a548024c3 include/scsi/fc_encode.h Chris Leech 2009-11-03 143 strncpy(ct->payload.spn.fr_name,
5f9a056db9c797 include/scsi/fc_encode.h Joe Eykholt 2009-11-03 144 fc_host_symbolic_name(lport->host), len);
5f9a056db9c797 include/scsi/fc_encode.h Joe Eykholt 2009-11-03 145 ct->payload.spn.fr_name_len = len;
c9866a548024c3 include/scsi/fc_encode.h Chris Leech 2009-11-03 146 break;
c9866a548024c3 include/scsi/fc_encode.h Chris Leech 2009-11-03 147
5baa17c3e66fc2 include/scsi/fc_encode.h Chris Leech 2009-11-03 148 case FC_NS_RSNN_NN:
5f9a056db9c797 include/scsi/fc_encode.h Joe Eykholt 2009-11-03 149 len = strnlen(fc_host_symbolic_name(lport->host), 255);
1ea2c1daf4476a include/scsi/fc_encode.h Neerav Parikh 2012-01-22 150 ct = fc_ct_hdr_fill(fp, op, sizeof(struct fc_ns_rsnn) + len,
1ea2c1daf4476a include/scsi/fc_encode.h Neerav Parikh 2012-01-22 151 FC_FST_DIR, FC_NS_SUBTYPE);
5baa17c3e66fc2 include/scsi/fc_encode.h Chris Leech 2009-11-03 152 put_unaligned_be64(lport->wwnn, &ct->payload.snn.fr_wwn);
5baa17c3e66fc2 include/scsi/fc_encode.h Chris Leech 2009-11-03 @153 strncpy(ct->payload.snn.fr_name,
5f9a056db9c797 include/scsi/fc_encode.h Joe Eykholt 2009-11-03 154 fc_host_symbolic_name(lport->host), len);
5f9a056db9c797 include/scsi/fc_encode.h Joe Eykholt 2009-11-03 155 ct->payload.snn.fr_name_len = len;
5baa17c3e66fc2 include/scsi/fc_encode.h Chris Leech 2009-11-03 156 break;
5baa17c3e66fc2 include/scsi/fc_encode.h Chris Leech 2009-11-03 157
42e9a92fe6a909 include/scsi/fc_encode.h Robert Love 2008-12-09 158 default:
42e9a92fe6a909 include/scsi/fc_encode.h Robert Love 2008-12-09 159 return -EINVAL;
42e9a92fe6a909 include/scsi/fc_encode.h Robert Love 2008-12-09 160 }
42e9a92fe6a909 include/scsi/fc_encode.h Robert Love 2008-12-09 161 *r_ctl = FC_RCTL_DD_UNSOL_CTL;
42e9a92fe6a909 include/scsi/fc_encode.h Robert Love 2008-12-09 162 *fh_type = FC_TYPE_CT;
42e9a92fe6a909 include/scsi/fc_encode.h Robert Love 2008-12-09 163 return 0;
42e9a92fe6a909 include/scsi/fc_encode.h Robert Love 2008-12-09 164 }
42e9a92fe6a909 include/scsi/fc_encode.h Robert Love 2008-12-09 165
:::::: The code at line 153 was first introduced by commit
:::::: 5baa17c3e66fc2e414f501b2dd59b962dfc64919 [SCSI] libfc: Register Symbolic Node Name (RSNN_NN)
:::::: TO: Chris Leech <christopher.leech(a)intel.com>
:::::: CC: James Bottomley <James.Bottomley(a)suse.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks
[chrome-os:chromeos-4.19 5/5] include/uapi/linux/kvm.h:14:10: fatal error: asm/kvm.h: No such file or directory
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.19
head: 22adb7840eaea049c693cece0bd54fb4d010f937
commit: 22adb7840eaea049c693cece0bd54fb4d010f937 [5/5] Revert "FIXUP: BACKPORT: FROMLIST: x86/kvm: Add definitions for virtual suspend time injection"
config: nios2-defconfig (attached as .config)
compiler: nios2-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 chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-4.19
git checkout 22adb7840eaea049c693cece0bd54fb4d010f937
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=nios2 SHELL=/bin/bash kernel/time/
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/kvm_host.h:35,
from kernel/time/timekeeping.c:29:
>> include/uapi/linux/kvm.h:14:10: fatal error: asm/kvm.h: No such file or directory
14 | #include <asm/kvm.h>
| ^~~~~~~~~~~
compilation terminated.
vim +14 include/uapi/linux/kvm.h
6aa8b732ca01c3 include/linux/kvm.h Avi Kivity 2006-12-10 4
6aa8b732ca01c3 include/linux/kvm.h Avi Kivity 2006-12-10 5 /*
6aa8b732ca01c3 include/linux/kvm.h Avi Kivity 2006-12-10 6 * Userspace interface for /dev/kvm - kernel based virtual machine
6aa8b732ca01c3 include/linux/kvm.h Avi Kivity 2006-12-10 7 *
dea8caee7b6971 include/linux/kvm.h Rusty Russell 2007-07-17 8 * Note: you must update KVM_API_VERSION if you change this interface.
6aa8b732ca01c3 include/linux/kvm.h Avi Kivity 2006-12-10 9 */
6aa8b732ca01c3 include/linux/kvm.h Avi Kivity 2006-12-10 10
00bfddaf7f68a6 include/linux/kvm.h Jaswinder Singh Rajput 2009-01-15 11 #include <linux/types.h>
97646202bc3f19 include/linux/kvm.h Christian Borntraeger 2008-03-12 12 #include <linux/compiler.h>
6aa8b732ca01c3 include/linux/kvm.h Avi Kivity 2006-12-10 13 #include <linux/ioctl.h>
f6a40e3bdf5fe0 include/linux/kvm.h Jerone Young 2007-11-19 @14 #include <asm/kvm.h>
6aa8b732ca01c3 include/linux/kvm.h Avi Kivity 2006-12-10 15
:::::: The code at line 14 was first introduced by commit
:::::: f6a40e3bdf5fe0a7d7d7f2dbc5b10158fbdad968 KVM: Portability: Move kvm_memory_alias to asm/kvm.h
:::::: TO: Jerone Young <jyoung5(a)us.ibm.com>
:::::: CC: Avi Kivity <avi(a)qumranet.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks
[chrome-os:chromeos-4.19 5/5] arch/x86/include/asm/pgtable-2level_types.h:18:3: error: conflicting types for 'pte_t'
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.19
head: 22adb7840eaea049c693cece0bd54fb4d010f937
commit: 22adb7840eaea049c693cece0bd54fb4d010f937 [5/5] Revert "FIXUP: BACKPORT: FROMLIST: x86/kvm: Add definitions for virtual suspend time injection"
config: um-i386_defconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-4.19
git checkout 22adb7840eaea049c693cece0bd54fb4d010f937
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=um SUBARCH=i386 SHELL=/bin/bash kernel/time/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
include/linux/mm.h:1967:2: note: in expansion of macro 'pgtable_cache_init'
1967 | pgtable_cache_init();
| ^~~~~~~~~~~~~~~~~~
In file included from arch/x86/include/asm/kvm_host.h:33,
from include/linux/kvm_host.h:40,
from kernel/time/timekeeping.c:29:
arch/x86/um/asm/desc.h: At top level:
arch/x86/um/asm/desc.h:7: warning: "LDT_empty" redefined
7 | #define LDT_empty(info) (\
|
In file included from arch/um/include/asm/mmu.h:10,
from include/linux/mm_types.h:20,
from include/linux/mm.h:17,
from kernel/time/timekeeping.c:16:
arch/x86/um/asm/mm_context.h:65: note: this is the location of the previous definition
65 | #define LDT_empty(info) (_LDT_empty(info))
|
In file included from arch/x86/include/asm/pgtable_types.h:8,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:34,
from include/linux/kvm_host.h:40,
from kernel/time/timekeeping.c:29:
arch/x86/include/asm/page_types.h:11: warning: "PAGE_SIZE" redefined
11 | #define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT)
|
In file included from arch/um/include/asm/thread_info.h:15,
from include/linux/thread_info.h:39,
from include/asm-generic/preempt.h:5,
from ./arch/um/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:81,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/clocksource.h:13,
from include/linux/timekeeper_internal.h:10,
from kernel/time/timekeeping.c:11:
arch/um/include/asm/page.h:14: note: this is the location of the previous definition
14 | #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT)
|
In file included from arch/x86/include/asm/pgtable_types.h:8,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:34,
from include/linux/kvm_host.h:40,
from kernel/time/timekeeping.c:29:
arch/x86/include/asm/page_types.h:36: warning: "PAGE_OFFSET" redefined
36 | #define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET)
|
In file included from arch/um/include/asm/thread_info.h:15,
from include/linux/thread_info.h:39,
from include/asm-generic/preempt.h:5,
from ./arch/um/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:81,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/clocksource.h:13,
from include/linux/timekeeper_internal.h:10,
from kernel/time/timekeeping.c:11:
arch/um/include/asm/page.h:93: note: this is the location of the previous definition
93 | #define PAGE_OFFSET (uml_physmem)
|
In file included from arch/x86/include/asm/pgtable_types.h:8,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:34,
from include/linux/kvm_host.h:40,
from kernel/time/timekeeping.c:29:
arch/x86/include/asm/page_types.h:38: warning: "VM_DATA_DEFAULT_FLAGS" redefined
38 | #define VM_DATA_DEFAULT_FLAGS \
|
In file included from arch/um/include/asm/page.h:23,
from arch/um/include/asm/thread_info.h:15,
from include/linux/thread_info.h:39,
from include/asm-generic/preempt.h:5,
from ./arch/um/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:81,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/clocksource.h:13,
from include/linux/timekeeper_internal.h:10,
from kernel/time/timekeeping.c:11:
arch/x86/um/asm/vm-flags.h:12: note: this is the location of the previous definition
12 | #define VM_DATA_DEFAULT_FLAGS \
|
In file included from arch/x86/include/asm/page_types.h:51,
from arch/x86/include/asm/pgtable_types.h:8,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:34,
from include/linux/kvm_host.h:40,
from kernel/time/timekeeping.c:29:
>> arch/x86/include/asm/page_32_types.h:22: warning: "THREAD_SIZE_ORDER" redefined
22 | #define THREAD_SIZE_ORDER 1
|
In file included from include/linux/thread_info.h:39,
from include/asm-generic/preempt.h:5,
from ./arch/um/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:81,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/clocksource.h:13,
from include/linux/timekeeper_internal.h:10,
from kernel/time/timekeeping.c:11:
arch/um/include/asm/thread_info.h:9: note: this is the location of the previous definition
9 | #define THREAD_SIZE_ORDER CONFIG_KERNEL_STACK_ORDER
|
In file included from arch/x86/include/asm/page_types.h:51,
from arch/x86/include/asm/pgtable_types.h:8,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:34,
from include/linux/kvm_host.h:40,
from kernel/time/timekeeping.c:29:
>> arch/x86/include/asm/page_32_types.h:23: warning: "THREAD_SIZE" redefined
23 | #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
|
In file included from include/linux/thread_info.h:39,
from include/asm-generic/preempt.h:5,
from ./arch/um/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:81,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/clocksource.h:13,
from include/linux/timekeeper_internal.h:10,
from kernel/time/timekeeping.c:11:
arch/um/include/asm/thread_info.h:10: note: this is the location of the previous definition
10 | #define THREAD_SIZE ((1 << CONFIG_KERNEL_STACK_ORDER) * PAGE_SIZE)
|
In file included from arch/x86/include/asm/pgtable_types.h:8,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:34,
from include/linux/kvm_host.h:40,
from kernel/time/timekeeping.c:29:
arch/x86/include/asm/page_types.h:52: warning: "IOREMAP_MAX_ORDER" redefined
52 | #define IOREMAP_MAX_ORDER (PMD_SHIFT)
|
In file included from include/asm-generic/io.h:894,
from arch/um/include/asm/io.h:16,
from include/linux/clocksource.h:21,
from include/linux/timekeeper_internal.h:10,
from kernel/time/timekeeping.c:11:
include/linux/vmalloc.h:31: note: this is the location of the previous definition
31 | #define IOREMAP_MAX_ORDER (7 + PAGE_SHIFT) /* 128 pages */
|
In file included from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:34,
from include/linux/kvm_host.h:40,
from kernel/time/timekeeping.c:29:
arch/x86/include/asm/pgtable_types.h:42: warning: "_PAGE_PRESENT" redefined
42 | #define _PAGE_PRESENT (_AT(pteval_t, 1) << _PAGE_BIT_PRESENT)
|
In file included from include/linux/memremap.h:7,
from include/linux/mm.h:27,
from kernel/time/timekeeping.c:16:
arch/um/include/asm/pgtable.h:13: note: this is the location of the previous definition
13 | #define _PAGE_PRESENT 0x001
|
In file included from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:34,
from include/linux/kvm_host.h:40,
from kernel/time/timekeeping.c:29:
arch/x86/include/asm/pgtable_types.h:43: warning: "_PAGE_RW" redefined
43 | #define _PAGE_RW (_AT(pteval_t, 1) << _PAGE_BIT_RW)
|
In file included from include/linux/memremap.h:7,
from include/linux/mm.h:27,
from kernel/time/timekeeping.c:16:
arch/um/include/asm/pgtable.h:16: note: this is the location of the previous definition
16 | #define _PAGE_RW 0x020
|
In file included from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:34,
from include/linux/kvm_host.h:40,
from kernel/time/timekeeping.c:29:
arch/x86/include/asm/pgtable_types.h:44: warning: "_PAGE_USER" redefined
44 | #define _PAGE_USER (_AT(pteval_t, 1) << _PAGE_BIT_USER)
|
In file included from include/linux/memremap.h:7,
from include/linux/mm.h:27,
from kernel/time/timekeeping.c:16:
arch/um/include/asm/pgtable.h:17: note: this is the location of the previous definition
17 | #define _PAGE_USER 0x040
|
In file included from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:34,
from include/linux/kvm_host.h:40,
from kernel/time/timekeeping.c:29:
arch/x86/include/asm/pgtable_types.h:47: warning: "_PAGE_ACCESSED" redefined
47 | #define _PAGE_ACCESSED (_AT(pteval_t, 1) << _PAGE_BIT_ACCESSED)
|
In file included from include/linux/memremap.h:7,
from include/linux/mm.h:27,
from kernel/time/timekeeping.c:16:
arch/um/include/asm/pgtable.h:18: note: this is the location of the previous definition
18 | #define _PAGE_ACCESSED 0x080
|
In file included from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:34,
from include/linux/kvm_host.h:40,
from kernel/time/timekeeping.c:29:
arch/x86/include/asm/pgtable_types.h:48: warning: "_PAGE_DIRTY" redefined
48 | #define _PAGE_DIRTY (_AT(pteval_t, 1) << _PAGE_BIT_DIRTY)
|
In file included from include/linux/memremap.h:7,
from include/linux/mm.h:27,
--
arch/x86/include/asm/pgtable_types.h:224: warning: "__P101" redefined
224 | #define __P101 PAGE_READONLY_EXEC
|
In file included from include/linux/memremap.h:7,
from include/linux/mm.h:27,
from kernel/time/timekeeping.c:16:
arch/um/include/asm/pgtable.h:78: note: this is the location of the previous definition
78 | #define __P101 PAGE_READONLY
|
In file included from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:34,
from include/linux/kvm_host.h:40,
from kernel/time/timekeeping.c:29:
arch/x86/include/asm/pgtable_types.h:225: warning: "__P110" redefined
225 | #define __P110 PAGE_COPY_EXEC
|
In file included from include/linux/memremap.h:7,
from include/linux/mm.h:27,
from kernel/time/timekeeping.c:16:
arch/um/include/asm/pgtable.h:79: note: this is the location of the previous definition
79 | #define __P110 PAGE_COPY
|
In file included from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:34,
from include/linux/kvm_host.h:40,
from kernel/time/timekeeping.c:29:
arch/x86/include/asm/pgtable_types.h:226: warning: "__P111" redefined
226 | #define __P111 PAGE_COPY_EXEC
|
In file included from include/linux/memremap.h:7,
from include/linux/mm.h:27,
from kernel/time/timekeeping.c:16:
arch/um/include/asm/pgtable.h:80: note: this is the location of the previous definition
80 | #define __P111 PAGE_COPY
|
In file included from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:34,
from include/linux/kvm_host.h:40,
from kernel/time/timekeeping.c:29:
arch/x86/include/asm/pgtable_types.h:232: warning: "__S100" redefined
232 | #define __S100 PAGE_READONLY_EXEC
|
In file included from include/linux/memremap.h:7,
from include/linux/mm.h:27,
from kernel/time/timekeeping.c:16:
arch/um/include/asm/pgtable.h:86: note: this is the location of the previous definition
86 | #define __S100 PAGE_READONLY
|
In file included from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:34,
from include/linux/kvm_host.h:40,
from kernel/time/timekeeping.c:29:
arch/x86/include/asm/pgtable_types.h:233: warning: "__S101" redefined
233 | #define __S101 PAGE_READONLY_EXEC
|
In file included from include/linux/memremap.h:7,
from include/linux/mm.h:27,
from kernel/time/timekeeping.c:16:
arch/um/include/asm/pgtable.h:87: note: this is the location of the previous definition
87 | #define __S101 PAGE_READONLY
|
In file included from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:34,
from include/linux/kvm_host.h:40,
from kernel/time/timekeeping.c:29:
arch/x86/include/asm/pgtable_types.h:234: warning: "__S110" redefined
234 | #define __S110 PAGE_SHARED_EXEC
|
In file included from include/linux/memremap.h:7,
from include/linux/mm.h:27,
from kernel/time/timekeeping.c:16:
arch/um/include/asm/pgtable.h:88: note: this is the location of the previous definition
88 | #define __S110 PAGE_SHARED
|
In file included from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:34,
from include/linux/kvm_host.h:40,
from kernel/time/timekeeping.c:29:
arch/x86/include/asm/pgtable_types.h:235: warning: "__S111" redefined
235 | #define __S111 PAGE_SHARED_EXEC
|
In file included from include/linux/memremap.h:7,
from include/linux/mm.h:27,
from kernel/time/timekeeping.c:16:
arch/um/include/asm/pgtable.h:89: note: this is the location of the previous definition
89 | #define __S111 PAGE_SHARED
|
In file included from arch/x86/include/asm/pgtable_32_types.h:15,
from arch/x86/include/asm/pgtable_types.h:249,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:34,
from include/linux/kvm_host.h:40,
from kernel/time/timekeeping.c:29:
>> arch/x86/include/asm/pgtable-2level_types.h:18:3: error: conflicting types for 'pte_t'
18 | } pte_t;
| ^~~~~
In file included from arch/um/include/asm/thread_info.h:15,
from include/linux/thread_info.h:39,
from include/asm-generic/preempt.h:5,
from ./arch/um/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:81,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/clocksource.h:13,
from include/linux/timekeeper_internal.h:10,
from kernel/time/timekeeping.c:11:
arch/um/include/asm/page.h:37:39: note: previous declaration of 'pte_t' was here
37 | typedef struct { unsigned long pte; } pte_t;
| ^~~~~
In file included from arch/x86/include/asm/pgtable_32_types.h:15,
from arch/x86/include/asm/pgtable_types.h:249,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:34,
from include/linux/kvm_host.h:40,
from kernel/time/timekeeping.c:29:
>> arch/x86/include/asm/pgtable-2level_types.h:27: warning: "PGDIR_SHIFT" redefined
27 | #define PGDIR_SHIFT 22
|
In file included from arch/um/include/asm/pgtable.h:25,
from include/linux/memremap.h:7,
from include/linux/mm.h:27,
from kernel/time/timekeeping.c:16:
arch/um/include/asm/pgtable-3level.h:18: note: this is the location of the previous definition
18 | #define PGDIR_SHIFT 31
|
In file included from arch/x86/include/asm/pgtable_32_types.h:15,
from arch/x86/include/asm/pgtable_types.h:249,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:34,
from include/linux/kvm_host.h:40,
from kernel/time/timekeeping.c:29:
>> arch/x86/include/asm/pgtable-2level_types.h:36: warning: "PTRS_PER_PTE" redefined
36 | #define PTRS_PER_PTE 1024
|
In file included from arch/um/include/asm/pgtable.h:25,
from include/linux/memremap.h:7,
from include/linux/mm.h:27,
from kernel/time/timekeeping.c:16:
arch/um/include/asm/pgtable-3level.h:35: note: this is the location of the previous definition
35 | #define PTRS_PER_PTE 512
|
In file included from arch/x86/include/asm/pgtable_types.h:249,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:34,
from include/linux/kvm_host.h:40,
from kernel/time/timekeeping.c:29:
>> arch/x86/include/asm/pgtable_32_types.h:21: warning: "PGDIR_MASK" redefined
21 | #define PGDIR_MASK (~(PGDIR_SIZE - 1))
|
In file included from arch/um/include/asm/pgtable.h:25,
from include/linux/memremap.h:7,
from include/linux/mm.h:27,
from kernel/time/timekeeping.c:16:
arch/um/include/asm/pgtable-3level.h:21: note: this is the location of the previous definition
21 | #define PGDIR_MASK (~(PGDIR_SIZE-1))
|
In file included from arch/x86/include/asm/pgtable_types.h:249,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:34,
from include/linux/kvm_host.h:40,
from kernel/time/timekeeping.c:29:
>> arch/x86/include/asm/pgtable_32_types.h:30: warning: "VMALLOC_OFFSET" redefined
30 | #define VMALLOC_OFFSET (8 * 1024 * 1024)
|
In file included from include/linux/memremap.h:7,
from include/linux/mm.h:27,
from kernel/time/timekeeping.c:16:
arch/um/include/asm/pgtable.h:47: note: this is the location of the previous definition
47 | #define VMALLOC_OFFSET (__va_space)
|
In file included from arch/x86/include/asm/pgtable_types.h:249,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:34,
from include/linux/kvm_host.h:40,
from kernel/time/timekeeping.c:29:
>> arch/x86/include/asm/pgtable_32_types.h:36: warning: "VMALLOC_START" redefined
36 | #define VMALLOC_START ((unsigned long)high_memory + VMALLOC_OFFSET)
|
In file included from include/linux/memremap.h:7,
from include/linux/mm.h:27,
from kernel/time/timekeeping.c:16:
arch/um/include/asm/pgtable.h:48: note: this is the location of the previous definition
48 | #define VMALLOC_START ((end_iomem + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1))
|
In file included from arch/x86/include/asm/pgtable_types.h:249,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:34,
from include/linux/kvm_host.h:40,
from kernel/time/timekeeping.c:29:
>> arch/x86/include/asm/pgtable_32_types.h:58: warning: "PKMAP_BASE" redefined
58 | #define PKMAP_BASE \
|
In file included from include/linux/memremap.h:7,
from include/linux/mm.h:27,
from kernel/time/timekeeping.c:16:
arch/um/include/asm/pgtable.h:49: note: this is the location of the previous definition
49 | #define PKMAP_BASE ((FIXADDR_START - LAST_PKMAP * PAGE_SIZE) & PMD_MASK)
|
In file included from arch/x86/include/asm/pgtable_types.h:249,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:34,
from include/linux/kvm_host.h:40,
from kernel/time/timekeeping.c:29:
>> arch/x86/include/asm/pgtable_32_types.h:64: warning: "VMALLOC_END" redefined
64 | # define VMALLOC_END (LDT_BASE_ADDR - 2 * PAGE_SIZE)
|
In file included from include/linux/memremap.h:7,
from include/linux/mm.h:27,
from kernel/time/timekeeping.c:16:
arch/um/include/asm/pgtable.h:50: note: this is the location of the previous definition
50 | #define VMALLOC_END (FIXADDR_START-2*PAGE_SIZE)
|
In file included from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:34,
from include/linux/kvm_host.h:40,
from kernel/time/timekeeping.c:29:
arch/x86/include/asm/pgtable_types.h:267:47: error: conflicting types for 'pgprot_t'
267 | typedef struct pgprot { pgprotval_t pgprot; } pgprot_t;
| ^~~~~~~~
In file included from arch/um/include/asm/thread_info.h:15,
from include/linux/thread_info.h:39,
from include/asm-generic/preempt.h:5,
from ./arch/um/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:81,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/clocksource.h:13,
from include/linux/timekeeper_internal.h:10,
from kernel/time/timekeeping.c:11:
arch/um/include/asm/page.h:80:42: note: previous declaration of 'pgprot_t' was here
80 | typedef struct { unsigned long pgprot; } pgprot_t;
| ^~~~~~~~
In file included from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:34,
from include/linux/kvm_host.h:40,
from kernel/time/timekeeping.c:29:
arch/x86/include/asm/pgtable_types.h:269:34: error: conflicting types for 'pgd_t'
269 | typedef struct { pgdval_t pgd; } pgd_t;
| ^~~~~
In file included from arch/um/include/asm/thread_info.h:15,
from include/linux/thread_info.h:39,
from include/asm-generic/preempt.h:5,
from ./arch/um/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:81,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/clocksource.h:13,
from include/linux/timekeeper_internal.h:10,
from kernel/time/timekeeping.c:11:
arch/um/include/asm/page.h:39:39: note: previous declaration of 'pgd_t' was here
39 | typedef struct { unsigned long pgd; } pgd_t;
| ^~~~~
In file included from include/asm-generic/pgtable-nop4d-hack.h:6,
from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/memremap.h:7,
from include/linux/mm.h:27,
from kernel/time/timekeeping.c:16:
include/asm-generic/5level-fixup.h:14:18: error: conflicting types for 'pgd_t'
14 | #define p4d_t pgd_t
| ^~~~~
include/asm-generic/pgtable-nop4d.h:9:31: note: in expansion of macro 'p4d_t'
9 | typedef struct { pgd_t pgd; } p4d_t;
| ^~~~~
In file included from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:34,
from include/linux/kvm_host.h:40,
from kernel/time/timekeeping.c:29:
arch/x86/include/asm/pgtable_types.h:269:34: note: previous declaration of 'pgd_t' was here
269 | typedef struct { pgdval_t pgd; } pgd_t;
| ^~~~~
In file included from arch/x86/include/asm/pgtable_types.h:322,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:34,
from include/linux/kvm_host.h:40,
from kernel/time/timekeeping.c:29:
include/asm-generic/pgtable-nop4d.h:14: warning: "P4D_SIZE" redefined
14 | #define P4D_SIZE (1UL << P4D_SHIFT)
|
In file included from include/asm-generic/pgtable-nop4d-hack.h:6,
from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/memremap.h:7,
from include/linux/mm.h:27,
from kernel/time/timekeeping.c:16:
include/asm-generic/5level-fixup.h:9: note: this is the location of the previous definition
9 | #define P4D_SIZE PGDIR_SIZE
|
In file included from arch/x86/include/asm/pgtable_types.h:322,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:34,
..
vim +/pte_t +18 arch/x86/include/asm/pgtable-2level_types.h
54321d947ae9d6 arch/x86/include/asm/pgtable-2level_types.h Jeremy Fitzhardinge 2009-02-11 14
54321d947ae9d6 arch/x86/include/asm/pgtable-2level_types.h Jeremy Fitzhardinge 2009-02-11 15 typedef union {
54321d947ae9d6 arch/x86/include/asm/pgtable-2level_types.h Jeremy Fitzhardinge 2009-02-11 16 pteval_t pte;
54321d947ae9d6 arch/x86/include/asm/pgtable-2level_types.h Jeremy Fitzhardinge 2009-02-11 17 pteval_t pte_low;
54321d947ae9d6 arch/x86/include/asm/pgtable-2level_types.h Jeremy Fitzhardinge 2009-02-11 @18 } pte_t;
54321d947ae9d6 arch/x86/include/asm/pgtable-2level_types.h Jeremy Fitzhardinge 2009-02-11 19 #endif /* !__ASSEMBLY__ */
54321d947ae9d6 arch/x86/include/asm/pgtable-2level_types.h Jeremy Fitzhardinge 2009-02-11 20
5311ab62cdc778 include/asm-i386/pgtable-2level-defs.h Jeremy Fitzhardinge 2007-05-02 21 #define SHARED_KERNEL_PMD 0
5311ab62cdc778 include/asm-i386/pgtable-2level-defs.h Jeremy Fitzhardinge 2007-05-02 22
^1da177e4c3f41 include/asm-i386/pgtable-2level-defs.h Linus Torvalds 2005-04-16 23 /*
^1da177e4c3f41 include/asm-i386/pgtable-2level-defs.h Linus Torvalds 2005-04-16 24 * traditional i386 two-level paging structure:
^1da177e4c3f41 include/asm-i386/pgtable-2level-defs.h Linus Torvalds 2005-04-16 25 */
^1da177e4c3f41 include/asm-i386/pgtable-2level-defs.h Linus Torvalds 2005-04-16 26
^1da177e4c3f41 include/asm-i386/pgtable-2level-defs.h Linus Torvalds 2005-04-16 @27 #define PGDIR_SHIFT 22
^1da177e4c3f41 include/asm-i386/pgtable-2level-defs.h Linus Torvalds 2005-04-16 28 #define PTRS_PER_PGD 1024
^1da177e4c3f41 include/asm-i386/pgtable-2level-defs.h Linus Torvalds 2005-04-16 29
9b3651cbc26cfc arch/x86/include/asm/pgtable-2level_types.h Jeremy Fitzhardinge 2009-02-13 30
^1da177e4c3f41 include/asm-i386/pgtable-2level-defs.h Linus Torvalds 2005-04-16 31 /*
^1da177e4c3f41 include/asm-i386/pgtable-2level-defs.h Linus Torvalds 2005-04-16 32 * the i386 is two-level, so we don't really have any
^1da177e4c3f41 include/asm-i386/pgtable-2level-defs.h Linus Torvalds 2005-04-16 33 * PMD directory physically.
^1da177e4c3f41 include/asm-i386/pgtable-2level-defs.h Linus Torvalds 2005-04-16 34 */
^1da177e4c3f41 include/asm-i386/pgtable-2level-defs.h Linus Torvalds 2005-04-16 35
^1da177e4c3f41 include/asm-i386/pgtable-2level-defs.h Linus Torvalds 2005-04-16 @36 #define PTRS_PER_PTE 1024
^1da177e4c3f41 include/asm-i386/pgtable-2level-defs.h Linus Torvalds 2005-04-16 37
:::::: The code at line 18 was first introduced by commit
:::::: 54321d947ae9d6a051b81e3eccaf2d8658aeecc6 x86: move pte types into pgtable*.h
:::::: TO: Jeremy Fitzhardinge <jeremy.fitzhardinge(a)citrix.com>
:::::: CC: Jeremy Fitzhardinge <jeremy.fitzhardinge(a)citrix.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 2 weeks