lkml.org 
[lkml]   [2022]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[mingo-tip:sched/headers 1693/2340] drivers/net/dsa/lan9303-core.c:1098:2: error: implicit declaration of function 'vlan_vid_add'
tree:   git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head: 97c5eeb4de3ad324ed2a4656b46465299cfd010a
commit: f2ea4c6dbf9c7f05dedc83b9c74d5ec82b9af164 [1693/2340] headers/deps: net: Optimize <linux/if_vlan.h>, remove <linux/if_vlan_api.h> inclusion
config: i386-randconfig-a013 (https://download.01.org/0day-ci/archive/20220224/202202240246.JOktuuHV-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
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
# https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=f2ea4c6dbf9c7f05dedc83b9c74d5ec82b9af164
git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
git fetch --no-tags mingo-tip sched/headers
git checkout f2ea4c6dbf9c7f05dedc83b9c74d5ec82b9af164
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/net/dsa/ net/dsa/ net/smc/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

Note: the mingo-tip/sched/headers HEAD 97c5eeb4de3ad324ed2a4656b46465299cfd010a builds fine.
It only hurts bisectability.

All errors (new ones prefixed by >>):

>> drivers/net/dsa/lan9303-core.c:1098:2: error: implicit declaration of function 'vlan_vid_add' [-Werror,-Wimplicit-function-declaration]
vlan_vid_add(dp->cpu_dp->master, htons(ETH_P_8021Q), port);
^
>> drivers/net/dsa/lan9303-core.c:1111:2: error: implicit declaration of function 'vlan_vid_del' [-Werror,-Wimplicit-function-declaration]
vlan_vid_del(dp->cpu_dp->master, htons(ETH_P_8021Q), port);
^
2 errors generated.


vim +/vlan_vid_add +1098 drivers/net/dsa/lan9303-core.c

4d6a78b477dd96 Egil Hjelmeland 2017-09-19 1088
a1292595e00607 Juergen Beisert 2017-04-18 1089 static int lan9303_port_enable(struct dsa_switch *ds, int port,
a1292595e00607 Juergen Beisert 2017-04-18 1090 struct phy_device *phy)
a1292595e00607 Juergen Beisert 2017-04-18 1091 {
430065e2671905 Mans Rullgard 2022-02-16 1092 struct dsa_port *dp = dsa_to_port(ds, port);
a1292595e00607 Juergen Beisert 2017-04-18 1093 struct lan9303 *chip = ds->priv;
a1292595e00607 Juergen Beisert 2017-04-18 1094
430065e2671905 Mans Rullgard 2022-02-16 1095 if (!dsa_port_is_user(dp))
74be4babe72fd1 Vivien Didelot 2019-08-19 1096 return 0;
74be4babe72fd1 Vivien Didelot 2019-08-19 1097
430065e2671905 Mans Rullgard 2022-02-16 @1098 vlan_vid_add(dp->cpu_dp->master, htons(ETH_P_8021Q), port);
430065e2671905 Mans Rullgard 2022-02-16 1099
9c84258ed68a1d Egil Hjelmeland 2017-08-05 1100 return lan9303_enable_processing_port(chip, port);
a1292595e00607 Juergen Beisert 2017-04-18 1101 }
a1292595e00607 Juergen Beisert 2017-04-18 1102
75104db0cb353e Andrew Lunn 2019-02-24 1103 static void lan9303_port_disable(struct dsa_switch *ds, int port)
a1292595e00607 Juergen Beisert 2017-04-18 1104 {
430065e2671905 Mans Rullgard 2022-02-16 1105 struct dsa_port *dp = dsa_to_port(ds, port);
a1292595e00607 Juergen Beisert 2017-04-18 1106 struct lan9303 *chip = ds->priv;
a1292595e00607 Juergen Beisert 2017-04-18 1107
430065e2671905 Mans Rullgard 2022-02-16 1108 if (!dsa_port_is_user(dp))
74be4babe72fd1 Vivien Didelot 2019-08-19 1109 return;
74be4babe72fd1 Vivien Didelot 2019-08-19 1110
430065e2671905 Mans Rullgard 2022-02-16 @1111 vlan_vid_del(dp->cpu_dp->master, htons(ETH_P_8021Q), port);
430065e2671905 Mans Rullgard 2022-02-16 1112
9c84258ed68a1d Egil Hjelmeland 2017-08-05 1113 lan9303_disable_processing_port(chip, port);
b17c6b1f4538b6 Egil Hjelmeland 2017-12-29 1114 lan9303_phy_write(ds, chip->phy_addr_base + port, MII_BMCR, BMCR_PDOWN);
a1292595e00607 Juergen Beisert 2017-04-18 1115 }
a1292595e00607 Juergen Beisert 2017-04-18 1116

:::::: The code at line 1098 was first introduced by commit
:::::: 430065e2671905ac675f97b7af240cc255964e93 net: dsa: lan9303: add VLAN IDs to master device

:::::: TO: Mans Rullgard <mans@mansr.com>
:::::: CC: Jakub Kicinski <kuba@kernel.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

\
 
 \ /
  Last update: 2022-02-23 19:24    [W:0.022 / U:2.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site