Skip to contentSkip to conversation

certs: include prototype for load_certificate_list

PATCH In review Eric Snowberg 2 participants 2 messages Feb 4, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 certs: include prototype for load_certificate_list

The build test robot reports the following when building with -Wmissing-prototypes

int load_certificate_list(const u8 cert_list[],

      ^

certs/common.c:6:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int load_certificate_list(const u8 cert_list[],
^
static
1 warning generated.

Fix the warning by including the header file.

---
 certs/common.c | 1 +
 1 file changed, 1 insertion(+)
certs/common.c +1 -0
index 83800f51a1a1..16a220887a53 100644
@@ -2,6 +2,7 @@
 
 #include <linux/kernel.h>
 #include <linux/key.h>
+#include "common.h"
 
 int load_certificate_list(const u8 cert_list[],
 			  const unsigned long list_size,
Signature · 1 line
2.18.4
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Eric Snowberg

The build test robot reports the following when building with -Wmissing-prototypes

int load_certificate_list(const u8 cert_list[],

      ^

certs/common.c:6:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int load_certificate_list(const u8 cert_list[],
^
static
1 warning generated.

Quoted 4 lines

Fix the warning by including the header file.

BTW, should the bot have reported-by tagged?

/Jarkko

Quoted 20 lines
---
 certs/common.c | 1 +
 1 file changed, 1 insertion(+)
certs/common.c +1 -0
index 83800f51a1a1..16a220887a53 100644
@@ -2,6 +2,7 @@
 
 #include <linux/kernel.h>
 #include <linux/key.h>
+#include "common.h"
 
 int load_certificate_list(const u8 cert_list[],
 			  const unsigned long list_size,
Signature · 1 line
2.18.4