From: kernel test robot <lkp@intel.com>
To: "Kory Maincent (Dent Project)" <kory.maincent@bootlin.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
netdev@vger.kernel.org, Jakub Kicinski <kuba@kernel.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 *'
Date: Fri, 20 Jun 2025 03:20:02 +0800 [thread overview]
Message-ID: <202506200355.TqFiYUbN-lkp@intel.com> (raw)
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@intel.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, ¬ifs_mask);
655 mutex_unlock(&pcdev->lock);
656 if (ret || !notifs_mask)
657 return IRQ_NONE;
658
659 for_each_set_bit(i, ¬ifs_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
reply other threads:[~2025-06-19 19:20 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=202506200355.TqFiYUbN-lkp@intel.com \
--to=lkp@intel.com \
--cc=kory.maincent@bootlin.com \
--cc=kuba@kernel.org \
--cc=llvm@lists.linux.dev \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox