Merge pull request #810 from joe-lawrence/sparse

sparse: quiet latest trivial complaints
This commit is contained in:
Joe Lawrence 2018-03-24 15:50:08 -04:00 committed by GitHub
commit 9e7db03d3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;