projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a38fd87
)
habanalabs: mark hl_eq_inc_ptr() as static
author
Oded Gabbay
<ogabbay@kernel.org>
Tue, 16 Feb 2021 19:49:30 +0000
(21:49 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:16:08 +0000
(09:16 +0100)
hl_eq_inc_ptr() is not called from anywhere outside irq.c so mark
it as static
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/irq.c
patch
|
blob
|
history
diff --git
a/drivers/misc/habanalabs/common/irq.c
b/drivers/misc/habanalabs/common/irq.c
index de53fb5f978a8a026d2172794f85ab1343b3af06..44a0522b59b9507e3b4144719a8a9d07bf26c4d2 100644
(file)
--- a/
drivers/misc/habanalabs/common/irq.c
+++ b/
drivers/misc/habanalabs/common/irq.c
@@
-47,7
+47,7
@@
inline u32 hl_cq_inc_ptr(u32 ptr)
* Increment ptr by 1. If it reaches the number of event queue
* entries, set it to 0
*/
-inline u32 hl_eq_inc_ptr(u32 ptr)
+
static
inline u32 hl_eq_inc_ptr(u32 ptr)
{
ptr++;
if (unlikely(ptr == HL_EQ_LENGTH))