Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4828179pxy; Tue, 27 Apr 2021 13:40:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJoLOcU3wJVRWTTmdr50UwBWRLkZNEUFloI3IvU1vchjkbR6x84oYQ9fwzZF+rHF9PYPo2 X-Received: by 2002:a17:902:a582:b029:ec:d002:623b with SMTP id az2-20020a170902a582b02900ecd002623bmr26484724plb.36.1619556029477; Tue, 27 Apr 2021 13:40:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619556029; cv=none; d=google.com; s=arc-20160816; b=RDJRizmgNdZ1KcC7hwUXeUc/C7/EmfyIPpIduN3eVAX/iTAvPMgqOpERUDpRSoKMSZ UROo+gId/Fz06NQ0qtjy/RhxPQx+u6dJbO/dCEuHT245QTGgxJOXhQ82/Ha5RYcg/XYm lp76sHAAQPDF1rREh/LH3t7RwNJIKWP13fdHWeH7FvnsfZQo496KBZMcUHPc8nCRHomh r2CCj/lBDKz/GV5ioxUi4p3L/fNYJ+qIbf2Ko1QAsEJdFY3MxZKemuby1DPXJgH92GaM y54C0dED9ghkXVnnKytgBVkJ7hS6E0wn/C26Hk2S2eLabeeanTO1XtsjVTGd9stl+Xhw c8Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=aAr7DoQyYFvlkhSL0l38NRJekwW5wlPtMxIM7gxaRs8=; b=RvF/53CUDwOXUZZEGcl6yZnq/ydX+gIUE9ADm++ynt9pJkj/K4UFn2OCwC8/756JI6 gMCVk+ejfLN3GUQyzhyL4pFNkMVFsRPXyN/Qr6PKclUPEBdTH9QBUN0IHJQF7YeDrepq ttz42uclXVr5/5V/yfd29+mUCHVOZ0iNRWQd50cswekM4iSkzYEKuuSmH8dEM3UjyJog NpDT7xiBtPiaQnPvZGGzOtHScFXbG1KQCwbX186cB8DPuARzoIqEPpCjt+sTqlZarDke DAI+pC3TPMneBcVJJIMTm6/9BeZ+r+k8/mR1GLP7Et7c8/3UhEq1B2cZF6v4kFmC2tM9 KG6Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y16si1031705plh.187.2021.04.27.13.40.05; Tue, 27 Apr 2021 13:40:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238817AbhD0UgP (ORCPT + 99 others); Tue, 27 Apr 2021 16:36:15 -0400 Received: from mail.netfilter.org ([217.70.188.207]:54170 "EHLO mail.netfilter.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237055AbhD0UgO (ORCPT ); Tue, 27 Apr 2021 16:36:14 -0400 Received: from us.es (unknown [90.77.255.23]) by mail.netfilter.org (Postfix) with ESMTPSA id 12F3763E81; Tue, 27 Apr 2021 22:34:50 +0200 (CEST) Date: Tue, 27 Apr 2021 22:35:25 +0200 From: Pablo Neira Ayuso To: Arnd Bergmann Cc: Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Jakub Kicinski , Arnd Bergmann , Balazs Scheidler , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] netfilter: nft_socket: fix an unused variable warning Message-ID: <20210427203525.GA14154@salvia> References: <20210427194528.2325108-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210427194528.2325108-1-arnd@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 27, 2021 at 09:45:18PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > The variable is only used in an #ifdef, causing a harmless warning: > > net/netfilter/nft_socket.c: In function 'nft_socket_init': > net/netfilter/nft_socket.c:137:27: error: unused variable 'level' [-Werror=unused-variable] > 137 | unsigned int len, level; > | ^~~~~ > > Move it into the same #ifdef block. Applied, thanks Arnd.