Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751706AbdFPUhX (ORCPT ); Fri, 16 Jun 2017 16:37:23 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:46316 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750787AbdFPUhW (ORCPT ); Fri, 16 Jun 2017 16:37:22 -0400 Date: Fri, 16 Jun 2017 13:37:21 -0700 From: Andrew Morton To: Johannes Weiner Cc: Guenter Roeck , "linux-kernel@vger.kernel.org" Subject: Re: hexagon: build error in -next due to 'mm: memcontrol: per-lruvec stats infrastructure' Message-Id: <20170616133721.0087401e2c00613b5a253b42@linux-foundation.org> In-Reply-To: <20170616201523.GA11016@cmpxchg.org> References: <534ef333-b27f-e525-31c1-bc5b7516d63f@roeck-us.net> <20170616184951.GA2665@cmpxchg.org> <20170616121453.34d92894ee9da8af895c4208@linux-foundation.org> <20170616201523.GA11016@cmpxchg.org> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1298 Lines: 28 On Fri, 16 Jun 2017 16:15:23 -0400 Johannes Weiner wrote: > In any case, memcontrol.h doesn't/shouldn't need hardirq.h. When that > include is removed, the below patch compiles on: x86 allno, x86_64 > allno, and my regular x86_64 config: > > --- > Subject: mm-memcontrol-per-lruvec-stats-infrastructure-fix-4 Did you try x86_64 allmodconfig? I'm getting a mess: In file included from ./include/linux/mm.h:1032, from ./include/linux/highmem.h:7, from ./include/linux/bio.h:21, from ./include/linux/writeback.h:205, from ./include/linux/memcontrol.h:28, from ./include/linux/swap.h:8, from ./include/linux/suspend.h:4, from arch/x86/kernel/asm-offsets.c:12: ./include/linux/vmstat.h: In function 'lruvec_page_state': ./include/linux/vmstat.h:362: error: implicit declaration of function 'mem_cgroup_disabled' ./include/linux/vmstat.h:365: error: dereferencing pointer to incomplete type ./include/linux/vmstat.h:365: error: type defaults to 'int' in declaration of 'type name' ... Presumably because we have memcontrol.h indirectly including mm.h which includes vmstat.h (from a stupid place) and with this patch we have vmstat.h including memcontrol.h.