From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qa0-f46.google.com (mail-qa0-f46.google.com [209.85.216.46]) by kanga.kvack.org (Postfix) with ESMTP id A839C6B0038 for ; Tue, 6 Jan 2015 23:53:20 -0500 (EST) Received: by mail-qa0-f46.google.com with SMTP id w8so1379680qac.5 for ; Tue, 06 Jan 2015 20:53:20 -0800 (PST) Received: from mail-qg0-x22b.google.com (mail-qg0-x22b.google.com. [2607:f8b0:400d:c04::22b]) by mx.google.com with ESMTPS id m69si763560qgm.21.2015.01.06.20.53.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 06 Jan 2015 20:53:19 -0800 (PST) Received: by mail-qg0-f43.google.com with SMTP id z107so450234qgd.2 for ; Tue, 06 Jan 2015 20:53:19 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <54AAB548.3050807@suse.cz> References: <1418400805-4661-1-git-send-email-vbabka@suse.cz> <20141218132619.4e6b349d0aa1744c41f985c7@linux-foundation.org> <54AA9E09.7040308@suse.cz> <54AAB548.3050807@suse.cz> Date: Tue, 6 Jan 2015 20:53:19 -0800 Message-ID: Subject: Re: [PATCH V3 0/4] Reducing parameters of alloc_pages* family of functions From: Linus Torvalds Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org List-ID: To: Vlastimil Babka Cc: Andrew Morton , linux-mm , Linux Kernel Mailing List , "Aneesh Kumar K.V" , David Rientjes , Johannes Weiner , Joonsoo Kim , "Kirill A. Shutemov" , Mel Gorman , Michal Hocko , Minchan Kim , Rik van Riel , Zhang Yanfei On Mon, Jan 5, 2015 at 8:01 AM, Vlastimil Babka wrote: > > Hm, nope. The !CONFIG_COMPACTION variant of try_to_compact_pages() is static > inline that returns COMPACT_CONTINUE, which is defined in compaction.h. > Another solution is to add a "forward" declaration (not actually followed later > by a full definition) of struct alloc_context into compaction.h. Seems to work > here, but I'm not sure if such thing is allowed? We do forward struct declarations quite often (well, _relatively_ often) in order to avoid nasty circular header includes, and sometimes just to avoid unnecessarily many header includes. See for example git grep '\ email@kvack.org