From: kbuild test robot <fengguang.wu@intel.com>
To: Davidlohr Bueso <davidlohr@hp.com>
Cc: Linux Memory Management List <linux-mm@kvack.org>,
Andrew Morton <akpm@linux-foundation.org>,
Johannes Weiner <hannes@cmpxchg.org>,
kbuild-all@01.org
Subject: [mmotm:master 188/471] include/linux/swap.h:33:16: error: dereferencing pointer to incomplete type
Date: Thu, 06 Mar 2014 11:24:56 +0800 [thread overview]
Message-ID: <5317ea88.Pvq6lNAdz5mv4Fdd%fengguang.wu@intel.com> (raw)
tree: git://git.cmpxchg.org/linux-mmotm.git master
head: f6bf2766c2091cbf8ffcc2c5009875dbdb678282
commit: 88a76abced8c721ac726ea6a273ed0389b1c5ff4 [188/471] mm: per-thread vma caching
config: make ARCH=sparc defconfig
All error/warnings:
In file included from arch/sparc/include/asm/pgtable_32.h:17:0,
from arch/sparc/include/asm/pgtable.h:6,
from include/linux/mm.h:51,
from include/linux/vmacache.h:4,
from include/linux/sched.h:26,
from arch/sparc/kernel/asm-offsets.c:13:
include/linux/swap.h: In function 'current_is_kswapd':
>> include/linux/swap.h:33:16: error: dereferencing pointer to incomplete type
>> include/linux/swap.h:33:26: error: 'PF_KSWAPD' undeclared (first use in this function)
include/linux/swap.h:33:26: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [arch/sparc/kernel/asm-offsets.s] Error 1
make[2]: Target `__build' not remade because of errors.
make[1]: *** [prepare0] Error 2
make[1]: Target `prepare' not remade because of errors.
make: *** [sub-make] Error 2
vim +33 include/linux/swap.h
8bc719d3 Martin Schwidefsky 2006-09-25 17
ab954160 Andrew Morton 2006-09-25 18 struct bio;
ab954160 Andrew Morton 2006-09-25 19
^1da177e Linus Torvalds 2005-04-16 20 #define SWAP_FLAG_PREFER 0x8000 /* set if swap priority specified */
^1da177e Linus Torvalds 2005-04-16 21 #define SWAP_FLAG_PRIO_MASK 0x7fff
^1da177e Linus Torvalds 2005-04-16 22 #define SWAP_FLAG_PRIO_SHIFT 0
dcf6b7dd Rafael Aquini 2013-07-03 23 #define SWAP_FLAG_DISCARD 0x10000 /* enable discard for swap */
dcf6b7dd Rafael Aquini 2013-07-03 24 #define SWAP_FLAG_DISCARD_ONCE 0x20000 /* discard swap area at swapon-time */
dcf6b7dd Rafael Aquini 2013-07-03 25 #define SWAP_FLAG_DISCARD_PAGES 0x40000 /* discard page-clusters after use */
^1da177e Linus Torvalds 2005-04-16 26
d15cab97 Hugh Dickins 2012-03-28 27 #define SWAP_FLAGS_VALID (SWAP_FLAG_PRIO_MASK | SWAP_FLAG_PREFER | \
dcf6b7dd Rafael Aquini 2013-07-03 28 SWAP_FLAG_DISCARD | SWAP_FLAG_DISCARD_ONCE | \
dcf6b7dd Rafael Aquini 2013-07-03 29 SWAP_FLAG_DISCARD_PAGES)
d15cab97 Hugh Dickins 2012-03-28 30
^1da177e Linus Torvalds 2005-04-16 31 static inline int current_is_kswapd(void)
^1da177e Linus Torvalds 2005-04-16 32 {
^1da177e Linus Torvalds 2005-04-16 @33 return current->flags & PF_KSWAPD;
^1da177e Linus Torvalds 2005-04-16 34 }
^1da177e Linus Torvalds 2005-04-16 35
^1da177e Linus Torvalds 2005-04-16 36 /*
^1da177e Linus Torvalds 2005-04-16 37 * MAX_SWAPFILES defines the maximum number of swaptypes: things which can
^1da177e Linus Torvalds 2005-04-16 38 * be swapped to. The swap type and the offset into that swap type are
^1da177e Linus Torvalds 2005-04-16 39 * encoded into pte's and into pgoff_t's in the swapcache. Using five bits
^1da177e Linus Torvalds 2005-04-16 40 * for the type means that the maximum number of swapcache pages is 27 bits
^1da177e Linus Torvalds 2005-04-16 41 * on 32-bit-pgoff_t architectures. And that assumes that the architecture packs
:::::: The code at line 33 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>
---
0-DAY kernel build testing backend Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next reply other threads:[~2014-03-06 3:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-06 3:24 kbuild test robot [this message]
2014-03-06 3:46 ` Davidlohr Bueso
2014-03-06 3:54 ` Andrew Morton
2014-03-06 3:59 ` Davidlohr Bueso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5317ea88.Pvq6lNAdz5mv4Fdd%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=akpm@linux-foundation.org \
--cc=davidlohr@hp.com \
--cc=hannes@cmpxchg.org \
--cc=kbuild-all@01.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox