* [frank-w-bpi-r2-4.14:5.15-r2pro 34/44] drivers/net/phy/swconfig.c:1061:1: warning: no previous prototype for function 'of_switch_load_portmap'
@ 2021-10-03 19:55 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-10-03 19:55 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3214 bytes --]
tree: https://github.com/frank-w/BPI-R2-4.14 5.15-r2pro
head: 979af5cddf764f04ffac8b9b9b4ab8aa7958c420
commit: f53727f78a178502498e6eebb52864551e4200dd [34/44] rtl8367: fix last unresolved symbols of openwrt driver
config: arm64-buildonly-randconfig-r004-20211004 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 57d9adefa04dc65096b8ba3e5763c15305676f73)
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://github.com/frank-w/BPI-R2-4.14/commit/f53727f78a178502498e6eebb52864551e4200dd
git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.15-r2pro
git checkout f53727f78a178502498e6eebb52864551e4200dd
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 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/net/phy/swconfig.c:1061:1: warning: no previous prototype for function 'of_switch_load_portmap' [-Wmissing-prototypes]
of_switch_load_portmap(struct switch_dev *dev)
^
drivers/net/phy/swconfig.c:1060:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void
^
static
1 warning generated.
vim +/of_switch_load_portmap +1061 drivers/net/phy/swconfig.c
1058
1059 #ifdef CONFIG_OF
1060 void
> 1061 of_switch_load_portmap(struct switch_dev *dev)
1062 {
1063 struct device_node *port;
1064
1065 if (!dev->of_node)
1066 return;
1067
1068 for_each_child_of_node(dev->of_node, port) {
1069 const __be32 *prop;
1070 const char *segment;
1071 int size, phys;
1072
1073 if (!of_device_is_compatible(port, "swconfig,port"))
1074 continue;
1075
1076 if (of_property_read_string(port, "swconfig,segment", &segment))
1077 continue;
1078
1079 prop = of_get_property(port, "swconfig,portmap", &size);
1080 if (!prop)
1081 continue;
1082
1083 if (size != (2 * sizeof(*prop))) {
1084 pr_err("%s: failed to parse port mapping\n",
1085 port->name);
1086 continue;
1087 }
1088
1089 phys = be32_to_cpup(prop++);
1090 if ((phys < 0) | (phys >= dev->ports)) {
1091 pr_err("%s: physical port index out of range\n",
1092 port->name);
1093 continue;
1094 }
1095
1096 dev->portmap[phys].s = kstrdup(segment, GFP_KERNEL);
1097 dev->portmap[phys].virt = be32_to_cpup(prop);
1098 pr_debug("Found port: %s, physical: %d, virtual: %d\n",
1099 segment, phys, dev->portmap[phys].virt);
1100 }
1101 }
1102 #endif
1103
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 39553 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-10-03 19:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-03 19:55 [frank-w-bpi-r2-4.14:5.15-r2pro 34/44] drivers/net/phy/swconfig.c:1061:1: warning: no previous prototype for function 'of_switch_load_portmap' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.