linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Anand Ashok Dumbre <anand.ashok.dumbre@xilinx.com>,
	jic23@kernel.org, lars@metafoo.de, linux-iio@vger.kernel.org,
	git-dev@xilinx.com, michal.simek@xilinx.com, pmeerw@pmeerw.net,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
	Anand Ashok Dumbre <anand.ashok.dumbre@xilinx.com>,
	Manish Narani <manish.narani@xilinx.com>
Subject: Re: [PATCH v6 2/4] iio: adc: Add Xilinx AMS driver
Date: Fri, 25 Jun 2021 18:49:52 +0800	[thread overview]
Message-ID: <202106251837.rm2IqBua-lkp@intel.com> (raw)
In-Reply-To: <20210624182939.12881-3-anand.ashok.dumbre@xilinx.com>

[-- Attachment #1: Type: text/plain, Size: 3861 bytes --]

Hi Anand,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on iio/togreg]
[also build test WARNING on linus/master v5.13-rc7 next-20210624]
[cannot apply to xlnx/master]
[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/Anand-Ashok-Dumbre/Add-Xilinx-AMS-Driver/20210625-023047
base:   https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
config: x86_64-randconfig-r015-20210625 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 9ca0171a9ffdef5fdb1511d197a3fd72490362de)
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/fa0ea7aaf7a9bff3781f19596b07fe33c6ef531d
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Anand-Ashok-Dumbre/Add-Xilinx-AMS-Driver/20210625-023047
        git checkout fa0ea7aaf7a9bff3781f19596b07fe33c6ef531d
        # 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@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/iio/adc/xilinx-ams.c:1126:35: warning: variable 'chan_node' is uninitialized when used here [-Wuninitialized]
                   num_channels = ams_get_ext_chan(chan_node, channels,
                                                   ^~~~~~~~~
   drivers/iio/adc/xilinx-ams.c:1104:31: note: initialize the variable 'chan_node' to silence this warning
           struct device_node *chan_node;
                                        ^
                                         = NULL
   1 warning generated.


vim +/chan_node +1126 drivers/iio/adc/xilinx-ams.c

  1099	
  1100	static int ams_init_module(struct iio_dev *indio_dev, struct device_node *np,
  1101				   struct iio_chan_spec *channels)
  1102	{
  1103		struct ams *ams = iio_priv(indio_dev);
  1104		struct device_node *chan_node;
  1105		int num_channels = 0;
  1106	
  1107		if (of_device_is_compatible(np, "xlnx,zynqmp-ams-ps")) {
  1108			ams->ps_base = of_iomap(np, 0);
  1109			if (!ams->ps_base)
  1110				return -ENXIO;
  1111	
  1112			/* add PS channels to iio device channels */
  1113			memcpy(channels + num_channels, ams_ps_channels,
  1114			       sizeof(ams_ps_channels));
  1115			num_channels += ARRAY_SIZE(ams_ps_channels);
  1116		} else if (of_device_is_compatible(np, "xlnx,zynqmp-ams-pl")) {
  1117			ams->pl_base = of_iomap(np, 0);
  1118			if (!ams->pl_base)
  1119				return -ENXIO;
  1120	
  1121			/* Copy only first 10 fix channels */
  1122			memcpy(channels + num_channels, ams_pl_channels,
  1123			       AMS_PL_MAX_FIXED_CHANNEL * sizeof(*channels));
  1124			num_channels += AMS_PL_MAX_FIXED_CHANNEL;
  1125	
> 1126			num_channels = ams_get_ext_chan(chan_node, channels,
  1127							num_channels);
  1128	
  1129		} else if (of_device_is_compatible(np, "xlnx,zynqmp-ams")) {
  1130			/* add AMS channels to iio device channels */
  1131			memcpy(channels + num_channels, ams_ctrl_channels,
  1132			       sizeof(ams_ctrl_channels));
  1133			num_channels += ARRAY_SIZE(ams_ctrl_channels);
  1134		} else {
  1135			return -EINVAL;
  1136		}
  1137	
  1138		return num_channels;
  1139	}
  1140	

---
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: 52567 bytes --]

  reply	other threads:[~2021-06-25 10:50 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-24 18:29 [PATCH v6 0/4] Add Xilinx AMS Driver Anand Ashok Dumbre
2021-06-24 18:29 ` [PATCH v6 1/4] arm64: zynqmp: DT: Add Xilinx AMS node Anand Ashok Dumbre
2021-06-24 18:29 ` [PATCH v6 2/4] iio: adc: Add Xilinx AMS driver Anand Ashok Dumbre
2021-06-25 10:49   ` kernel test robot [this message]
2021-06-29  8:32   ` Dan Carpenter
2021-07-01  8:00   ` kernel test robot
2021-07-04 18:31   ` Jonathan Cameron
2021-07-15  7:48     ` Anand Ashok Dumbre
2021-07-15 12:52       ` Jonathan Cameron
2021-07-19  7:49         ` Anand Ashok Dumbre
2021-06-24 18:29 ` [PATCH v6 3/4] dt-bindings: iio: adc: Add Xilinx AMS binding documentation Anand Ashok Dumbre
2021-07-04 18:08   ` Jonathan Cameron
2021-07-13 22:31   ` Rob Herring
2021-07-15  6:58     ` Anand Ashok Dumbre
2021-06-24 18:29 ` [PATCH v6 4/4] MAINTAINERS: Add maintainer for xilinx-ams Anand Ashok Dumbre

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=202106251837.rm2IqBua-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=anand.ashok.dumbre@xilinx.com \
    --cc=clang-built-linux@googlegroups.com \
    --cc=devicetree@vger.kernel.org \
    --cc=git-dev@xilinx.com \
    --cc=jic23@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=manish.narani@xilinx.com \
    --cc=michal.simek@xilinx.com \
    --cc=pmeerw@pmeerw.net \
    /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).