From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [RFC PATCH habanaai] gaudi_queue_type[] can be static
Date: Wed, 06 May 2020 00:23:40 +0800 [thread overview]
Message-ID: <20200505162340.GA7356@a8efdcedba90> (raw)
In-Reply-To: <202005060022.IrYMjnU9%lkp@intel.com>
[-- Attachment #1: Type: text/plain, Size: 1533 bytes --]
Fixes: 01f551e8186d ("add gaudi files")
Signed-off-by: kbuild test robot <lkp@intel.com>
---
gaudi.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/misc/habanalabs/gaudi/gaudi.c b/drivers/misc/habanalabs/gaudi/gaudi.c
index 043bd0aeb33cd..6d0ec4e588b5d 100644
--- a/drivers/misc/habanalabs/gaudi/gaudi.c
+++ b/drivers/misc/habanalabs/gaudi/gaudi.c
@@ -437,7 +437,7 @@ gaudi_tpc_interrupts_cause[GAUDI_NUM_OF_TPC_INTR_CAUSE] = {
"tpc_lbw_bresp_err"
};
-enum hl_queue_type gaudi_queue_type[GAUDI_QUEUE_ID_SIZE] = {
+static enum hl_queue_type gaudi_queue_type[GAUDI_QUEUE_ID_SIZE] = {
QUEUE_TYPE_EXT, /* GAUDI_QUEUE_ID_DMA_0_0 */
QUEUE_TYPE_EXT, /* GAUDI_QUEUE_ID_DMA_0_1 */
QUEUE_TYPE_EXT, /* GAUDI_QUEUE_ID_DMA_0_2 */
@@ -4490,7 +4490,7 @@ static int gaudi_cs_parser(struct hl_device *hdev, struct hl_cs_parser *parser)
return gaudi_parse_cb_no_mmu(hdev, parser);
}
-void gaudi_add_end_of_cb_packets(struct hl_device *hdev, u64 kernel_address,
+static void gaudi_add_end_of_cb_packets(struct hl_device *hdev, u64 kernel_address,
u32 len, u64 cq_addr, u32 cq_val, u32 msi_vec,
bool eb)
{
@@ -4524,7 +4524,7 @@ void gaudi_add_end_of_cb_packets(struct hl_device *hdev, u64 kernel_address,
cq_pkt->addr = cpu_to_le64(CFG_BASE + mmPCIE_MSI_INTR_0 + msi_vec * 4);
}
-void gaudi_update_eq_ci(struct hl_device *hdev, u32 val)
+static void gaudi_update_eq_ci(struct hl_device *hdev, u32 val)
{
WREG32(mmCPU_IF_EQ_RD_OFFS, val);
}
prev parent reply other threads:[~2020-05-05 16:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-05 16:23 [habanaai:dev/ogabbay/gaudi 23/23] drivers/misc/habanalabs/gaudi/gaudi.c:440:20: sparse: sparse: symbol 'gaudi_queue_type' was not declared. Should it be static? kbuild test robot
2020-05-05 16:23 ` kbuild test robot [this message]
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=20200505162340.GA7356@a8efdcedba90 \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/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 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.