From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 4 Sep 2014 11:21:35 +0200 From: Peter Zijlstra To: Sudeep Holla Cc: LKML , Heiko Carstens , Lorenzo Pieralisi , Greg Kroah-Hartman , "Rafael J. Wysocki" , Bjorn Helgaas , "x86@kernel.org" , "linux-acpi@vger.kernel.org" , "linux-pci@vger.kernel.org" Subject: Re: [PATCH v4 01/11] cpumask: factor out show_cpumap into separate helper function Message-ID: <20140904092135.GA346@worktop.programming.kicks-ass.net> References: <1409763617-17074-1-git-send-email-sudeep.holla@arm.com> <1409763617-17074-2-git-send-email-sudeep.holla@arm.com> <20140904062006.GC3190@worktop.ger.corp.intel.com> <54082ADD.6040004@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 In-Reply-To: <54082ADD.6040004@arm.com> Sender: linux-acpi-owner@vger.kernel.org List-ID: On Thu, Sep 04, 2014 at 10:03:25AM +0100, Sudeep Holla wrote: > If I don't, every file including this header generates "warning: > ‘cpumap_copy_to_buf’ defined but not used". Alternatively I can just > declare here and define it elsewhere but I could not find more apt > place than this. Any suggestions ? kernel/cpu.c ? Sure the tail of cpu.c seems to have various other cpumask gunk in already so it fits there. The other alternative would've been lib/bitmap.c since that's where the various bitmap printf implementations live. You could make it bitmap_copy_to_buf() I suppose, and then have a cpumask inline wrapper, to be fully consistent with the rest of the implementations.