From 814a2d9ff4a5eeb33faa85b27b99f91017a4dc38 Mon Sep 17 00:00:00 2001 From: hanliyang Date: Tue, 6 Aug 2024 16:16:57 +0800 Subject: [PATCH] crypto: ccp: Fix compile error on file csv-dev.h 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: In file included from drivers/crypto/ccp/hygon/csv-dev.c:19: drivers/crypto/ccp/hygon/csv-dev.h:18:36: error: ‘struct sev_user_data_status’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror] 18 | void csv_update_api_version(struct sev_user_data_status *status); | ^~~~~~~~~~~~~~~~~~~~ drivers/crypto/ccp/hygon/csv-dev.c:34:6: error: conflicting types for ‘csv_update_api_version’; have ‘void(struct sev_user_data_status *)’ 34 | void csv_update_api_version(struct sev_user_data_status *status) | ^~~~~~~~~~~~~~~~~~~~~~ drivers/crypto/ccp/hygon/csv-dev.h:18:6: note: previous declaration of ‘csv_update_api_version’ with type ‘void(struct sev_user_data_status *)’ 18 | void csv_update_api_version(struct sev_user_data_status *status); | ^~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors Signed-off-by: hanliyang --- drivers/crypto/ccp/hygon/csv-dev.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/crypto/ccp/hygon/csv-dev.h b/drivers/crypto/ccp/hygon/csv-dev.h index 35e47cb08c117..677669e2371fe 100644 --- a/drivers/crypto/ccp/hygon/csv-dev.h +++ b/drivers/crypto/ccp/hygon/csv-dev.h @@ -11,6 +11,7 @@ #define __CCP_HYGON_CSV_DEV_H__ #include +#include extern u32 hygon_csv_build; extern const struct file_operations csv_fops;