projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4957ef0
)
fs/proc/meminfo.c: fix compilation error
author
Claudio Scordino
<claudio@evidence.eu.com>
Thu, 8 Dec 2011 22:33:56 +0000
(14:33 -0800)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Wed, 21 Dec 2011 20:57:35 +0000
(12:57 -0800)
commit
b53fc7c2974a50913f49e1d800fe904a28c338e3
upstream.
Fix the error message "directives may not be used inside a macro argument"
which appears when the kernel is compiled for the cris architecture.
Signed-off-by: Claudio Scordino <claudio@evidence.eu.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/proc/meminfo.c
patch
|
blob
|
history
diff --git
a/fs/proc/meminfo.c
b/fs/proc/meminfo.c
index ed257d1415687f50dc84abad0089be090a2d3f8c..a96282781f94e0e3d24376ed5583df72eca21caf 100644
(file)
--- a/
fs/proc/meminfo.c
+++ b/
fs/proc/meminfo.c
@@
-131,12
+131,13
@@
static int meminfo_proc_show(struct seq_file *m, void *v)
K(i.freeswap),
K(global_page_state(NR_FILE_DIRTY)),
K(global_page_state(NR_WRITEBACK)),
- K(global_page_state(NR_ANON_PAGES)
#ifdef CONFIG_TRANSPARENT_HUGEPAGE
+ K(global_page_state(NR_ANON_PAGES)
+ global_page_state(NR_ANON_TRANSPARENT_HUGEPAGES) *
- HPAGE_PMD_NR
+ HPAGE_PMD_NR),
+#else
+ K(global_page_state(NR_ANON_PAGES)),
#endif
- ),
K(global_page_state(NR_FILE_MAPPED)),
K(global_page_state(NR_SHMEM)),
K(global_page_state(NR_SLAB_RECLAIMABLE) +