From: kernel test robot <lkp@intel.com>
To: Oded Gabbay <oded.gabbay@gmail.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Omer Shpigelman <oshpigelman@habana.ai>
Subject: drivers/misc/habanalabs/common/irq.c:50:12: warning: no previous declaration for 'hl_eq_inc_ptr'
Date: Sun, 14 Feb 2021 19:14:21 +0800 [thread overview]
Message-ID: <202102141918.5x2ZHfzy-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3092 bytes --]
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@intel.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@gmail.com>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
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: 36587 bytes --]
reply other threads:[~2021-02-14 11:15 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=202102141918.5x2ZHfzy-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=oded.gabbay@gmail.com \
--cc=oshpigelman@habana.ai \
/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®