Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4613669imu; Sat, 19 Jan 2019 13:52:04 -0800 (PST) X-Google-Smtp-Source: ALg8bN5tIQc28Z07ogJbPlmRiFPHlGBxTwOUb5xRchZjZDXPscgddT6y+d286qtvQ/cjaseaSc2f X-Received: by 2002:a62:cd44:: with SMTP id o65mr24464659pfg.222.1547934724817; Sat, 19 Jan 2019 13:52:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547934724; cv=none; d=google.com; s=arc-20160816; b=hLpB99yBnbbnY/F8y3FLg2uC8EKRHc1SD95GafktoBxTjJ1U+KVy8gFG1OYCNTCRAD eUJMiX903sUJJGVwZ1J/Djga/D8cDJycKxq76+ciCBbOFj8rvIYoggpRwnNJIDXN8mlg ISZ54ivGoeeAYl6m+QyiqvFyREzSWoNTvUq9TewIzHspl5MzZmye/L7nOwsvdHIybnhv zDUHN+6v/0Jy6NA1/zUsuEhYh7jgPIssEQyDy3DE2i8YVKmhncXc4EXCMvGqqDwpy+XO WHh+LoNrPYDYazX1YOeTDYVu/mtlWLsOipmeHA8TDAx2WkTg6tRjD6sdLduL+Fz4ATYC oRTw== 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=KJ11hf8h56plnV6JuCjf2i6n+ney8F5diLmrZi/39ds=; b=iWa9d5tOR4XDVe2p7Rj9nGRL/9F29W4MdE6/vHiMbXIWj24lTfioIcsum9NX+XOlj5 aQydX7bowLEu0/uRFalB4OI6r/HLm8ALKOKFAbY2rB8CJQcjB7/gzJgBBWv0XGJ+6Rjl S+noFIc9Cr/+oL04WhMsbrdng1soKz9xDkDVIIDrJ7Td+S5buKlKHUgIjiJmgkAGfU6S WQMyHzUbPz9rQS7s+1r8HQ0XITaFIfys1ENLfyjnZkv+ONThB3U6B6T0MuhkBmwMPm0J HGuMVqKK792BfCTnZsPozqvMslYp2mBEby81elbuamOdtCH5QHPBHlfcq7vtLCTGa4Sg oVvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aIDD9hqU; 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 r11si8418740pgg.327.2019.01.19.13.51.46; Sat, 19 Jan 2019 13:52:04 -0800 (PST) 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=aIDD9hqU; 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 S1729612AbfASVub (ORCPT + 99 others); Sat, 19 Jan 2019 16:50:31 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:39824 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729056AbfASVub (ORCPT ); Sat, 19 Jan 2019 16:50:31 -0500 Received: by mail-wm1-f66.google.com with SMTP id y8so7525973wmi.4; Sat, 19 Jan 2019 13:50:30 -0800 (PST) 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=KJ11hf8h56plnV6JuCjf2i6n+ney8F5diLmrZi/39ds=; b=aIDD9hqUYmySD5akhAD9H4CnbF4PFK7A4BPHoVJMz5jNWAStUSzLUXY6mm3iqx296c giQ1HiIveID1HFtC+jERmEXmauilv/EpNJc3s9mz8TtpuuFGxiFGKih5avuACHhHNJyx mczIj7nCyzjtVubmkFQnhXUBxa8PnX4DQ5G8o0/Rpw/b51goNBpVxDP7ASsllbba3xIZ 9/EsoiBilo9mCZ20VgjZ7ofFqfTkDKVWhn7dF9AaFUSlRMMt4UiUQhbY+utovQ35Xj/g sDQ+MzBTVjGWSNGuGacNtz+0R6AiK87EWPfNRQuSSFGLMU+FOcEeX5P+oZQCROuO+Lyt 5cyA== 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=KJ11hf8h56plnV6JuCjf2i6n+ney8F5diLmrZi/39ds=; b=FhF7MmQvwdnHOPeOfVM70gyYJcYeOQQEMlagVaYjpNyV4vPm8MT1fDP0Ca4V65PUXx oOddiPOq+M1iDGghqzIpsHzR6w7aStT9cqnRyNbNi9kX5BJ4ZkOD6AEtKQc1CyuBGl7W IdltgAOvMs7fehaMQIkKz6PqbjvCiSXl/XpY0/HGMqjVW8CfwQLn9jlPdzgixCCgsAKL k+BsrashfW9R08/GxNDZF51CtUAxtWWaJrhq9octbySQZqCBDlJl5xYM64o6OWpGnPak xWkC+20n1E1ty9OrzhV+soYXD6UsE4ThVQ9l5THlPGcwoLPxdJWk0pmqwtr4hdZww9YJ v7JA== X-Gm-Message-State: AJcUukdbZUfcaJLqsN7oulPUa8fYCUd486FMj+uURq6pDDTrTYotEX90 HyFB3r7eQHCRS2LsPwoEjNY= X-Received: by 2002:a7b:c08f:: with SMTP id r15mr20168670wmh.118.1547934629447; Sat, 19 Jan 2019 13:50:29 -0800 (PST) Received: from localhost.localdomain ([2a02:a03f:40eb:400:dc79:225f:308a:97fa]) by smtp.gmail.com with ESMTPSA id s16sm74290109wrt.77.2019.01.19.13.50.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 19 Jan 2019 13:50:28 -0800 (PST) From: Luc Van Oostenryck To: Pablo Neira Ayuso Cc: Jozsef Kadlecsik , Florian Westphal , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, linux-kernel@vger.kernel.org, Luc Van Oostenryck Subject: [PATCH] nft_counter: remove wrong __percpu of nft_counter_resest()'s arg Date: Sat, 19 Jan 2019 22:50:24 +0100 Message-Id: <20190119215024.90174-1-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.20.0 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 nft_counter_rest() has its first argument declared as struct nft_counter_percpu_priv __percpu *priv but this structure is not percpu (it only countains a member 'counter' which is, correctly, a pointer to a percpu struct nft_counter). So, remove the '__percpu' from the argument's declaration. Signed-off-by: Luc Van Oostenryck --- net/netfilter/nft_counter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netfilter/nft_counter.c b/net/netfilter/nft_counter.c index a61d7edfc..1a6b06ce6 100644 --- a/net/netfilter/nft_counter.c +++ b/net/netfilter/nft_counter.c @@ -104,7 +104,7 @@ static void nft_counter_obj_destroy(const struct nft_ctx *ctx, nft_counter_do_destroy(priv); } -static void nft_counter_reset(struct nft_counter_percpu_priv __percpu *priv, +static void nft_counter_reset(struct nft_counter_percpu_priv *priv, struct nft_counter *total) { struct nft_counter *this_cpu; -- 2.20.0