All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [frank-w-bpi-r2-4.14:5.15-rtl8367dsa 32/37] drivers/net/phy/swconfig.c:1061:1: error: no previous prototype for 'of_switch_load_portmap'
Date: Sat, 06 Nov 2021 13:48:49 +0800	[thread overview]
Message-ID: <202111061342.DqsqdEn6-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3699 bytes --]

tree:   https://github.com/frank-w/BPI-R2-4.14 5.15-rtl8367dsa
head:   99ce3a58aacb46675bb47e35e306f2285064862d
commit: 66b4718b5238ffbbea2a2562ab906dc676957a4f [32/37] rtl8367: add driver from openwrt
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 11.2.0
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://github.com/frank-w/BPI-R2-4.14/commit/66b4718b5238ffbbea2a2562ab906dc676957a4f
        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-rtl8367dsa
        git checkout 66b4718b5238ffbbea2a2562ab906dc676957a4f
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=m68k 

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/phy/swconfig.c:1061:1: error: no previous prototype for 'of_switch_load_portmap' [-Werror=missing-prototypes]
    1061 | of_switch_load_portmap(struct switch_dev *dev)
         | ^~~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors
--
>> drivers/net/phy/rtl8366_smi.c:257:5: error: no previous prototype for '__rtl8366_mdio_read_reg' [-Werror=missing-prototypes]
     257 | int __rtl8366_mdio_read_reg(struct rtl8366_smi *smi, u32 addr, u32 *data)
         |     ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/phy/rtl8366_smi.c:1533:5: error: no previous prototype for 'rtl8366_smi_probe_of' [-Werror=missing-prototypes]
    1533 | int rtl8366_smi_probe_of(struct platform_device *pdev, struct rtl8366_smi *smi)
         |     ^~~~~~~~~~~~~~~~~~~~
>> drivers/net/phy/rtl8366_smi.c:1580:5: error: no previous prototype for 'rtl8366_smi_probe_plat' [-Werror=missing-prototypes]
    1580 | int rtl8366_smi_probe_plat(struct platform_device *pdev, struct rtl8366_smi *smi)
         |     ^~~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors


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: 61669 bytes --]

                 reply	other threads:[~2021-11-06  5:48 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=202111061342.DqsqdEn6-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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 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.