Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6030714ybi; Wed, 12 Jun 2019 12:44:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwrxHWx8ipODbYZUoBtLIXVkqsisTBJ9Gji83bB+GBnqJPxe6UXB6f7Ue1ckYHFVGsvZW+b X-Received: by 2002:a17:902:868f:: with SMTP id g15mr82848326plo.67.1560368683215; Wed, 12 Jun 2019 12:44:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560368683; cv=none; d=google.com; s=arc-20160816; b=UzaTyzZtJhTH2Y+6NKeRm4L8wrAq1TsC1C5Z03/+kEgGjm2AyB5u8xA7YEuhiSvj0B QW76+hhYh/Z49DH70tAyYSMbc6H1Ze/0pd2O7kjzruBBtUoh7plD1olNhpfftQBqlfKZ eZagtQC0GHESho+vyO2oVp2vNnDrP8PHDA1uz2k8x6FbmpxB3R6ldckU+FwgZqHYbE/n qE6wJM2bJd/GfMlgTnHmYCkhU4eJ/Ls5pKTkOLtYMtf7X64y/keQZzhLa1NZ4m1bpXbp NbR2vWVoBd8KTKr5z/D7ZXhbXb3aiFuvrpjVEh026xHDIsOcNL5fvVJSULtyPv+NaSgY Gd/A== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=EQNm8uL0go3b8Bxj6w0oMavlHo0z6dLALS5bDmoD9/4=; b=yLq14YuiDVWs/5IpOhofrDk7EjBwEuLMH+1RVcvvZ0G/cXsPNR1kMikY+Stegp1FsY sbxpZgdHB87Zl//CvYm78cQRg3crvi4DBOK7eSQFd+2yK+BinR+F7+0G6q4AvHWVN0ls WIAXWaK4oIJIVr4taQDhNRVlCbzD517UM8ScHR4hnGas5XP2ITVBqT/kufMCj3lCWhIf NpJZJMyY8i1KJVy+n1kvftRefnF/bwlaPX83kFQ3Kk4b8Gg4VG7B1vv1TbciRXYDljbr PCH8UGx3HTb9P8nRDuiABN4As6j7bZlqE0t15xFgdgSMnI4w9xPhYxZyI9QNtng0ID7C r0vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=g9UzUN4z; 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 h3si541916pgv.403.2019.06.12.12.44.27; Wed, 12 Jun 2019 12:44:43 -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=g9UzUN4z; 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 S1728207AbfFLToX (ORCPT + 99 others); Wed, 12 Jun 2019 15:44:23 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:45966 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727626AbfFLToX (ORCPT ); Wed, 12 Jun 2019 15:44:23 -0400 Received: by mail-qt1-f193.google.com with SMTP id j19so19811286qtr.12; Wed, 12 Jun 2019 12:44:22 -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:mime-version :content-transfer-encoding; bh=EQNm8uL0go3b8Bxj6w0oMavlHo0z6dLALS5bDmoD9/4=; b=g9UzUN4zq8DBrEcBqzUqYAKqkoLzuAR07saSKkI16jE8m1SNjDHLana+Pn5/558AJT nnbD2YkzFpWIbhlAyVvpfpc/K5hUGU+QeDyTKggdx37lXdwepR2RlkfsOoJh6T6C3wsp PiIbpqgvAuuSPf8gh14YfCxGfcRGs+RpZFHzGUycchex/uOWIorXVt/KyPWK6laOV0cf hm9Mc8DdG23HrEocajvIQqdL4pa3nE1834qeyCdN2OA2V8czop9f/M3PNeska134OX3L RHMxkojlpGbmcIKqdFjhTRwVL1en7Up8UszvyzFhiI6lZTvYBQQ7VAVrB+2xDXzDY/vW ymGw== 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:mime-version :content-transfer-encoding; bh=EQNm8uL0go3b8Bxj6w0oMavlHo0z6dLALS5bDmoD9/4=; b=O+boH1oShnmJZf88BoH3vTtQZlQClWm/QuVkaitqLTOCvQklQjp9FkI79Bg/GCfMFX qLbq3EzpOxgLXEnE2JOAUVTGWHMpz4I6qwY6C9wLbEJgUopv0cvxLBvMggPUKdAlUJ5E 0YKT6jvNPAR9Z2g6vt8MBtDVhABfzLz2H5mDsHV3n/y2idCrqGxTOM+95Q3Ss552j+VR 11VyLC6Q/7rtUFIZVLRYr0o0STbudVPJfMyVs9hEnxWnTA/hWqsyk2jeZq3w7v1P72Zg 1xSG8FmTgslzqssWFhaB+2qZnN+YkPTQm2H/rlzD3epaiOAPfUqpTIZzgS6/h2QnoOS1 JGgQ== X-Gm-Message-State: APjAAAV0AhqOjqgem8Jf57ngWxtEazUhOc/xH43vu9og0mK11/sIpmGI B23BvoLCB95Av+rCEOmRszfXhlep X-Received: by 2002:ac8:275a:: with SMTP id h26mr53009993qth.345.1560368662354; Wed, 12 Jun 2019 12:44:22 -0700 (PDT) Received: from willemb1.nyc.corp.google.com ([2620:0:1003:315:3fa1:a34c:1128:1d39]) by smtp.gmail.com with ESMTPSA id r5sm327581qkc.42.2019.06.12.12.44.21 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 12 Jun 2019 12:44:21 -0700 (PDT) From: Willem de Bruijn To: jakub.kicinski@netronome.com, peterz@infradead.org Cc: netdev@vger.kernel.org, davem@davemloft.net, linux-kernel@vger.kernel.org, Willem de Bruijn Subject: [PATCH] locking/static_key: always define static_branch_deferred_inc Date: Wed, 12 Jun 2019 15:44:09 -0400 Message-Id: <20190612194409.197461-1-willemdebruijn.kernel@gmail.com> X-Mailer: git-send-email 2.22.0.rc2.383.gf4fbbf30c2-goog 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 disabled. Fixes: ad282a8117d50 ("locking/static_key: Add support for deferred static branches") Signed-off-by: Willem de Bruijn --- The original patch went into 5.2-rc1, but this interface is not yet used, so this could target either 5.2 or 5.3. --- 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