mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Wen Gu <guwen@linux.alibaba.com>,
	richardcochran@gmail.com, andrew+netdev@lunn.ch,
	davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
	pabeni@redhat.com
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	xuanzhuo@linux.alibaba.com, dust.li@linux.alibaba.com,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	guwen@linux.alibaba.com
Subject: Re: [PATCH net-next] ptp: add Alibaba CIPU PTP clock driver
Date: Thu, 26 Jun 2025 07:14:01 +0800	[thread overview]
Message-ID: <202506260725.kFmPHRIJ-lkp@intel.com> (raw)
In-Reply-To: <20250625132549.93614-1-guwen@linux.alibaba.com>

Hi Wen,

kernel test robot noticed the following build errors:

[auto build test ERROR on net-next/main]

url:    https://github.com/intel-lab-lkp/linux/commits/Wen-Gu/ptp-add-Alibaba-CIPU-PTP-clock-driver/20250625-212835
base:   net-next/main
patch link:    https://lore.kernel.org/r/20250625132549.93614-1-guwen%40linux.alibaba.com
patch subject: [PATCH net-next] ptp: add Alibaba CIPU PTP clock driver
config: x86_64-buildonly-randconfig-002-20250626 (https://download.01.org/0day-ci/archive/20250626/202506260725.kFmPHRIJ-lkp@intel.com/config)
compiler: clang version 20.1.7 (https://github.com/llvm/llvm-project 6146a88f60492b520a36f8f8f3231e15f3cc6082)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250626/202506260725.kFmPHRIJ-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/202506260725.kFmPHRIJ-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/ptp/ptp_cipu.c:775:8: error: call to undeclared function 'pci_request_irq'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     775 |                 rc = pci_request_irq(pdev, i, irq_ctx[i].irq_func, NULL,
         |                      ^
   drivers/ptp/ptp_cipu.c:775:8: note: did you mean 'pci_request_acs'?
   include/linux/pci.h:2570:6: note: 'pci_request_acs' declared here
    2570 | void pci_request_acs(void);
         |      ^
>> drivers/ptp/ptp_cipu.c:784:3: error: call to undeclared function 'pci_free_irq'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     784 |                 pci_free_irq(pdev, i, ptp_ctx);
         |                 ^
>> drivers/ptp/ptp_cipu.c:785:2: error: call to undeclared function 'pci_free_irq_vectors'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     785 |         pci_free_irq_vectors(pdev);
         |         ^
   drivers/ptp/ptp_cipu.c:785:2: note: did you mean 'pci_alloc_irq_vectors'?
   include/linux/pci.h:2139:1: note: 'pci_alloc_irq_vectors' declared here
    2139 | pci_alloc_irq_vectors(struct pci_dev *dev, unsigned int min_vecs,
         | ^
   drivers/ptp/ptp_cipu.c:796:3: error: call to undeclared function 'pci_free_irq'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     796 |                 pci_free_irq(pdev, i, ptp_ctx);
         |                 ^
   drivers/ptp/ptp_cipu.c:797:2: error: call to undeclared function 'pci_free_irq_vectors'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     797 |         pci_free_irq_vectors(pdev);
         |         ^
   5 errors generated.


vim +/pci_request_irq +775 drivers/ptp/ptp_cipu.c

   763	
   764	static int ptp_cipu_init_irq(struct ptp_cipu_ctx *ptp_ctx)
   765	{
   766		struct pci_dev *pdev = ptp_ctx->pdev;
   767		int i, rc;
   768	
   769		rc = pci_alloc_irq_vectors(pdev, PTP_CIPU_IRQ_NUM,
   770					   PTP_CIPU_IRQ_NUM, PCI_IRQ_MSIX);
   771		if (rc < 0)
   772			goto out;
   773	
   774		for (i = 0; i < PTP_CIPU_IRQ_NUM; i++) {
 > 775			rc = pci_request_irq(pdev, i, irq_ctx[i].irq_func, NULL,
   776					     ptp_ctx, "ptp-cipu");
   777			if (rc)
   778				goto out_vec;
   779		}
   780		return 0;
   781	
   782	out_vec:
   783		for (i = i - 1; i >= 0; i--)
 > 784			pci_free_irq(pdev, i, ptp_ctx);
 > 785		pci_free_irq_vectors(pdev);
   786	out:
   787		return rc;
   788	}
   789	

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

      reply	other threads:[~2025-06-25 23:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-25 13:25 Wen Gu
2025-06-25 23:14 ` kernel test robot [this message]

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=202506260725.kFmPHRIJ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=dust.li@linux.alibaba.com \
    --cc=edumazet@google.com \
    --cc=guwen@linux.alibaba.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=netdev@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pabeni@redhat.com \
    --cc=richardcochran@gmail.com \
    --cc=xuanzhuo@linux.alibaba.com \
    /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

all inboxes | Powered by JetHome®