sparse: quiet latest trivial complaints

Fixes sparse warnings:

  kmod/core/core.c:142:20: warning: symbol 'trace' was not declared. Should it be static?

  livepatch-patch-hook.c:73:18: warning: symbol 'lpatch' was not declared. Should it be static?

Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
This commit is contained in:
Joe Lawrence 2018-03-23 16:20:45 -04:00
parent 7e1b495f52
commit 4d5febd4a8
2 changed files with 2 additions and 2 deletions

View File

@ -139,7 +139,7 @@ static int (*kpatch_set_memory_ro)(unsigned long addr, int numpages);
#define MAX_STACK_TRACE_DEPTH 64
static unsigned long stack_entries[MAX_STACK_TRACE_DEPTH];
struct stack_trace trace = {
static struct stack_trace trace = {
.max_entries = ARRAY_SIZE(stack_entries),
.entries = &stack_entries[0],
};

View File

@ -71,7 +71,7 @@
* done, the scaffold structs are no longer needed.
*/
struct klp_patch *lpatch;
static struct klp_patch *lpatch;
static LIST_HEAD(patch_objects);
static int patch_objects_nr;