[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202109090017.4ojIBzLz-lkp@intel.com>
Date: Thu, 9 Sep 2021 00:41:23 +0800
From: kernel test robot <lkp@...el.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@...esas.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: [morimoto-linux:rich-09-08-v1 23/27]
sound/soc/generic/rich-graph-card.c:270:11: error: label at end of compound
statement: expected statement
tree: https://github.com/morimoto/linux rich-09-08-v1
head: cba99e179c0250126de8ffb90723dd9dafc11ebe
commit: 1b7f289c130a0b84a573b165422f0c757eed6f72 [23/27] rich
config: riscv-randconfig-r012-20210908 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 9c476172b93367d2cb88d7d3f4b1b5b456fa6020)
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/morimoto/linux/commit/1b7f289c130a0b84a573b165422f0c757eed6f72
git remote add morimoto-linux https://github.com/morimoto/linux
git fetch --no-tags morimoto-linux rich-09-08-v1
git checkout 1b7f289c130a0b84a573b165422f0c757eed6f72
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=riscv SHELL=/bin/bash sound/soc/generic/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
In file included from sound/soc/generic/rich-graph-card.c:11:
In file included from include/linux/gpio.h:62:
In file included from include/asm-generic/gpio.h:11:
In file included from include/linux/gpio/driver.h:7:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:136:
include/asm-generic/io.h:464: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:477: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:36:51: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
^
In file included from sound/soc/generic/rich-graph-card.c:11:
In file included from include/linux/gpio.h:62:
In file included from include/asm-generic/gpio.h:11:
In file included from include/linux/gpio/driver.h:7:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:136:
include/asm-generic/io.h:490: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:34:51: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
In file included from sound/soc/generic/rich-graph-card.c:11:
In file included from include/linux/gpio.h:62:
In file included from include/asm-generic/gpio.h:11:
In file included from include/linux/gpio/driver.h:7:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:136:
include/asm-generic/io.h:501: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:511: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:521: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);
~~~~~~~~~~ ^
include/asm-generic/io.h:1024:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
~~~~~~~~~~ ^
>> sound/soc/generic/rich-graph-card.c:270:11: error: label at end of compound statement: expected statement
default:
^
;
7 warnings and 1 error generated.
vim +270 sound/soc/generic/rich-graph-card.c
219
220 static int __graph_parse_node(struct asoc_simple_priv *priv,
221 enum graph_type gtype,
222 struct device_node *ep,
223 struct link_info *li,
224 int is_cpu, int idx)
225 {
226 struct device *dev = simple_priv_to_dev(priv);
227 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link);
228 struct simple_dai_props *dai_props = simple_priv_to_props(priv, li->link);
229 struct snd_soc_dai_link_component *dlc;
230 struct asoc_simple_dai *dai;
231 char *dai_name = NULL;
232 char __dai_name[64];
233 int ret, is_single_links = 0;
234
235 if (is_cpu) {
236 dlc = asoc_link_to_cpu(dai_link, idx);
237 dai = simple_props_to_dai_cpu(dai_props, idx);
238 } else {
239 dlc = asoc_link_to_codec(dai_link, idx);
240 dai = simple_props_to_dai_codec(dai_props, idx);
241 }
242
243 graph_parse_mclk_fs(ep, dai_props);
244
245 ret = asoc_simple_parse_dai(ep, dlc, &is_single_links);
246 if (ret < 0)
247 return ret;
248
249 ret = asoc_simple_parse_tdm(ep, dai);
250 if (ret < 0)
251 return ret;
252
253 ret = asoc_simple_parse_clk(dev, ep, dai, dlc);
254 if (ret < 0)
255 return ret;
256
257 /*
258 * DAI Naming
259 */
260 if (!dai_link->name) {
261 struct snd_soc_dai_link_component *cpus = dlc;
262 struct snd_soc_dai_link_component *codecs = asoc_link_to_codec(dai_link, idx);
263
264 switch (gtype) {
265 case GRAPH_NORMAL:
266 snprintf(__dai_name, sizeof(__dai_name),
267 "%s-%s", cpus->dai_name, codecs->dai_name);
268 dai_name = __dai_name;
269 break;
> 270 default:
271 }
272 }
273
274 if (dai_name)
275 asoc_simple_set_dailink_name(dev, dai_link, dai_name);
276
277 if (is_cpu)
278 asoc_simple_canonicalize_cpu(dlc, is_single_links);
279
280 return 0;
281 }
282
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (34575 bytes)
Powered by blists - more mailing lists