All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 5865/9011] drivers/net//ethernet/aquantia/atlantic/aq_ptp.c:37:11: error: implicit declaration of function 'scaled_ppm_to_ppb'
@ 2019-11-05 21:21 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-11-05 21:21 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   51309b9d73f5de2d8cba2c850df0c3b5d9125bee
commit: 910479a9f793f47b21a01564bf9f1672029cbdfe [5865/9011] net: aquantia: add basic ptp_clock callbacks
config: x86_64-randconfig-g001-201944 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-14) 7.4.0
reproduce:
        git checkout 910479a9f793f47b21a01564bf9f1672029cbdfe
        # save the attached .config to linux build tree
        make ARCH=x86_64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

Note: the linux-next/master HEAD 51309b9d73f5de2d8cba2c850df0c3b5d9125bee builds fine.
      It may have been fixed somewhere.

All errors (new ones prefixed by >>):

   drivers/net//ethernet/aquantia/atlantic/aq_ptp.c: In function 'aq_ptp_adjfine':
>> drivers/net//ethernet/aquantia/atlantic/aq_ptp.c:37:11: error: implicit declaration of function 'scaled_ppm_to_ppb' [-Werror=implicit-function-declaration]
              scaled_ppm_to_ppb(scaled_ppm));
              ^~~~~~~~~~~~~~~~~
   Cyclomatic Complexity 5 include/linux/compiler.h:__read_once_size
   Cyclomatic Complexity 1 include/linux/kasan-checks.h:kasan_check_read
   Cyclomatic Complexity 1 include/linux/kasan-checks.h:kasan_check_write
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:fls64
   Cyclomatic Complexity 1 include/linux/log2.h:__ilog2_u64
   Cyclomatic Complexity 1 include/linux/err.h:PTR_ERR
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_read
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_cmpxchg
   Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_read
   Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_cmpxchg
   Cyclomatic Complexity 1 include/linux/time64.h:timespec64_to_ns
   Cyclomatic Complexity 1 include/linux/spinlock.h:spinlock_check
   Cyclomatic Complexity 1 include/linux/spinlock.h:spin_unlock_irqrestore
   Cyclomatic Complexity 1 include/linux/ptp_clock_kernel.h:ptp_clock_register
   Cyclomatic Complexity 1 include/linux/ptp_clock_kernel.h:ptp_clock_unregister
   Cyclomatic Complexity 3 include/linux/slab.h:kmalloc_type
   Cyclomatic Complexity 28 include/linux/slab.h:kmalloc_index
   Cyclomatic Complexity 1 include/linux/slab.h:kmalloc_large
   Cyclomatic Complexity 4 include/linux/slab.h:kmalloc
   Cyclomatic Complexity 1 include/linux/slab.h:kzalloc
   Cyclomatic Complexity 2 drivers/net//ethernet/aquantia/atlantic/aq_utils.h:aq_utils_obj_set
   Cyclomatic Complexity 1 drivers/net//ethernet/aquantia/atlantic/aq_ptp.c:aq_ptp_adjtime
   Cyclomatic Complexity 1 drivers/net//ethernet/aquantia/atlantic/aq_ptp.c:aq_ptp_settime
   Cyclomatic Complexity 1 drivers/net//ethernet/aquantia/atlantic/aq_ptp.c:aq_ptp_gettime
   Cyclomatic Complexity 1 drivers/net//ethernet/aquantia/atlantic/aq_ptp.c:aq_ptp_adjfine
   Cyclomatic Complexity 68 include/asm-generic/getorder.h:get_order
   Cyclomatic Complexity 1 include/linux/err.h:IS_ERR
   Cyclomatic Complexity 7 drivers/net//ethernet/aquantia/atlantic/aq_ptp.c:aq_ptp_init
   Cyclomatic Complexity 2 drivers/net//ethernet/aquantia/atlantic/aq_ptp.c:aq_ptp_unregister
   Cyclomatic Complexity 2 drivers/net//ethernet/aquantia/atlantic/aq_ptp.c:aq_ptp_free
   cc1: some warnings being treated as errors

vim +/scaled_ppm_to_ppb +37 drivers/net//ethernet/aquantia/atlantic/aq_ptp.c

    22	
    23	/* aq_ptp_adjfine
    24	 * @ptp: the ptp clock structure
    25	 * @ppb: parts per billion adjustment from base
    26	 *
    27	 * adjust the frequency of the ptp cycle counter by the
    28	 * indicated ppb from the base frequency.
    29	 */
    30	static int aq_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm)
    31	{
    32		struct aq_ptp_s *aq_ptp = container_of(ptp, struct aq_ptp_s, ptp_info);
    33		struct aq_nic_s *aq_nic = aq_ptp->aq_nic;
    34	
    35		mutex_lock(&aq_nic->fwreq_mutex);
    36		aq_nic->aq_hw_ops->hw_adj_clock_freq(aq_nic->aq_hw,
  > 37						     scaled_ppm_to_ppb(scaled_ppm));
    38		mutex_unlock(&aq_nic->fwreq_mutex);
    39	
    40		return 0;
    41	}
    42	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-11-05 21:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-05 21:21 [linux-next:master 5865/9011] drivers/net//ethernet/aquantia/atlantic/aq_ptp.c:37:11: error: implicit declaration of function 'scaled_ppm_to_ppb' kbuild test robot

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.