* [PATCH] fix for sparse warning
@ 2016-08-14 20:42 Harinath Nampally
0 siblings, 0 replies; 2+ messages in thread
From: Harinath Nampally @ 2016-08-14 20:42 UTC (permalink / raw)
To: tglx, mingo, x86, linux-kernel; +Cc: kernel-janitors
To fix the below warning added static qualifier
"warning: symbol 'verify_sha256_digest' was not
declared"
Signed-off-by: Harinath Nampally <harinath922@gmail.com>
---
arch/x86/purgatory/purgatory.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/purgatory/purgatory.c b/arch/x86/purgatory/purgatory.c
index 25e068b..c58a31f 100644
--- a/arch/x86/purgatory/purgatory.c
+++ b/arch/x86/purgatory/purgatory.c
@@ -39,7 +39,7 @@ static int copy_backup_region(void)
return 0;
}
-int verify_sha256_digest(void)
+static int verify_sha256_digest(void)
{
struct sha_region *ptr, *end;
u8 digest[SHA256_DIGEST_SIZE];
--
2.7.4
^ permalink raw reply [flat|nested] 2+ messages in thread* [PATCH] fix for sparse warning
@ 2016-08-14 20:45 Harinath Nampally
0 siblings, 0 replies; 2+ messages in thread
From: Harinath Nampally @ 2016-08-14 20:45 UTC (permalink / raw)
To: tglx, mingo, x86, linux-kernel, kernel-janitors
To fix the below warning added static qualifier
"warning: symbol 'verify_sha256_digest' was not
declared"
Signed-off-by: Harinath Nampally <harinath922@gmail.com>
---
arch/x86/purgatory/purgatory.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/purgatory/purgatory.c b/arch/x86/purgatory/purgatory.c
index 25e068b..c58a31f 100644
--- a/arch/x86/purgatory/purgatory.c
+++ b/arch/x86/purgatory/purgatory.c
@@ -39,7 +39,7 @@ static int copy_backup_region(void)
return 0;
}
-int verify_sha256_digest(void)
+static int verify_sha256_digest(void)
{
struct sha_region *ptr, *end;
u8 digest[SHA256_DIGEST_SIZE];
--
2.7.4
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-08-14 21:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-14 20:42 [PATCH] fix for sparse warning Harinath Nampally
2016-08-14 20:45 Harinath Nampally
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®