[tnguy-next-queue:dev-queue 138/260] include/net/switchdev.h:410:1: error: expected identifier or '(' before '{' token
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git dev-queue
head: 820d2640bb89ab196c46c299c066b2ad1ea65b84
commit: 8ca07176ab00a6d06a9b254dcbb2514b4d607e9c [138/260] net: switchdev: introduce a fanout helper for SWITCHDEV_FDB_{ADD,DEL}_TO_DEVICE
config: parisc-randconfig-r021-20210720 (attached as .config)
compiler: hppa-linux-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git/comm...
git remote add tnguy-next-queue https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git
git fetch --no-tags tnguy-next-queue dev-queue
git checkout 8ca07176ab00a6d06a9b254dcbb2514b4d607e9c
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=parisc SHELL=/bin/bash net/core/
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/net/dsa.h:23,
from net/core/flow_dissector.c:8:
>> include/net/switchdev.h:410:1: error: expected identifier or '(' before '{' token
410 | {
| ^
include/net/switchdev.h:399:1: warning: 'switchdev_handle_fdb_del_to_device' declared 'static' but never defined [-Wunused-function]
399 | switchdev_handle_fdb_del_to_device(struct net_device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +410 include/net/switchdev.h
397
398 static inline int
399 switchdev_handle_fdb_del_to_device(struct net_device *dev,
400 const struct switchdev_notifier_fdb_info *fdb_info,
401 bool (*check_cb)(const struct net_device *dev),
402 bool (*foreign_dev_check_cb)(const struct net_device *dev,
403 const struct net_device *foreign_dev),
404 int (*del_cb)(struct net_device *dev,
405 const struct net_device *orig_dev, const void *ctx,
406 const struct switchdev_notifier_fdb_info *fdb_info),
407 int (*lag_del_cb)(struct net_device *dev,
408 const struct net_device *orig_dev, const void *ctx,
409 const struct switchdev_notifier_fdb_info *fdb_info));
> 410 {
411 return 0;
412 }
413
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[linux-chenxing:mstar_v5_14_rebase 172/352] sound/soc/mstar/infinity_soc.c:200:5: warning: no previous prototype for 'infinity_audio_remove'
by kernel test robot
tree: git://github.com/linux-chenxing/linux.git mstar_v5_14_rebase
head: 651efd0e52f225e60faa8b30f9768021e2104d3c
commit: 60cca2ee643d8820514b31a0714fea1b1437cbb8 [172/352] bach
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/linux-chenxing/linux/commit/60cca2ee643d8820514b31a071...
git remote add linux-chenxing git://github.com/linux-chenxing/linux.git
git fetch --no-tags linux-chenxing mstar_v5_14_rebase
git checkout 60cca2ee643d8820514b31a0714fea1b1437cbb8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=arm
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 >>):
sound/soc/mstar/infinity_soc.c: In function 'infinity_soc_card_suspend_pre':
sound/soc/mstar/infinity_soc.c:46:30: warning: unused variable 'w' [-Wunused-variable]
46 | struct snd_soc_dapm_widget *w;
| ^
sound/soc/mstar/infinity_soc.c:44:6: warning: unused variable 'i' [-Wunused-variable]
44 | int i;
| ^
sound/soc/mstar/infinity_soc.c: In function 'infinity_soc_card_resume_post':
sound/soc/mstar/infinity_soc.c:103:6: warning: unused variable 'i' [-Wunused-variable]
103 | int i;
| ^
sound/soc/mstar/infinity_soc.c: At top level:
>> sound/soc/mstar/infinity_soc.c:200:5: warning: no previous prototype for 'infinity_audio_remove' [-Wmissing-prototypes]
200 | int infinity_audio_remove(struct platform_device *pdev) {
| ^~~~~~~~~~~~~~~~~~~~~
In file included from sound/soc/mstar/infinity.h:11,
from sound/soc/mstar/infinity_pcm.h:10,
from sound/soc/mstar/infinity_soc.c:19:
sound/soc/mstar/infinity_reg.h:50:25: warning: 'sine_gen_freq_field' defined but not used [-Wunused-variable]
50 | static struct reg_field sine_gen_freq_field = REG_FIELD(MSTAR_BACH_REG_DMA_TEST_CTRL5, 0, 3);
| ^~~~~~~~~~~~~~~~~~~
sound/soc/mstar/infinity_reg.h:49:25: warning: 'sine_gen_gain_field' defined but not used [-Wunused-variable]
49 | static struct reg_field sine_gen_gain_field = REG_FIELD(MSTAR_BACH_REG_DMA_TEST_CTRL5, 4, 7);
| ^~~~~~~~~~~~~~~~~~~
sound/soc/mstar/infinity_reg.h:48:25: warning: 'sine_gen_ren_field' defined but not used [-Wunused-variable]
48 | static struct reg_field sine_gen_ren_field = REG_FIELD(MSTAR_BACH_REG_DMA_TEST_CTRL5, 13, 13);
| ^~~~~~~~~~~~~~~~~~
sound/soc/mstar/infinity_reg.h:47:25: warning: 'sine_gen_len_field' defined but not used [-Wunused-variable]
47 | static struct reg_field sine_gen_len_field = REG_FIELD(MSTAR_BACH_REG_DMA_TEST_CTRL5, 14, 14);
| ^~~~~~~~~~~~~~~~~~
sound/soc/mstar/infinity_reg.h:46:25: warning: 'sine_gen_en_field' defined but not used [-Wunused-variable]
46 | static struct reg_field sine_gen_en_field = REG_FIELD(MSTAR_BACH_REG_DMA_TEST_CTRL5, 15, 15);
| ^~~~~~~~~~~~~~~~~
sound/soc/mstar/infinity_reg.h:9:25: warning: 'mux0_mmc1_src_field' defined but not used [-Wunused-variable]
9 | static struct reg_field mux0_mmc1_src_field = REG_FIELD(MSTAR_BACH_REG_MUX0_SEL, 5, 5);
| ^~~~~~~~~~~~~~~~~~~
--
sound/soc/mstar/infinity_codec.c: In function 'infinity_soc_codec_probe':
sound/soc/mstar/infinity_codec.c:209:6: warning: unused variable 'i' [-Wunused-variable]
209 | int i;
| ^
>> sound/soc/mstar/infinity_codec.c:207:17: warning: variable 'atop' set but not used [-Wunused-but-set-variable]
207 | struct regmap *atop;
| ^~~~
sound/soc/mstar/infinity_codec.c: In function 'infinity_codec_write':
sound/soc/mstar/infinity_codec.c:324:6: warning: unused variable 'ret' [-Wunused-variable]
324 | int ret = 0;
| ^~~
At top level:
sound/soc/mstar/infinity_codec.c:169:12: warning: 'infinity_soc_dai_resume' defined but not used [-Wunused-function]
169 | static int infinity_soc_dai_resume(struct snd_soc_dai *dai)
| ^~~~~~~~~~~~~~~~~~~~~~~
sound/soc/mstar/infinity_codec.c:164:12: warning: 'infinity_soc_dai_suspend' defined but not used [-Wunused-function]
164 | static int infinity_soc_dai_suspend(struct snd_soc_dai *dai)
| ^~~~~~~~~~~~~~~~~~~~~~~~
--
>> sound/soc/mstar/infinity_codec.c:39: warning: expecting prototype for Used to set Playback volume 0~76 (mapping to(). Prototype was for MAIN_PLAYBACK_VOLUME() instead
>> sound/soc/mstar/infinity_codec.c:44: warning: expecting prototype for Used to set Capture volume 0~76 (mapping to(). Prototype was for MAIN_CAPTURE_VOLUME() instead
>> sound/soc/mstar/infinity_codec.c:47: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
* Used to set microphone gain, total 5 bits ,
>> sound/soc/mstar/infinity_codec.c:55: warning: expecting prototype for Used to set line(). Prototype was for LINEIN_GAIN_LEVEL() instead
>> sound/soc/mstar/infinity_codec.c:60: warning: expecting prototype for Used to set internal debug sinegen gain level 0~4 ((). Prototype was for SINEGEN_GAIN_LEVEL() instead
sound/soc/mstar/infinity_codec.c:63: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
* Used to set internal debug sinegen rate set 0~10 (0 for singen disabling)
sound/soc/mstar/infinity_codec.c:68: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
* Used to select audio playback input (DMA Reader, ADC In)
>> sound/soc/mstar/infinity_codec.c:75: warning: expecting prototype for Used to select ADC input (Line-in, Mic(). Prototype was for ADC_MUX() instead
vim +/infinity_audio_remove +200 sound/soc/mstar/infinity_soc.c
199
> 200 int infinity_audio_remove(struct platform_device *pdev) {
201 struct infinity_soc *soc = dev_get_drvdata(&pdev->dev);
202 snd_soc_unregister_card(&soc->card);
203 return 0;
204 }
205
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[linux-chenxing:mstar_v5_14_rebase 138/352] drivers/memory/mstar-msc313_miu.c:334:2: warning: ignoring return value of 'regulator_enable' declared with attribute 'warn_unused_result'
by kernel test robot
tree: git://github.com/linux-chenxing/linux.git mstar_v5_14_rebase
head: 651efd0e52f225e60faa8b30f9768021e2104d3c
commit: f3a4f3d81314124e8a3b3a38ba8cb49dc711383c [138/352] MStar MSC313: MIU DDR controller driver
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/linux-chenxing/linux/commit/f3a4f3d81314124e8a3b3a38ba...
git remote add linux-chenxing git://github.com/linux-chenxing/linux.git
git fetch --no-tags linux-chenxing mstar_v5_14_rebase
git checkout f3a4f3d81314124e8a3b3a38ba8cb49dc711383c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=arm
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/memory/mstar-msc313_miu.c: In function 'msc313_miu_probe':
drivers/memory/mstar-msc313_miu.c:297:6: warning: unused variable 'dtval' [-Wunused-variable]
297 | u32 dtval;
| ^~~~~
>> drivers/memory/mstar-msc313_miu.c:334:2: warning: ignoring return value of 'regulator_enable' declared with attribute 'warn_unused_result' [-Wunused-result]
334 | regulator_enable(miu->ddrreg);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
At top level:
drivers/memory/mstar-msc313_miu.c:276:20: warning: 'msc313_miu_irq' defined but not used [-Wunused-function]
276 | static irqreturn_t msc313_miu_irq(int irq, void *data)
| ^~~~~~~~~~~~~~
drivers/memory/mstar-msc313_miu.c:179:13: warning: 'msc313_miu_write_trp' defined but not used [-Wunused-function]
179 | static void msc313_miu_write_trp(struct msc313_miu *miu, unsigned val){
| ^~~~~~~~~~~~~~~~~~~~
drivers/memory/mstar-msc313_miu.c:164:13: warning: 'msc313_miu_write_trcd' defined but not used [-Wunused-function]
164 | static void msc313_miu_write_trcd(struct msc313_miu *miu, unsigned val){
| ^~~~~~~~~~~~~~~~~~~~~
vim +334 drivers/memory/mstar-msc313_miu.c
286
287 static int msc313_miu_probe(struct platform_device *pdev)
288 {
289 struct msc313_miu *miu;
290 __iomem void *base;
291 unsigned int config1;
292
293 int banks, cols, buswidth;
294 int trcd, trp, tras, trrd, trtp, trc;
295 int irq;
296
297 u32 dtval;
298
299 miu = devm_kzalloc(&pdev->dev, sizeof(*miu), GFP_KERNEL);
300 if (!miu)
301 return -ENOMEM;
302
303 miu->dev = &pdev->dev;
304
305 base = devm_platform_ioremap_resource(pdev, 0);
306 if (IS_ERR(base))
307 return PTR_ERR(base);
308
309 miu->analog = devm_regmap_init_mmio(&pdev->dev, base,
310 &msc313_miu_analog_regmap_config);
311 if(IS_ERR(miu->analog)){
312 return PTR_ERR(miu->analog);
313 }
314
315 base = devm_platform_ioremap_resource(pdev, 1);
316 if (IS_ERR(base))
317 return PTR_ERR(base);
318
319 miu->digital = devm_regmap_init_mmio(&pdev->dev, base,
320 &msc313_miu_digital_regmap_config);
321 if(IS_ERR(miu->digital)){
322 return PTR_ERR(miu->digital);
323 }
324
325 miu->miuclk = devm_clk_get(&pdev->dev, "miu");
326 if (IS_ERR(miu->miuclk)) {
327 return PTR_ERR(miu->miuclk);
328 }
329
330 miu->ddrreg = devm_regulator_get_optional(&pdev->dev, "ddr");
331 if (IS_ERR(miu->ddrreg)){
332 return PTR_ERR(miu->ddrreg);
333 }
> 334 regulator_enable(miu->ddrreg);
335
336 irq = of_irq_get(pdev->dev.of_node, 0);
337 if (!irq)
338 return -EINVAL;
339
340 /* clear any pending interrupt we might have been left */
341 regmap_write(miu->digital, MIU_DIG_PROTECTION_STATUS, ~0);
342
343 //devm_request_irq(&pdev->dev, irq, msc313_miu_irq, IRQF_SHARED,
344 // dev_name(&pdev->dev), miu);
345
346 clk_prepare_enable(miu->miuclk);
347
348 regmap_read(miu->digital, REG_CONFIG1, &config1);
349
350 banks = 2 << ((config1 & REG_CONFIG1_BANKS) >> REG_CONFIG1_BANKS_SHIFT);
351 cols = 8 + ((config1 & REG_CONFIG1_COLS) >> REG_CONFIG1_COLS_SHIFT);
352 buswidth = (((config1 & REG_CONFIG1_BUSWIDTH) >> REG_CONFIG1_BUSWIDTH_SHIFT) + 1) * 16;
353
354
355 dev_info(&pdev->dev, "Memory type is %s, %d banks and %d columns, %d bit bus", types[config1 & REG_CONFIG1_TYPE],
356 banks, cols, buswidth);
357
358 trcd = msc313_miu_read_trcd(miu);
359 trp = msc313_miu_read_trp(miu);
360 tras = msc313_miu_read_tras(miu);
361 trrd = msc313_miu_read_trrd(miu);
362 trtp = msc313_miu_read_trtp(miu);
363 trc = msc313_miu_read_trc(miu);
364
365 dev_info(miu->dev, "trcd: %d, trp: %d, tras: %d, trrd: %d, trtp: %d, trc: %d",
366 trcd, trp, tras, trrd, trtp, trc);
367
368 //if(!of_property_read_u32(pdev->dev.of_node, "mstar,rd-timing", &dtval)) {
369 // dev_info(&pdev->dev, "Setting read back data delay to %d", (int) dtval);
370 //regmap_update_bits(miu->digital, REG_CONFIG2, REG_CONFIG2_RD_TIMING, rd_timing);
371 //}
372
373 //if(!of_property_read_u32(pdev->dev.of_node, "mstar,trcd", &dtval)) {
374 // dev_info(&pdev->dev, "setting trcd to %d", (int) dtval);
375 // msc313_miu_write_trcd(miu, dtval);
376 //}
377
378 //if(!of_property_read_u32(pdev->dev.of_node, "mstar,trp", &dtval)) {
379 // dev_info(&pdev->dev, "setting trp to %d", (int) dtval);
380 // msc313_miu_write_trp(miu, dtval);
381 //}
382
383 return msc313_miu_ddrpll_probe(pdev, miu);
384 }
385
---
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 v5 3/3] media: platform: mtk-mdp3: Add Mediatek MDP3 driver
by kernel test robot
Hi Moudy,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linuxtv-media/master]
[also build test ERROR on robh/for-next mediatek/for-next v5.14-rc2 next-20210720]
[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/Moudy-Ho/media-mediatek-support-...
base: git://linuxtv.org/media_tree.git master
config: riscv-allyesconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/ca5b8c1fac55efa08e8362a4aa345c474...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Moudy-Ho/media-mediatek-support-mdp3-on-mt8183-platform/20210719-154845
git checkout ca5b8c1fac55efa08e8362a4aa345c474b798326
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=riscv 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/media/platform/mtk-mdp3/mtk-mdp3-regs.c:171:18: error: 'V4L2_PIX_FMT_MM21' undeclared here (not in a function); did you mean 'V4L2_PIX_FMT_M420'?
171 | .pixelformat = V4L2_PIX_FMT_MM21,
| ^~~~~~~~~~~~~~~~~
| V4L2_PIX_FMT_M420
vim +171 drivers/media/platform/mtk-mdp3/mtk-mdp3-regs.c
12
13 static const struct mdp_format mdp_formats[] = {
14 {
15 .pixelformat = V4L2_PIX_FMT_GREY,
16 .mdp_color = MDP_COLOR_GREY,
17 .depth = { 8 },
18 .row_depth = { 8 },
19 .num_planes = 1,
20 .flags = MDP_FMT_FLAG_OUTPUT | MDP_FMT_FLAG_CAPTURE,
21 }, {
22 .pixelformat = V4L2_PIX_FMT_RGB565X,
23 .mdp_color = MDP_COLOR_RGB565,
24 .depth = { 16 },
25 .row_depth = { 16 },
26 .num_planes = 1,
27 .flags = MDP_FMT_FLAG_OUTPUT | MDP_FMT_FLAG_CAPTURE,
28 }, {
29 .pixelformat = V4L2_PIX_FMT_RGB565,
30 .mdp_color = MDP_COLOR_BGR565,
31 .depth = { 16 },
32 .row_depth = { 16 },
33 .num_planes = 1,
34 .flags = MDP_FMT_FLAG_OUTPUT | MDP_FMT_FLAG_CAPTURE,
35 }, {
36 .pixelformat = V4L2_PIX_FMT_RGB24,
37 .mdp_color = MDP_COLOR_RGB888,
38 .depth = { 24 },
39 .row_depth = { 24 },
40 .num_planes = 1,
41 .flags = MDP_FMT_FLAG_OUTPUT | MDP_FMT_FLAG_CAPTURE,
42 }, {
43 .pixelformat = V4L2_PIX_FMT_BGR24,
44 .mdp_color = MDP_COLOR_BGR888,
45 .depth = { 24 },
46 .row_depth = { 24 },
47 .num_planes = 1,
48 .flags = MDP_FMT_FLAG_OUTPUT | MDP_FMT_FLAG_CAPTURE,
49 }, {
50 .pixelformat = V4L2_PIX_FMT_ABGR32,
51 .mdp_color = MDP_COLOR_BGRA8888,
52 .depth = { 32 },
53 .row_depth = { 32 },
54 .num_planes = 1,
55 .flags = MDP_FMT_FLAG_OUTPUT | MDP_FMT_FLAG_CAPTURE,
56 }, {
57 .pixelformat = V4L2_PIX_FMT_ARGB32,
58 .mdp_color = MDP_COLOR_ARGB8888,
59 .depth = { 32 },
60 .row_depth = { 32 },
61 .num_planes = 1,
62 .flags = MDP_FMT_FLAG_OUTPUT | MDP_FMT_FLAG_CAPTURE,
63 }, {
64 .pixelformat = V4L2_PIX_FMT_UYVY,
65 .mdp_color = MDP_COLOR_UYVY,
66 .depth = { 16 },
67 .row_depth = { 16 },
68 .num_planes = 1,
69 .walign = 1,
70 .flags = MDP_FMT_FLAG_OUTPUT | MDP_FMT_FLAG_CAPTURE,
71 }, {
72 .pixelformat = V4L2_PIX_FMT_VYUY,
73 .mdp_color = MDP_COLOR_VYUY,
74 .depth = { 16 },
75 .row_depth = { 16 },
76 .num_planes = 1,
77 .walign = 1,
78 .flags = MDP_FMT_FLAG_OUTPUT | MDP_FMT_FLAG_CAPTURE,
79 }, {
80 .pixelformat = V4L2_PIX_FMT_YUYV,
81 .mdp_color = MDP_COLOR_YUYV,
82 .depth = { 16 },
83 .row_depth = { 16 },
84 .num_planes = 1,
85 .walign = 1,
86 .flags = MDP_FMT_FLAG_OUTPUT | MDP_FMT_FLAG_CAPTURE,
87 }, {
88 .pixelformat = V4L2_PIX_FMT_YVYU,
89 .mdp_color = MDP_COLOR_YVYU,
90 .depth = { 16 },
91 .row_depth = { 16 },
92 .num_planes = 1,
93 .walign = 1,
94 .flags = MDP_FMT_FLAG_OUTPUT | MDP_FMT_FLAG_CAPTURE,
95 }, {
96 .pixelformat = V4L2_PIX_FMT_YUV420,
97 .mdp_color = MDP_COLOR_I420,
98 .depth = { 12 },
99 .row_depth = { 8 },
100 .num_planes = 1,
101 .walign = 1,
102 .halign = 1,
103 .flags = MDP_FMT_FLAG_OUTPUT | MDP_FMT_FLAG_CAPTURE,
104 }, {
105 .pixelformat = V4L2_PIX_FMT_YVU420,
106 .mdp_color = MDP_COLOR_YV12,
107 .depth = { 12 },
108 .row_depth = { 8 },
109 .num_planes = 1,
110 .walign = 1,
111 .halign = 1,
112 .flags = MDP_FMT_FLAG_OUTPUT | MDP_FMT_FLAG_CAPTURE,
113 }, {
114 .pixelformat = V4L2_PIX_FMT_NV12,
115 .mdp_color = MDP_COLOR_NV12,
116 .depth = { 12 },
117 .row_depth = { 8 },
118 .num_planes = 1,
119 .walign = 1,
120 .halign = 1,
121 .flags = MDP_FMT_FLAG_OUTPUT | MDP_FMT_FLAG_CAPTURE,
122 }, {
123 .pixelformat = V4L2_PIX_FMT_NV21,
124 .mdp_color = MDP_COLOR_NV21,
125 .depth = { 12 },
126 .row_depth = { 8 },
127 .num_planes = 1,
128 .walign = 1,
129 .halign = 1,
130 .flags = MDP_FMT_FLAG_OUTPUT | MDP_FMT_FLAG_CAPTURE,
131 }, {
132 .pixelformat = V4L2_PIX_FMT_NV16,
133 .mdp_color = MDP_COLOR_NV16,
134 .depth = { 16 },
135 .row_depth = { 8 },
136 .num_planes = 1,
137 .walign = 1,
138 .flags = MDP_FMT_FLAG_OUTPUT,
139 }, {
140 .pixelformat = V4L2_PIX_FMT_NV61,
141 .mdp_color = MDP_COLOR_NV61,
142 .depth = { 16 },
143 .row_depth = { 8 },
144 .num_planes = 1,
145 .walign = 1,
146 .flags = MDP_FMT_FLAG_OUTPUT,
147 }, {
148 .pixelformat = V4L2_PIX_FMT_NV24,
149 .mdp_color = MDP_COLOR_NV24,
150 .depth = { 24 },
151 .row_depth = { 8 },
152 .num_planes = 1,
153 .flags = MDP_FMT_FLAG_OUTPUT,
154 }, {
155 .pixelformat = V4L2_PIX_FMT_NV42,
156 .mdp_color = MDP_COLOR_NV42,
157 .depth = { 24 },
158 .row_depth = { 8 },
159 .num_planes = 1,
160 .flags = MDP_FMT_FLAG_OUTPUT,
161 }, {
162 .pixelformat = V4L2_PIX_FMT_MT21C,
163 .mdp_color = MDP_COLOR_420_BLK_UFO,
164 .depth = { 8, 4 },
165 .row_depth = { 8, 8 },
166 .num_planes = 2,
167 .walign = 4,
168 .halign = 5,
169 .flags = MDP_FMT_FLAG_OUTPUT,
170 }, {
> 171 .pixelformat = V4L2_PIX_FMT_MM21,
172 .mdp_color = MDP_COLOR_420_BLK,
173 .depth = { 8, 4 },
174 .row_depth = { 8, 8 },
175 .num_planes = 2,
176 .walign = 4,
177 .halign = 5,
178 .flags = MDP_FMT_FLAG_OUTPUT,
179 }, {
180 .pixelformat = V4L2_PIX_FMT_NV12M,
181 .mdp_color = MDP_COLOR_NV12,
182 .depth = { 8, 4 },
183 .row_depth = { 8, 8 },
184 .num_planes = 2,
185 .walign = 1,
186 .halign = 1,
187 .flags = MDP_FMT_FLAG_OUTPUT | MDP_FMT_FLAG_CAPTURE,
188 }, {
189 .pixelformat = V4L2_PIX_FMT_NV21M,
190 .mdp_color = MDP_COLOR_NV21,
191 .depth = { 8, 4 },
192 .row_depth = { 8, 8 },
193 .num_planes = 2,
194 .walign = 1,
195 .halign = 1,
196 .flags = MDP_FMT_FLAG_OUTPUT | MDP_FMT_FLAG_CAPTURE,
197 }, {
198 .pixelformat = V4L2_PIX_FMT_NV16M,
199 .mdp_color = MDP_COLOR_NV16,
200 .depth = { 8, 8 },
201 .row_depth = { 8, 8 },
202 .num_planes = 2,
203 .walign = 1,
204 .flags = MDP_FMT_FLAG_OUTPUT,
205 }, {
206 .pixelformat = V4L2_PIX_FMT_NV61M,
207 .mdp_color = MDP_COLOR_NV61,
208 .depth = { 8, 8 },
209 .row_depth = { 8, 8 },
210 .num_planes = 2,
211 .walign = 1,
212 .flags = MDP_FMT_FLAG_OUTPUT,
213 }, {
214 .pixelformat = V4L2_PIX_FMT_YUV420M,
215 .mdp_color = MDP_COLOR_I420,
216 .depth = { 8, 2, 2 },
217 .row_depth = { 8, 4, 4 },
218 .num_planes = 3,
219 .walign = 1,
220 .halign = 1,
221 .flags = MDP_FMT_FLAG_OUTPUT | MDP_FMT_FLAG_CAPTURE,
222 }, {
223 .pixelformat = V4L2_PIX_FMT_YVU420M,
224 .mdp_color = MDP_COLOR_YV12,
225 .depth = { 8, 2, 2 },
226 .row_depth = { 8, 4, 4 },
227 .num_planes = 3,
228 .walign = 1,
229 .halign = 1,
230 .flags = MDP_FMT_FLAG_OUTPUT | MDP_FMT_FLAG_CAPTURE,
231 }
232 };
233
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[djwong-xfs:scrub-drain-intents 311/311] fs/xfs/xfs_mount.h:425:3: error: implicit declaration of function 'xfs_rt_bump_intents'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git scrub-drain-intents
head: 674a3454cd9d70a84b90f6874236e08a186e35d2
commit: 674a3454cd9d70a84b90f6874236e08a186e35d2 [311/311] xfs: allow queued AG intents to drain before scrubbing
config: x86_64-randconfig-r016-20210720 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 87039c048c0cbc3d8cbba86187269b006bf2f373)
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/djwong/xfs-linux.git/comm...
git remote add djwong-xfs https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git
git fetch --no-tags djwong-xfs scrub-drain-intents
git checkout 674a3454cd9d70a84b90f6874236e08a186e35d2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from fs/xfs/xfs_trace.c:13:
>> fs/xfs/xfs_mount.h:425:3: error: implicit declaration of function 'xfs_rt_bump_intents' [-Werror,-Wimplicit-function-declaration]
xfs_rt_bump_intents(mp);
^
>> fs/xfs/xfs_mount.h:434:3: error: implicit declaration of function 'xfs_rt_drop_intents' [-Werror,-Wimplicit-function-declaration]
xfs_rt_drop_intents(mp);
^
2 errors generated.
--
In file included from fs/xfs/xfs_log_recover.c:14:
>> fs/xfs/xfs_mount.h:425:3: error: implicit declaration of function 'xfs_rt_bump_intents' [-Werror,-Wimplicit-function-declaration]
xfs_rt_bump_intents(mp);
^
>> fs/xfs/xfs_mount.h:434:3: error: implicit declaration of function 'xfs_rt_drop_intents' [-Werror,-Wimplicit-function-declaration]
xfs_rt_drop_intents(mp);
^
fs/xfs/xfs_log_recover.c:3557:12: warning: variable 'freeblks' set but not used [-Wunused-but-set-variable]
uint64_t freeblks;
^
fs/xfs/xfs_log_recover.c:3559:12: warning: variable 'ifree' set but not used [-Wunused-but-set-variable]
uint64_t ifree;
^
fs/xfs/xfs_log_recover.c:3558:12: warning: variable 'itotal' set but not used [-Wunused-but-set-variable]
uint64_t itotal;
^
3 warnings and 2 errors generated.
--
In file included from fs/xfs/xfs_log_recover.c:14:
>> fs/xfs/xfs_mount.h:425:3: error: implicit declaration of function 'xfs_rt_bump_intents' [-Werror,-Wimplicit-function-declaration]
xfs_rt_bump_intents(mp);
^
>> fs/xfs/xfs_mount.h:434:3: error: implicit declaration of function 'xfs_rt_drop_intents' [-Werror,-Wimplicit-function-declaration]
xfs_rt_drop_intents(mp);
^
fs/xfs/xfs_log_recover.c:3558:12: warning: variable 'itotal' set but not used [-Wunused-but-set-variable]
uint64_t itotal;
^
fs/xfs/xfs_log_recover.c:3557:12: warning: variable 'freeblks' set but not used [-Wunused-but-set-variable]
uint64_t freeblks;
^
fs/xfs/xfs_log_recover.c:3559:12: warning: variable 'ifree' set but not used [-Wunused-but-set-variable]
uint64_t ifree;
^
3 warnings and 2 errors generated.
vim +/xfs_rt_bump_intents +425 fs/xfs/xfs_mount.h
420
421 static inline void
422 xfs_fs_bump_intents(struct xfs_mount *mp, bool isrt, xfs_fsblock_t fsb)
423 {
424 if (isrt)
> 425 xfs_rt_bump_intents(mp);
426 else
427 xfs_ag_bump_intents(mp, XFS_FSB_TO_AGNO(mp, fsb));
428 }
429
430 static inline void
431 xfs_fs_drop_intents(struct xfs_mount *mp, bool isrt, xfs_fsblock_t fsb)
432 {
433 if (isrt)
> 434 xfs_rt_drop_intents(mp);
435 else
436 xfs_ag_drop_intents(mp, XFS_FSB_TO_AGNO(mp, fsb));
437 }
438
---
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 v2] PCI: Move pci_dev_is/assign_added() to pci.h
by kernel test robot
Hi Niklas,
I love your patch! Yet something to improve:
[auto build test ERROR on pci/next]
[also build test ERROR on powerpc/next s390/features pm/linux-next v5.14-rc2 next-20210720]
[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/Niklas-Schnelle/PCI-Move-pci_dev...
base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next
config: arm-buildonly-randconfig-r002-20210720 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/52e04c39213cf20b8c6bc717cfda56103...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Niklas-Schnelle/PCI-Move-pci_dev_is-assign_added-to-pci-h/20210720-180050
git checkout 52e04c39213cf20b8c6bc717cfda56103b871cd1
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash drivers/pci/pcie/
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/pci/pcie/dpc.c: In function 'dpc_completed':
>> drivers/pci/pcie/dpc.c:85:15: error: 'PCI_DPC_RECOVERING' undeclared (first use in this function)
85 | if (test_bit(PCI_DPC_RECOVERING, &pdev->priv_flags))
| ^~~~~~~~~~~~~~~~~~
drivers/pci/pcie/dpc.c:85:15: note: each undeclared identifier is reported only once for each function it appears in
In file included from include/linux/bitops.h:32,
from include/linux/kernel.h:12,
from include/linux/delay.h:22,
from drivers/pci/pcie/dpc.c:12:
drivers/pci/pcie/dpc.c: In function 'pci_dpc_recovered':
>> drivers/pci/pcie/dpc.c:122:28: error: 'PCI_DPC_RECOVERED' undeclared (first use in this function)
122 | return test_and_clear_bit(PCI_DPC_RECOVERED, &pdev->priv_flags);
| ^~~~~~~~~~~~~~~~~
arch/arm/include/asm/bitops.h:181:24: note: in definition of macro 'ATOMIC_BITOP'
181 | (__builtin_constant_p(nr) ? ____atomic_##name(nr, p) : _##name(nr,p))
| ^~
drivers/pci/pcie/dpc.c:122:9: note: in expansion of macro 'test_and_clear_bit'
122 | return test_and_clear_bit(PCI_DPC_RECOVERED, &pdev->priv_flags);
| ^~~~~~~~~~~~~~~~~~
drivers/pci/pcie/dpc.c: In function 'dpc_reset_link':
drivers/pci/pcie/dpc.c:149:10: error: 'PCI_DPC_RECOVERING' undeclared (first use in this function)
149 | set_bit(PCI_DPC_RECOVERING, &pdev->priv_flags);
| ^~~~~~~~~~~~~~~~~~
arch/arm/include/asm/bitops.h:181:24: note: in definition of macro 'ATOMIC_BITOP'
181 | (__builtin_constant_p(nr) ? ____atomic_##name(nr, p) : _##name(nr,p))
| ^~
drivers/pci/pcie/dpc.c:149:2: note: in expansion of macro 'set_bit'
149 | set_bit(PCI_DPC_RECOVERING, &pdev->priv_flags);
| ^~~~~~~
drivers/pci/pcie/dpc.c:165:13: error: 'PCI_DPC_RECOVERED' undeclared (first use in this function)
165 | clear_bit(PCI_DPC_RECOVERED, &pdev->priv_flags);
| ^~~~~~~~~~~~~~~~~
arch/arm/include/asm/bitops.h:181:24: note: in definition of macro 'ATOMIC_BITOP'
181 | (__builtin_constant_p(nr) ? ____atomic_##name(nr, p) : _##name(nr,p))
| ^~
drivers/pci/pcie/dpc.c:165:3: note: in expansion of macro 'clear_bit'
165 | clear_bit(PCI_DPC_RECOVERED, &pdev->priv_flags);
| ^~~~~~~~~
drivers/pci/pcie/dpc.c: In function 'pci_dpc_recovered':
drivers/pci/pcie/dpc.c:123:1: error: control reaches end of non-void function [-Werror=return-type]
123 | }
| ^
cc1: some warnings being treated as errors
vim +/PCI_DPC_RECOVERING +85 drivers/pci/pcie/dpc.c
a97396c6eb13f65b Lukas Wunner 2021-05-01 75
a97396c6eb13f65b Lukas Wunner 2021-05-01 76 #ifdef CONFIG_HOTPLUG_PCI_PCIE
a97396c6eb13f65b Lukas Wunner 2021-05-01 77 static bool dpc_completed(struct pci_dev *pdev)
a97396c6eb13f65b Lukas Wunner 2021-05-01 78 {
a97396c6eb13f65b Lukas Wunner 2021-05-01 79 u16 status;
a97396c6eb13f65b Lukas Wunner 2021-05-01 80
a97396c6eb13f65b Lukas Wunner 2021-05-01 81 pci_read_config_word(pdev, pdev->dpc_cap + PCI_EXP_DPC_STATUS, &status);
a97396c6eb13f65b Lukas Wunner 2021-05-01 82 if ((status != 0xffff) && (status & PCI_EXP_DPC_STATUS_TRIGGER))
a97396c6eb13f65b Lukas Wunner 2021-05-01 83 return false;
a97396c6eb13f65b Lukas Wunner 2021-05-01 84
a97396c6eb13f65b Lukas Wunner 2021-05-01 @85 if (test_bit(PCI_DPC_RECOVERING, &pdev->priv_flags))
a97396c6eb13f65b Lukas Wunner 2021-05-01 86 return false;
a97396c6eb13f65b Lukas Wunner 2021-05-01 87
a97396c6eb13f65b Lukas Wunner 2021-05-01 88 return true;
a97396c6eb13f65b Lukas Wunner 2021-05-01 89 }
a97396c6eb13f65b Lukas Wunner 2021-05-01 90
a97396c6eb13f65b Lukas Wunner 2021-05-01 91 /**
a97396c6eb13f65b Lukas Wunner 2021-05-01 92 * pci_dpc_recovered - whether DPC triggered and has recovered successfully
a97396c6eb13f65b Lukas Wunner 2021-05-01 93 * @pdev: PCI device
a97396c6eb13f65b Lukas Wunner 2021-05-01 94 *
a97396c6eb13f65b Lukas Wunner 2021-05-01 95 * Return true if DPC was triggered for @pdev and has recovered successfully.
a97396c6eb13f65b Lukas Wunner 2021-05-01 96 * Wait for recovery if it hasn't completed yet. Called from the PCIe hotplug
a97396c6eb13f65b Lukas Wunner 2021-05-01 97 * driver to recognize and ignore Link Down/Up events caused by DPC.
a97396c6eb13f65b Lukas Wunner 2021-05-01 98 */
a97396c6eb13f65b Lukas Wunner 2021-05-01 99 bool pci_dpc_recovered(struct pci_dev *pdev)
a97396c6eb13f65b Lukas Wunner 2021-05-01 100 {
a97396c6eb13f65b Lukas Wunner 2021-05-01 101 struct pci_host_bridge *host;
a97396c6eb13f65b Lukas Wunner 2021-05-01 102
a97396c6eb13f65b Lukas Wunner 2021-05-01 103 if (!pdev->dpc_cap)
a97396c6eb13f65b Lukas Wunner 2021-05-01 104 return false;
a97396c6eb13f65b Lukas Wunner 2021-05-01 105
a97396c6eb13f65b Lukas Wunner 2021-05-01 106 /*
a97396c6eb13f65b Lukas Wunner 2021-05-01 107 * Synchronization between hotplug and DPC is not supported
a97396c6eb13f65b Lukas Wunner 2021-05-01 108 * if DPC is owned by firmware and EDR is not enabled.
a97396c6eb13f65b Lukas Wunner 2021-05-01 109 */
a97396c6eb13f65b Lukas Wunner 2021-05-01 110 host = pci_find_host_bridge(pdev->bus);
a97396c6eb13f65b Lukas Wunner 2021-05-01 111 if (!host->native_dpc && !IS_ENABLED(CONFIG_PCIE_EDR))
a97396c6eb13f65b Lukas Wunner 2021-05-01 112 return false;
a97396c6eb13f65b Lukas Wunner 2021-05-01 113
a97396c6eb13f65b Lukas Wunner 2021-05-01 114 /*
a97396c6eb13f65b Lukas Wunner 2021-05-01 115 * Need a timeout in case DPC never completes due to failure of
a97396c6eb13f65b Lukas Wunner 2021-05-01 116 * dpc_wait_rp_inactive(). The spec doesn't mandate a time limit,
a97396c6eb13f65b Lukas Wunner 2021-05-01 117 * but reports indicate that DPC completes within 4 seconds.
a97396c6eb13f65b Lukas Wunner 2021-05-01 118 */
a97396c6eb13f65b Lukas Wunner 2021-05-01 119 wait_event_timeout(dpc_completed_waitqueue, dpc_completed(pdev),
a97396c6eb13f65b Lukas Wunner 2021-05-01 120 msecs_to_jiffies(4000));
a97396c6eb13f65b Lukas Wunner 2021-05-01 121
a97396c6eb13f65b Lukas Wunner 2021-05-01 @122 return test_and_clear_bit(PCI_DPC_RECOVERED, &pdev->priv_flags);
a97396c6eb13f65b Lukas Wunner 2021-05-01 123 }
a97396c6eb13f65b Lukas Wunner 2021-05-01 124 #endif /* CONFIG_HOTPLUG_PCI_PCIE */
a97396c6eb13f65b Lukas Wunner 2021-05-01 125
---
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 v15 17/17] iomap: Convert iomap_migrate_page to use folios
by kernel test robot
Hi "Matthew,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.14-rc2 next-20210720]
[cannot apply to xfs-linux/for-next block/for-next]
[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/Matthew-Wilcox-Oracle/Folio-supp...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 2734d6c1b1a089fb593ef6a23d4b70903526fe0c
config: openrisc-randconfig-p002-20210720 (attached as .config)
compiler: or1k-linux-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/c560a69342e882de7f1fd097fa2589e8d...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Matthew-Wilcox-Oracle/Folio-support-in-block-iomap-layers/20210720-152323
git checkout c560a69342e882de7f1fd097fa2589e8d330eba0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=openrisc
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 >>):
| ^
include/asm-generic/bug.h:65:36: note: in expansion of macro 'unlikely'
65 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
| ^~~~~~~~
fs/iomap/buffered-io.c:207:2: note: in expansion of macro 'BUG_ON'
207 | BUG_ON(folio->index);
| ^~~~~~
fs/iomap/buffered-io.c:207:14: error: invalid use of undefined type 'struct folio'
207 | BUG_ON(folio->index);
| ^~
include/linux/compiler.h:35:19: note: in definition of macro '__branch_check__'
35 | expect, is_constant); \
| ^~~~~~~~~~~
include/asm-generic/bug.h:65:36: note: in expansion of macro 'unlikely'
65 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
| ^~~~~~~~
fs/iomap/buffered-io.c:207:2: note: in expansion of macro 'BUG_ON'
207 | BUG_ON(folio->index);
| ^~~~~~
fs/iomap/buffered-io.c:208:9: error: implicit declaration of function 'folio_multi' [-Werror=implicit-function-declaration]
208 | BUG_ON(folio_multi(folio));
| ^~~~~~~~~~~
include/linux/compiler.h:33:34: note: in definition of macro '__branch_check__'
33 | ______r = __builtin_expect(!!(x), expect); \
| ^
include/asm-generic/bug.h:65:36: note: in expansion of macro 'unlikely'
65 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
| ^~~~~~~~
fs/iomap/buffered-io.c:208:2: note: in expansion of macro 'BUG_ON'
208 | BUG_ON(folio_multi(folio));
| ^~~~~~
fs/iomap/buffered-io.c:211:9: error: implicit declaration of function 'kmap_local_folio'; did you mean 'kmap_local_fork'? [-Werror=implicit-function-declaration]
211 | addr = kmap_local_folio(folio, 0);
| ^~~~~~~~~~~~~~~~
| kmap_local_fork
fs/iomap/buffered-io.c:211:7: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
211 | addr = kmap_local_folio(folio, 0);
| ^
fs/iomap/buffered-io.c: In function 'iomap_readpage_actor':
fs/iomap/buffered-io.c:251:19: error: invalid use of undefined type 'struct folio'
251 | zero_user(&folio->page, poff, plen);
| ^~
fs/iomap/buffered-io.c:263:44: error: invalid use of undefined type 'struct folio'
263 | if (__bio_try_merge_page(ctx->bio, &folio->page, plen, poff,
| ^~
fs/iomap/buffered-io.c:270:43: error: invalid use of undefined type 'struct folio'
270 | gfp_t gfp = mapping_gfp_constraint(folio->mapping, GFP_KERNEL);
| ^~
fs/iomap/buffered-io.c: In function 'iomap_readpage':
fs/iomap/buffered-io.c:309:24: warning: initialization of 'struct folio *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
309 | struct folio *folio = page_folio(page);
| ^~~~~~~~~~
fs/iomap/buffered-io.c:311:29: error: invalid use of undefined type 'struct folio'
311 | struct inode *inode = folio->mapping->host;
| ^~
fs/iomap/buffered-io.c:319:28: error: implicit declaration of function 'folio_pos' [-Werror=implicit-function-declaration]
319 | ret = iomap_apply(inode, folio_pos(folio) + poff, len - poff,
| ^~~~~~~~~
fs/iomap/buffered-io.c: In function 'iomap_readahead_actor':
fs/iomap/buffered-io.c:360:21: error: implicit declaration of function 'readahead_folio'; did you mean 'readahead_count'? [-Werror=implicit-function-declaration]
360 | ctx->cur_folio = readahead_folio(ctx->rac);
| ^~~~~~~~~~~~~~~
| readahead_count
fs/iomap/buffered-io.c:360:19: warning: assignment to 'struct folio *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
360 | ctx->cur_folio = readahead_folio(ctx->rac);
| ^
fs/iomap/buffered-io.c: In function 'iomap_is_partially_uptodate':
fs/iomap/buffered-io.c:427:24: warning: initialization of 'struct folio *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
427 | struct folio *folio = page_folio(page);
| ^~~~~~~~~~
fs/iomap/buffered-io.c: In function 'iomap_releasepage':
fs/iomap/buffered-io.c:454:24: warning: initialization of 'struct folio *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
454 | struct folio *folio = page_folio(page);
| ^~~~~~~~~~
fs/iomap/buffered-io.c:456:31: error: invalid use of undefined type 'struct folio'
456 | trace_iomap_releasepage(folio->mapping->host, folio_pos(folio),
| ^~
fs/iomap/buffered-io.c:464:6: error: implicit declaration of function 'folio_test_dirty' [-Werror=implicit-function-declaration]
464 | if (folio_test_dirty(folio) || folio_test_writeback(folio))
| ^~~~~~~~~~~~~~~~
fs/iomap/buffered-io.c:464:33: error: implicit declaration of function 'folio_test_writeback' [-Werror=implicit-function-declaration]
464 | if (folio_test_dirty(folio) || folio_test_writeback(folio))
| ^~~~~~~~~~~~~~~~~~~~
fs/iomap/buffered-io.c: In function 'iomap_invalidatepage':
fs/iomap/buffered-io.c:474:24: warning: initialization of 'struct folio *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
474 | struct folio *folio = page_folio(page);
| ^~~~~~~~~~
fs/iomap/buffered-io.c:476:34: error: invalid use of undefined type 'struct folio'
476 | trace_iomap_invalidatepage(folio->mapping->host, offset, len);
| ^~
fs/iomap/buffered-io.c:484:3: error: implicit declaration of function 'folio_cancel_dirty' [-Werror=implicit-function-declaration]
484 | folio_cancel_dirty(folio);
| ^~~~~~~~~~~~~~~~~~
fs/iomap/buffered-io.c: In function 'iomap_migrate_page':
fs/iomap/buffered-io.c:495:24: warning: initialization of 'struct folio *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
495 | struct folio *folio = page_folio(page);
| ^~~~~~~~~~
fs/iomap/buffered-io.c:496:27: warning: initialization of 'struct folio *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
496 | struct folio *newfolio = page_folio(newpage);
| ^~~~~~~~~~
>> fs/iomap/buffered-io.c:499:8: error: implicit declaration of function 'folio_migrate_mapping' [-Werror=implicit-function-declaration]
499 | ret = folio_migrate_mapping(mapping, newfolio, folio, 0);
| ^~~~~~~~~~~~~~~~~~~~~
>> fs/iomap/buffered-io.c:507:3: error: implicit declaration of function 'folio_migrate_copy' [-Werror=implicit-function-declaration]
507 | folio_migrate_copy(newfolio, folio);
| ^~~~~~~~~~~~~~~~~~
>> fs/iomap/buffered-io.c:509:3: error: implicit declaration of function 'folio_migrate_flags'; did you mean 'do_migrate_pages'? [-Werror=implicit-function-declaration]
509 | folio_migrate_flags(newfolio, folio);
| ^~~~~~~~~~~~~~~~~~~
| do_migrate_pages
fs/iomap/buffered-io.c: In function '__iomap_write_begin':
fs/iomap/buffered-io.c:559:2: error: implicit declaration of function 'folio_clear_error' [-Werror=implicit-function-declaration]
559 | folio_clear_error(folio);
| ^~~~~~~~~~~~~~~~~
fs/iomap/buffered-io.c:575:29: error: invalid use of undefined type 'struct folio'
575 | zero_user_segments(&folio->page, poff, from, to,
| ^~
fs/iomap/buffered-io.c: In function 'iomap_write_begin':
fs/iomap/buffered-io.c:596:52: error: 'FGP_STABLE' undeclared (first use in this function)
596 | unsigned fgp = FGP_LOCK | FGP_WRITE | FGP_CREAT | FGP_STABLE | FGP_NOFS;
| ^~~~~~~~~~
fs/iomap/buffered-io.c:596:52: note: each undeclared identifier is reported only once for each function it appears in
fs/iomap/buffered-io.c:612:10: error: implicit declaration of function '__filemap_get_folio' [-Werror=implicit-function-declaration]
612 | folio = __filemap_get_folio(inode->i_mapping, pos >> PAGE_SHIFT, fgp,
| ^~~~~~~~~~~~~~~~~~~
fs/iomap/buffered-io.c:612:8: warning: assignment to 'struct folio *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
612 | folio = __filemap_get_folio(inode->i_mapping, pos >> PAGE_SHIFT, fgp,
| ^
fs/iomap/buffered-io.c:619:9: error: implicit declaration of function 'folio_file_page' [-Werror=implicit-function-declaration]
619 | page = folio_file_page(folio, pos >> PAGE_SHIFT);
| ^~~~~~~~~~~~~~~
fs/iomap/buffered-io.c:619:7: warning: assignment to 'struct page *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
619 | page = folio_file_page(folio, pos >> PAGE_SHIFT);
| ^
fs/iomap/buffered-io.c:636:2: error: implicit declaration of function 'folio_put'; did you mean 'bio_put'? [-Werror=implicit-function-declaration]
636 | folio_put(folio);
| ^~~~~~~~~
| bio_put
fs/iomap/buffered-io.c: In function '__iomap_write_end':
fs/iomap/buffered-io.c:649:2: error: implicit declaration of function 'flush_dcache_folio'; did you mean 'flush_cache_all'? [-Werror=implicit-function-declaration]
649 | flush_dcache_folio(folio);
| ^~~~~~~~~~~~~~~~~~
| flush_cache_all
fs/iomap/buffered-io.c:665:2: error: implicit declaration of function 'filemap_dirty_folio' [-Werror=implicit-function-declaration]
665 | filemap_dirty_folio(inode->i_mapping, folio);
| ^~~~~~~~~~~~~~~~~~~
fs/iomap/buffered-io.c: In function 'iomap_write_end_inline':
fs/iomap/buffered-io.c:678:7: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
678 | addr = kmap_local_folio(folio, 0);
| ^
fs/iomap/buffered-io.c: In function 'iomap_write_end':
fs/iomap/buffered-io.c:691:22: warning: initialization of 'struct page *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
691 | struct page *page = folio_file_page(folio, pos >> PAGE_SHIFT);
| ^~~~~~~~~~~~~~~
fs/iomap/buffered-io.c: In function 'iomap_write_actor':
fs/iomap/buffered-io.c:765:8: warning: assignment to 'struct page *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
765 | page = folio_file_page(folio, pos >> PAGE_SHIFT);
| ^
fs/iomap/buffered-io.c: In function 'iomap_zero':
fs/iomap/buffered-io.c:891:12: warning: passing argument 1 of 'zero_user' makes pointer from integer without a cast [-Wint-conversion]
891 | zero_user(folio_file_page(folio, pos >> PAGE_SHIFT), offset, bytes);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from include/linux/bio.h:8,
from include/linux/blkdev.h:18,
from include/linux/iomap.h:11,
from fs/iomap/buffered-io.c:9:
include/linux/highmem.h:231:43: note: expected 'struct page *' but argument is of type 'int'
231 | static inline void zero_user(struct page *page,
| ~~~~~~~~~~~~~^~~~
fs/iomap/buffered-io.c:892:2: error: implicit declaration of function 'folio_mark_accessed' [-Werror=implicit-function-declaration]
892 | folio_mark_accessed(folio);
| ^~~~~~~~~~~~~~~~~~~
fs/iomap/buffered-io.c: In function 'iomap_folio_mkwrite_actor':
fs/iomap/buffered-io.c:970:39: error: invalid use of undefined type 'struct folio'
970 | ret = __block_write_begin_int(&folio->page, pos, length, NULL,
| ^~
fs/iomap/buffered-io.c:974:28: error: invalid use of undefined type 'struct folio'
974 | block_commit_write(&folio->page, 0, length);
| ^~
fs/iomap/buffered-io.c:977:3: error: implicit declaration of function 'folio_mark_dirty' [-Werror=implicit-function-declaration]
977 | folio_mark_dirty(folio);
| ^~~~~~~~~~~~~~~~
fs/iomap/buffered-io.c: In function 'iomap_page_mkwrite':
fs/iomap/buffered-io.c:985:24: warning: initialization of 'struct folio *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
985 | struct folio *folio = page_folio(vmf->page);
| ^~~~~~~~~~
fs/iomap/buffered-io.c:991:2: error: implicit declaration of function 'folio_lock'; did you mean 'osq_lock'? [-Werror=implicit-function-declaration]
991 | folio_lock(folio);
| ^~~~~~~~~~
| osq_lock
fs/iomap/buffered-io.c:992:8: error: implicit declaration of function 'folio_mkwrite_check_truncate'; did you mean 'page_mkwrite_check_truncate'? [-Werror=implicit-function-declaration]
992 | ret = folio_mkwrite_check_truncate(folio, inode);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| page_mkwrite_check_truncate
fs/iomap/buffered-io.c:1008:2: error: implicit declaration of function 'folio_wait_stable' [-Werror=implicit-function-declaration]
1008 | folio_wait_stable(folio);
| ^~~~~~~~~~~~~~~~~
fs/iomap/buffered-io.c: In function 'iomap_finish_folio_write':
fs/iomap/buffered-io.c:1030:3: error: implicit declaration of function 'folio_end_writeback'; did you mean 'file_end_write'? [-Werror=implicit-function-declaration]
1030 | folio_end_writeback(folio);
| ^~~~~~~~~~~~~~~~~~~
| file_end_write
fs/iomap/buffered-io.c: In function 'iomap_add_to_ioend':
fs/iomap/buffered-io.c:1280:38: error: invalid use of undefined type 'struct folio'
1280 | wbc_account_cgroup_owner(wbc, &folio->page, len);
vim +/folio_migrate_mapping +499 fs/iomap/buffered-io.c
489
490 #ifdef CONFIG_MIGRATION
491 int
492 iomap_migrate_page(struct address_space *mapping, struct page *newpage,
493 struct page *page, enum migrate_mode mode)
494 {
495 struct folio *folio = page_folio(page);
496 struct folio *newfolio = page_folio(newpage);
497 int ret;
498
> 499 ret = folio_migrate_mapping(mapping, newfolio, folio, 0);
500 if (ret != MIGRATEPAGE_SUCCESS)
501 return ret;
502
503 if (folio_test_private(folio))
504 folio_attach_private(newfolio, folio_detach_private(folio));
505
506 if (mode != MIGRATE_SYNC_NO_COPY)
> 507 folio_migrate_copy(newfolio, folio);
508 else
> 509 folio_migrate_flags(newfolio, folio);
510 return MIGRATEPAGE_SUCCESS;
511 }
512 EXPORT_SYMBOL_GPL(iomap_migrate_page);
513 #endif /* CONFIG_MIGRATION */
514
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[linux-stable-rc:linux-5.4.y 5527/5583] arch/powerpc/xmon/xmon.c:489:6: error: variable 'cmd' might be clobbered by 'longjmp' or 'vfork'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.4.y
head: 12a5ce113626ce8208aef76d4d2e9fc93ea48ddf
commit: 99c63ba21d2ea9d28880b0341b25e4a4ce8a18bb [5527/5583] powerpc/xmon: Restrict when kernel is locked down
config: powerpc64-randconfig-r002-20210720 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gi...
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-5.4.y
git checkout 99c63ba21d2ea9d28880b0341b25e4a4ce8a18bb
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=powerpc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from arch/powerpc/xmon/xmon.c:64:
arch/powerpc/xmon/dis-asm.h: In function 'print_insn_powerpc':
arch/powerpc/xmon/dis-asm.h:16:13: error: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Werror=format=]
16 | printf("%.8x", insn);
| ~~~^ ~~~~
| | |
| | long unsigned int
| unsigned int
| %.8lx
arch/powerpc/xmon/dis-asm.h: In function 'print_insn_spu':
arch/powerpc/xmon/dis-asm.h:22:13: error: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Werror=format=]
22 | printf("%.8x", insn);
| ~~~^ ~~~~
| | |
| | long unsigned int
| unsigned int
| %.8lx
arch/powerpc/xmon/xmon.c: In function 'xmon_print_symbol':
arch/powerpc/xmon/xmon.c:3535:14: error: variable 'name' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered]
3535 | const char *name = NULL;
| ^~~~
arch/powerpc/xmon/xmon.c: In function 'show_pte':
arch/powerpc/xmon/xmon.c:3121:22: error: variable 'tsk' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered]
3121 | struct task_struct *tsk = NULL;
| ^~~
arch/powerpc/xmon/xmon.c: In function 'show_tasks':
arch/powerpc/xmon/xmon.c:3217:22: error: variable 'tsk' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered]
3217 | struct task_struct *tsk = NULL;
| ^~~
arch/powerpc/xmon/xmon.c: In function 'xmon_core':
>> arch/powerpc/xmon/xmon.c:489:6: error: variable 'cmd' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered]
489 | int cmd = 0;
| ^~~
arch/powerpc/xmon/xmon.c:848:14: error: variable 'bp' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered]
848 | struct bpt *bp;
| ^~
arch/powerpc/xmon/xmon.c:848:14: error: variable 'bp' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered]
arch/powerpc/xmon/xmon.c:487:48: error: argument 'fromipi' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered]
487 | static int xmon_core(struct pt_regs *regs, int fromipi)
| ~~~~^~~~~~~
cc1: all warnings being treated as errors
vim +489 arch/powerpc/xmon/xmon.c
daf8f40391b2a1 arch/powerpc/xmon/xmon.c Josh Boyer 2009-09-23 486
b0da985644faa4 arch/powerpc/xmon/xmon.c Arnd Bergmann 2006-01-11 487 static int xmon_core(struct pt_regs *regs, int fromipi)
^1da177e4c3f41 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 488 {
^1da177e4c3f41 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 @489 int cmd = 0;
^1da177e4c3f41 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 490 struct bpt *bp;
^1da177e4c3f41 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 491 long recurse_jmp[JMP_BUF_LEN];
99c63ba21d2ea9 arch/powerpc/xmon/xmon.c Christopher M. Riedl 2019-09-07 492 bool locked_down;
^1da177e4c3f41 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 493 unsigned long offset;
f13659e0b39075 arch/powerpc/xmon/xmon.c Anton Blanchard 2007-03-21 494 unsigned long flags;
^1da177e4c3f41 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 495 #ifdef CONFIG_SMP
^1da177e4c3f41 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 496 int cpu;
^1da177e4c3f41 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 497 int secondary;
^1da177e4c3f41 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 498 #endif
^1da177e4c3f41 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 499
f13659e0b39075 arch/powerpc/xmon/xmon.c Anton Blanchard 2007-03-21 500 local_irq_save(flags);
a71d64b4dc4067 arch/powerpc/xmon/xmon.c Anton Blanchard 2014-08-05 501 hard_irq_disable();
^1da177e4c3f41 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 502
99c63ba21d2ea9 arch/powerpc/xmon/xmon.c Christopher M. Riedl 2019-09-07 503 locked_down = xmon_is_locked_down();
99c63ba21d2ea9 arch/powerpc/xmon/xmon.c Christopher M. Riedl 2019-09-07 504
aaf06665f7ea3e arch/powerpc/xmon/xmon.c Naveen N. Rao 2019-06-27 505 if (!fromipi) {
ed49f7fd6438dc arch/powerpc/xmon/xmon.c Breno Leitao 2017-08-02 506 tracing_enabled = tracing_is_on();
ed49f7fd6438dc arch/powerpc/xmon/xmon.c Breno Leitao 2017-08-02 507 tracing_off();
aaf06665f7ea3e arch/powerpc/xmon/xmon.c Naveen N. Rao 2019-06-27 508 }
ed49f7fd6438dc arch/powerpc/xmon/xmon.c Breno Leitao 2017-08-02 509
^1da177e4c3f41 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 510 bp = in_breakpoint_table(regs->nip, &offset);
^1da177e4c3f41 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 511 if (bp != NULL) {
^1da177e4c3f41 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 512 regs->nip = bp->address + offset;
^1da177e4c3f41 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 513 atomic_dec(&bp->ref_count);
^1da177e4c3f41 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 514 }
^1da177e4c3f41 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 515
^1da177e4c3f41 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 516 remove_cpu_bpts();
^1da177e4c3f41 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 517
:::::: The code at line 489 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds(a)ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds(a)ppc970.osdl.org>
---
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 v15 02/17] block: Add bio_for_each_folio_all()
by kernel test robot
Hi "Matthew,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.14-rc2 next-20210720]
[cannot apply to xfs-linux/for-next block/for-next]
[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/Matthew-Wilcox-Oracle/Folio-supp...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 2734d6c1b1a089fb593ef6a23d4b70903526fe0c
config: i386-tinyconfig (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/d611eec3f37483e1acbcc299bf47e9297...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Matthew-Wilcox-Oracle/Folio-support-in-block-iomap-layers/20210720-152323
git checkout d611eec3f37483e1acbcc299bf47e929766afc8d
# save the attached .config to linux build tree
make W=1 ARCH=i386
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 >>):
In file included from include/linux/blkdev.h:18,
from include/linux/blk-cgroup.h:23,
from include/linux/writeback.h:14,
from include/linux/memcontrol.h:22,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/x86/kernel/asm-offsets.c:13:
include/linux/bio.h: In function 'bio_first_folio':
>> include/linux/bio.h:338:14: error: implicit declaration of function 'page_folio' [-Werror=implicit-function-declaration]
338 | fi->folio = page_folio(bvec->bv_page);
| ^~~~~~~~~~
>> include/linux/bio.h:338:12: warning: assignment to 'struct folio *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
338 | fi->folio = page_folio(bvec->bv_page);
| ^
>> include/linux/bio.h:340:43: error: invalid use of undefined type 'struct folio'
340 | PAGE_SIZE * (bvec->bv_page - &fi->folio->page);
| ^~
In file included from include/linux/kernel.h:16,
from include/linux/crypto.h:16,
from arch/x86/kernel/asm-offsets.c:9:
>> include/linux/bio.h:342:19: error: implicit declaration of function 'folio_size' [-Werror=implicit-function-declaration]
342 | fi->length = min(folio_size(fi->folio) - fi->offset, fi->_seg_count);
| ^~~~~~~~~~
include/linux/minmax.h:20:21: note: in definition of macro '__typecheck'
20 | (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
| ^
include/linux/minmax.h:36:24: note: in expansion of macro '__safe_cmp'
36 | __builtin_choose_expr(__safe_cmp(x, y), \
| ^~~~~~~~~~
include/linux/minmax.h:45:19: note: in expansion of macro '__careful_cmp'
45 | #define min(x, y) __careful_cmp(x, y, <)
| ^~~~~~~~~~~~~
include/linux/bio.h:342:15: note: in expansion of macro 'min'
342 | fi->length = min(folio_size(fi->folio) - fi->offset, fi->_seg_count);
| ^~~
In file included from include/linux/blkdev.h:18,
from include/linux/blk-cgroup.h:23,
from include/linux/writeback.h:14,
from include/linux/memcontrol.h:22,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/x86/kernel/asm-offsets.c:13:
include/linux/bio.h: In function 'bio_next_folio':
>> include/linux/bio.h:350:15: error: implicit declaration of function 'folio_next' [-Werror=implicit-function-declaration]
350 | fi->folio = folio_next(fi->folio);
| ^~~~~~~~~~
include/linux/bio.h:350:13: warning: assignment to 'struct folio *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
350 | fi->folio = folio_next(fi->folio);
| ^
In file included from include/linux/kernel.h:16,
from include/linux/crypto.h:16,
from arch/x86/kernel/asm-offsets.c:9:
include/linux/minmax.h:20:28: warning: comparison of distinct pointer types lacks a cast
20 | (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
| ^~
include/linux/minmax.h:26:4: note: in expansion of macro '__typecheck'
26 | (__typecheck(x, y) && __no_side_effects(x, y))
| ^~~~~~~~~~~
include/linux/minmax.h:36:24: note: in expansion of macro '__safe_cmp'
36 | __builtin_choose_expr(__safe_cmp(x, y), \
| ^~~~~~~~~~
include/linux/minmax.h:45:19: note: in expansion of macro '__careful_cmp'
45 | #define min(x, y) __careful_cmp(x, y, <)
| ^~~~~~~~~~~~~
include/linux/bio.h:352:16: note: in expansion of macro 'min'
352 | fi->length = min(folio_size(fi->folio), fi->_seg_count);
| ^~~
cc1: some warnings being treated as errors
--
In file included from include/linux/blkdev.h:18,
from include/linux/blk-cgroup.h:23,
from include/linux/writeback.h:14,
from include/linux/memcontrol.h:22,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/x86/kernel/asm-offsets.c:13:
include/linux/bio.h: In function 'bio_first_folio':
>> include/linux/bio.h:338:14: error: implicit declaration of function 'page_folio' [-Werror=implicit-function-declaration]
338 | fi->folio = page_folio(bvec->bv_page);
| ^~~~~~~~~~
>> include/linux/bio.h:338:12: warning: assignment to 'struct folio *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
338 | fi->folio = page_folio(bvec->bv_page);
| ^
>> include/linux/bio.h:340:43: error: invalid use of undefined type 'struct folio'
340 | PAGE_SIZE * (bvec->bv_page - &fi->folio->page);
| ^~
In file included from include/linux/kernel.h:16,
from include/linux/crypto.h:16,
from arch/x86/kernel/asm-offsets.c:9:
>> include/linux/bio.h:342:19: error: implicit declaration of function 'folio_size' [-Werror=implicit-function-declaration]
342 | fi->length = min(folio_size(fi->folio) - fi->offset, fi->_seg_count);
| ^~~~~~~~~~
include/linux/minmax.h:20:21: note: in definition of macro '__typecheck'
20 | (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
| ^
include/linux/minmax.h:36:24: note: in expansion of macro '__safe_cmp'
36 | __builtin_choose_expr(__safe_cmp(x, y), \
| ^~~~~~~~~~
include/linux/minmax.h:45:19: note: in expansion of macro '__careful_cmp'
45 | #define min(x, y) __careful_cmp(x, y, <)
| ^~~~~~~~~~~~~
include/linux/bio.h:342:15: note: in expansion of macro 'min'
342 | fi->length = min(folio_size(fi->folio) - fi->offset, fi->_seg_count);
| ^~~
In file included from include/linux/blkdev.h:18,
from include/linux/blk-cgroup.h:23,
from include/linux/writeback.h:14,
from include/linux/memcontrol.h:22,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/x86/kernel/asm-offsets.c:13:
include/linux/bio.h: In function 'bio_next_folio':
>> include/linux/bio.h:350:15: error: implicit declaration of function 'folio_next' [-Werror=implicit-function-declaration]
350 | fi->folio = folio_next(fi->folio);
| ^~~~~~~~~~
include/linux/bio.h:350:13: warning: assignment to 'struct folio *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
350 | fi->folio = folio_next(fi->folio);
| ^
In file included from include/linux/kernel.h:16,
from include/linux/crypto.h:16,
from arch/x86/kernel/asm-offsets.c:9:
include/linux/minmax.h:20:28: warning: comparison of distinct pointer types lacks a cast
20 | (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
| ^~
include/linux/minmax.h:26:4: note: in expansion of macro '__typecheck'
26 | (__typecheck(x, y) && __no_side_effects(x, y))
| ^~~~~~~~~~~
include/linux/minmax.h:36:24: note: in expansion of macro '__safe_cmp'
36 | __builtin_choose_expr(__safe_cmp(x, y), \
| ^~~~~~~~~~
include/linux/minmax.h:45:19: note: in expansion of macro '__careful_cmp'
45 | #define min(x, y) __careful_cmp(x, y, <)
| ^~~~~~~~~~~~~
include/linux/bio.h:352:16: note: in expansion of macro 'min'
352 | fi->length = min(folio_size(fi->folio), fi->_seg_count);
| ^~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:117: arch/x86/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1213: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:220: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/page_folio +338 include/linux/bio.h
332
333 static inline
334 void bio_first_folio(struct folio_iter *fi, struct bio *bio, int i)
335 {
336 struct bio_vec *bvec = bio_first_bvec_all(bio) + i;
337
> 338 fi->folio = page_folio(bvec->bv_page);
339 fi->offset = bvec->bv_offset +
> 340 PAGE_SIZE * (bvec->bv_page - &fi->folio->page);
341 fi->_seg_count = bvec->bv_len;
> 342 fi->length = min(folio_size(fi->folio) - fi->offset, fi->_seg_count);
343 fi->_i = i;
344 }
345
346 static inline void bio_next_folio(struct folio_iter *fi, struct bio *bio)
347 {
348 fi->_seg_count -= fi->length;
349 if (fi->_seg_count) {
> 350 fi->folio = folio_next(fi->folio);
351 fi->offset = 0;
352 fi->length = min(folio_size(fi->folio), fi->_seg_count);
353 } else if (fi->_i + 1 < bio->bi_vcnt) {
354 bio_first_folio(fi, bio, fi->_i + 1);
355 } else {
356 fi->folio = NULL;
357 }
358 }
359
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[linux-stable-rc:linux-5.12.y 232/1084] resctrlfs.c:641:28: error: 'CMT_STR' undeclared; did you mean 'CAT_STR'?
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.12.y
head: 6c1612b7930018e618fc920494f1982130d24d5b
commit: 477c43592fb66d01619c73df004b64b95bf7f52d [232/1084] selftests/resctrl: Use resctrl/info for feature detection
config: x86_64-rhel-8.3-kselftests (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gi...
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-5.12.y
git checkout 477c43592fb66d01619c73df004b64b95bf7f52d
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash -C tools/testing/selftests/resctrl install
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 >>):
resctrlfs.c: In function 'validate_resctrl_feature_request':
>> resctrlfs.c:641:28: error: 'CMT_STR' undeclared (first use in this function); did you mean 'CAT_STR'?
641 | !strncmp(resctrl_val, CMT_STR, sizeof(CMT_STR))) {
| ^~~~~~~
| CAT_STR
resctrlfs.c:641:28: note: each undeclared identifier is reported only once for each function it appears in
--
/usr/bin/ld: /tmp/ccCN2nw1.o: warning: relocation against `tests_run' in read-only section `.text.startup'
/usr/bin/ld: /tmp/ccCN2nw1.o: in function `detect_amd':
>> tools/testing/selftests/resctrl/resctrl_tests.c:26: undefined reference to `fgrep'
/usr/bin/ld: /tmp/ccCN2nw1.o: in function `tests_cleanup':
>> tools/testing/selftests/resctrl/resctrl_tests.c:51: undefined reference to `mbm_test_cleanup'
>> /usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:52: undefined reference to `mba_test_cleanup'
>> /usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:53: undefined reference to `cqm_test_cleanup'
>> /usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:54: undefined reference to `cat_test_cleanup'
/usr/bin/ld: /tmp/ccCN2nw1.o: in function `main':
>> tools/testing/selftests/resctrl/resctrl_tests.c:158: undefined reference to `check_resctrlfs_support'
>> /usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:159: undefined reference to `filter_dmesg'
/usr/bin/ld: /tmp/ccCN2nw1.o: in function `printf':
>> /usr/include/x86_64-linux-gnu/bits/stdio2.h:107: undefined reference to `tests_run'
/usr/bin/ld: /tmp/ccCN2nw1.o: in function `main':
>> tools/testing/selftests/resctrl/resctrl_tests.c:158: undefined reference to `check_resctrlfs_support'
>> /usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:159: undefined reference to `filter_dmesg'
>> /usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:165: undefined reference to `mbm_bw_change'
>> /usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:167: undefined reference to `mbm_test_cleanup'
>> /usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:168: undefined reference to `tests_run'
>> /usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:193: undefined reference to `cat_perf_miss_val'
/usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:195: undefined reference to `tests_run'
/usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:196: undefined reference to `cat_test_cleanup'
>> /usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:185: undefined reference to `cqm_resctrl_val'
/usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:187: undefined reference to `cqm_test_cleanup'
/usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:188: undefined reference to `tests_run'
>> /usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:175: undefined reference to `mba_schemata_change'
/usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:177: undefined reference to `mba_test_cleanup'
/usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:178: undefined reference to `tests_run'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months