Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2368147lqp; Sun, 24 Mar 2024 16:07:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUT34A0IhWhz50s1dNFbTaLSk7lR/UMM+3Bnuh4dasPHNstZM6Z9fixwDs/IoEi32BjIYxTuXPZKvS3raCVEeJWjtPnUswqZpZlB2fbIg== X-Google-Smtp-Source: AGHT+IEuVgmBNWHGkOCNZiDsx5TcOurtq+4jtZYfIR1ouq+zYdYaYcS/UeoKbTjfL3iPgI8PiN5s X-Received: by 2002:a05:6808:3a18:b0:3c3:8a48:b7eb with SMTP id gr24-20020a0568083a1800b003c38a48b7ebmr9114240oib.42.1711321653964; Sun, 24 Mar 2024 16:07:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711321653; cv=pass; d=google.com; s=arc-20160816; b=vxjhNOPfq/D6Wbp7s5aUJnzvAKfAfKUn5+OghU8D0aH2EGSWsngOJwMH/13GEYFXmt eJaNEhiphX5/0FDjlrHkMA1SMPpvDnyAop/WQNbk7dtHrxrEb3zLIt+jXUFTFfBL+e0m mAKDsvdbWY4jra2o0Albg2Lv4ug2pcUdERjD0D5o6rg6puvKfKM5CsoSGW3yTyfCY/SZ U3c5rmgJT0GC55GrkmfnBeouLOxlnNzE9oxTGm/TtvYydoJBrVGaicy+0qYkl9P5FK33 hw0BfssfA4GAy0DwMFE39fFpS5F0DveZlFbilqA/tsT9gqNCeSO0zT28gSmwUem5833A aA8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=oonKF+iGBj5Gha41wNlzGZGZBtOJURj8wPGYDX3CkgY=; fh=aQ2D8zE3SGXKGZRpmdzF/EzbvvDtjZW+VjDQn0Uzrn4=; b=fePViIujau64R8bqLabEJOSqhyv9ColI/BfyPh3u4DV/itk41thopQ9WFMsI5QLn9d Lg7jiNCGFgV63IW0zziMNcXVuUgOJPQhrY6wMqvYI5ao4ydgwrzlNTZJVso1w/DBe6bx dSwD1SBXQdNnoJKcxIebL7L4E/gxsh42g8mZeyfxY0zS5VrsbNw6Gj7pjuxvvMELMBgf 26sEhEaRrJYOpAYURSq+WsVsucSpdCBIxUBYmvo+1jPMc/5iB68o3tX+PoFaIPSJsF1D No3AQKwvapc8dy5UL7MCIIMl5j7Z7VforcXldsUlqU12dRghXscRqPkcgxmtuSVPDxsL 8djg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VNe2Mdz1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113027-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113027-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id s18-20020ac85cd2000000b004311ad91d4fsi4258398qta.534.2024.03.24.16.07.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 16:07:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113027-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VNe2Mdz1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113027-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113027-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7D10B1C203DC for ; Sun, 24 Mar 2024 23:07:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7E44A13A25B; Sun, 24 Mar 2024 22:37:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VNe2Mdz1" 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 845B9139598; Sun, 24 Mar 2024 22:37:17 +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=1711319837; cv=none; b=YJgY30Y7zfHWqfbOSAOsMNJEMuQw5wtZxVrBsgkjqnDrAtP23kmBzvgjwBA7kzRW4d84pXr/UmBiiFIP1fh4N7UvINEhnpbp+/MR/UfpwUxgNQtXcvN2L1x4hYJX4hKB1mpDeVTPKCI2CXTPrlgcAN3Qx/QAU8Q/xTZJrbL0BVc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319837; c=relaxed/simple; bh=LvtZg5e0VQtOBT+DmVlIpjevxUc7VebV46SOEb3fPHw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fvCqL+XsYQbWLR1yyAr7lBuiyKLQfnMqt20sDVOCO/wZ29ch5uJ1rwzgR50lhIUNl2qePuRg1EIoohiezFizgS0+rsw3PrPc7fw3FNRv0Ahx6FG8yiphBYQn+B8eLIHTEZGZcxhDksaCwq/YiKPHb3tM1HQiDBk8yzSHKgV+VP8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VNe2Mdz1; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B22C7C43399; Sun, 24 Mar 2024 22:37:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711319837; bh=LvtZg5e0VQtOBT+DmVlIpjevxUc7VebV46SOEb3fPHw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VNe2Mdz1jvhZOmL7v1IPHuiyWCxz63U/aYYx5JF6xWunGCVq1rvvs7u5mZt7+LuKI BItTsXj0C4k0l5tukM8NohfMu7080GmIE2ZrvWKr4EVk7QWSmFt7i4V/svrd99gRxs PEEpZROTzHKFm5D3SASvhiarC9ZPQnrWbi0FS5e3vJf6XdHHqRpg+CyTNaIkE28YRs C0u2KZ51pf6x18K2X+EApNineXoN98P1Od4PlsETxe6/biYzTbTi4Wtgiz/q2F8GX2 vMpSKYOQf/MsL90OYd6HqS1dc4yf5JsLA2AzM6Epalxdg0Sm4bk4YLdsaeRxsm6eLD Pcerybp3Dfbsw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Breno Leitao , Jiri Pirko , "David S . Miller" , Sasha Levin Subject: [PATCH 6.8 140/715] net: blackhole_dev: fix build warning for ethh set but not used Date: Sun, 24 Mar 2024 18:25:19 -0400 Message-ID: <20240324223455.1342824-141-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Breno Leitao [ Upstream commit 843a8851e89e2e85db04caaf88d8554818319047 ] lib/test_blackhole_dev.c sets a variable that is never read, causing this following building warning: lib/test_blackhole_dev.c:32:17: warning: variable 'ethh' set but not used [-Wunused-but-set-variable] Remove the variable struct ethhdr *ethh, which is unused. Fixes: 509e56b37cc3 ("blackhole_dev: add a selftest") Signed-off-by: Breno Leitao Reviewed-by: Jiri Pirko Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- lib/test_blackhole_dev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/test_blackhole_dev.c b/lib/test_blackhole_dev.c index 4c40580a99a36..f247089d63c08 100644 --- a/lib/test_blackhole_dev.c +++ b/lib/test_blackhole_dev.c @@ -29,7 +29,6 @@ static int __init test_blackholedev_init(void) { struct ipv6hdr *ip6h; struct sk_buff *skb; - struct ethhdr *ethh; struct udphdr *uh; int data_len; int ret; @@ -61,7 +60,7 @@ static int __init test_blackholedev_init(void) ip6h->saddr = in6addr_loopback; ip6h->daddr = in6addr_loopback; /* Ether */ - ethh = (struct ethhdr *)skb_push(skb, sizeof(struct ethhdr)); + skb_push(skb, sizeof(struct ethhdr)); skb_set_mac_header(skb, 0); skb->protocol = htons(ETH_P_IPV6); -- 2.43.0