Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2554899lqp; Mon, 25 Mar 2024 02:24:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX3yFT/oT8ekIRCePBd0kLv/GUHmDwigmnIPZbZ0ScXr/vYItAudw33ymHP+eROhcCj6SPEAda0LaptwUCA2JjQqRC25e45RO7Qux1OCg== X-Google-Smtp-Source: AGHT+IHkmn9hYQyhDXncBwscO/LRCjPgbShl9wGkOlj8am43SlIlTxzbK57DxhvpNEQaap2IWYfs X-Received: by 2002:a05:620a:8113:b0:78a:25f9:dda8 with SMTP id os19-20020a05620a811300b0078a25f9dda8mr6972088qkn.47.1711358694235; Mon, 25 Mar 2024 02:24:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711358694; cv=pass; d=google.com; s=arc-20160816; b=KIxI55Dc/GV4hUVajrPt5tgWYvH/ed2etS9KUgI6ejCNULKjRsHrCzjA5yKyfO9Jph DXQa4DxVqCGuBcl1LenrbuaJSNShkdAy2gq40OHQk8h6Y1Pl7jrcSGPxtMfR6nad2BcF 99aGHudp1wPQIrjiYQ5ql5C9jZIC9JFn8pYR1/wnbggCHsuBcAW3PcIWrZng3NJi+KmZ JO+xwFRZ7tw3jo4SUIehCXUEqPTpXnNnRhf+7Hua76ud2hhjkpIz1Pf3Ug0mWCiwKVVr 4k6Fd2LOZfqYrG61cX5DCodECEdUROh6gj5jrpT6KU8vanXacpbRK2vXQtOZdL5jv1// j66Q== 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=qCsYyc5tyFFIO8aAxuC0ObR2qSp+82ggev03gxpbVbhWrHOLt0vIXKMaNQFwb1WjEm j1Codwd5zRGXs8fugYI8oRQ5kCw49iH63USSKz4t8pb3ptflzvgPaZr0adSxaRYZ61b+ bm1qSR1tA6kgcgvXr7wUbhfBEf9KKAs7qWXw/nu9viYiYct+zMc1FBmoqbi4PrZeuhp0 dAYB2apfbWKxK8+whPjA7XwM+CeTmh72G0xxPjH9LsW3veOX1IkwrMpmgqQcePiBv9Xo iexA2KpwVma+H6HiM4mnvG4MYbnvok42I3bFFCU+rpR6SrdhLTKV7wlm/3OvsH1lGP46 93vg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MZDJslPA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115809-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115809-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 z1-20020ae9e601000000b00789fc9196dcsi4961453qkf.557.2024.03.25.02.24.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 02:24:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-115809-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=MZDJslPA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115809-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115809-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 E12AA1C3128A for ; Mon, 25 Mar 2024 09:24:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 83CFF374709; Mon, 25 Mar 2024 03:01:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MZDJslPA" 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 BFFFA145FEE; Sun, 24 Mar 2024 23:14:11 +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=1711322051; cv=none; b=o1xfu42ouK0D/SEFsU0/gsy9+htINN16UR3ks9kbUt4UtZHZtu4VdFRc6ThM7ISI30jNn+ad4b2Ku/G8lvK8suFIP4RuAF281x4ga8cGYpjsFciWbhhdjnj066JaoGVBLIiAPIc0JEYcelJKhi6LDtfokFosGR3ecYUnW+J/UV0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711322051; c=relaxed/simple; bh=LvtZg5e0VQtOBT+DmVlIpjevxUc7VebV46SOEb3fPHw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UOKSo7AXZq+zzBzb7U3watXq0Zcbc4FMbUeQ9aTsfDOFcGXCgyLxn76k3JcyD7DuYB8bMnFQ5AzX0hGdbTjqLlI/JZxxvx8zt29sQs4kHqHyDgeXHSMF5huORY2yG7dGQMrkgeYPMZVUeSTbbutekFVYpFlqcauwDPIjK9ERAyc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MZDJslPA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E34D6C433C7; Sun, 24 Mar 2024 23:14:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711322051; bh=LvtZg5e0VQtOBT+DmVlIpjevxUc7VebV46SOEb3fPHw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MZDJslPAkCrZagIK7XdfnOV7jltirdp4cCCrHLXkONgUcvun/eQ/0KPeRp5KmAtOQ QnEYhChe4Y7PrYVHGCu3UOsnXcdwnnBGq7wFv97QH1WkOmEiz8+JkFK62//aa+9VRL /7xYCberxRIQKQQJkd3fiyma7pUqrFZH8DzVq8Lbu8KM/BQf5jUFBmfnWTncXSl5Pr HGZNNfexQWzr5JH+7f+cRL3I5lzfpLvPEgLx0fVyQ6Al7QBmQKRRveGN9thfbxqHav 9UyGtY9/IT2ObCvrjH2MAP0osGWKkHvm4672ZyzyWAzRsqWMDP2tGZ9liX2RXCEpez 7BMq4xm3G/kqQ== 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.1 124/451] net: blackhole_dev: fix build warning for ethh set but not used Date: Sun, 24 Mar 2024 19:06:40 -0400 Message-ID: <20240324231207.1351418-125-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324231207.1351418-1-sashal@kernel.org> References: <20240324231207.1351418-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