|
@@ -42,7 +42,7 @@
|
|
|
#include <sys/mman.h>
|
|
|
#include "../../include/uapi/linux/magic.h"
|
|
|
#include "../../include/uapi/linux/kernel-page-flags.h"
|
|
|
-#include <api/fs/debugfs.h>
|
|
|
+#include <api/fs/fs.h>
|
|
|
|
|
|
#ifndef MAX_PATH
|
|
|
# define MAX_PATH 256
|
|
@@ -188,7 +188,7 @@ static int kpageflags_fd;
|
|
|
static int opt_hwpoison;
|
|
|
static int opt_unpoison;
|
|
|
|
|
|
-static char *hwpoison_debug_fs;
|
|
|
+static const char *hwpoison_debug_fs;
|
|
|
static int hwpoison_inject_fd;
|
|
|
static int hwpoison_forget_fd;
|
|
|
|
|
@@ -487,7 +487,7 @@ static void prepare_hwpoison_fd(void)
|
|
|
{
|
|
|
char buf[MAX_PATH + 1];
|
|
|
|
|
|
- hwpoison_debug_fs = debugfs_mount(NULL);
|
|
|
+ hwpoison_debug_fs = debugfs__mount();
|
|
|
if (!hwpoison_debug_fs) {
|
|
|
perror("mount debugfs");
|
|
|
exit(EXIT_FAILURE);
|