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]
Date:   Sun, 14 Feb 2021 19:14:21 +0800
From:   kernel test robot <lkp@...el.com>
To:     Oded Gabbay <oded.gabbay@...il.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Omer Shpigelman <oshpigelman@...ana.ai>
Subject: drivers/misc/habanalabs/common/irq.c:50:12: warning: no previous
 declaration for 'hl_eq_inc_ptr'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   ac30d8ce28d61c05ac3a8b1452e889371136f3af
commit: 70b2f993ea4a79c298aac4ec1c58089020536ba5 habanalabs: create common folder
date:   7 months ago
config: i386-randconfig-a014-20200624 (attached as .config)
compiler: gcc-4.9 (Ubuntu 4.9.3-13ubuntu2) 4.9.3
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=70b2f993ea4a79c298aac4ec1c58089020536ba5
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 70b2f993ea4a79c298aac4ec1c58089020536ba5
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

>> drivers/misc/habanalabs/common/irq.c:50:12: warning: no previous declaration for 'hl_eq_inc_ptr' [-Wmissing-declarations]
    inline u32 hl_eq_inc_ptr(u32 ptr)
               ^


vim +/hl_eq_inc_ptr +50 drivers/misc/habanalabs/common/irq.c

9494a8dd8d22cb drivers/misc/habanalabs/irq.c Oded Gabbay 2019-02-16  41  
3db99f000b76bb drivers/misc/habanalabs/irq.c Lee Jones   2020-07-01  42  /**
1251f23ae8583b drivers/misc/habanalabs/irq.c Oded Gabbay 2019-02-16  43   * hl_eq_inc_ptr - increment ci of eq
1251f23ae8583b drivers/misc/habanalabs/irq.c Oded Gabbay 2019-02-16  44   *
1251f23ae8583b drivers/misc/habanalabs/irq.c Oded Gabbay 2019-02-16  45   * @ptr: the current ci value of the event queue
1251f23ae8583b drivers/misc/habanalabs/irq.c Oded Gabbay 2019-02-16  46   *
1251f23ae8583b drivers/misc/habanalabs/irq.c Oded Gabbay 2019-02-16  47   * Increment ptr by 1. If it reaches the number of event queue
1251f23ae8583b drivers/misc/habanalabs/irq.c Oded Gabbay 2019-02-16  48   * entries, set it to 0
1251f23ae8583b drivers/misc/habanalabs/irq.c Oded Gabbay 2019-02-16  49   */
1251f23ae8583b drivers/misc/habanalabs/irq.c Oded Gabbay 2019-02-16 @50  inline u32 hl_eq_inc_ptr(u32 ptr)
1251f23ae8583b drivers/misc/habanalabs/irq.c Oded Gabbay 2019-02-16  51  {
1251f23ae8583b drivers/misc/habanalabs/irq.c Oded Gabbay 2019-02-16  52  	ptr++;
1251f23ae8583b drivers/misc/habanalabs/irq.c Oded Gabbay 2019-02-16  53  	if (unlikely(ptr == HL_EQ_LENGTH))
1251f23ae8583b drivers/misc/habanalabs/irq.c Oded Gabbay 2019-02-16  54  		ptr = 0;
1251f23ae8583b drivers/misc/habanalabs/irq.c Oded Gabbay 2019-02-16  55  	return ptr;
1251f23ae8583b drivers/misc/habanalabs/irq.c Oded Gabbay 2019-02-16  56  }
1251f23ae8583b drivers/misc/habanalabs/irq.c Oded Gabbay 2019-02-16  57  

:::::: The code at line 50 was first introduced by commit
:::::: 1251f23ae8583b1bb99c3db07102f4c9cc3160fe habanalabs: add event queue and interrupts

:::::: TO: Oded Gabbay <oded.gabbay@...il.com>
:::::: CC: Greg Kroah-Hartman <gregkh@...uxfoundation.org>

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

Download attachment ".config.gz" of type "application/gzip" (36587 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ