[morimoto-linux:fw-cleanup-2020-11-19-v2 64/65] sound/soc/generic/simple-card-utils.c:214 asoc_simple_startup() error: uninitialized symbol 'ret'.
by Dan Carpenter
tree: https://github.com/morimoto/linux fw-cleanup-2020-11-19-v2
head: 162c7cf8b0061392ee4d764c9b714933a739cc6b
commit: e2f5d86c276eb2ea8395c461f7fa3b1369608868 [64/65] ASoC: simple-card-utils: prepare multi DAI - setup1
config: i386-randconfig-m021-20201119 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Reported-by: Dan Carpenter <dan.carpenter(a)oracle.com>
smatch warnings:
sound/soc/generic/simple-card-utils.c:214 asoc_simple_startup() error: uninitialized symbol 'ret'.
vim +/ret +214 sound/soc/generic/simple-card-utils.c
f38df5bf0c9cb90 Kuninori Morimoto 2019-03-20 194 int asoc_simple_startup(struct snd_pcm_substream *substream)
f38df5bf0c9cb90 Kuninori Morimoto 2019-03-20 195 {
9ae035e289379ba Kuninori Morimoto 2020-07-20 196 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
f38df5bf0c9cb90 Kuninori Morimoto 2019-03-20 197 struct asoc_simple_priv *priv = snd_soc_card_get_drvdata(rtd->card);
e2f5d86c276eb2e Kuninori Morimoto 2020-11-19 198 struct simple_dai_props *props = simple_priv_to_props(priv, rtd->num);
e2f5d86c276eb2e Kuninori Morimoto 2020-11-19 199 struct asoc_simple_dai *dai;
e2f5d86c276eb2e Kuninori Morimoto 2020-11-19 200 int i1, i2, i;
f38df5bf0c9cb90 Kuninori Morimoto 2019-03-20 201 int ret;
f38df5bf0c9cb90 Kuninori Morimoto 2019-03-20 202
e2f5d86c276eb2e Kuninori Morimoto 2020-11-19 203 for_each_prop_dai_cpu(props, i1, dai) {
e2f5d86c276eb2e Kuninori Morimoto 2020-11-19 204 ret = asoc_simple_clk_enable(dai);
f38df5bf0c9cb90 Kuninori Morimoto 2019-03-20 205 if (ret)
e2f5d86c276eb2e Kuninori Morimoto 2020-11-19 206 goto cpu_err;
e2f5d86c276eb2e Kuninori Morimoto 2020-11-19 207 }
f38df5bf0c9cb90 Kuninori Morimoto 2019-03-20 208
e2f5d86c276eb2e Kuninori Morimoto 2020-11-19 209 for_each_prop_dai_codec(props, i2, dai) {
e2f5d86c276eb2e Kuninori Morimoto 2020-11-19 210 ret = asoc_simple_clk_enable(dai);
f38df5bf0c9cb90 Kuninori Morimoto 2019-03-20 211 if (ret)
e2f5d86c276eb2e Kuninori Morimoto 2020-11-19 212 goto codec_err;
e2f5d86c276eb2e Kuninori Morimoto 2020-11-19 213 }
e2f5d86c276eb2e Kuninori Morimoto 2020-11-19 @214 return ret;
It's probably unlikely that we wouldn't enter both loops, but it would
be nicer to just "return 0;"
f38df5bf0c9cb90 Kuninori Morimoto 2019-03-20 215
e2f5d86c276eb2e Kuninori Morimoto 2020-11-19 216 codec_err:
e2f5d86c276eb2e Kuninori Morimoto 2020-11-19 217 for_each_prop_dai_codec(props, i, dai) {
e2f5d86c276eb2e Kuninori Morimoto 2020-11-19 218 if (i >= i2)
e2f5d86c276eb2e Kuninori Morimoto 2020-11-19 219 break;
e2f5d86c276eb2e Kuninori Morimoto 2020-11-19 220 asoc_simple_clk_disable(dai);
e2f5d86c276eb2e Kuninori Morimoto 2020-11-19 221 }
e2f5d86c276eb2e Kuninori Morimoto 2020-11-19 222 cpu_err:
e2f5d86c276eb2e Kuninori Morimoto 2020-11-19 223 for_each_prop_dai_cpu(props, i, dai) {
e2f5d86c276eb2e Kuninori Morimoto 2020-11-19 224 if (i >= i1)
e2f5d86c276eb2e Kuninori Morimoto 2020-11-19 225 break;
e2f5d86c276eb2e Kuninori Morimoto 2020-11-19 226 asoc_simple_clk_disable(dai);
e2f5d86c276eb2e Kuninori Morimoto 2020-11-19 227 }
f38df5bf0c9cb90 Kuninori Morimoto 2019-03-20 228 return ret;
f38df5bf0c9cb90 Kuninori Morimoto 2019-03-20 229 }
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[linux-next:master 8629/9613] drivers/tty/serial/mxs-auart.c:1656:15: warning: cast to smaller integer type 'enum mxs_auart_type' from 'const void
by kernel test robot
Hi Fabio,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: c6b11acc5f85b6e11d128fad8e0b7b223aa7e33f
commit: 5f1697fee6f6758ec1001569ae26d7a70a8bbc8e [8629/9613] serial: mxs-auart: Remove unneeded platform_device_id
config: powerpc-randconfig-r006-20201130 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project dfcf1acf13226be0f599a7ab6b395b66dc9545d6)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 5f1697fee6f6758ec1001569ae26d7a70a8bbc8e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/tty/serial/mxs-auart.c:1656:15: warning: cast to smaller integer type 'enum mxs_auart_type' from 'const void *' [-Wvoid-pointer-to-enum-cast]
s->devtype = (enum mxs_auart_type)of_device_get_match_data(&pdev->dev);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +1656 drivers/tty/serial/mxs-auart.c
1631
1632 static int mxs_auart_probe(struct platform_device *pdev)
1633 {
1634 struct mxs_auart_port *s;
1635 u32 version;
1636 int ret, irq;
1637 struct resource *r;
1638
1639 s = devm_kzalloc(&pdev->dev, sizeof(*s), GFP_KERNEL);
1640 if (!s)
1641 return -ENOMEM;
1642
1643 s->port.dev = &pdev->dev;
1644 s->dev = &pdev->dev;
1645
1646 ret = serial_mxs_probe_dt(s, pdev);
1647 if (ret > 0)
1648 s->port.line = pdev->id < 0 ? 0 : pdev->id;
1649 else if (ret < 0)
1650 return ret;
1651 if (s->port.line >= ARRAY_SIZE(auart_port)) {
1652 dev_err(&pdev->dev, "serial%d out of range\n", s->port.line);
1653 return -EINVAL;
1654 }
1655
> 1656 s->devtype = (enum mxs_auart_type)of_device_get_match_data(&pdev->dev);
1657
1658 ret = mxs_get_clks(s, pdev);
1659 if (ret)
1660 return ret;
1661
1662 r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
1663 if (!r) {
1664 ret = -ENXIO;
1665 goto out_disable_clks;
1666 }
1667
1668 s->port.mapbase = r->start;
1669 s->port.membase = ioremap(r->start, resource_size(r));
1670 if (!s->port.membase) {
1671 ret = -ENOMEM;
1672 goto out_disable_clks;
1673 }
1674 s->port.ops = &mxs_auart_ops;
1675 s->port.iotype = UPIO_MEM;
1676 s->port.fifosize = MXS_AUART_FIFO_SIZE;
1677 s->port.uartclk = clk_get_rate(s->clk);
1678 s->port.type = PORT_IMX;
1679 s->port.has_sysrq = IS_ENABLED(CONFIG_SERIAL_MXS_AUART_CONSOLE);
1680
1681 mxs_init_regs(s);
1682
1683 s->mctrl_prev = 0;
1684
1685 irq = platform_get_irq(pdev, 0);
1686 if (irq < 0) {
1687 ret = irq;
1688 goto out_iounmap;
1689 }
1690
1691 s->port.irq = irq;
1692 ret = devm_request_irq(&pdev->dev, irq, mxs_auart_irq_handle, 0,
1693 dev_name(&pdev->dev), s);
1694 if (ret)
1695 goto out_iounmap;
1696
1697 platform_set_drvdata(pdev, s);
1698
1699 ret = mxs_auart_init_gpios(s, &pdev->dev);
1700 if (ret) {
1701 dev_err(&pdev->dev, "Failed to initialize GPIOs.\n");
1702 goto out_iounmap;
1703 }
1704
1705 /*
1706 * Get the GPIO lines IRQ
1707 */
1708 ret = mxs_auart_request_gpio_irq(s);
1709 if (ret)
1710 goto out_iounmap;
1711
1712 auart_port[s->port.line] = s;
1713
1714 mxs_auart_reset_deassert(s);
1715
1716 ret = uart_add_one_port(&auart_driver, &s->port);
1717 if (ret)
1718 goto out_free_qpio_irq;
1719
1720 /* ASM9260 don't have version reg */
1721 if (is_asm9260_auart(s)) {
1722 dev_info(&pdev->dev, "Found APPUART ASM9260\n");
1723 } else {
1724 version = mxs_read(s, REG_VERSION);
1725 dev_info(&pdev->dev, "Found APPUART %d.%d.%d\n",
1726 (version >> 24) & 0xff,
1727 (version >> 16) & 0xff, version & 0xffff);
1728 }
1729
1730 return 0;
1731
1732 out_free_qpio_irq:
1733 mxs_auart_free_gpio_irq(s);
1734 auart_port[pdev->id] = NULL;
1735
1736 out_iounmap:
1737 iounmap(s->port.membase);
1738
1739 out_disable_clks:
1740 if (is_asm9260_auart(s)) {
1741 clk_disable_unprepare(s->clk);
1742 clk_disable_unprepare(s->clk_ahb);
1743 }
1744 return ret;
1745 }
1746
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[linux-review:UPDATE-20201130-162440/Antony-Yu/ARM-fix-__div64_32-error-when-compiling-with-clang/20201123-154454 1/1] arch/arm/include/asm/div64.h:39:2: error: read-only location '"r0"' used as 'asm' output
by kernel test robot
tree: https://github.com/0day-ci/linux/commits/UPDATE-20201130-162440/Antony-Yu...
head: 635f00f3e76444484f35ba9e76d6ae24b783063e
commit: 635f00f3e76444484f35ba9e76d6ae24b783063e [1/1] ARM: fix __div64_32() error when compiling with clang
config: arm-defconfig (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/635f00f3e76444484f35ba9e76d6ae24b...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review UPDATE-20201130-162440/Antony-Yu/ARM-fix-__div64_32-error-when-compiling-with-clang/20201123-154454
git checkout 635f00f3e76444484f35ba9e76d6ae24b783063e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.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 errors (new ones prefixed by >>):
In file included from include/linux/kernel.h:19,
from include/asm-generic/bug.h:20,
from arch/arm/include/asm/bug.h:60,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
arch/arm/include/asm/div64.h: In function '__div64_32':
>> arch/arm/include/asm/div64.h:39:2: error: read-only location '"r0"' used as 'asm' output
39 | asm( __asmeq("%0", __xh)
| ^~~
make[2]: *** [scripts/Makefile.build:117: kernel/bounds.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1200: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +39 arch/arm/include/asm/div64.h
^1da177e4c3f415 include/asm-arm/div64.h Linus Torvalds 2005-04-16 32
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 33 static inline uint32_t __div64_32(uint64_t *n, uint32_t base)
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 34 {
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 35 register unsigned int __base asm("r4") = base;
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 36 register unsigned long long __n asm("r0") = *n;
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 37 register unsigned long long __res asm("r2");
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 38 register unsigned int __rem asm(__xh);
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 @39 asm( __asmeq("%0", __xh)
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 40 __asmeq("%1", "r2")
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 41 __asmeq("%2", "r0")
635f00f3e764444 arch/arm/include/asm/div64.h Antony Yu 2020-11-30 42 __asmeq("%3", "r0")
635f00f3e764444 arch/arm/include/asm/div64.h Antony Yu 2020-11-30 43 __asmeq("%4", "r4")
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 44 "bl __do_div64"
635f00f3e764444 arch/arm/include/asm/div64.h Antony Yu 2020-11-30 45 : "=r" (__rem), "=r" (__res), "=r" (__xl)
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 46 : "r" (__n), "r" (__base)
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 47 : "ip", "lr", "cc");
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 48 *n = __res;
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 49 return __rem;
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 50 }
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 51 #define __div64_32 __div64_32
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 52
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[linux-review:UPDATE-20201130-162440/Antony-Yu/ARM-fix-__div64_32-error-when-compiling-with-clang/20201123-154454 1/1] arch/arm/include/asm/div64.h:39:2: error: read-only location '"r1"' used as 'asm' output
by kernel test robot
tree: https://github.com/0day-ci/linux/commits/UPDATE-20201130-162440/Antony-Yu...
head: 635f00f3e76444484f35ba9e76d6ae24b783063e
commit: 635f00f3e76444484f35ba9e76d6ae24b783063e [1/1] ARM: fix __div64_32() error when compiling with clang
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/635f00f3e76444484f35ba9e76d6ae24b...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review UPDATE-20201130-162440/Antony-Yu/ARM-fix-__div64_32-error-when-compiling-with-clang/20201123-154454
git checkout 635f00f3e76444484f35ba9e76d6ae24b783063e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.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 errors (new ones prefixed by >>):
In file included from include/linux/kernel.h:19,
from include/asm-generic/bug.h:20,
from arch/arm/include/asm/bug.h:60,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
arch/arm/include/asm/div64.h: In function '__div64_32':
>> arch/arm/include/asm/div64.h:39:2: error: read-only location '"r1"' used as 'asm' output
39 | asm( __asmeq("%0", __xh)
| ^~~
make[2]: *** [scripts/Makefile.build:117: kernel/bounds.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1200: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +39 arch/arm/include/asm/div64.h
^1da177e4c3f415 include/asm-arm/div64.h Linus Torvalds 2005-04-16 32
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 33 static inline uint32_t __div64_32(uint64_t *n, uint32_t base)
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 34 {
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 35 register unsigned int __base asm("r4") = base;
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 36 register unsigned long long __n asm("r0") = *n;
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 37 register unsigned long long __res asm("r2");
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 38 register unsigned int __rem asm(__xh);
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 @39 asm( __asmeq("%0", __xh)
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 40 __asmeq("%1", "r2")
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 41 __asmeq("%2", "r0")
635f00f3e764444 arch/arm/include/asm/div64.h Antony Yu 2020-11-30 42 __asmeq("%3", "r0")
635f00f3e764444 arch/arm/include/asm/div64.h Antony Yu 2020-11-30 43 __asmeq("%4", "r4")
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 44 "bl __do_div64"
635f00f3e764444 arch/arm/include/asm/div64.h Antony Yu 2020-11-30 45 : "=r" (__rem), "=r" (__res), "=r" (__xl)
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 46 : "r" (__n), "r" (__base)
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 47 : "ip", "lr", "cc");
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 48 *n = __res;
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 49 return __rem;
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 50 }
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 51 #define __div64_32 __div64_32
040b323b5012b55 arch/arm/include/asm/div64.h Nicolas Pitre 2015-11-02 52
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[jirislaby:devel 31/37] drivers/video/console/vgacon.c:322:23: sparse: sparse: incorrect type in assignment (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git devel
head: 76d6b5957e108ece4df150bc00e0e8dc4cae732c
commit: cf2f148bfd9515a92e134b15b2f2553f01dce504 [31/37] make VGA_MAP_MEM return pointer
config: mips-randconfig-s031-20201130 (attached as .config)
compiler: mips64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-170-g3bc348f6-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git/commi...
git remote add jirislaby https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git
git fetch --no-tags jirislaby devel
git checkout cf2f148bfd9515a92e134b15b2f2553f01dce504
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
command-line: note: in included file:
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQUIRE redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_SEQ_CST redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQ_REL redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_RELEASE redefined
builtin:0:0: sparse: this was the original definition
>> drivers/video/console/vgacon.c:322:23: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected unsigned short [usertype] *static [toplevel] vga_vram_base @@ got void [noderef] __iomem * @@
drivers/video/console/vgacon.c:322:23: sparse: expected unsigned short [usertype] *static [toplevel] vga_vram_base
drivers/video/console/vgacon.c:322:23: sparse: got void [noderef] __iomem *
>> drivers/video/console/vgacon.c:873:25: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected char *charmap @@ got void [noderef] __iomem * @@
drivers/video/console/vgacon.c:873:25: sparse: expected char *charmap
drivers/video/console/vgacon.c:873:25: sparse: got void [noderef] __iomem *
drivers/video/console/vgacon.c:876:25: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected char *charmap @@ got void [noderef] __iomem * @@
drivers/video/console/vgacon.c:876:25: sparse: expected char *charmap
drivers/video/console/vgacon.c:876:25: sparse: got void [noderef] __iomem *
drivers/video/console/vgacon.c: note: in included file (through include/linux/vt_buffer.h, include/linux/selection.h):
arch/mips/include/asm/vga.h:42:16: sparse: sparse: cast to restricted __le16
arch/mips/include/asm/vga.h:42:16: sparse: sparse: cast to restricted __le16
arch/mips/include/asm/vga.h:42:16: sparse: sparse: cast to restricted __le16
arch/mips/include/asm/vga.h:42:16: sparse: sparse: cast to restricted __le16
arch/mips/include/asm/vga.h:42:16: sparse: sparse: cast to restricted __le16
arch/mips/include/asm/vga.h:42:16: sparse: sparse: cast to restricted __le16
arch/mips/include/asm/vga.h:42:16: sparse: sparse: cast to restricted __le16
arch/mips/include/asm/vga.h:42:16: sparse: sparse: cast to restricted __le16
arch/mips/include/asm/vga.h:37:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short volatile [usertype] @@ got restricted __le16 [usertype] @@
arch/mips/include/asm/vga.h:37:15: sparse: expected unsigned short volatile [usertype]
arch/mips/include/asm/vga.h:37:15: sparse: got restricted __le16 [usertype]
arch/mips/include/asm/vga.h:37:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short volatile [usertype] @@ got restricted __le16 [usertype] @@
arch/mips/include/asm/vga.h:37:15: sparse: expected unsigned short volatile [usertype]
arch/mips/include/asm/vga.h:37:15: sparse: got restricted __le16 [usertype]
arch/mips/include/asm/vga.h:42:16: sparse: sparse: cast to restricted __le16
arch/mips/include/asm/vga.h:42:16: sparse: sparse: cast to restricted __le16
arch/mips/include/asm/vga.h:42:16: sparse: sparse: cast to restricted __le16
arch/mips/include/asm/vga.h:42:16: sparse: sparse: cast to restricted __le16
arch/mips/include/asm/vga.h:42:16: sparse: sparse: cast to restricted __le16
arch/mips/include/asm/vga.h:42:16: sparse: sparse: cast to restricted __le16
arch/mips/include/asm/vga.h:42:16: sparse: sparse: cast to restricted __le16
arch/mips/include/asm/vga.h:42:16: sparse: sparse: cast to restricted __le16
arch/mips/include/asm/vga.h:37:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short volatile [usertype] @@ got restricted __le16 [usertype] @@
arch/mips/include/asm/vga.h:37:15: sparse: expected unsigned short volatile [usertype]
arch/mips/include/asm/vga.h:37:15: sparse: got restricted __le16 [usertype]
arch/mips/include/asm/vga.h:37:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short volatile [usertype] @@ got restricted __le16 [usertype] @@
arch/mips/include/asm/vga.h:37:15: sparse: expected unsigned short volatile [usertype]
arch/mips/include/asm/vga.h:37:15: sparse: got restricted __le16 [usertype]
arch/mips/include/asm/vga.h:37:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short volatile [usertype] @@ got restricted __le16 [usertype] @@
arch/mips/include/asm/vga.h:37:15: sparse: expected unsigned short volatile [usertype]
arch/mips/include/asm/vga.h:37:15: sparse: got restricted __le16 [usertype]
arch/mips/include/asm/vga.h:37:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short volatile [usertype] @@ got restricted __le16 [usertype] @@
arch/mips/include/asm/vga.h:37:15: sparse: expected unsigned short volatile [usertype]
arch/mips/include/asm/vga.h:37:15: sparse: got restricted __le16 [usertype]
arch/mips/include/asm/vga.h:42:16: sparse: sparse: cast to restricted __le16
arch/mips/include/asm/vga.h:42:16: sparse: sparse: cast to restricted __le16
arch/mips/include/asm/vga.h:42:16: sparse: sparse: cast to restricted __le16
arch/mips/include/asm/vga.h:42:16: sparse: sparse: cast to restricted __le16
arch/mips/include/asm/vga.h:42:16: sparse: sparse: cast to restricted __le16
arch/mips/include/asm/vga.h:42:16: sparse: sparse: cast to restricted __le16
arch/mips/include/asm/vga.h:42:16: sparse: sparse: cast to restricted __le16
arch/mips/include/asm/vga.h:42:16: sparse: sparse: cast to restricted __le16
arch/mips/include/asm/vga.h:37:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short volatile [usertype] @@ got restricted __le16 [usertype] @@
arch/mips/include/asm/vga.h:37:15: sparse: expected unsigned short volatile [usertype]
arch/mips/include/asm/vga.h:37:15: sparse: got restricted __le16 [usertype]
arch/mips/include/asm/vga.h:37:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short volatile [usertype] @@ got restricted __le16 [usertype] @@
arch/mips/include/asm/vga.h:37:15: sparse: expected unsigned short volatile [usertype]
arch/mips/include/asm/vga.h:37:15: sparse: got restricted __le16 [usertype]
arch/mips/include/asm/vga.h:37:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short volatile [usertype] @@ got restricted __le16 [usertype] @@
arch/mips/include/asm/vga.h:37:15: sparse: expected unsigned short volatile [usertype]
arch/mips/include/asm/vga.h:37:15: sparse: got restricted __le16 [usertype]
arch/mips/include/asm/vga.h:37:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short volatile [usertype] @@ got restricted __le16 [usertype] @@
arch/mips/include/asm/vga.h:37:15: sparse: expected unsigned short volatile [usertype]
arch/mips/include/asm/vga.h:37:15: sparse: got restricted __le16 [usertype]
arch/mips/include/asm/vga.h:42:16: sparse: sparse: cast to restricted __le16
arch/mips/include/asm/vga.h:42:16: sparse: sparse: cast to restricted __le16
arch/mips/include/asm/vga.h:42:16: sparse: sparse: cast to restricted __le16
arch/mips/include/asm/vga.h:42:16: sparse: sparse: cast to restricted __le16
arch/mips/include/asm/vga.h:37:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short volatile [usertype] @@ got restricted __le16 [usertype] @@
arch/mips/include/asm/vga.h:37:15: sparse: expected unsigned short volatile [usertype]
arch/mips/include/asm/vga.h:37:15: sparse: got restricted __le16 [usertype]
arch/mips/include/asm/vga.h:47:21: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned short [usertype] @@ got restricted __le16 [usertype] @@
arch/mips/include/asm/vga.h:47:21: sparse: expected unsigned short [usertype]
arch/mips/include/asm/vga.h:47:21: sparse: got restricted __le16 [usertype]
arch/mips/include/asm/vga.h:47:21: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned short [usertype] @@ got restricted __le16 [usertype] @@
arch/mips/include/asm/vga.h:47:21: sparse: expected unsigned short [usertype]
arch/mips/include/asm/vga.h:47:21: sparse: got restricted __le16 [usertype]
arch/mips/include/asm/vga.h:47:21: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned short [usertype] @@ got restricted __le16 [usertype] @@
arch/mips/include/asm/vga.h:47:21: sparse: expected unsigned short [usertype]
arch/mips/include/asm/vga.h:47:21: sparse: got restricted __le16 [usertype]
vim +322 drivers/video/console/vgacon.c
179
180 static const char *vgacon_startup(void)
181 {
182 const char *display_desc = NULL;
183 phys_addr_t vram_phys;
184 u16 saved1, saved2;
185 volatile u16 *p;
186
187 if (screen_info.orig_video_isVGA == VIDEO_TYPE_VLFB ||
188 screen_info.orig_video_isVGA == VIDEO_TYPE_EFI) {
189 no_vga:
190 #ifdef CONFIG_DUMMY_CONSOLE
191 conswitchp = &dummy_con;
192 return conswitchp->con_startup();
193 #else
194 return NULL;
195 #endif
196 }
197
198 /* boot_params.screen_info reasonably initialized? */
199 if ((screen_info.orig_video_lines == 0) ||
200 (screen_info.orig_video_cols == 0))
201 goto no_vga;
202
203 /* VGA16 modes are not handled by VGACON */
204 if ((screen_info.orig_video_mode == 0x0D) || /* 320x200/4 */
205 (screen_info.orig_video_mode == 0x0E) || /* 640x200/4 */
206 (screen_info.orig_video_mode == 0x10) || /* 640x350/4 */
207 (screen_info.orig_video_mode == 0x12) || /* 640x480/4 */
208 (screen_info.orig_video_mode == 0x6A)) /* 800x600/4 (VESA) */
209 goto no_vga;
210
211 vga_video_num_lines = screen_info.orig_video_lines;
212 vga_video_num_columns = screen_info.orig_video_cols;
213 vgastate.vgabase = NULL;
214
215 if (screen_info.orig_video_mode == 7) {
216 /* Monochrome display */
217 vram_phys = 0xb0000;
218 vga_video_port_reg = VGA_CRT_IM;
219 vga_video_port_val = VGA_CRT_DM;
220 if ((screen_info.orig_video_ega_bx & 0xff) != 0x10) {
221 static struct resource ega_console_resource =
222 { .name = "ega",
223 .flags = IORESOURCE_IO,
224 .start = 0x3B0,
225 .end = 0x3BF };
226 vga_video_type = VIDEO_TYPE_EGAM;
227 vga_vram_size = 0x8000;
228 display_desc = "EGA+";
229 request_resource(&ioport_resource,
230 &ega_console_resource);
231 } else {
232 static struct resource mda1_console_resource =
233 { .name = "mda",
234 .flags = IORESOURCE_IO,
235 .start = 0x3B0,
236 .end = 0x3BB };
237 static struct resource mda2_console_resource =
238 { .name = "mda",
239 .flags = IORESOURCE_IO,
240 .start = 0x3BF,
241 .end = 0x3BF };
242 vga_video_type = VIDEO_TYPE_MDA;
243 vga_vram_size = 0x2000;
244 display_desc = "*MDA";
245 request_resource(&ioport_resource,
246 &mda1_console_resource);
247 request_resource(&ioport_resource,
248 &mda2_console_resource);
249 vga_video_font_height = 14;
250 }
251 } else {
252 /* If not, it is color. */
253 vga_can_do_color = true;
254 vram_phys = 0xb8000;
255 vga_video_port_reg = VGA_CRT_IC;
256 vga_video_port_val = VGA_CRT_DC;
257 if ((screen_info.orig_video_ega_bx & 0xff) != 0x10) {
258 int i;
259
260 vga_vram_size = 0x8000;
261
262 if (!screen_info.orig_video_isVGA) {
263 static struct resource ega_console_resource =
264 { .name = "ega",
265 .flags = IORESOURCE_IO,
266 .start = 0x3C0,
267 .end = 0x3DF };
268 vga_video_type = VIDEO_TYPE_EGAC;
269 display_desc = "EGA";
270 request_resource(&ioport_resource,
271 &ega_console_resource);
272 } else {
273 static struct resource vga_console_resource =
274 { .name = "vga+",
275 .flags = IORESOURCE_IO,
276 .start = 0x3C0,
277 .end = 0x3DF };
278 vga_video_type = VIDEO_TYPE_VGAC;
279 display_desc = "VGA+";
280 request_resource(&ioport_resource,
281 &vga_console_resource);
282
283 /*
284 * Normalise the palette registers, to point
285 * the 16 screen colours to the first 16
286 * DAC entries.
287 */
288
289 for (i = 0; i < 16; i++) {
290 inb_p(VGA_IS1_RC);
291 outb_p(i, VGA_ATT_W);
292 outb_p(i, VGA_ATT_W);
293 }
294 outb_p(0x20, VGA_ATT_W);
295
296 /*
297 * Now set the DAC registers back to their
298 * default values
299 */
300 for (i = 0; i < 16; i++) {
301 outb_p(color_table[i], VGA_PEL_IW);
302 outb_p(default_red[i], VGA_PEL_D);
303 outb_p(default_grn[i], VGA_PEL_D);
304 outb_p(default_blu[i], VGA_PEL_D);
305 }
306 }
307 } else {
308 static struct resource cga_console_resource =
309 { .name = "cga",
310 .flags = IORESOURCE_IO,
311 .start = 0x3D4,
312 .end = 0x3D5 };
313 vga_video_type = VIDEO_TYPE_CGA;
314 vga_vram_size = 0x2000;
315 display_desc = "*CGA";
316 request_resource(&ioport_resource,
317 &cga_console_resource);
318 vga_video_font_height = 8;
319 }
320 }
321
> 322 vga_vram_base = VGA_MAP_MEM(vram_phys, vga_vram_size);
323 vga_vram_end = (void *)vga_vram_base + vga_vram_size;
324
325 /*
326 * Find out if there is a graphics card present.
327 * Are there smarter methods around?
328 */
329 p = (volatile u16 *) vga_vram_base;
330 saved1 = scr_readw(p);
331 saved2 = scr_readw(p + 1);
332 scr_writew(0xAA55, p);
333 scr_writew(0x55AA, p + 1);
334 if (scr_readw(p) != 0xAA55 || scr_readw(p + 1) != 0x55AA) {
335 scr_writew(saved1, p);
336 scr_writew(saved2, p + 1);
337 goto no_vga;
338 }
339 scr_writew(0x55AA, p);
340 scr_writew(0xAA55, p + 1);
341 if (scr_readw(p) != 0x55AA || scr_readw(p + 1) != 0xAA55) {
342 scr_writew(saved1, p);
343 scr_writew(saved2, p + 1);
344 goto no_vga;
345 }
346 scr_writew(saved1, p);
347 scr_writew(saved2, p + 1);
348
349 if (vga_video_type == VIDEO_TYPE_EGAC
350 || vga_video_type == VIDEO_TYPE_VGAC
351 || vga_video_type == VIDEO_TYPE_EGAM) {
352 vga_hardscroll_enabled = vga_hardscroll_user_enable;
353 vga_default_font_height = screen_info.orig_video_points;
354 vga_video_font_height = screen_info.orig_video_points;
355 /* This may be suboptimal but is a safe bet - go with it */
356 vga_scan_lines =
357 vga_video_font_height * vga_video_num_lines;
358 }
359
360 vgacon_xres = screen_info.orig_video_cols * VGA_FONTWIDTH;
361 vgacon_yres = vga_scan_lines;
362
363 vga_init_done = true;
364
365 return display_desc;
366 }
367
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
ld.lld: error: debug_core.c:(.init.text+0xD8): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
by kernel test robot
CC: linux-kernel(a)vger.kernel.org
TO: Douglas Anderson <dianders(a)chromium.org>
CC: Daniel Thompson <daniel.thompson(a)linaro.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b65054597872ce3aefbc6a666385eabdf9e288da
commit: b18b099e04f450cdc77bec72acefcde7042bd1f3 kgdb: Make "kgdbcon" work properly with "kgdb_earlycon"
date: 3 months ago
config: riscv-randconfig-r004-20201130 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project dfcf1acf13226be0f599a7ab6b395b66dc9545d6)
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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout b18b099e04f450cdc77bec72acefcde7042bd1f3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x8): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x1900): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x191A): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x19B4): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x1BFA): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x1D34): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x1DAA): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x1DF6): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x1E30): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x1EBA): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x1EE8): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x1F06): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x1F8A): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
>> ld.lld: error: debug_core.c:(.init.text+0xD8): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.init.text+0x176): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: undefined symbol: stpcpy
>>> referenced by tty_io.c
>>> tty/tty_io.o:(alloc_tty_struct) in archive drivers/built-in.a
>>> referenced by tty_io.c
>>> tty/tty_io.o:(tty_register_device_attr) in archive drivers/built-in.a
>>> referenced by tty_io.c
>>> tty/tty_io.o:(show_cons_active) in archive drivers/built-in.a
>>> referenced 1 more times
>>> did you mean: strcpy
>>> defined in: lib/lib.a(string.o)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
Re: [PATCH v1 2/3] drm/tiny: Add driver for ili9341 with parallel bus
by kernel test robot
Hi,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linux/master]
[also build test ERROR on drm-intel/for-linux-next drm-exynos/exynos-drm-next tegra-drm/drm/tegra/for-next drm-tip/drm-tip linus/master v5.10-rc6 next-20201127]
[cannot apply to drm/drm-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/mdurnev-gmail-com/drm-mipi-dbi-T...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 09162bc32c880a791c6c0668ce0745cf7958f576
config: arm64-randconfig-r024-20201130 (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/5883e05578f8008b00a270e8f4ebe9cb7...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review mdurnev-gmail-com/drm-mipi-dbi-Type-B-bus-support-drm-tiny-MRB2801/20201130-142812
git checkout 5883e05578f8008b00a270e8f4ebe9cb7e06a6b6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
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/gpu/drm/drm_mipi_dbi.c: In function 'mipi_dbi_gpio_init':
>> drivers/gpu/drm/drm_mipi_dbi.c:1266:6: error: implicit declaration of function 'mipi_dbi_machine_little_endian' [-Werror=implicit-function-declaration]
1266 | if (mipi_dbi_machine_little_endian())
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/mipi_dbi_machine_little_endian +1266 drivers/gpu/drm/drm_mipi_dbi.c
12265315ac41a3e Mikhail Durnev 2020-11-30 1234
12265315ac41a3e Mikhail Durnev 2020-11-30 1235 /**
12265315ac41a3e Mikhail Durnev 2020-11-30 1236 * mipi_dbi_gpio_init - Initialize MIPI DBI Type B interface implemented via GPIO
12265315ac41a3e Mikhail Durnev 2020-11-30 1237 * @dbi: MIPI DBI structure to initialize
12265315ac41a3e Mikhail Durnev 2020-11-30 1238 * @dc: D/C gpio
12265315ac41a3e Mikhail Durnev 2020-11-30 1239 * @wr: W/R gpio
12265315ac41a3e Mikhail Durnev 2020-11-30 1240 * @db: DB gpios
12265315ac41a3e Mikhail Durnev 2020-11-30 1241 * @wr_up_delay: Delay after setting DB and before changing W/R from low to high
12265315ac41a3e Mikhail Durnev 2020-11-30 1242 * @wr_down_delay: Delay after changing W/R from low to high
12265315ac41a3e Mikhail Durnev 2020-11-30 1243 *
12265315ac41a3e Mikhail Durnev 2020-11-30 1244 * This function sets &mipi_dbi->command, enables &mipi_dbi->read_commands for the
12265315ac41a3e Mikhail Durnev 2020-11-30 1245 * usual read commands. It should be followed by a call to mipi_dbi_dev_init() or
12265315ac41a3e Mikhail Durnev 2020-11-30 1246 * a driver-specific init.
12265315ac41a3e Mikhail Durnev 2020-11-30 1247 *
12265315ac41a3e Mikhail Durnev 2020-11-30 1248 * Returns:
12265315ac41a3e Mikhail Durnev 2020-11-30 1249 * Zero on success, negative error code on failure.
12265315ac41a3e Mikhail Durnev 2020-11-30 1250 */
12265315ac41a3e Mikhail Durnev 2020-11-30 1251 int mipi_dbi_gpio_init(struct mipi_dbi *dbi, struct gpio_desc *dc,
12265315ac41a3e Mikhail Durnev 2020-11-30 1252 struct gpio_desc *wr, struct gpio_descs *db,
12265315ac41a3e Mikhail Durnev 2020-11-30 1253 unsigned long wr_up_delay, unsigned long wr_down_delay)
12265315ac41a3e Mikhail Durnev 2020-11-30 1254 {
12265315ac41a3e Mikhail Durnev 2020-11-30 1255 dbi->spi = NULL; /* Type B uses GPIO lines rather than SPI */
12265315ac41a3e Mikhail Durnev 2020-11-30 1256
12265315ac41a3e Mikhail Durnev 2020-11-30 1257 dbi->read_commands = mipi_dbi_dcs_read_commands;
12265315ac41a3e Mikhail Durnev 2020-11-30 1258 dbi->command = mipi_dbi_gpio_command;
12265315ac41a3e Mikhail Durnev 2020-11-30 1259
12265315ac41a3e Mikhail Durnev 2020-11-30 1260 dbi->dc = dc;
12265315ac41a3e Mikhail Durnev 2020-11-30 1261 dbi->wr = wr;
12265315ac41a3e Mikhail Durnev 2020-11-30 1262 dbi->db = db;
12265315ac41a3e Mikhail Durnev 2020-11-30 1263 dbi->wr_up_delay = wr_up_delay;
12265315ac41a3e Mikhail Durnev 2020-11-30 1264 dbi->wr_down_delay = wr_down_delay;
12265315ac41a3e Mikhail Durnev 2020-11-30 1265
12265315ac41a3e Mikhail Durnev 2020-11-30 @1266 if (mipi_dbi_machine_little_endian())
12265315ac41a3e Mikhail Durnev 2020-11-30 1267 dbi->swap_bytes = true;
12265315ac41a3e Mikhail Durnev 2020-11-30 1268
12265315ac41a3e Mikhail Durnev 2020-11-30 1269 mutex_init(&dbi->cmdlock);
12265315ac41a3e Mikhail Durnev 2020-11-30 1270
12265315ac41a3e Mikhail Durnev 2020-11-30 1271 return 0;
12265315ac41a3e Mikhail Durnev 2020-11-30 1272 }
12265315ac41a3e Mikhail Durnev 2020-11-30 1273 EXPORT_SYMBOL(mipi_dbi_gpio_init);
12265315ac41a3e Mikhail Durnev 2020-11-30 1274
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
Re: [PATCH v5] mm: Optional full ASLR for mmap(), mremap(), vdso and stack
by kernel test robot
Hi Topi,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on aae5ab854e38151e69f261dbf0e3b7e396403178]
url: https://github.com/0day-ci/linux/commits/Topi-Miettinen/mm-Optional-full-...
base: aae5ab854e38151e69f261dbf0e3b7e396403178
config: x86_64-randconfig-a002-20201130 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project f502b14d40e751fe00afc493ef0d08f196524886)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/0day-ci/linux/commit/c06384c5cecf700db214c69a4565c41a4...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Topi-Miettinen/mm-Optional-full-ASLR-for-mmap-mremap-vdso-and-stack/20201130-051703
git checkout c06384c5cecf700db214c69a4565c41a4c4fad82
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
arch/x86/entry/vdso/vma.c:38:19: warning: no previous prototype for function 'arch_get_vdso_data' [-Wmissing-prototypes]
struct vdso_data *arch_get_vdso_data(void *vvar_page)
^
arch/x86/entry/vdso/vma.c:38:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct vdso_data *arch_get_vdso_data(void *vvar_page)
^
static
>> arch/x86/entry/vdso/vma.c:382:9: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast]
if (!IS_ERR_VALUE(ret))
^~~~~~~~~~~~~~~~~
include/linux/err.h:22:49: note: expanded from macro 'IS_ERR_VALUE'
#define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO)
~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:48:41: note: expanded from macro 'unlikely'
# define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:33:34: note: expanded from macro '__branch_check__'
______r = __builtin_expect(!!(x), expect); \
^
>> arch/x86/entry/vdso/vma.c:382:9: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast]
if (!IS_ERR_VALUE(ret))
^~~~~~~~~~~~~~~~~
include/linux/err.h:22:49: note: expanded from macro 'IS_ERR_VALUE'
#define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO)
~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:48:68: note: expanded from macro 'unlikely'
# define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
include/linux/compiler.h:35:19: note: expanded from macro '__branch_check__'
expect, is_constant); \
^~~~~~~~~~~
3 warnings generated.
vim +382 arch/x86/entry/vdso/vma.c
364
365 static int map_vdso_randomized(const struct vdso_image *image)
366 {
367 unsigned long addr;
368
369 if (randomize_va_space == 3) {
370 /*
371 * Randomize vdso address.
372 */
373 int i = MAX_RANDOM_VDSO_RETRIES;
374
375 do {
376 int ret;
377
378 /* Try a few times to find a free area */
379 addr = arch_mmap_rnd();
380
381 ret = map_vdso(image, addr);
> 382 if (!IS_ERR_VALUE(ret))
383 return ret;
384 } while (--i >= 0);
385
386 /* Give up and try the less random way */
387 }
388 addr = vdso_addr(current->mm->start_stack, image->size-image->sym_vvar_start);
389
390 return map_vdso(image, addr);
391 }
392 #endif
393
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
Re: [PATCH] posix_acl.h: define missing ACL functions on non-posix-acl build
by kernel test robot
Hi Sergey,
I love your patch! Perhaps something to improve:
[auto build test WARNING on hch-configfs/for-next]
[also build test WARNING on linux/master linus/master v5.10-rc6 next-20201127]
[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/Sergey-Senozhatsky/posix_acl-h-d...
base: git://git.infradead.org/users/hch/configfs.git for-next
config: s390-randconfig-r005-20201130 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project dfcf1acf13226be0f599a7ab6b395b66dc9545d6)
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 s390 cross compiling tool for clang build
# apt-get install binutils-s390x-linux-gnu
# https://github.com/0day-ci/linux/commit/377ebc564d08d21a4bc83fecc7f1238e3...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Sergey-Senozhatsky/posix_acl-h-define-missing-ACL-functions-on-non-posix-acl-build/20201130-095018
git checkout 377ebc564d08d21a4bc83fecc7f1238e342823d1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from fs/overlayfs/super.c:16:
In file included from include/linux/posix_acl_xattr.h:15:
include/linux/posix_acl.h:121:19: error: static declaration of 'set_posix_acl' follows non-static declaration
static inline int set_posix_acl(struct inode *inode, int type,
^
include/linux/posix_acl.h:72:12: note: previous declaration is here
extern int set_posix_acl(struct inode *, int, struct posix_acl *);
^
>> include/linux/posix_acl.h:127:55: warning: omitting the parameter name in a function definition is a C2x extension [-Wc2x-extensions]
static inline int posix_acl_update_mode(struct inode *, umode_t *,
^
include/linux/posix_acl.h:127:66: warning: omitting the parameter name in a function definition is a C2x extension [-Wc2x-extensions]
static inline int posix_acl_update_mode(struct inode *, umode_t *,
^
include/linux/posix_acl.h:128:25: warning: omitting the parameter name in a function definition is a C2x extension [-Wc2x-extensions]
struct posix_acl **)
^
3 warnings and 1 error generated.
vim +127 include/linux/posix_acl.h
126
> 127 static inline int posix_acl_update_mode(struct inode *, umode_t *,
128 struct posix_acl **)
129 {
130 return 0;
131 }
132
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
Re: [RFC V2 3/3] s390/mm: Define arch_get_mappable_range()
by kernel test robot
Hi Anshuman,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on v5.10-rc6]
[cannot apply to mmotm/master s390/features arm64/for-next/core hnaz-linux-mm/master next-20201127]
[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/Anshuman-Khandual/mm-hotplug-Pre...
base: b65054597872ce3aefbc6a666385eabdf9e288da
config: s390-randconfig-r024-20201130 (attached as .config)
compiler: s390-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/07c7b752176c2d810fc3dc44f9b41593d...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Anshuman-Khandual/mm-hotplug-Pre-validate-the-address-range-with-platform/20201130-113145
git checkout 07c7b752176c2d810fc3dc44f9b41593d995fbf2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390
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/s390/mm/vmem.c:520:6: warning: no previous prototype for 'vmemmap_free' [-Wmissing-prototypes]
520 | void vmemmap_free(unsigned long start, unsigned long end,
| ^~~~~~~~~~~~
>> arch/s390/mm/vmem.c:535:14: warning: no previous prototype for 'arch_get_mappable_range' [-Wmissing-prototypes]
535 | struct range arch_get_mappable_range(void)
| ^~~~~~~~~~~~~~~~~~~~~~~
vim +/arch_get_mappable_range +535 arch/s390/mm/vmem.c
519
> 520 void vmemmap_free(unsigned long start, unsigned long end,
521 struct vmem_altmap *altmap)
522 {
523 mutex_lock(&vmem_mutex);
524 remove_pagetable(start, end, false);
525 mutex_unlock(&vmem_mutex);
526 }
527
528 void vmem_remove_mapping(unsigned long start, unsigned long size)
529 {
530 mutex_lock(&vmem_mutex);
531 vmem_remove_range(start, size);
532 mutex_unlock(&vmem_mutex);
533 }
534
> 535 struct range arch_get_mappable_range(void)
536 {
537 struct range memhp_range;
538
539 memhp_range.start = 0;
540 memhp_range.end = VMEM_MAX_PHYS;
541 return memhp_range;
542 }
543
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months