From: Fengguang Wu <fengguang.wu@intel.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Michal Hocko <mhocko@suse.cz>,
Linux Memory Management List <linux-mm@kvack.org>,
Johannes Weiner <hannes@cmpxchg.org>,
kbuild-all@01.org, Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Subject: Re: [mmotm:master 148/178] mm/memcontrol.c:6961:21: error: call to '__compiletime_assert_6961' declared with attribute error: BUILD_BUG failed
Date: Tue, 17 Jun 2014 10:15:09 +0800 [thread overview]
Message-ID: <20140617021509.GB32408@localhost> (raw)
In-Reply-To: <20140616155328.6dfe4821baa7835999467746@linux-foundation.org>
On Mon, Jun 16, 2014 at 03:53:28PM -0700, Andrew Morton wrote:
> On Fri, 13 Jun 2014 10:02:03 +0800 kbuild test robot <fengguang.wu@intel.com> wrote:
>
> > tree: git://git.cmpxchg.org/linux-mmotm.git master
> > head: a621774e0e7bbd9e8a024230af4704cc489bd40e
> > commit: e6b81384e2275775b2ae090b97043077dea26c11 [148/178] memcg: deprecate memory.force_empty knob
> > config: make ARCH=ia64 allmodconfig
> >
> > All error/warnings:
> >
> > mm/memcontrol.c: In function 'mem_cgroup_move_charge_pte':
> > mm/memcontrol.c:6913:3: warning: value computed is not used [-Wunused-value]
> > mm/memcontrol.c:6902:10: warning: unused variable 'orig_pte' [-Wunused-variable]
> > mm/memcontrol.c: In function 'mem_cgroup_move_charge_pmd':
> > >> mm/memcontrol.c:6961:21: error: call to '__compiletime_assert_6961' declared with attribute error: BUILD_BUG failed
>
> Actually it is caused by
> mm-pagewalk-replace-mm_walk-skip-with-more-general-mm_walk-control.patch,
> so it seems that something has gone wrong with the bisection.
Yes, it is bad bisect. The number in __compiletime_assert_6961 is not
stable, which leads to the bad bisect. I've fixed the bisect script by
removing the numbers in that function name.
Thanks,
Fengguang
> > vim +/__compiletime_assert_6961 +6961 mm/memcontrol.c
> >
> > 5e2db449 Naoya Horiguchi 2014-06-13 6907 * We have consumed all precharges we got in can_attach().
> > 5e2db449 Naoya Horiguchi 2014-06-13 6908 * We try charge one by one, but don't do any additional
> > 5e2db449 Naoya Horiguchi 2014-06-13 6909 * charges to mc.to if we have failed in charge once in attach()
> > 5e2db449 Naoya Horiguchi 2014-06-13 6910 * phase.
> > 5e2db449 Naoya Horiguchi 2014-06-13 6911 */
> > 5e2db449 Naoya Horiguchi 2014-06-13 6912 ret = mem_cgroup_do_precharge(1);
> > 5e2db449 Naoya Horiguchi 2014-06-13 @6913 pte_offset_map(walk->pmd, addr & PMD_MASK);
> > 5e2db449 Naoya Horiguchi 2014-06-13 6914 spin_lock(walk->ptl);
> > 5e2db449 Naoya Horiguchi 2014-06-13 6915 if (!ret)
> > 5e2db449 Naoya Horiguchi 2014-06-13 6916 goto retry;
> > 5e2db449 Naoya Horiguchi 2014-06-13 6917 return ret;
> > 5e2db449 Naoya Horiguchi 2014-06-13 6918 }
> > 5e2db449 Naoya Horiguchi 2014-06-13 6919
> > 5e2db449 Naoya Horiguchi 2014-06-13 6920 switch (get_mctgt_type(vma, addr, *pte, &target)) {
> > 5e2db449 Naoya Horiguchi 2014-06-13 6921 case MC_TARGET_PAGE:
> > 5e2db449 Naoya Horiguchi 2014-06-13 6922 page = target.page;
> > 5e2db449 Naoya Horiguchi 2014-06-13 6923 if (isolate_lru_page(page))
> > 5e2db449 Naoya Horiguchi 2014-06-13 6924 goto put;
> > 5e2db449 Naoya Horiguchi 2014-06-13 6925 pc = lookup_page_cgroup(page);
> > 5e2db449 Naoya Horiguchi 2014-06-13 6926 if (!mem_cgroup_move_account(page, 1, pc,
> > 5e2db449 Naoya Horiguchi 2014-06-13 6927 mc.from, mc.to)) {
> > 5e2db449 Naoya Horiguchi 2014-06-13 6928 mc.precharge--;
> > 5e2db449 Naoya Horiguchi 2014-06-13 6929 /* we uncharge from mc.from later. */
> > 5e2db449 Naoya Horiguchi 2014-06-13 6930 mc.moved_charge++;
> > 5e2db449 Naoya Horiguchi 2014-06-13 6931 }
> > 5e2db449 Naoya Horiguchi 2014-06-13 6932 putback_lru_page(page);
> > 5e2db449 Naoya Horiguchi 2014-06-13 6933 put: /* get_mctgt_type() gets the page */
> > 5e2db449 Naoya Horiguchi 2014-06-13 6934 put_page(page);
> > 5e2db449 Naoya Horiguchi 2014-06-13 6935 break;
> > 5e2db449 Naoya Horiguchi 2014-06-13 6936 case MC_TARGET_SWAP:
> > 5e2db449 Naoya Horiguchi 2014-06-13 6937 ent = target.ent;
> > 5e2db449 Naoya Horiguchi 2014-06-13 6938 if (!mem_cgroup_move_swap_account(ent, mc.from, mc.to)) {
> > 5e2db449 Naoya Horiguchi 2014-06-13 6939 mc.precharge--;
> > 5e2db449 Naoya Horiguchi 2014-06-13 6940 /* we fixup refcnts and charges later. */
> > 5e2db449 Naoya Horiguchi 2014-06-13 6941 mc.moved_swap++;
> > 5e2db449 Naoya Horiguchi 2014-06-13 6942 }
> > 5e2db449 Naoya Horiguchi 2014-06-13 6943 break;
> > 5e2db449 Naoya Horiguchi 2014-06-13 6944 default:
> > 5e2db449 Naoya Horiguchi 2014-06-13 6945 break;
> > 5e2db449 Naoya Horiguchi 2014-06-13 6946 }
> > 5e2db449 Naoya Horiguchi 2014-06-13 6947
> > 5e2db449 Naoya Horiguchi 2014-06-13 6948 return 0;
> > 5e2db449 Naoya Horiguchi 2014-06-13 6949 }
> > 5e2db449 Naoya Horiguchi 2014-06-13 6950
> > 5e2db449 Naoya Horiguchi 2014-06-13 6951 static int mem_cgroup_move_charge_pmd(pmd_t *pmd,
> > 5e2db449 Naoya Horiguchi 2014-06-13 6952 unsigned long addr, unsigned long end,
> > 5e2db449 Naoya Horiguchi 2014-06-13 6953 struct mm_walk *walk)
> > 5e2db449 Naoya Horiguchi 2014-06-13 6954 {
> > 5e2db449 Naoya Horiguchi 2014-06-13 6955 struct vm_area_struct *vma = walk->vma;
> > 12724850 Naoya Horiguchi 2012-03-21 6956 enum mc_target_type target_type;
> > 12724850 Naoya Horiguchi 2012-03-21 6957 union mc_target target;
> > 12724850 Naoya Horiguchi 2012-03-21 6958 struct page *page;
> > 12724850 Naoya Horiguchi 2012-03-21 6959 struct page_cgroup *pc;
> > 4ffef5fe Daisuke Nishimura 2010-03-10 6960
> > d6dc1086 Naoya Horiguchi 2014-06-13 @6961 if (mc.precharge < HPAGE_PMD_NR)
> > d6dc1086 Naoya Horiguchi 2014-06-13 6962 return 0;
> > d6dc1086 Naoya Horiguchi 2014-06-13 6963 target_type = get_mctgt_type_thp(vma, addr, *pmd, &target);
> > d6dc1086 Naoya Horiguchi 2014-06-13 6964 if (target_type == MC_TARGET_PAGE) {
> >
> > :::::: The code at line 6961 was first introduced by commit
> > :::::: d6dc10868bc1439159231b2353dbbfc635a0c104 mm/pagewalk: move pmd_trans_huge_lock() from callbacks to common code
> >
> > :::::: TO: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
> > :::::: CC: Johannes Weiner <hannes@cmpxchg.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>
prev parent reply other threads:[~2014-06-17 2:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-13 2:02 [mmotm:master 148/178] mm/memcontrol.c:6961:21: error: call to '__compiletime_assert_6961' declared with attribute error: BUILD_BUG failed kbuild test robot
2014-06-16 22:53 ` Andrew Morton
2014-06-17 2:15 ` Fengguang Wu [this message]
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=20140617021509.GB32408@localhost \
--to=fengguang.wu@intel.com \
--cc=akpm@linux-foundation.org \
--cc=hannes@cmpxchg.org \
--cc=kbuild-all@01.org \
--cc=linux-mm@kvack.org \
--cc=mhocko@suse.cz \
--cc=n-horiguchi@ah.jp.nec.com \
/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).