From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755119Ab2BFMqz (ORCPT ); Mon, 6 Feb 2012 07:46:55 -0500 Received: from mail-we0-f174.google.com ([74.125.82.174]:46711 "EHLO mail-we0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754653Ab2BFMqx convert rfc822-to-8bit (ORCPT ); Mon, 6 Feb 2012 07:46:53 -0500 MIME-Version: 1.0 In-Reply-To: References: <1328271538-14502-1-git-send-email-m.szyprowski@samsung.com> <1328271538-14502-6-git-send-email-m.szyprowski@samsung.com> Date: Mon, 6 Feb 2012 20:46:51 +0800 Message-ID: Subject: Re: [PATCH 05/15] mm: compaction: export some of the functions From: Hillf Danton To: Michal Nazarewicz Cc: Marek Szyprowski , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-mm@kvack.org, linaro-mm-sig@lists.linaro.org, Kyungmin Park , Russell King , Andrew Morton , KAMEZAWA Hiroyuki Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2012/2/5 Michal Nazarewicz : >> On Fri, Feb 3, 2012 at 8:18 PM, Marek Szyprowski >> wrote: >>> >>> From: Michal Nazarewicz >>> >>> This commit exports some of the functions from compaction.c file >>> outside of it adding their declaration into internal.h header >>> file so that other mm related code can use them. >>> >>> This forced compaction.c to always be compiled (as opposed to being >>> compiled only if CONFIG_COMPACTION is defined) but as to avoid >>> introducing code that user did not ask for, part of the compaction.c >>> is now wrapped in on #ifdef. > > > On Sun, 05 Feb 2012 08:40:08 +0100, Hillf Danton wrote: >> >> What if both compaction and CMA are not enabled? > > > What about it?  If both are enabled, both will be compiled and usable. > Better if enforced compilation of compaction is addressed in separate patch in the patchset, according to the rule that one patch is delivered with one issue concerned.