From: Dan Carpenter <dan.carpenter@oracle.com>
To: kbuild@01.org, Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [kbuild] [mmotm:master 169/385] mm/compaction.c:38:25: sparse: duplicate const
Date: Mon, 26 Jan 2015 11:45:12 +0300 [thread overview]
Message-ID: <20150126084512.GX6507@mwanda> (raw)
tree: git://git.cmpxchg.org/linux-mmotm.git master
head: 03586ad04b2170ee816e6936981cc7cd2aeba129
commit: a841a87a027a03b0615ffaac5a4b71223feaa5a6 [169/385] mm-compaction-enhance-tracepoint-output-for-compaction-begin-end-v4
reproduce:
# apt-get install sparse
git checkout a841a87a027a03b0615ffaac5a4b71223feaa5a6
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__
>> mm/compaction.c:38:25: sparse: duplicate const
mm/compaction.c:1363:37: sparse: incorrect type in initializer (different base types)
mm/compaction.c:1363:37: expected int [signed] may_enter_fs
mm/compaction.c:1363:37: got restricted gfp_t
mm/compaction.c:1364:39: sparse: incorrect type in initializer (different base types)
mm/compaction.c:1364:39: expected int [signed] may_perform_io
mm/compaction.c:1364:39: got restricted gfp_t
include/trace/events/compaction.h:87:1: sparse: odd constant _Bool cast (ffffffffffffffff becomes 1)
include/trace/events/compaction.h:117:1: sparse: odd constant _Bool cast (ffffffffffffffff becomes 1)
mm/compaction.c:241:13: sparse: context imbalance in 'compact_trylock_irqsave' - wrong count at exit
include/linux/spinlock.h:364:9: sparse: context imbalance in 'compact_unlock_should_abort' - unexpected unlock
mm/compaction.c:447:39: sparse: context imbalance in 'isolate_freepages_block' - unexpected unlock
mm/compaction.c:744:39: sparse: context imbalance in 'isolate_migratepages_block' - unexpected unlock
git remote add mmotm git://git.cmpxchg.org/linux-mmotm.git
git remote update mmotm
git checkout a841a87a027a03b0615ffaac5a4b71223feaa5a6
vim +38 mm/compaction.c
010fc29a Minchan Kim 2012-12-20 22 static inline void count_compact_event(enum vm_event_item item)
010fc29a Minchan Kim 2012-12-20 23 {
010fc29a Minchan Kim 2012-12-20 24 count_vm_event(item);
010fc29a Minchan Kim 2012-12-20 25 }
010fc29a Minchan Kim 2012-12-20 26
010fc29a Minchan Kim 2012-12-20 27 static inline void count_compact_events(enum vm_event_item item, long delta)
010fc29a Minchan Kim 2012-12-20 28 {
010fc29a Minchan Kim 2012-12-20 29 count_vm_events(item, delta);
010fc29a Minchan Kim 2012-12-20 30 }
010fc29a Minchan Kim 2012-12-20 31 #else
010fc29a Minchan Kim 2012-12-20 32 #define count_compact_event(item) do { } while (0)
010fc29a Minchan Kim 2012-12-20 33 #define count_compact_events(item, delta) do { } while (0)
010fc29a Minchan Kim 2012-12-20 34 #endif
010fc29a Minchan Kim 2012-12-20 35
ff9543fd Michal Nazarewicz 2011-12-29 36 #if defined CONFIG_COMPACTION || defined CONFIG_CMA
a841a87a Joonsoo Kim 2015-01-23 37 #ifdef CONFIG_TRACEPOINTS
a841a87a Joonsoo Kim 2015-01-23 @38 static const char const *compaction_status_string[] = {
Should be:
static const char *const compaction_status_string[] = {
a841a87a Joonsoo Kim 2015-01-23 39 "deferred",
a841a87a Joonsoo Kim 2015-01-23 40 "skipped",
a841a87a Joonsoo Kim 2015-01-23 41 "continue",
a841a87a Joonsoo Kim 2015-01-23 42 "partial",
a841a87a Joonsoo Kim 2015-01-23 43 "complete",
a841a87a Joonsoo Kim 2015-01-23 44 };
a841a87a Joonsoo Kim 2015-01-23 45 #endif
ff9543fd Michal Nazarewicz 2011-12-29 46
---
0-DAY kernel test infrastructure Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
_______________________________________________
kbuild mailing list
kbuild@lists.01.org
https://lists.01.org/mailman/listinfo/kbuild
--
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>
reply other threads:[~2015-01-26 8:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20150126084512.GX6507@mwanda \
--to=dan.carpenter@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=hannes@cmpxchg.org \
--cc=iamjoonsoo.kim@lge.com \
--cc=kbuild@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;
as well as URLs for NNTP newsgroup(s).