|
@@ -124,7 +124,7 @@
|
|
|
#define BIT(name) (1ULL << KPF_##name)
|
|
|
#define BITS_COMPOUND (BIT(COMPOUND_HEAD) | BIT(COMPOUND_TAIL))
|
|
|
|
|
|
-static const char *page_flag_names[] = {
|
|
|
+static const char * const page_flag_names[] = {
|
|
|
[KPF_LOCKED] = "L:locked",
|
|
|
[KPF_ERROR] = "E:error",
|
|
|
[KPF_REFERENCED] = "R:referenced",
|
|
@@ -166,7 +166,7 @@ static const char *page_flag_names[] = {
|
|
|
};
|
|
|
|
|
|
|
|
|
-static const char *debugfs_known_mountpoints[] = {
|
|
|
+static const char * const debugfs_known_mountpoints[] = {
|
|
|
"/sys/kernel/debug",
|
|
|
"/debug",
|
|
|
0,
|
|
@@ -215,7 +215,7 @@ static int hwpoison_forget_fd;
|
|
|
|
|
|
static unsigned long total_pages;
|
|
|
static unsigned long nr_pages[HASH_SIZE];
|
|
|
-static uint64_t page_flags[HASH_SIZE];
|
|
|
+static uint64_t page_flags[HASH_SIZE];
|
|
|
|
|
|
|
|
|
/*
|