Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1126955lqp; Fri, 22 Mar 2024 06:29:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVSOoZRJfkM5vhzhfiNNoA2HIkeZFw0dAHc2C1OWC1B6uLkaWEQAbrq5MDSOylgyL+Rq3eXfoFlGgev0MsxHCg8Pg3qGi+WrCm6CEj7Zw== X-Google-Smtp-Source: AGHT+IGcqHqtrjuChuGAdNMJBH2FE+Hh3aTXKJRQabaV7YPzW2yB2PcoW+729gI0E4pobc6U9tP+ X-Received: by 2002:a17:902:7608:b0:1de:ec6b:50b1 with SMTP id k8-20020a170902760800b001deec6b50b1mr2161487pll.54.1711114164211; Fri, 22 Mar 2024 06:29:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711114164; cv=pass; d=google.com; s=arc-20160816; b=AbYBJvwjyffUksUFctQdwggww8Ao6LJ7IhQvX0jXiqQ0qYiPi42zUG+8m7BusS31CZ fgmhv0Dy4xTi0r6Q0kF3cfrWfqqMfGNa6R0HOtswuLR1a8OpthAnJrTIAakAzfpSs7kC a4EbnAk60+bndbIllZ/hYKsUuZlqeh/4QMd9tXW5iRtKPGgm/CW6wBkieAlUc/EBHVER OySiwJtBZwc8sAFx0RB/fWP75ITWJ60k5V1/nk2p3VZC8RIjLz9WxUvu3cZf2Bxkbij3 WrZd41mDN+5N87xUy34SEEQcaR99z5gZkfEaAwat5OqQnCgpeUClKlat7kwO8zCKTnT9 pXTw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=DgeyWKqZQ5HsCzvCSYekfQ+6NtLsfPSqZR7y/h7zN04=; fh=HdJRAKYsNLyIuBWSqq0Ynk/J8dqBeldNr0YJR/S6zUw=; b=OwKCa7E0C5cHHLxfdjkgCQzAPchYqTaMfDgK2AcQ8tS6otOk9H8wH+9obvYUqesixb BCfFxTzjYvByDya4AwbEzYazHMsMTH6aDRzuWCyhBqnIN+iTIIpXde635ryEYsiwodHH S2wwPQI5jckTeD7Kq6tcaWu3C4GZIpf93otQ3UlBb3QFLD1S/zASZnle2XZM3XKOYb28 AyUjinLXTBlrqwOPt18nqIArbGQOkFpURoJMxTdRy9lgCzJkTotDBCrBiODMMRn0FgWJ wH7smhAYVVw9hBsFlixfuYW0WaFJfag0063FRUUznbOETIyV1kEtVUoCES54ZKF97UHU fFeg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L1MAOW4B; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-111477-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111477-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id bi4-20020a170902bf0400b001ddd40bbd6asi1845691plb.25.2024.03.22.06.29.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 06:29:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111477-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L1MAOW4B; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-111477-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111477-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 7A1DEB2259F for ; Fri, 22 Mar 2024 13:26:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B393045BFC; Fri, 22 Mar 2024 13:26:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="L1MAOW4B" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D327A44C84; Fri, 22 Mar 2024 13:26:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711113976; cv=none; b=EM3BtrX3HNfIUItdy6GfBXsZ50cXWfpqG76XNgiyMSBQ3vR4caCNe0gc4yCAmoe17woBZX7qgLPErr6tRR+cwiB5RLbyKJYYZyV7zbCgeZtotruMTSDBl2ym1QqMmz12fgI/Nt9hFiLgP6NTZ9nnz2YKcV0CwjqykVmfCqHlxCA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711113976; c=relaxed/simple; bh=KhGIxGzQHHpyZi1er77uS4aXuZbgvT9xv+BQ7arBReI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=E6Q837BccEwYy1dg/R/UQfrnkjVzfSpuTkvmrrL5l3+f7PPtJ+78Rj+E7Q/xQPLPzybtiYnIWBSBog1JL2Kje4t0oiBfjTrKRl1PNFQpddVqKJf7hJHDMLDMTJ9/l0sTu9W05du9BNgdRMH/bgdQjdeSCV+IwbtQEGEIEfKT/hE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=L1MAOW4B; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C27CC433F1; Fri, 22 Mar 2024 13:26:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711113976; bh=KhGIxGzQHHpyZi1er77uS4aXuZbgvT9xv+BQ7arBReI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=L1MAOW4BqQ6QNLKmhvGzw61Uscyav+etxQJ+HTPNeY/eQXG616zB/1vLmNI93IftE djhBB0R6QB+MKc4NNSab61TD3cuoJKyFEhO9L82t/DdsfvAVMInDDSz//O93yfmecA e005+qIDIqKQEs+9qwSraFou1yNZ7OSgW1EEvdqIL+Op5oCcffdsC3XhVzc26wdmhH XqD3wSrNU40ngYAmiRKt94UFYXIfMaW/aT/sgf12P3z1P9g8M7r/MtRKadBEdMFLmI oH/yUF7xagVpZNirrCHRyNP7v7S94cLg5304u3EJneOnyV+ylIIrHP88yuUYLSjMrG /HVERo6SIN5EA== Date: Fri, 22 Mar 2024 13:26:11 +0000 From: Simon Horman To: Arnd Bergmann Cc: "David S. Miller" , David Ahern , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Arnd Bergmann , Kunwu Chan , Joel Granados , Zhengchao Shao , Wangyang Guo , Kyle Zeng , Beniamino Galvani , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ipv4/route: avoid unused-but-set-variable warning Message-ID: <20240322132611.GH372561@kernel.org> References: <20240322131817.905700-1-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240322131817.905700-1-arnd@kernel.org> On Fri, Mar 22, 2024 at 02:18:12PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > The log_martians variable is only used in an #ifdef, causing a 'make W=1' > warning with gcc: > > net/ipv4/route.c: In function 'ip_rt_send_redirect': > net/ipv4/route.c:880:13: error: variable 'log_martians' set but not used [-Werror=unused-but-set-variable] > > Change the #ifdef to an equivalent IS_ENABLED() to let the compiler > see where the variable is used. > > Fixes: 30038fc61adf ("net: ip_rt_send_redirect() optimization") > Signed-off-by: Arnd Bergmann ## Form letter - net-next-closed (text from Jakub) The merge window for v6.9 has begun and therefore net-next is closed for new drivers, features, code refactoring and optimizations. We are currently accepting bug fixes only. Please repost when net-next reopens after March 25th. RFC patches sent for review only are welcome at any time. See: https://www.kernel.org/doc/html/next/process/maintainer-netdev.html#development-cycle -- pw-bot: defer