[PATCH] drm: bridge: fix odd_ptr_err.cocci warnings
by kernel test robot
From: kernel test robot <lkp(a)intel.com>
drivers/gpu/drm/bridge/ite-it66121.c:944:5-11: inconsistent IS_ERR and PTR_ERR on line 946.
PTR_ERR should access the value just tested by IS_ERR
Semantic patch information:
There can be false positives in the patch case, where it is the call to
IS_ERR that is wrong.
Generated by: scripts/coccinelle/tests/odd_ptr_err.cocci
CC: Phong LE <ple(a)baylibre.com>
Reported-by: kernel test robot <lkp(a)intel.com>
Signed-off-by: kernel test robot <lkp(a)intel.com>
---
url: https://github.com/0day-ci/linux/commits/Neil-Armstrong/drm-bridge-Add-it...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git bf05bf16c76bb44ab5156223e1e58e26dfe30a88
ite-it66121.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/gpu/drm/bridge/ite-it66121.c
+++ b/drivers/gpu/drm/bridge/ite-it66121.c
@@ -943,7 +943,7 @@ static int it66121_probe(struct i2c_clie
ctx->regmap = devm_regmap_init_i2c(client, &it66121_regmap_config);
if (IS_ERR(ctx->regmap)) {
ite66121_power_off(ctx);
- return PTR_ERR(ctx);
+ return PTR_ERR(ctx->regmap);
}
regmap_read(ctx->regmap, IT66121_VENDOR_ID0_REG, &vendor_ids[0]);
1 year, 5 months
[linux-platform-drivers-x86:review-hans 79/82] drivers/platform/x86/intel_pmc_core.c:1369 pmc_core_lpm_latch_mode_write() warn: unsigned 'ret' is never less than zero.
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x8... review-hans
head: 8d01cf643b3f8bc79c5b6bf18382b943143d9090
commit: 8074a79fad2e34fce11ea2b2c515b984fc6b2a08 [79/82] platform/x86: intel_pmc_core: Add option to set/clear LPM mode
config: x86_64-randconfig-m001-20210419 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
smatch warnings:
drivers/platform/x86/intel_pmc_core.c:1369 pmc_core_lpm_latch_mode_write() warn: unsigned 'ret' is never less than zero.
vim +/ret +1369 drivers/platform/x86/intel_pmc_core.c
1352
1353 static ssize_t pmc_core_lpm_latch_mode_write(struct file *file,
1354 const char __user *userbuf,
1355 size_t count, loff_t *ppos)
1356 {
1357 struct seq_file *s = file->private_data;
1358 struct pmc_dev *pmcdev = s->private;
1359 bool clear = false, c10 = false;
1360 unsigned char buf[8];
1361 size_t ret;
1362 int idx, m, mode;
1363 u32 reg;
1364
1365 if (count > sizeof(buf) - 1)
1366 return -EINVAL;
1367
1368 ret = simple_write_to_buffer(buf, sizeof(buf) - 1, ppos, userbuf, count);
> 1369 if (ret < 0)
1370 return ret;
1371
1372 buf[count] = '\0';
1373
1374 /*
1375 * Allowed strings are:
1376 * Any enabled substate, e.g. 'S0i2.0'
1377 * 'c10'
1378 * 'clear'
1379 */
1380 mode = sysfs_match_string(pmc_lpm_modes, buf);
1381
1382 /* Check string matches enabled mode */
1383 pmc_for_each_mode(idx, m, pmcdev)
1384 if (mode == m)
1385 break;
1386
1387 if (mode != m || mode < 0) {
1388 if (sysfs_streq(buf, "clear"))
1389 clear = true;
1390 else if (sysfs_streq(buf, "c10"))
1391 c10 = true;
1392 else
1393 return -EINVAL;
1394 }
1395
1396 if (clear) {
1397 mutex_lock(&pmcdev->lock);
1398
1399 reg = pmc_core_reg_read(pmcdev, pmcdev->map->etr3_offset);
1400 reg |= ETR3_CLEAR_LPM_EVENTS;
1401 pmc_core_reg_write(pmcdev, pmcdev->map->etr3_offset, reg);
1402
1403 mutex_unlock(&pmcdev->lock);
1404
1405 return count;
1406 }
1407
1408 if (c10) {
1409 mutex_lock(&pmcdev->lock);
1410
1411 reg = pmc_core_reg_read(pmcdev, pmcdev->map->lpm_sts_latch_en_offset);
1412 reg &= ~LPM_STS_LATCH_MODE;
1413 pmc_core_reg_write(pmcdev, pmcdev->map->lpm_sts_latch_en_offset, reg);
1414
1415 mutex_unlock(&pmcdev->lock);
1416
1417 return count;
1418 }
1419
1420 /*
1421 * For LPM mode latching we set the latch enable bit and selected mode
1422 * and clear everything else.
1423 */
1424 reg = LPM_STS_LATCH_MODE | BIT(mode);
1425 mutex_lock(&pmcdev->lock);
1426 pmc_core_reg_write(pmcdev, pmcdev->map->lpm_sts_latch_en_offset, reg);
1427 mutex_unlock(&pmcdev->lock);
1428
1429 return count;
1430 }
1431 DEFINE_PMC_CORE_ATTR_WRITE(pmc_core_lpm_latch_mode);
1432
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
Re: [PATCH 2/2] drm/panel: Add support for E Ink VB3300-KCA
by kernel test robot
Hi Alistair,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on robh/for-next]
[also build test WARNING on linux/master linus/master v5.12-rc8 next-20210416]
[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/Alistair-Francis/dt-bindings-Add...
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: powerpc-randconfig-r013-20210419 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 2b50f5a4343f8fb06acaa5c36355bcf58092c9cd)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://github.com/0day-ci/linux/commit/640f815589e788925b67d26bad5acec31...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Alistair-Francis/dt-bindings-Add-E-Ink-to-vendor-bindings/20210419-164835
git checkout 640f815589e788925b67d26bad5acec31594f456
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
^
arch/powerpc/include/asm/io.h:537:62: note: expanded from macro '__do_outl'
#define __do_outl(val, port) writel(val,(PCI_IO_ADDR)_IO_BASE+port);
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/gpu/drm/panel/panel-simple.c:26:
In file included from include/linux/iopoll.h:14:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:43:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insb, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:187:1: note: expanded from here
__do_insb
^
arch/powerpc/include/asm/io.h:556:56: note: expanded from macro '__do_insb'
#define __do_insb(p, b, n) readsb((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/gpu/drm/panel/panel-simple.c:26:
In file included from include/linux/iopoll.h:14:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:45:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:189:1: note: expanded from here
__do_insw
^
arch/powerpc/include/asm/io.h:557:56: note: expanded from macro '__do_insw'
#define __do_insw(p, b, n) readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/gpu/drm/panel/panel-simple.c:26:
In file included from include/linux/iopoll.h:14:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:191:1: note: expanded from here
__do_insl
^
arch/powerpc/include/asm/io.h:558:56: note: expanded from macro '__do_insl'
#define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/gpu/drm/panel/panel-simple.c:26:
In file included from include/linux/iopoll.h:14:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:193:1: note: expanded from here
__do_outsb
^
arch/powerpc/include/asm/io.h:559:58: note: expanded from macro '__do_outsb'
#define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/gpu/drm/panel/panel-simple.c:26:
In file included from include/linux/iopoll.h:14:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:195:1: note: expanded from here
__do_outsw
^
arch/powerpc/include/asm/io.h:560:58: note: expanded from macro '__do_outsw'
#define __do_outsw(p, b, n) writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/gpu/drm/panel/panel-simple.c:26:
In file included from include/linux/iopoll.h:14:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:197:1: note: expanded from here
__do_outsl
^
arch/powerpc/include/asm/io.h:561:58: note: expanded from macro '__do_outsl'
#define __do_outsl(p, b, n) writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
>> drivers/gpu/drm/panel/panel-simple.c:1967:36: warning: unused variable 'eink_vb3300_kca_timing' [-Wunused-const-variable]
static const struct display_timing eink_vb3300_kca_timing = {
^
13 warnings generated.
vim +/eink_vb3300_kca_timing +1967 drivers/gpu/drm/panel/panel-simple.c
1966
> 1967 static const struct display_timing eink_vb3300_kca_timing = {
1968 .pixelclock = { 40000000, 40000000, 40000000 },
1969 .hactive = { 334, 334, 334 },
1970 .hfront_porch = { 1, 1, 1 },
1971 .hback_porch = { 1, 1, 1 },
1972 .hsync_len = { 1, 1, 1 },
1973 .vactive = { 1405, 1405, 1405 },
1974 .vfront_porch = { 1, 1, 1 },
1975 .vback_porch = { 1, 1, 1 },
1976 .vsync_len = { 1, 1, 1 },
1977 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
1978 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE,
1979 };
1980
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[asoc:for-5.13 195/201] sound/soc/generic/simple-card.c:478:1: warning: the frame size of 1544 bytes is larger than 1024 bytes
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.13
head: d63f2a88d5cfaad025f26e1107f3807d579654c5
commit: 343e55e71877415a23372388b3e0c59a9bba42f6 [195/201] ASoC: simple-card-utils: Increase maximum number of links to 128
config: arm-randconfig-r014-20210419 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.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/broonie/sound.git/commit/...
git remote add asoc https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
git fetch --no-tags asoc for-5.13
git checkout 343e55e71877415a23372388b3e0c59a9bba42f6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 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/generic/simple-card.c: In function 'simple_parse_of':
>> sound/soc/generic/simple-card.c:478:1: warning: the frame size of 1544 bytes is larger than 1024 bytes [-Wframe-larger-than=]
478 | }
| ^
sound/soc/generic/simple-card.c: In function 'asoc_simple_probe':
sound/soc/generic/simple-card.c:706:1: warning: the frame size of 1544 bytes is larger than 1024 bytes [-Wframe-larger-than=]
706 | }
| ^
--
sound/soc/generic/audio-graph-card.c: In function 'audio_graph_parse_of':
>> sound/soc/generic/audio-graph-card.c:612:1: warning: the frame size of 1544 bytes is larger than 1024 bytes [-Wframe-larger-than=]
612 | }
| ^
vim +478 sound/soc/generic/simple-card.c
39af7f7a03d007 Kuninori Morimoto 2021-03-26 444
e59289cda8dec0 Kuninori Morimoto 2019-03-20 445 static int simple_parse_of(struct asoc_simple_priv *priv)
fa558c2801fc17 Kuninori Morimoto 2013-11-20 446 {
5be509576cf634 Kuninori Morimoto 2017-03-15 447 struct snd_soc_card *card = simple_priv_to_card(priv);
17029e494edc68 Kuninori Morimoto 2018-12-20 448 struct link_info li;
c39291a76444e3 Kuninori Morimoto 2018-12-20 449 int ret;
da215354eb55c3 Kuninori Morimoto 2018-12-14 450
ad11e59f52d6fc Kuninori Morimoto 2019-03-20 451 ret = asoc_simple_parse_widgets(card, PREFIX);
fa2760dd366c73 Kuninori Morimoto 2017-06-16 452 if (ret < 0)
da215354eb55c3 Kuninori Morimoto 2018-12-14 453 return ret;
9d681f5bfc8551 Xiubo Li 2014-02-08 454
ad11e59f52d6fc Kuninori Morimoto 2019-03-20 455 ret = asoc_simple_parse_routing(card, PREFIX);
1fdb5d258e28de Kuninori Morimoto 2017-06-15 456 if (ret < 0)
da215354eb55c3 Kuninori Morimoto 2018-12-14 457 return ret;
d4c22094b256a7 Xiubo Li 2013-12-23 458
552f2d7edd38e2 Paul Cercueil 2019-04-26 459 ret = asoc_simple_parse_pin_switches(card, PREFIX);
552f2d7edd38e2 Paul Cercueil 2019-04-26 460 if (ret < 0)
552f2d7edd38e2 Paul Cercueil 2019-04-26 461 return ret;
552f2d7edd38e2 Paul Cercueil 2019-04-26 462
2080437d375f4d Xiubo Li 2014-09-03 463 /* Single/Muti DAI link(s) & New style of DT node */
17029e494edc68 Kuninori Morimoto 2018-12-20 464 memset(&li, 0, sizeof(li));
2d01a84605a55c Kuninori Morimoto 2018-12-20 465 ret = simple_for_each_link(priv, &li,
2d01a84605a55c Kuninori Morimoto 2018-12-20 466 simple_dai_link_of,
2d01a84605a55c Kuninori Morimoto 2018-12-20 467 simple_dai_link_of_dpcm);
da215354eb55c3 Kuninori Morimoto 2018-12-14 468 if (ret < 0)
da215354eb55c3 Kuninori Morimoto 2018-12-14 469 return ret;
d947cdfd4be29c Kuninori Morimoto 2018-12-20 470
ad11e59f52d6fc Kuninori Morimoto 2019-03-20 471 ret = asoc_simple_parse_card_name(card, PREFIX);
899a247cf6d5bb Nikita Yushchenko 2016-09-26 472 if (ret < 0)
da215354eb55c3 Kuninori Morimoto 2018-12-14 473 return ret;
f687d900d30a61 Kuninori Morimoto 2014-02-27 474
d9ffff696c5b46 Stephan Gerhold 2020-08-01 475 ret = snd_soc_of_parse_aux_devs(card, PREFIX "aux-devs");
a03b0545c26d88 Kuninori Morimoto 2016-08-26 476
a03b0545c26d88 Kuninori Morimoto 2016-08-26 477 return ret;
fa558c2801fc17 Kuninori Morimoto 2013-11-20 @478 }
fa558c2801fc17 Kuninori Morimoto 2013-11-20 479
:::::: The code at line 478 was first introduced by commit
:::::: fa558c2801fc173758c742d836f3cc4621851557 ASoC: simple-card: add Device Tree support
:::::: TO: Kuninori Morimoto <kuninori.morimoto.gx(a)renesas.com>
:::::: CC: Mark Brown <broonie(a)linaro.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
Re: [RFC v1 PATCH 3/3] driver: update all the code that use soc_device_match
by kernel test robot
Hi "Alice,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on renesas-drivers/renesas-clk]
[also build test WARNING on vkoul-dmaengine/next linuxtv-media/master renesas-drivers/renesas-pinctrl renesas-devel/next linus/master v5.12-rc8 next-20210416]
[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/Alice-Guo-OSS/support-soc_device...
base: https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git renesas-clk
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.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/5dc133669083c08a14f24be6e24b5aa18...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Alice-Guo-OSS/support-soc_device_match-to-return-EPROBE_DEFER/20210419-123109
git checkout 5dc133669083c08a14f24be6e24b5aa1840836c7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 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/gpu/drm/omapdrm/dss/dpi.c: In function 'dpi_init_regulator':
>> drivers/gpu/drm/omapdrm/dss/dpi.c:686:6: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
686 | soc = soc_device_match(dpi_soc_devices);
| ^
vim +/const +686 drivers/gpu/drm/omapdrm/dss/dpi.c
676
677 static int dpi_init_regulator(struct dpi_data *dpi)
678 {
679 struct regulator *vdds_dsi;
680 struct soc_device_attribute *soc;
681
682 /*
683 * The DPI uses the DSI VDDS on OMAP34xx, OMAP35xx, OMAP36xx, AM37xx and
684 * DM37xx only.
685 */
> 686 soc = soc_device_match(dpi_soc_devices);
687 if (!IS_ERR(soc) && !soc)
688 return 0;
689
690 vdds_dsi = devm_regulator_get(&dpi->pdev->dev, "vdds_dsi");
691 if (IS_ERR(vdds_dsi)) {
692 if (PTR_ERR(vdds_dsi) != -EPROBE_DEFER)
693 DSSERR("can't get VDDS_DSI regulator\n");
694 return PTR_ERR(vdds_dsi);
695 }
696
697 dpi->vdds_dsi_reg = vdds_dsi;
698
699 return 0;
700 }
701
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
Re: [RFC v1 PATCH 3/3] driver: update all the code that use soc_device_match
by kernel test robot
Hi "Alice,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on renesas-drivers/renesas-clk]
[also build test WARNING on vkoul-dmaengine/next linuxtv-media/master renesas-drivers/renesas-pinctrl renesas-devel/next linus/master v5.12-rc8 next-20210416]
[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/Alice-Guo-OSS/support-soc_device...
base: https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git renesas-clk
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.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/5dc133669083c08a14f24be6e24b5aa18...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Alice-Guo-OSS/support-soc_device_match-to-return-EPROBE_DEFER/20210419-123109
git checkout 5dc133669083c08a14f24be6e24b5aa1840836c7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=arm64
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/dma/ti/k3-psil.c: In function 'psil_get_ep_config':
>> drivers/dma/ti/k3-psil.c:37:11: warning: returning 'long int' from a function with return type 'struct psil_endpoint_config *' makes pointer from integer without a cast [-Wint-conversion]
37 | return PTR_ERR(soc);
| ^~~~~~~~~~~~
vim +37 drivers/dma/ti/k3-psil.c
26
27 struct psil_endpoint_config *psil_get_ep_config(u32 thread_id)
28 {
29 int i;
30
31 mutex_lock(&ep_map_mutex);
32 if (!soc_ep_map) {
33 const struct soc_device_attribute *soc;
34
35 soc = soc_device_match(k3_soc_devices);
36 if (IS_ERR(soc))
> 37 return PTR_ERR(soc);
38
39 if (soc) {
40 soc_ep_map = soc->data;
41 } else {
42 pr_err("PSIL: No compatible machine found for map\n");
43 mutex_unlock(&ep_map_mutex);
44 return ERR_PTR(-ENOTSUPP);
45 }
46 pr_debug("%s: Using map for %s\n", __func__, soc_ep_map->name);
47 }
48 mutex_unlock(&ep_map_mutex);
49
50 if (thread_id & K3_PSIL_DST_THREAD_ID_OFFSET && soc_ep_map->dst) {
51 /* check in destination thread map */
52 for (i = 0; i < soc_ep_map->dst_count; i++) {
53 if (soc_ep_map->dst[i].thread_id == thread_id)
54 return &soc_ep_map->dst[i].ep_config;
55 }
56 }
57
58 thread_id &= ~K3_PSIL_DST_THREAD_ID_OFFSET;
59 if (soc_ep_map->src) {
60 for (i = 0; i < soc_ep_map->src_count; i++) {
61 if (soc_ep_map->src[i].thread_id == thread_id)
62 return &soc_ep_map->src[i].ep_config;
63 }
64 }
65
66 return ERR_PTR(-ENOENT);
67 }
68 EXPORT_SYMBOL_GPL(psil_get_ep_config);
69
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
Re: [PATCH] sched,fair: skip newidle_balance if a wakeup is pending
by kernel test robot
Hi Rik,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on tip/sched/core]
[also build test ERROR on linux/master linus/master v5.12-rc8 next-20210416]
[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/Rik-van-Riel/sched-fair-skip-new...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 9406415f46f6127fd31bb66f0260f7a61a8d2786
config: riscv-randconfig-r025-20210419 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 2b50f5a4343f8fb06acaa5c36355bcf58092c9cd)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://github.com/0day-ci/linux/commit/3f6b55f5258c8d8d217e8b8408de056a2...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Rik-van-Riel/sched-fair-skip-newidle_balance-if-a-wakeup-is-pending/20210419-101843
git checkout 3f6b55f5258c8d8d217e8b8408de056a20745824
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv
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/tick.h:8:
In file included from include/linux/clockchips.h:14:
In file included from include/linux/clocksource.h:21:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:564:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return inw(addr);
^~~~~~~~~
arch/riscv/include/asm/io.h:56:76: note: expanded from macro 'inw'
#define inw(c) ({ u16 __v; __io_pbr(); __v = readw_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:88:76: note: expanded from macro 'readw_cpu'
#define readw_cpu(c) ({ u16 __r = le16_to_cpu((__force __le16)__raw_readw(c)); __r; })
^
include/uapi/linux/byteorder/little_endian.h:36:51: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
^
In file included from kernel/sched/fair.c:23:
In file included from kernel/sched/sched.h:17:
In file included from include/linux/sched/isolation.h:6:
In file included from include/linux/tick.h:8:
In file included from include/linux/clockchips.h:14:
In file included from include/linux/clocksource.h:21:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:572:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return inl(addr);
^~~~~~~~~
arch/riscv/include/asm/io.h:57:76: note: expanded from macro 'inl'
#define inl(c) ({ u32 __v; __io_pbr(); __v = readl_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:89:76: note: expanded from macro 'readl_cpu'
#define readl_cpu(c) ({ u32 __r = le32_to_cpu((__force __le32)__raw_readl(c)); __r; })
^
include/uapi/linux/byteorder/little_endian.h:34:51: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
In file included from kernel/sched/fair.c:23:
In file included from kernel/sched/sched.h:17:
In file included from include/linux/sched/isolation.h:6:
In file included from include/linux/tick.h:8:
In file included from include/linux/clockchips.h:14:
In file included from include/linux/clocksource.h:21:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:580:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outb(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:59:68: note: expanded from macro 'outb'
#define outb(v,c) ({ __io_pbw(); writeb_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:91:52: note: expanded from macro 'writeb_cpu'
#define writeb_cpu(v, c) ((void)__raw_writeb((v), (c)))
^
In file included from kernel/sched/fair.c:23:
In file included from kernel/sched/sched.h:17:
In file included from include/linux/sched/isolation.h:6:
In file included from include/linux/tick.h:8:
In file included from include/linux/clockchips.h:14:
In file included from include/linux/clocksource.h:21:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:588:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outw(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:60:68: note: expanded from macro 'outw'
#define outw(v,c) ({ __io_pbw(); writew_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:92:76: note: expanded from macro 'writew_cpu'
#define writew_cpu(v, c) ((void)__raw_writew((__force u16)cpu_to_le16(v), (c)))
^
In file included from kernel/sched/fair.c:23:
In file included from kernel/sched/sched.h:17:
In file included from include/linux/sched/isolation.h:6:
In file included from include/linux/tick.h:8:
In file included from include/linux/clockchips.h:14:
In file included from include/linux/clocksource.h:21:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:596:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outl(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:61:68: note: expanded from macro 'outl'
#define outl(v,c) ({ __io_pbw(); writel_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:93:76: note: expanded from macro 'writel_cpu'
#define writel_cpu(v, c) ((void)__raw_writel((__force u32)cpu_to_le32(v), (c)))
^
In file included from kernel/sched/fair.c:23:
In file included from kernel/sched/sched.h:17:
In file included from include/linux/sched/isolation.h:6:
In file included from include/linux/tick.h:8:
In file included from include/linux/clockchips.h:14:
In file included from include/linux/clocksource.h:21:
In file included from arch/riscv/include/asm/io.h:149:
include/asm-generic/io.h:1005:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
~~~~~~~~~~ ^
kernel/sched/fair.c:637:5: warning: no previous prototype for function 'sched_update_scaling' [-Wmissing-prototypes]
int sched_update_scaling(void)
^
kernel/sched/fair.c:637:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int sched_update_scaling(void)
^
static
>> kernel/sched/fair.c:7208:10: error: no member named 'ttwu_pending' in 'struct rq'
if (rq->ttwu_pending)
~~ ^
8 warnings and 1 error generated.
vim +7208 kernel/sched/fair.c
7191
7192 if (hrtick_enabled_fair(rq))
7193 hrtick_start_fair(rq, p);
7194
7195 update_misfit_status(p, rq);
7196
7197 return p;
7198
7199 idle:
7200 if (!rf)
7201 return NULL;
7202
7203 /*
7204 * We have a woken up task pending here. No need to search for ones
7205 * elsewhere. This task will be enqueued the moment we unblock irqs
7206 * upon exiting the scheduler.
7207 */
> 7208 if (rq->ttwu_pending)
7209 return NULL;
7210
7211 new_tasks = newidle_balance(rq, rf);
7212
7213 /*
7214 * Because newidle_balance() releases (and re-acquires) rq->lock, it is
7215 * possible for any higher priority task to appear. In that case we
7216 * must re-start the pick_next_entity() loop.
7217 */
7218 if (new_tasks < 0)
7219 return RETRY_TASK;
7220
7221 if (new_tasks > 0)
7222 goto again;
7223
7224 /*
7225 * rq is about to be idle, check if we need to update the
7226 * lost_idle_time of clock_pelt
7227 */
7228 update_idle_rq_clock_pelt(rq);
7229
7230 return NULL;
7231 }
7232
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[morimoto-linux:sound/2021-04-19-v3 34/100] sound/soc/generic/audio-graph-card2.c:593:1: warning: the frame size of 1040 bytes is larger than 1024 bytes
by kernel test robot
tree: https://github.com/morimoto/linux sound/2021-04-19-v3
head: 98469aeb54c122b8fc5c1d4607158220830bcba5
commit: 3969b3f0fb5f53791d94a04fac43bd4037e9a873 [34/100] ASoC: audio-graph-card2: add Audio Graph Card2 driver
config: h8300-allyesconfig (attached as .config)
compiler: h8300-linux-gcc (GCC) 9.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/morimoto/linux/commit/3969b3f0fb5f53791d94a04fac43bd40...
git remote add morimoto-linux https://github.com/morimoto/linux
git fetch --no-tags morimoto-linux sound/2021-04-19-v3
git checkout 3969b3f0fb5f53791d94a04fac43bd4037e9a873
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=h8300
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/generic/audio-graph-card2.c: In function 'audio_graph2_parse_of':
>> sound/soc/generic/audio-graph-card2.c:593:1: warning: the frame size of 1040 bytes is larger than 1024 bytes [-Wframe-larger-than=]
593 | }
| ^
vim +593 sound/soc/generic/audio-graph-card2.c
517
518 int audio_graph2_parse_of(struct asoc_simple_priv *priv, struct device *dev,
519 struct graph_custom_hooks *hooks)
520 {
521 struct snd_soc_card *card = simple_priv_to_card(priv);
522 struct link_info li;
523 int ret;
524
525 dev_warn(dev, "Audio Graph Card2 is still under Experimental stage\n");
526
527 memset(&li, 0, sizeof(li));
528
529 card->probe = asoc_graph_card_probe;
530 card->owner = THIS_MODULE;
531 card->dev = dev;
532
533 if ((hooks) && (hooks)->hook_pre) {
534 ret = (hooks)->hook_pre(priv);
535 if (ret < 0)
536 goto err;
537 }
538
539 ret = graph_for_each_link(priv, hooks, &li, graph_count);
540 if (!li.link)
541 ret = -EINVAL;
542 if (ret < 0)
543 goto err;
544
545 ret = asoc_simple_init_priv(priv, &li);
546 if (ret < 0)
547 goto err;
548
549 priv->pa_gpio = devm_gpiod_get_optional(dev, "pa", GPIOD_OUT_LOW);
550 if (IS_ERR(priv->pa_gpio)) {
551 ret = PTR_ERR(priv->pa_gpio);
552 dev_err(dev, "failed to get amplifier gpio: %d\n", ret);
553 goto err;
554 }
555
556 ret = asoc_simple_parse_widgets(card, NULL);
557 if (ret < 0)
558 goto err;
559
560 ret = asoc_simple_parse_routing(card, NULL);
561 if (ret < 0)
562 goto err;
563
564 memset(&li, 0, sizeof(li));
565 ret = graph_for_each_link(priv, hooks, &li, graph_link);
566 if (ret < 0)
567 goto err;
568
569 ret = asoc_simple_parse_card_name(card, NULL);
570 if (ret < 0)
571 goto err;
572
573 snd_soc_card_set_drvdata(card, priv);
574
575 if ((hooks) && (hooks)->hook_post) {
576 ret = (hooks)->hook_post(priv);
577 if (ret < 0)
578 goto err;
579 }
580
581 asoc_simple_debug_info(priv);
582
583 ret = devm_snd_soc_register_card(dev, card);
584 if (ret < 0)
585 goto err;
586
587 return 0;
588 err:
589 if (ret != -EPROBE_DEFER)
590 dev_err(dev, "parse error %d\n", ret);
591
592 return ret;
> 593 }
594 EXPORT_SYMBOL_GPL(audio_graph2_parse_of);
595
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[linux-stable-rc:linux-4.19.y 6064/9999] undefined reference to `atmel_sha_authenc_is_ready'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.19.y
head: e864f43593ccf9180c61738abdf1c1dde091367d
commit: 716f9563c3b52afa85b4e3b1a38e533e34832b7d [6064/9999] crypto: atmel - Fix authenc support when it is set to m
config: parisc-randconfig-r002-20210419 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.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-4.19.y
git checkout 716f9563c3b52afa85b4e3b1a38e533e34832b7d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=parisc
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 >>):
hppa-linux-ld: drivers/crypto/atmel-aes.o: in function `atmel_aes_authenc_complete':
>> (.text+0x35c): undefined reference to `atmel_sha_authenc_abort'
hppa-linux-ld: drivers/crypto/atmel-aes.o: in function `atmel_aes_authenc_init_tfm':
>> (.text+0x9ac): undefined reference to `atmel_sha_authenc_get_reqsize'
>> hppa-linux-ld: (.text+0x9b8): undefined reference to `atmel_sha_authenc_spawn'
hppa-linux-ld: drivers/crypto/atmel-aes.o: in function `atmel_aes_authenc_start':
>> (.text+0xac0): undefined reference to `atmel_sha_authenc_schedule'
hppa-linux-ld: drivers/crypto/atmel-aes.o: in function `atmel_aes_authenc_digest':
>> (.text+0xb00): undefined reference to `atmel_sha_authenc_final'
hppa-linux-ld: drivers/crypto/atmel-aes.o: in function `atmel_aes_authenc_exit_tfm':
>> (.text+0xb1c): undefined reference to `atmel_sha_authenc_free'
hppa-linux-ld: drivers/crypto/atmel-aes.o: in function `atmel_aes_authenc_setkey':
>> (.text+0xb70): undefined reference to `atmel_sha_authenc_setkey'
hppa-linux-ld: drivers/crypto/atmel-aes.o: in function `atmel_aes_authenc_init':
>> (.text+0x1880): undefined reference to `atmel_sha_authenc_init'
hppa-linux-ld: drivers/crypto/atmel-aes.o: in function `atmel_aes_probe':
>> (.text+0x1b84): undefined reference to `atmel_sha_authenc_is_ready'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months