]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.9.132/tools-vm-page-types.c-fix-defined-but-not-used-warning.patch
Linux 4.14.95
[thirdparty/kernel/stable-queue.git] / releases / 4.9.132 / tools-vm-page-types.c-fix-defined-but-not-used-warning.patch
CommitLineData
12eb7899
GKH
1From foo@baz Thu Oct 4 12:38:43 PDT 2018
2From: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
3Date: Tue, 4 Sep 2018 15:45:51 -0700
4Subject: tools/vm/page-types.c: fix "defined but not used" warning
5
6From: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
7
8[ Upstream commit 7ab660f8baecfe26c1c267fa8e64d2073feae2bb ]
9
10debugfs_known_mountpoints[] is not used any more, so let's remove it.
11
12Link: http://lkml.kernel.org/r/1535102651-19418-1-git-send-email-n-horiguchi@ah.jp.nec.com
13Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
14Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
15Cc: Matthew Wilcox <willy@infradead.org>
16Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
17Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
19Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
20---
21 tools/vm/page-types.c | 6 ------
22 1 file changed, 6 deletions(-)
23
24--- a/tools/vm/page-types.c
25+++ b/tools/vm/page-types.c
26@@ -155,12 +155,6 @@ static const char * const page_flag_name
27 };
28
29
30-static const char * const debugfs_known_mountpoints[] = {
31- "/sys/kernel/debug",
32- "/debug",
33- 0,
34-};
35-
36 /*
37 * data structures
38 */