From: kernel test robot <lkp@intel.com>
To: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>,
broonie@kernel.org, vkoul@kernel.org
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
robh@kernel.org, devicetree@vger.kernel.org,
yung-chuan.liao@linux.intel.com,
pierre-louis.bossart@linux.intel.com, sanyog.r.kale@intel.com,
linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org,
Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Subject: Re: [PATCH v2 5/5] ASoC: codecs: wsa881x: add static port map support
Date: Wed, 10 Mar 2021 04:31:58 +0800 [thread overview]
Message-ID: <202103100428.Q7F0LqCs-lkp@intel.com> (raw)
In-Reply-To: <20210309141514.24744-6-srinivas.kandagatla@linaro.org>
[-- Attachment #1: Type: text/plain, Size: 4433 bytes --]
Hi Srinivas,
I love your patch! Yet something to improve:
[auto build test ERROR on asoc/for-next]
[also build test ERROR on vkoul-dmaengine/next robh/for-next linus/master v5.12-rc2 next-20210309]
[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/Srinivas-Kandagatla/soundwire-add-static-port-map-support/20210309-221834
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
config: arm64-randconfig-r016-20210308 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 820f508b08d7c94b2dd7847e9710d2bc36d3dd45)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/0day-ci/linux/commit/d0e48ba0d85c188c14216aad9397bcd902d8a09a
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Srinivas-Kandagatla/soundwire-add-static-port-map-support/20210309-221834
git checkout d0e48ba0d85c188c14216aad9397bcd902d8a09a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> sound/soc/codecs/wsa881x.c:1108:33: error: use of undeclared identifier 'dev'
if (of_property_read_u32_array(dev->of_node, "qcom,port-mapping",
^
sound/soc/codecs/wsa881x.c:1111:12: error: use of undeclared identifier 'dev'; did you mean 'pdev'?
dev_info(dev, "Static Port mapping not specified\n");
^~~
pdev
include/linux/dev_printk.h:118:12: note: expanded from macro 'dev_info'
_dev_info(dev, dev_fmt(fmt), ##__VA_ARGS__)
^
sound/soc/codecs/wsa881x.c:1092:44: note: 'pdev' declared here
static int wsa881x_probe(struct sdw_slave *pdev,
^
2 errors generated.
vim +/dev +1108 sound/soc/codecs/wsa881x.c
1091
1092 static int wsa881x_probe(struct sdw_slave *pdev,
1093 const struct sdw_device_id *id)
1094 {
1095 struct wsa881x_priv *wsa881x;
1096
1097 wsa881x = devm_kzalloc(&pdev->dev, sizeof(*wsa881x), GFP_KERNEL);
1098 if (!wsa881x)
1099 return -ENOMEM;
1100
1101 wsa881x->sd_n = devm_gpiod_get_optional(&pdev->dev, "powerdown",
1102 GPIOD_FLAGS_BIT_NONEXCLUSIVE);
1103 if (IS_ERR(wsa881x->sd_n)) {
1104 dev_err(&pdev->dev, "Shutdown Control GPIO not found\n");
1105 return PTR_ERR(wsa881x->sd_n);
1106 }
1107
> 1108 if (of_property_read_u32_array(dev->of_node, "qcom,port-mapping",
1109 pdev->m_port_map,
1110 WSA881X_MAX_SWR_PORTS))
1111 dev_info(dev, "Static Port mapping not specified\n");
1112
1113 dev_set_drvdata(&pdev->dev, wsa881x);
1114 wsa881x->slave = pdev;
1115 wsa881x->dev = &pdev->dev;
1116 wsa881x->sconfig.ch_count = 1;
1117 wsa881x->sconfig.bps = 1;
1118 wsa881x->sconfig.frame_rate = 48000;
1119 wsa881x->sconfig.direction = SDW_DATA_DIR_RX;
1120 wsa881x->sconfig.type = SDW_STREAM_PDM;
1121 pdev->prop.sink_ports = GENMASK(WSA881X_MAX_SWR_PORTS, 0);
1122 pdev->prop.sink_dpn_prop = wsa_sink_dpn_prop;
1123 pdev->prop.scp_int1_mask = SDW_SCP_INT1_BUS_CLASH | SDW_SCP_INT1_PARITY;
1124 gpiod_direction_output(wsa881x->sd_n, 1);
1125
1126 wsa881x->regmap = devm_regmap_init_sdw(pdev, &wsa881x_regmap_config);
1127 if (IS_ERR(wsa881x->regmap)) {
1128 dev_err(&pdev->dev, "regmap_init failed\n");
1129 return PTR_ERR(wsa881x->regmap);
1130 }
1131
1132 return devm_snd_soc_register_component(&pdev->dev,
1133 &wsa881x_component_drv,
1134 wsa881x_dais,
1135 ARRAY_SIZE(wsa881x_dais));
1136 }
1137
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 33552 bytes --]
prev parent reply other threads:[~2021-03-09 20:33 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-09 14:15 [PATCH v2 0/5] soundwire: add static port map support Srinivas Kandagatla
2021-03-09 14:15 ` [PATCH v2 1/5] soundwire: add static port mapping support Srinivas Kandagatla
2021-03-09 14:15 ` [PATCH v2 2/5] soundwire: qcom: update port map allocation bit mask Srinivas Kandagatla
2021-03-09 15:55 ` Pierre-Louis Bossart
2021-03-11 14:29 ` Srinivas Kandagatla
2021-03-09 14:15 ` [PATCH v2 3/5] soundwire: qcom: add static port map support Srinivas Kandagatla
2021-03-09 16:10 ` Pierre-Louis Bossart
2021-03-11 14:29 ` Srinivas Kandagatla
2021-03-09 14:15 ` [PATCH v2 4/5] ASoC: dt-bindings: wsa881x: add bindings for port mapping Srinivas Kandagatla
2021-03-09 17:19 ` Rob Herring
2021-03-09 14:15 ` [PATCH v2 5/5] ASoC: codecs: wsa881x: add static port map support Srinivas Kandagatla
2021-03-09 16:08 ` kernel test robot
2021-03-09 20:31 ` kernel test robot [this message]
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=202103100428.Q7F0LqCs-lkp@intel.com \
--to=lkp@intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=clang-built-linux@googlegroups.com \
--cc=devicetree@vger.kernel.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pierre-louis.bossart@linux.intel.com \
--cc=robh@kernel.org \
--cc=sanyog.r.kale@intel.com \
--cc=srinivas.kandagatla@linaro.org \
--cc=vkoul@kernel.org \
--cc=yung-chuan.liao@linux.intel.com \
/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;
as well as URLs for NNTP newsgroup(s).