Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7014583ybi; Thu, 13 Jun 2019 08:10:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxiKiDBjyQPRuOPSGUp25vTlxX7woWoH4TdZJIGyuhuPEzIcuySs/ITtoSdh+dtrvzlgSZ7 X-Received: by 2002:a65:6686:: with SMTP id b6mr9327283pgw.125.1560438623186; Thu, 13 Jun 2019 08:10:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560438623; cv=none; d=google.com; s=arc-20160816; b=imuYn/o35einAhCRFcZ8FVF+fYzYIKzJPAb0xa/RtlV9Qt5JsrbyveeLke6iuguJ6b jKYkQ8mBu9kU4Aj6Xkf5qzG0ieWGOIbxItjCrteKGkUx+x53iMq8jmnAywdeKDeoGDCM aSUU12a7afL+JFmu4gBvWqAcWenPIHLfjZD8kEqWs9MZaihZlHHHA2NtXfU+BeK3Nd5O R9eO0TtWvFpM/UoEnMQs9TcISBK9uU0Gv5zoA8wNkJpxHzp5R0VuHbrcMngu4TFWsP29 7tr5EIhhRAek2FkYbjJRSD/pDNWiRSJkU2S4Q+dvlJoU0Rie4FvOPrN/iGaVCBzCE+Qz 44tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NM86v/g7D2pxbif/CtotD7mg7Of2Y0H8jgV6mxk3r7w=; b=Hx+2RCKO4lq1t0X2Yo6AuToJU1uL6cieQSHPrcBhdkzOqmy+Ind6AFPQEHoeWK7ck8 It0jZNpcYTR9C5IIcf6RM83L9LD9/xPMi67E2EvYMPhVx4tbQ68YCeyG3yCCdC4EKZrs JIc611ZfqALmj06iOz2Ek4dZjvovAt+Hlwhf1fHnf+5wgWJTlJ1eKYpFyPEobzPLEgeC XMKHPEHghLTgJWcgsVXyLKGFN0i/Fyl5+ho9EX0edhf1XI48dJjl97XXEy25FjymhQLE /EclYA7Z3iOol/yOLRnTD+AY95+tpc5/9C6I8O/XC+NEdVYDANldaRgYD4isFZaZ5xP6 Jmww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JjAOpihm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k7si3242256pls.164.2019.06.13.08.10.08; Thu, 13 Jun 2019 08:10:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JjAOpihm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733255AbfFMPIY (ORCPT + 99 others); Thu, 13 Jun 2019 11:08:24 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:39006 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732886AbfFMPIV (ORCPT ); Thu, 13 Jun 2019 11:08:21 -0400 Received: by mail-qt1-f194.google.com with SMTP id i34so22923279qta.6; Thu, 13 Jun 2019 08:08:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NM86v/g7D2pxbif/CtotD7mg7Of2Y0H8jgV6mxk3r7w=; b=JjAOpihmy54WG2SZzRzlpXDCurNpV6fkt/PA0AHkY24Zf/jQNeHsJRYBLpgnTk3Uth Z5o+cXC8quJuc8v5Ww4p7zXVuur3gHwJZskR03Tq0K/BVarzrVf/ES+S1cpSKRYGY3He aChfP36jXnWam19h6ktm/hwREpSKkjTaGWEee4P0VWUfJx8J0KhUUS31LMnt8agC3Qrd z4QtZRjz7pWq2DvsFKPmfvRye7rLtGIp0/VPDueaIPOmcTLSbj0OZumKTxrZqIKVI88w wHJsYPW4LXD73Ay/HaNLrrXvyVTRhV97yxNdpgfLHY7a1R1ya8tgrVBJvoKZC6vIid0x z3Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NM86v/g7D2pxbif/CtotD7mg7Of2Y0H8jgV6mxk3r7w=; b=p0eyCDgdhIk+Vw1lrjT5q1jmHnV36ZPd6MalwE33Aq/WvZnH/vdmScJkt3GWP2lFNR KAkom7rcX1C6anoLwRKPPfNc+FqHWCcNAMz9/OKKkF8UWmAUNbEiQUbVZAqixRhkEJ7B Nur5NxpqOYpCMDqHUgr07780KFIKHs+P4e3qbbeq2KN+HZHhMIH7yl+NjNs7V4g84ZB2 LdT1eRbk52RhPLEbWYA2ualZuCnXz558rZTTc7mo8pQPcly8YdhTx9MkqcjvZ8p0RAkY kQdGtFqCyi0Se1svsaOdE7G6Rkrzsl6SmHgIgP1GkcHerdl+5bLEvTxz7E/5w23YoY+c 6bHA== X-Gm-Message-State: APjAAAViDgsLvYIzE8acFHdFrIUbK9cluWB97hmopY+8IzNxGdGt12eq FRVZpkQAKzrGQF8EtrTLLbM= X-Received: by 2002:ac8:17f7:: with SMTP id r52mr77196979qtk.235.1560438500713; Thu, 13 Jun 2019 08:08:20 -0700 (PDT) Received: from willemb1.nyc.corp.google.com ([2620:0:1003:315:3fa1:a34c:1128:1d39]) by smtp.gmail.com with ESMTPSA id d188sm1641989qkf.40.2019.06.13.08.08.19 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 13 Jun 2019 08:08:20 -0700 (PDT) From: Willem de Bruijn To: jakub.kicinski@netronome.com, peterz@infradead.org Cc: netdev@vger.kernel.org, davem@davemloft.net, edumazet@google.com, linux-kernel@vger.kernel.org, Willem de Bruijn Subject: [PATCH net-next 1/2] locking/static_key: always define static_branch_deferred_inc Date: Thu, 13 Jun 2019 11:08:15 -0400 Message-Id: <20190613150816.83198-2-willemdebruijn.kernel@gmail.com> X-Mailer: git-send-email 2.22.0.rc2.383.gf4fbbf30c2-goog In-Reply-To: <20190613150816.83198-1-willemdebruijn.kernel@gmail.com> References: <20190613150816.83198-1-willemdebruijn.kernel@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Willem de Bruijn This interface is currently only defined if CONFIG_JUMP_LABEL. Make it available also when jump labels are off. Signed-off-by: Willem de Bruijn Acked-by: Peter Zijlstra (Intel) --- include/linux/jump_label_ratelimit.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/linux/jump_label_ratelimit.h b/include/linux/jump_label_ratelimit.h index 42710d5949ba..8c3ee291b2d8 100644 --- a/include/linux/jump_label_ratelimit.h +++ b/include/linux/jump_label_ratelimit.h @@ -60,8 +60,6 @@ extern void jump_label_update_timeout(struct work_struct *work); 0), \ } -#define static_branch_deferred_inc(x) static_branch_inc(&(x)->key) - #else /* !CONFIG_JUMP_LABEL */ struct static_key_deferred { struct static_key key; @@ -95,4 +93,7 @@ jump_label_rate_limit(struct static_key_deferred *key, STATIC_KEY_CHECK_USE(key); } #endif /* CONFIG_JUMP_LABEL */ + +#define static_branch_deferred_inc(x) static_branch_inc(&(x)->key) + #endif /* _LINUX_JUMP_LABEL_RATELIMIT_H */ -- 2.22.0.rc2.383.gf4fbbf30c2-goog