From: kernel test robot <lkp@intel.com>
To: Aditya Srivastava <yashsri421@gmail.com>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
linux-kernel@vger.kernel.org, Jonathan Corbet <corbet@lwn.net>,
linux-doc@vger.kernel.org
Subject: drivers/infiniband/hw/hns/hns_roce_hem.c:1165: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
Date: Mon, 24 May 2021 17:53:43 +0800 [thread overview]
Message-ID: <202105241740.oe2xf0Vw-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4303 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c4681547bcce777daf576925a966ffa824edd09d
commit: f9bbc12ccb35ac8b3fa01cec1a19cb523a7707c7 scripts: kernel-doc: improve parsing for kernel-doc comments syntax
date: 6 weeks ago
config: arm64-randconfig-r015-20210524 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 93d1e5822ed64abd777eb94ea9899e96c4c39fbe)
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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f9bbc12ccb35ac8b3fa01cec1a19cb523a7707c7
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout f9bbc12ccb35ac8b3fa01cec1a19cb523a7707c7
# 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 warnings (new ones prefixed by >>):
>> drivers/infiniband/hw/hns/hns_roce_hem.c:1165: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
* calc base address entries num
drivers/infiniband/hw/hns/hns_roce_hem.c:1198: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
* calc the root ba entries which could cover all regions
vim +1165 drivers/infiniband/hw/hns/hns_roce_hem.c
38389eaa4db1926 Lijun Ou 2019-06-08 1163
38389eaa4db1926 Lijun Ou 2019-06-08 1164 /**
38389eaa4db1926 Lijun Ou 2019-06-08 @1165 * calc base address entries num
38389eaa4db1926 Lijun Ou 2019-06-08 1166 * @hopnum: num of mutihop addressing
38389eaa4db1926 Lijun Ou 2019-06-08 1167 * @bt_level: base address table level
38389eaa4db1926 Lijun Ou 2019-06-08 1168 * @unit: ba entries per bt page
38389eaa4db1926 Lijun Ou 2019-06-08 1169 */
38389eaa4db1926 Lijun Ou 2019-06-08 1170 static u32 hem_list_calc_ba_range(int hopnum, int bt_level, int unit)
38389eaa4db1926 Lijun Ou 2019-06-08 1171 {
38389eaa4db1926 Lijun Ou 2019-06-08 1172 u32 step;
38389eaa4db1926 Lijun Ou 2019-06-08 1173 int max;
38389eaa4db1926 Lijun Ou 2019-06-08 1174 int i;
38389eaa4db1926 Lijun Ou 2019-06-08 1175
38389eaa4db1926 Lijun Ou 2019-06-08 1176 if (hopnum <= bt_level)
38389eaa4db1926 Lijun Ou 2019-06-08 1177 return 0;
38389eaa4db1926 Lijun Ou 2019-06-08 1178 /*
38389eaa4db1926 Lijun Ou 2019-06-08 1179 * hopnum bt_level range
38389eaa4db1926 Lijun Ou 2019-06-08 1180 * 1 0 unit
38389eaa4db1926 Lijun Ou 2019-06-08 1181 * ------------
38389eaa4db1926 Lijun Ou 2019-06-08 1182 * 2 0 unit * unit
38389eaa4db1926 Lijun Ou 2019-06-08 1183 * 2 1 unit
38389eaa4db1926 Lijun Ou 2019-06-08 1184 * ------------
38389eaa4db1926 Lijun Ou 2019-06-08 1185 * 3 0 unit * unit * unit
38389eaa4db1926 Lijun Ou 2019-06-08 1186 * 3 1 unit * unit
38389eaa4db1926 Lijun Ou 2019-06-08 1187 * 3 2 unit
38389eaa4db1926 Lijun Ou 2019-06-08 1188 */
38389eaa4db1926 Lijun Ou 2019-06-08 1189 step = 1;
38389eaa4db1926 Lijun Ou 2019-06-08 1190 max = hopnum - bt_level;
38389eaa4db1926 Lijun Ou 2019-06-08 1191 for (i = 0; i < max; i++)
38389eaa4db1926 Lijun Ou 2019-06-08 1192 step = step * unit;
38389eaa4db1926 Lijun Ou 2019-06-08 1193
38389eaa4db1926 Lijun Ou 2019-06-08 1194 return step;
38389eaa4db1926 Lijun Ou 2019-06-08 1195 }
38389eaa4db1926 Lijun Ou 2019-06-08 1196
:::::: The code at line 1165 was first introduced by commit
:::::: 38389eaa4db192648916464b60f6086d6bbaa6de RDMA/hns: Add mtr support for mixed multihop addressing
:::::: TO: Lijun Ou <oulijun@huawei.com>
:::::: CC: Doug Ledford <dledford@redhat.com>
---
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: 42659 bytes --]
reply other threads:[~2021-05-24 9:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202105241740.oe2xf0Vw-lkp@intel.com \
--to=lkp@intel.com \
--cc=clang-built-linux@googlegroups.com \
--cc=corbet@lwn.net \
--cc=kbuild-all@lists.01.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=yashsri421@gmail.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
all inboxes | Powered by JetHome®