* [linux-next:master 5835/7299] drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:6884:1: error: non-void function does not return a value
@ 2021-03-26 1:39 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-03-26 1:39 UTC (permalink / raw)
To: Jian Shen
Cc: kbuild-all, clang-built-linux, Linux Memory Management List,
Huazhong Tan
[-- Attachment #1: Type: text/plain, Size: 4584 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: b4f20b70784aabf97e1727561e775500f6e294c7
commit: fc4243b8de8b4e7170f07f2660dcab3f8ecda0e9 [5835/7299] net: hns3: refactor flow director configuration
config: powerpc64-randconfig-r032-20210326 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project f490a5969bd52c8a48586f134ff8f02ccbb295b3)
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 powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=fc4243b8de8b4e7170f07f2660dcab3f8ecda0e9
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout fc4243b8de8b4e7170f07f2660dcab3f8ecda0e9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64
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 >>):
>> drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:6884:1: error: non-void function does not return a value [-Werror,-Wreturn-type]
}
^
1 error generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for LEDS_TRIGGER_DISK
Depends on NEW_LEDS && LEDS_TRIGGERS && (IDE_GD_ATA || ATA
Selected by
- ADB_PMU_LED_DISK && MACINTOSH_DRIVERS && ADB_PMU_LED && LEDS_CLASS
vim +6884 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
d93ed94fbeaf3b Jian Shen 2019-05-24 6850
efe3fa45f770f1 Guojia Liao 2020-07-28 6851 /* make sure being called after lock up with fd_rule_lock */
fc4243b8de8b4e Jian Shen 2021-03-22 6852 static int hclge_clear_arfs_rules(struct hclge_dev *hdev)
d93ed94fbeaf3b Jian Shen 2019-05-24 6853 {
d93ed94fbeaf3b Jian Shen 2019-05-24 6854 #ifdef CONFIG_RFS_ACCEL
fc4243b8de8b4e Jian Shen 2021-03-22 6855 struct hclge_fd_rule *rule;
fc4243b8de8b4e Jian Shen 2021-03-22 6856 struct hlist_node *node;
fc4243b8de8b4e Jian Shen 2021-03-22 6857 int ret;
fc4243b8de8b4e Jian Shen 2021-03-22 6858
fc4243b8de8b4e Jian Shen 2021-03-22 6859 if (hdev->fd_active_type != HCLGE_FD_ARFS_ACTIVE)
fc4243b8de8b4e Jian Shen 2021-03-22 6860 return 0;
fc4243b8de8b4e Jian Shen 2021-03-22 6861
fc4243b8de8b4e Jian Shen 2021-03-22 6862 hlist_for_each_entry_safe(rule, node, &hdev->fd_rule_list, rule_node) {
fc4243b8de8b4e Jian Shen 2021-03-22 6863 switch (rule->state) {
fc4243b8de8b4e Jian Shen 2021-03-22 6864 case HCLGE_FD_TO_DEL:
fc4243b8de8b4e Jian Shen 2021-03-22 6865 case HCLGE_FD_ACTIVE:
fc4243b8de8b4e Jian Shen 2021-03-22 6866 ret = hclge_fd_tcam_config(hdev, HCLGE_FD_STAGE_1, true,
fc4243b8de8b4e Jian Shen 2021-03-22 6867 rule->location, NULL, false);
fc4243b8de8b4e Jian Shen 2021-03-22 6868 if (ret)
fc4243b8de8b4e Jian Shen 2021-03-22 6869 return ret;
fc4243b8de8b4e Jian Shen 2021-03-22 6870 fallthrough;
fc4243b8de8b4e Jian Shen 2021-03-22 6871 case HCLGE_FD_TO_ADD:
fc4243b8de8b4e Jian Shen 2021-03-22 6872 hclge_fd_dec_rule_cnt(hdev, rule->location);
fc4243b8de8b4e Jian Shen 2021-03-22 6873 hlist_del(&rule->rule_node);
fc4243b8de8b4e Jian Shen 2021-03-22 6874 kfree(rule);
fc4243b8de8b4e Jian Shen 2021-03-22 6875 break;
fc4243b8de8b4e Jian Shen 2021-03-22 6876 default:
fc4243b8de8b4e Jian Shen 2021-03-22 6877 break;
fc4243b8de8b4e Jian Shen 2021-03-22 6878 }
fc4243b8de8b4e Jian Shen 2021-03-22 6879 }
fc4243b8de8b4e Jian Shen 2021-03-22 6880 hclge_sync_fd_state(hdev);
d93ed94fbeaf3b Jian Shen 2019-05-24 6881
fc4243b8de8b4e Jian Shen 2021-03-22 6882 return 0;
d93ed94fbeaf3b Jian Shen 2019-05-24 6883 #endif
d93ed94fbeaf3b Jian Shen 2019-05-24 @6884 }
d93ed94fbeaf3b Jian Shen 2019-05-24 6885
:::::: The code at line 6884 was first introduced by commit
:::::: d93ed94fbeaf3bf5ed16b57574dbb48ab7f7e41a net: hns3: add aRFS support for PF
:::::: TO: Jian Shen <shenjian15@huawei.com>
:::::: CC: David S. Miller <davem@davemloft.net>
---
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: 37335 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-26 1:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-26 1:39 [linux-next:master 5835/7299] drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:6884:1: error: non-void function does not return a value kernel test robot
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).