lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202506200355.TqFiYUbN-lkp@intel.com>
Date: Fri, 20 Jun 2025 03:20:02 +0800
From: kernel test robot <lkp@...el.com>
To: "Kory Maincent (Dent Project)" <kory.maincent@...tlin.com>
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
	netdev@...r.kernel.org, Jakub Kicinski <kuba@...nel.org>
Subject: [net-next:main 35/47] drivers/net/pse-pd/pse_core.c:676:23: error:
 incompatible pointer types passing 'struct net_device *' to parameter of
 type 'struct phy_device *'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git main
head:   afc783fa0aab9cc093fbb04871bfda406480cf8d
commit: fc0e6db30941a66e284b8516b82356f97f31061d [35/47] net: pse-pd: Add support for reporting events
config: i386-randconfig-012-20250619 (https://download.01.org/0day-ci/archive/20250620/202506200355.TqFiYUbN-lkp@intel.com/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250620/202506200355.TqFiYUbN-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202506200355.TqFiYUbN-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/net/pse-pd/pse_core.c:676:23: error: incompatible pointer types passing 'struct net_device *' to parameter of type 'struct phy_device *' [-Werror,-Wincompatible-pointer-types]
     676 |                         ethnl_pse_send_ntf(netdev, notifs);
         |                                            ^~~~~~
   include/linux/ethtool_netlink.h:125:58: note: passing argument to parameter 'phydev' here
     125 | static inline void ethnl_pse_send_ntf(struct phy_device *phydev,
         |                                                          ^
   1 error generated.


vim +676 drivers/net/pse-pd/pse_core.c

   632	
   633	/**
   634	 * pse_isr - IRQ handler for PSE
   635	 * @irq: irq number
   636	 * @data: pointer to user interrupt structure
   637	 *
   638	 * Return: irqreturn_t - status of IRQ
   639	 */
   640	static irqreturn_t pse_isr(int irq, void *data)
   641	{
   642		struct pse_controller_dev *pcdev;
   643		unsigned long notifs_mask = 0;
   644		struct pse_irq_desc *desc;
   645		struct pse_irq *h = data;
   646		int ret, i;
   647	
   648		desc = &h->desc;
   649		pcdev = h->pcdev;
   650	
   651		/* Clear notifs mask */
   652		memset(h->notifs, 0, pcdev->nr_lines * sizeof(*h->notifs));
   653		mutex_lock(&pcdev->lock);
   654		ret = desc->map_event(irq, pcdev, h->notifs, &notifs_mask);
   655		mutex_unlock(&pcdev->lock);
   656		if (ret || !notifs_mask)
   657			return IRQ_NONE;
   658	
   659		for_each_set_bit(i, &notifs_mask, pcdev->nr_lines) {
   660			unsigned long notifs, rnotifs;
   661			struct net_device *netdev;
   662			struct pse_control *psec;
   663	
   664			/* Do nothing PI not described */
   665			if (!pcdev->pi[i].rdev)
   666				continue;
   667	
   668			notifs = h->notifs[i];
   669			dev_dbg(h->pcdev->dev,
   670				"Sending PSE notification EVT 0x%lx\n", notifs);
   671	
   672			psec = pse_control_find_by_id(pcdev, i);
   673			rtnl_lock();
   674			netdev = pse_control_get_netdev(psec);
   675			if (netdev)
 > 676				ethnl_pse_send_ntf(netdev, notifs);
   677			rtnl_unlock();
   678			pse_control_put(psec);
   679	
   680			rnotifs = pse_to_regulator_notifs(notifs);
   681			regulator_notifier_call_chain(pcdev->pi[i].rdev, rnotifs,
   682						      NULL);
   683		}
   684	
   685		return IRQ_HANDLED;
   686	}
   687	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ