From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757824AbcH3JYX (ORCPT ); Tue, 30 Aug 2016 05:24:23 -0400 Received: from foss.arm.com ([217.140.101.70]:34690 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751629AbcH3JYW (ORCPT ); Tue, 30 Aug 2016 05:24:22 -0400 Date: Tue, 30 Aug 2016 10:24:18 +0100 From: Catalin Marinas To: linux-arm-kernel@lists.infradead.org Cc: Jonathan Corbet , Suzuki.Poulose@arm.com, Will Deacon , linux-kernel@vger.kernel.org, Jason Baron , Dave P Martin Subject: Re: [PATCH 1/2] jump_labels: Allow array initialisers Message-ID: <20160830092417.GE5163@e104818-lin.cambridge.arm.com> References: <1472145992-10660-1-git-send-email-catalin.marinas@arm.com> <1472145992-10660-2-git-send-email-catalin.marinas@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1472145992-10660-2-git-send-email-catalin.marinas@arm.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 25, 2016 at 06:26:31PM +0100, Catalin Marinas wrote: > diff --git a/Documentation/static-keys.txt b/Documentation/static-keys.txt > index 477927becacb..fd490f8b1cfa 100644 > --- a/Documentation/static-keys.txt > +++ b/Documentation/static-keys.txt > @@ -15,6 +15,8 @@ The updated API replacements are: > > DEFINE_STATIC_KEY_TRUE(key); > DEFINE_STATIC_KEY_FALSE(key); > +DEFINE_STATIC_KEY_ARRAY_TRUE(keys, count); > +DEFINE_STATIC_KEY_ARRAY_FALSE(keys, count); > static_branch_likely() > static_branch_unlikely() > > @@ -140,6 +142,12 @@ static_branch_inc(), will change the branch back to true. Likewise, if the > key is initialized false, a 'static_branch_inc()', will change the branch to > true. And then a 'static_branch_dec()', will again make the branch false. > > +Where an array of keys is required, it can be defined as: > + > + DEFINE_STATIC_KEY_ARRAY_TRUE(keys, count); > + > +or: > + DEFINE_STATIC_KEY_ARRAY_FALSE(keys, count); Nitpick to myself: for consistency, we need an empty line between "or:" and "DEFINE_STATIC_KEY_ARRAY_FALSE" (I fixed it locally). -- Catalin