Skip to content

Commit

Permalink
crypto: ccp: Fix compile error on file csv-dev.h
Browse files Browse the repository at this point in the history
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 <hanliyang@hygon.cn>
  • Loading branch information
hanliyang authored and opsiff committed Aug 6, 2024
1 parent d751ef2 commit 1e1ca42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/crypto/ccp/hygon/csv-dev.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#define __CCP_HYGON_CSV_DEV_H__

#include <linux/fs.h>
#include <linux/psp-sev.h>

extern u32 hygon_csv_build;
extern const struct file_operations csv_fops;
Expand Down

0 comments on commit 1e1ca42

Please sign in to comment.