mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Tony Nguyen <anthony.l.nguyen@intel.com>
Subject: drivers/net/ethernet/intel/igc/igc_ptp.c:777:9: error: implicit declaration of function 'convert_art_ns_to_tsc'
Date: Thu, 2 Sep 2021 06:59:25 +0800	[thread overview]
Message-ID: <202109020618.FgVt3uBH-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   477f70cd2a67904e04c2c2b9bd0fa2e95222f2f6
commit: a90ec84837325df4b9a6798c2cc0df202b5680bd igc: Add support for PTP getcrosststamp()
date:   8 days ago
config: um-allmodconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a90ec84837325df4b9a6798c2cc0df202b5680bd
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout a90ec84837325df4b9a6798c2cc0df202b5680bd
        # save the attached .config to linux build tree
        make W=1 ARCH=um 

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/ethernet/intel/igc/igc_ptp.c: In function 'igc_device_tstamp_to_system':
>> drivers/net/ethernet/intel/igc/igc_ptp.c:777:9: error: implicit declaration of function 'convert_art_ns_to_tsc' [-Werror=implicit-function-declaration]
     777 |  return convert_art_ns_to_tsc(tstamp);
         |         ^~~~~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/intel/igc/igc_ptp.c:777:9: error: incompatible types when returning type 'int' but 'struct system_counterval_t' was expected
     777 |  return convert_art_ns_to_tsc(tstamp);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/intel/igc/igc_ptp.c:781:1: error: control reaches end of non-void function [-Werror=return-type]
     781 | }
         | ^
   cc1: some warnings being treated as errors


vim +/convert_art_ns_to_tsc +777 drivers/net/ethernet/intel/igc/igc_ptp.c

   773	
   774	static struct system_counterval_t igc_device_tstamp_to_system(u64 tstamp)
   775	{
   776	#if IS_ENABLED(CONFIG_X86_TSC)
 > 777		return convert_art_ns_to_tsc(tstamp);
   778	#else
   779		return (struct system_counterval_t) { };
   780	#endif
   781	}
   782	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 62569 bytes --]

                 reply	other threads:[~2021-09-01 23:00 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=202109020618.FgVt3uBH-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=anthony.l.nguyen@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vinicius.gomes@intel.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®