From 11a61f6e85482ce52eda316291b510b377203702 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 Reported-by: WangYuli Signed-off-by: hanliyang --- drivers/crypto/ccp/hygon/csv-dev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/crypto/ccp/hygon/csv-dev.c b/drivers/crypto/ccp/hygon/csv-dev.c index 5bdf2e83e09c7..24f8d30b57b75 100644 --- a/drivers/crypto/ccp/hygon/csv-dev.c +++ b/drivers/crypto/ccp/hygon/csv-dev.c @@ -15,6 +15,7 @@ #include #include +#include "csv-dev.h" #include "psp-dev.h" /*