From: kernel test robot <yujie.liu@intel.com>
To: Vinicius Costa Gomes <vinicius.gomes@intel.com>,
netdev <netdev@vger.kernel.org>
Cc: <llvm@lists.linux.dev>, <kbuild-all@lists.01.org>
Subject: Re: [PATCH net-next v5 10/11] igc: Check incompatible configs for Frame Preemption
Date: Tue, 24 May 2022 16:26:01 +0800 [thread overview]
Message-ID: <15f465e2-c456-23e4-2c13-af97a3aefa5c@intel.com> (raw)
In-Reply-To: <202205221852.CJ4p5boS-lkp@intel.com>
Hi Vinicius,
Thanks for your patch! Perhaps something to improve:
[auto build test WARNING on net-next/master]
url: https://github.com/intel-lab-lkp/linux/commits/Vinicius-Costa-Gomes/ethtool-Add-support-for-frame-preemption/20220520-092800
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git df98714e432abf5cbdac3e4c1a13f94c65ddb8d3
config: arm-randconfig-c002-20220522 (https://download.01.org/0day-ci/archive/20220522/202205221852.CJ4p5boS-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 1443dbaba6f0e57be066995db9164f89fb57b413)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/intel-lab-lkp/linux/commit/a42e940bc53c40ee4e33a1bbf022a663bb28a9c7
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Vinicius-Costa-Gomes/ethtool-Add-support-for-frame-preemption/20220520-092800
git checkout a42e940bc53c40ee4e33a1bbf022a663bb28a9c7
# save the config file
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm clang-analyzer
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <yujie.liu@intel.com>
clang-analyzer warnings: (new ones prefixed by >>)
>> drivers/net/ethernet/intel/igc/igc_main.c:5919:6: warning: Access to field 'preemptible' results in a dereference of an undefined pointer value (loaded from variable 'ring') [clang-analyzer-core.NullDereference]
if (ring->preemptible) {
^
vim +5919 drivers/net/ethernet/intel/igc/igc_main.c
5f2958052c5820 Vinicius Costa Gomes 2019-12-02 5910
82faa9b799500f Vinicius Costa Gomes 2020-02-14 5911 static int igc_save_launchtime_params(struct igc_adapter *adapter, int queue,
82faa9b799500f Vinicius Costa Gomes 2020-02-14 5912 bool enable)
82faa9b799500f Vinicius Costa Gomes 2020-02-14 5913 {
82faa9b799500f Vinicius Costa Gomes 2020-02-14 @5914 struct igc_ring *ring;
82faa9b799500f Vinicius Costa Gomes 2020-02-14 5915
82faa9b799500f Vinicius Costa Gomes 2020-02-14 5916 if (queue < 0 || queue >= adapter->num_tx_queues)
82faa9b799500f Vinicius Costa Gomes 2020-02-14 5917 return -EINVAL;
82faa9b799500f Vinicius Costa Gomes 2020-02-14 5918
a42e940bc53c40 Vinicius Costa Gomes 2022-05-19 @5919 if (ring->preemptible) {
a42e940bc53c40 Vinicius Costa Gomes 2022-05-19 5920 netdev_err(adapter->netdev, "Cannot enable LaunchTime on a preemptible queue\n");
a42e940bc53c40 Vinicius Costa Gomes 2022-05-19 5921 return -EINVAL;
a42e940bc53c40 Vinicius Costa Gomes 2022-05-19 5922 }
a42e940bc53c40 Vinicius Costa Gomes 2022-05-19 5923
82faa9b799500f Vinicius Costa Gomes 2020-02-14 5924 ring = adapter->tx_ring[queue];
82faa9b799500f Vinicius Costa Gomes 2020-02-14 5925 ring->launchtime_enable = enable;
82faa9b799500f Vinicius Costa Gomes 2020-02-14 5926
82faa9b799500f Vinicius Costa Gomes 2020-02-14 5927 return 0;
82faa9b799500f Vinicius Costa Gomes 2020-02-14 5928 }
82faa9b799500f Vinicius Costa Gomes 2020-02-14 5929
--
0-DAY CI Kernel Test Service
https://01.org/lkp
next parent reply other threads:[~2022-05-24 8:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <202205221852.CJ4p5boS-lkp@intel.com>
2022-05-24 8:26 ` kernel test robot [this message]
2022-05-20 1:15 [PATCH net-next v5 00/11] ethtool: Add support for frame preemption Vinicius Costa Gomes
2022-05-20 1:15 ` [PATCH net-next v5 10/11] igc: Check incompatible configs for Frame Preemption Vinicius Costa Gomes
2022-05-20 6:11 ` kernel test robot
2022-05-20 11:06 ` Vladimir Oltean
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=15f465e2-c456-23e4-2c13-af97a3aefa5c@intel.com \
--to=yujie.liu@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=llvm@lists.linux.dev \
--cc=netdev@vger.kernel.org \
--cc=vinicius.gomes@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