From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753205AbcCBISN (ORCPT ); Wed, 2 Mar 2016 03:18:13 -0500 Received: from ozlabs.org ([103.22.144.67]:34283 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751988AbcCBISM (ORCPT ); Wed, 2 Mar 2016 03:18:12 -0500 From: Rusty Russell To: Jacob Pan , LKML , Linux PM , Thomas Gleixner , Rafael Wysocki Cc: Srinivas Pandruvada , "David S. Miller" , Andrew Morton , Peter Zijlstra , Jacob Pan Subject: Re: [PATCH v5 1/2] cpumask: export cpumask_any_but In-Reply-To: <1456261152-21907-2-git-send-email-jacob.jun.pan@linux.intel.com> References: <1456261152-21907-1-git-send-email-jacob.jun.pan@linux.intel.com> <1456261152-21907-2-git-send-email-jacob.jun.pan@linux.intel.com> User-Agent: Notmuch/0.20.2 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) Date: Wed, 02 Mar 2016 14:11:53 +1030 Message-ID: <878u21mtq6.fsf@rustcorp.com.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jacob Pan writes: > Export cpumask_any_but() for module use. This will be used by drivers > such as intel_rapl to locate an active cpu on a socket. > > Signed-off-by: Jacob Pan Acked-by: Rusty Russell Thanks! Rusty. > --- > lib/cpumask.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/lib/cpumask.c b/lib/cpumask.c > index 5a70f61..81dedaa 100644 > --- a/lib/cpumask.c > +++ b/lib/cpumask.c > @@ -41,6 +41,7 @@ int cpumask_any_but(const struct cpumask *mask, unsigned int cpu) > break; > return i; > } > +EXPORT_SYMBOL(cpumask_any_but); > > /* These are not inline because of header tangles. */ > #ifdef CONFIG_CPUMASK_OFFSTACK > -- > 1.9.1