From: kernel test robot <lkp@intel.com>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Lee Jones <lee.jones@linaro.org>, Lee Jones <lee@kernel.org>
Subject: [lee-mfd:for-mfd-next 36/37] drivers/mmc/host/tmio_mmc.c:141:12: error: no member named 'enable' in 'struct mfd_cell'
Date: Tue, 31 Jan 2023 22:48:48 +0800 [thread overview]
Message-ID: <202301312253.oUVq9cys-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next
head: a561a980c024193e342b6878f62e02ff9d018285
commit: 78e7ccec94380519919267670174cbf1711b7963 [36/37] mfd: Remove .enable() and .disable() callbacks
config: hexagon-randconfig-r041-20230130 (https://download.01.org/0day-ci/archive/20230131/202301312253.oUVq9cys-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 4196ca3278f78c6e19246e54ab0ecb364e37d66a)
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/lee/mfd.git/commit/?id=78e7ccec94380519919267670174cbf1711b7963
git remote add lee-mfd https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git
git fetch --no-tags lee-mfd for-mfd-next
git checkout 78e7ccec94380519919267670174cbf1711b7963
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/mmc/host/ drivers/video/fbdev/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/mmc/host/tmio_mmc.c:16:
In file included from include/linux/mfd/tmio.h:6:
In file included from include/linux/fb.h:6:
In file included from include/linux/kgdb.h:19:
In file included from include/linux/kprobes.h:28:
In file included from include/linux/ftrace.h:10:
In file included from include/linux/trace_recursion.h:5:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/hexagon/include/asm/io.h:334:
include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __raw_readb(PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
^
In file included from drivers/mmc/host/tmio_mmc.c:16:
In file included from include/linux/mfd/tmio.h:6:
In file included from include/linux/fb.h:6:
In file included from include/linux/kgdb.h:19:
In file included from include/linux/kprobes.h:28:
In file included from include/linux/ftrace.h:10:
In file included from include/linux/trace_recursion.h:5:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/hexagon/include/asm/io.h:334:
include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
In file included from drivers/mmc/host/tmio_mmc.c:16:
In file included from include/linux/mfd/tmio.h:6:
In file included from include/linux/fb.h:6:
In file included from include/linux/kgdb.h:19:
In file included from include/linux/kprobes.h:28:
In file included from include/linux/ftrace.h:10:
In file included from include/linux/trace_recursion.h:5:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/hexagon/include/asm/io.h:334:
include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writeb(value, PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
>> drivers/mmc/host/tmio_mmc.c:141:12: error: no member named 'enable' in 'struct mfd_cell'
if (cell->enable) {
~~~~ ^
drivers/mmc/host/tmio_mmc.c:142:15: error: no member named 'enable' in 'struct mfd_cell'
ret = cell->enable(pdev);
~~~~ ^
>> drivers/mmc/host/tmio_mmc.c:186:12: error: no member named 'disable' in 'struct mfd_cell'
if (cell->disable)
~~~~ ^
drivers/mmc/host/tmio_mmc.c:187:9: error: no member named 'disable' in 'struct mfd_cell'
cell->disable(pdev);
~~~~ ^
drivers/mmc/host/tmio_mmc.c:198:12: error: no member named 'disable' in 'struct mfd_cell'
if (cell->disable)
~~~~ ^
drivers/mmc/host/tmio_mmc.c:199:9: error: no member named 'disable' in 'struct mfd_cell'
cell->disable(pdev);
~~~~ ^
6 warnings and 6 errors generated.
--
In file included from drivers/video/fbdev/tmiofb.c:17:
In file included from include/linux/fb.h:6:
In file included from include/linux/kgdb.h:19:
In file included from include/linux/kprobes.h:28:
In file included from include/linux/ftrace.h:10:
In file included from include/linux/trace_recursion.h:5:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/hexagon/include/asm/io.h:334:
include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __raw_readb(PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
^
In file included from drivers/video/fbdev/tmiofb.c:17:
In file included from include/linux/fb.h:6:
In file included from include/linux/kgdb.h:19:
In file included from include/linux/kprobes.h:28:
In file included from include/linux/ftrace.h:10:
In file included from include/linux/trace_recursion.h:5:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/hexagon/include/asm/io.h:334:
include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
In file included from drivers/video/fbdev/tmiofb.c:17:
In file included from include/linux/fb.h:6:
In file included from include/linux/kgdb.h:19:
In file included from include/linux/kprobes.h:28:
In file included from include/linux/ftrace.h:10:
In file included from include/linux/trace_recursion.h:5:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/hexagon/include/asm/io.h:334:
include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writeb(value, PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
>> drivers/video/fbdev/tmiofb.c:759:12: error: no member named 'enable' in 'struct mfd_cell'
if (cell->enable) {
~~~~ ^
drivers/video/fbdev/tmiofb.c:760:18: error: no member named 'enable' in 'struct mfd_cell'
retval = cell->enable(dev);
~~~~ ^
>> drivers/video/fbdev/tmiofb.c:784:12: error: no member named 'disable' in 'struct mfd_cell'
if (cell->disable)
~~~~ ^
drivers/video/fbdev/tmiofb.c:785:9: error: no member named 'disable' in 'struct mfd_cell'
cell->disable(dev);
~~~~ ^
drivers/video/fbdev/tmiofb.c:813:13: error: no member named 'disable' in 'struct mfd_cell'
if (cell->disable)
~~~~ ^
drivers/video/fbdev/tmiofb.c:814:10: error: no member named 'disable' in 'struct mfd_cell'
cell->disable(dev);
~~~~ ^
6 warnings and 6 errors generated.
vim +141 drivers/mmc/host/tmio_mmc.c
4a48998fa16121 Ian Molton 2008-07-15 118
c3be1efd41a97f Bill Pemberton 2012-11-19 119 static int tmio_mmc_probe(struct platform_device *pdev)
4a48998fa16121 Ian Molton 2008-07-15 120 {
b6147490e6aac8 Guennadi Liakhovetski 2011-03-23 121 const struct mfd_cell *cell = mfd_get_cell(pdev);
f0e46cc4971f6b Philipp Zabel 2009-06-04 122 struct tmio_mmc_data *pdata;
4a48998fa16121 Ian Molton 2008-07-15 123 struct tmio_mmc_host *host;
3b159a6e955c8d Kuninori Morimoto 2013-11-20 124 struct resource *res;
8e7bfdb37ac001 Magnus Damm 2011-05-06 125 int ret = -EINVAL, irq;
4a48998fa16121 Ian Molton 2008-07-15 126
b6147490e6aac8 Guennadi Liakhovetski 2011-03-23 127 if (pdev->num_resources != 2)
4a48998fa16121 Ian Molton 2008-07-15 128 goto out;
4a48998fa16121 Ian Molton 2008-07-15 129
ec71974f2a3ae0 Samuel Ortiz 2011-04-06 130 pdata = pdev->dev.platform_data;
d6c9b5ed37c265 Philipp Zabel 2009-06-04 131 if (!pdata || !pdata->hclk)
f0e46cc4971f6b Philipp Zabel 2009-06-04 132 goto out;
d6c9b5ed37c265 Philipp Zabel 2009-06-04 133
8e7bfdb37ac001 Magnus Damm 2011-05-06 134 irq = platform_get_irq(pdev, 0);
8e7bfdb37ac001 Magnus Damm 2011-05-06 135 if (irq < 0) {
8e7bfdb37ac001 Magnus Damm 2011-05-06 136 ret = irq;
8e7bfdb37ac001 Magnus Damm 2011-05-06 137 goto out;
8e7bfdb37ac001 Magnus Damm 2011-05-06 138 }
8e7bfdb37ac001 Magnus Damm 2011-05-06 139
4a48998fa16121 Ian Molton 2008-07-15 140 /* Tell the MFD core we are ready to be enabled */
4a48998fa16121 Ian Molton 2008-07-15 @141 if (cell->enable) {
b6147490e6aac8 Guennadi Liakhovetski 2011-03-23 142 ret = cell->enable(pdev);
4a48998fa16121 Ian Molton 2008-07-15 143 if (ret)
b6147490e6aac8 Guennadi Liakhovetski 2011-03-23 144 goto out;
4a48998fa16121 Ian Molton 2008-07-15 145 }
4a48998fa16121 Ian Molton 2008-07-15 146
3b159a6e955c8d Kuninori Morimoto 2013-11-20 147 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
25db67e2ce2fdf Ian Molton 2015-04-27 148 if (!res) {
25db67e2ce2fdf Ian Molton 2015-04-27 149 ret = -EINVAL;
25db67e2ce2fdf Ian Molton 2015-04-27 150 goto cell_disable;
25db67e2ce2fdf Ian Molton 2015-04-27 151 }
3b159a6e955c8d Kuninori Morimoto 2013-11-20 152
b21fc294387e4c Masahiro Yamada 2018-01-18 153 host = tmio_mmc_host_alloc(pdev, pdata);
8d09a13386ccde Masahiro Yamada 2018-01-18 154 if (IS_ERR(host)) {
8d09a13386ccde Masahiro Yamada 2018-01-18 155 ret = PTR_ERR(host);
7ee422dc6e947f Magnus Damm 2010-02-17 156 goto cell_disable;
8d09a13386ccde Masahiro Yamada 2018-01-18 157 }
4a48998fa16121 Ian Molton 2008-07-15 158
7445bf9e6f4e5d Kuninori Morimoto 2015-01-13 159 /* SD control register space size is 0x200, 0x400 for bus_shift=1 */
7445bf9e6f4e5d Kuninori Morimoto 2015-01-13 160 host->bus_shift = resource_size(res) >> 10;
0196c8db8363f7 Masahiro Yamada 2018-08-23 161 host->set_clock = tmio_mmc_set_clock;
acb9fce7309a38 Masahiro Yamada 2018-10-10 162 host->reset = tmio_mmc_reset;
7445bf9e6f4e5d Kuninori Morimoto 2015-01-13 163
b21fc294387e4c Masahiro Yamada 2018-01-18 164 host->mmc->f_max = pdata->hclk;
b21fc294387e4c Masahiro Yamada 2018-01-18 165 host->mmc->f_min = pdata->hclk / 512;
b21fc294387e4c Masahiro Yamada 2018-01-18 166
bc45719c1b1a56 Masahiro Yamada 2018-01-18 167 ret = tmio_mmc_host_probe(host);
94b110aff8679b Kuninori Morimoto 2015-01-13 168 if (ret)
94b110aff8679b Kuninori Morimoto 2015-01-13 169 goto host_free;
94b110aff8679b Kuninori Morimoto 2015-01-13 170
de501af98dfab9 Ian Molton 2015-04-27 171 ret = devm_request_irq(&pdev->dev, irq, tmio_mmc_irq,
de501af98dfab9 Ian Molton 2015-04-27 172 IRQF_TRIGGER_FALLING,
d9618e9f1a057e Yong Zhang 2011-09-22 173 dev_name(&pdev->dev), host);
8e7bfdb37ac001 Magnus Damm 2011-05-06 174 if (ret)
8e7bfdb37ac001 Magnus Damm 2011-05-06 175 goto host_remove;
8e7bfdb37ac001 Magnus Damm 2011-05-06 176
ade8e9d3fb9232 Krzysztof Kozlowski 2020-11-16 177 pr_info("%s at 0x%p irq %d\n", mmc_hostname(host->mmc), host->ctl, irq);
4a48998fa16121 Ian Molton 2008-07-15 178
4a48998fa16121 Ian Molton 2008-07-15 179 return 0;
4a48998fa16121 Ian Molton 2008-07-15 180
8e7bfdb37ac001 Magnus Damm 2011-05-06 181 host_remove:
8e7bfdb37ac001 Magnus Damm 2011-05-06 182 tmio_mmc_host_remove(host);
94b110aff8679b Kuninori Morimoto 2015-01-13 183 host_free:
94b110aff8679b Kuninori Morimoto 2015-01-13 184 tmio_mmc_host_free(host);
7ee422dc6e947f Magnus Damm 2010-02-17 185 cell_disable:
7ee422dc6e947f Magnus Damm 2010-02-17 @186 if (cell->disable)
b6147490e6aac8 Guennadi Liakhovetski 2011-03-23 187 cell->disable(pdev);
4a48998fa16121 Ian Molton 2008-07-15 188 out:
4a48998fa16121 Ian Molton 2008-07-15 189 return ret;
4a48998fa16121 Ian Molton 2008-07-15 190 }
4a48998fa16121 Ian Molton 2008-07-15 191
:::::: The code at line 141 was first introduced by commit
:::::: 4a48998fa16121d0fe3436cce43afd6f47424103 mfd: TMIO MMC driver
:::::: TO: Ian Molton <spyro@f2s.com>
:::::: CC: Samuel Ortiz <sameo@openedhand.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
next reply other threads:[~2023-01-31 14:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-31 14:48 kernel test robot [this message]
2023-01-31 15:20 ` [lee-mfd:for-mfd-next 36/37] drivers/mmc/host/tmio_mmc.c:141:12: error: no member named 'enable' in 'struct mfd_cell' Uwe Kleine-König
2023-01-31 17:17 ` Lee Jones
2023-01-31 17:33 ` Uwe Kleine-König
2023-02-01 10:20 ` Lee Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202301312253.oUVq9cys-lkp@intel.com \
--to=lkp@intel.com \
--cc=lee.jones@linaro.org \
--cc=lee@kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=u.kleine-koenig@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox