Skip to content

Commit 72042a8

Browse files
tchardingKAGA-KOKO
authored andcommitted
x86/purgatory: Make functions and variables static
Sparse emits several 'symbol not declared' warnings for various functions and variables. Add static keyword to functions and variables which have file scope only. Signed-off-by: Tobin C. Harding <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]>
1 parent 940b2f2 commit 72042a8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

arch/x86/purgatory/purgatory.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ struct sha_region {
1818
unsigned long len;
1919
};
2020

21-
unsigned long backup_dest = 0;
22-
unsigned long backup_src = 0;
23-
unsigned long backup_sz = 0;
21+
static unsigned long backup_dest;
22+
static unsigned long backup_src;
23+
static unsigned long backup_sz;
2424

25-
u8 sha256_digest[SHA256_DIGEST_SIZE] = { 0 };
25+
static u8 sha256_digest[SHA256_DIGEST_SIZE] = { 0 };
2626

2727
struct sha_region sha_regions[16] = {};
2828

@@ -39,7 +39,7 @@ static int copy_backup_region(void)
3939
return 0;
4040
}
4141

42-
int verify_sha256_digest(void)
42+
static int verify_sha256_digest(void)
4343
{
4444
struct sha_region *ptr, *end;
4545
u8 digest[SHA256_DIGEST_SIZE];

0 commit comments

Comments
 (0)