From 9958a1bd4c46ff84374386a29928c804b40ed4fe Mon Sep 17 00:00:00 2001 From: hanliyang Date: Mon, 5 Aug 2024 17:05:28 +0800 Subject: [PATCH] crypto: ccp: Fix compile error on csv_cmd_buffer_len() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit hygon inclusion category: bugfix CVE: NA --------------------------- The error messages is shown as following: drivers/crypto/ccp/hygon/csv-dev.c:21:5: error: no previous prototype for ‘csv_cmd_buffer_len’ [-Werror=missing-prototypes] 21 | int csv_cmd_buffer_len(int cmd) | ^~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors Signed-off-by: hanliyang --- drivers/crypto/ccp/hygon/csv-dev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/crypto/ccp/hygon/csv-dev.c b/drivers/crypto/ccp/hygon/csv-dev.c index 6f238aaeb434..4e6ca5351ecd 100644 --- a/drivers/crypto/ccp/hygon/csv-dev.c +++ b/drivers/crypto/ccp/hygon/csv-dev.c @@ -15,6 +15,8 @@ #include #include +#include "csv-dev.h" + #include "psp-dev.h" int csv_cmd_buffer_len(int cmd) -- Gitee