Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2713375lqp; Mon, 25 Mar 2024 07:20:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVVmjDQFgRyo8t/seGN5s8y1LLCWFy5lFzq4cfva/W/FKdr5g741shyofgV7UR2T9nOwHTug07jfiooZJwyEpqm4Wzi2mdE5SDGvbfwew== X-Google-Smtp-Source: AGHT+IHOooA2GJ7pDkW1IRD/zZ8DLIjLnDvJYpcW1e4mOv15zQPwfQJWuCmz8U0TCDciUFUhsfpY X-Received: by 2002:a05:6358:7691:b0:17f:6064:e839 with SMTP id e17-20020a056358769100b0017f6064e839mr4523030rwg.7.1711376426289; Mon, 25 Mar 2024 07:20:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711376426; cv=pass; d=google.com; s=arc-20160816; b=FU8mcr2bAetbp2AxnKgRjbe0NL16f8/K8xUGw9tTSuEALRby4j4yIpZx8MuJHybzy1 aiF+yqpdfyXTFprASYQkPiDASvKEiBorhrR3wK4naDXpaCOOFCrJIcSPPvGBIPra+AC2 3dBxijPcQsFDrvkdLzXytyoQQ7rHnLLyzhjzMSZuK21xk8mrxJQ6o9hnAsGA5Edh9+9f ZH5pfAOMnsMLnEzQ0H5vq9XbgyaxmlwGf59sA7mq1XPJFJ5+A2H+at4Scdw5BP3PK04O vkm9zy8vD58FF59hLxl37bPJZaGtmqySUUBf25mcim6AOhykbZsrRHL+T+MjYCN1eu9C dFdg== 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=ERupKc7jB5YL3/lTjS2NBhjiD1Ra8JGsVTmZrIDl6wN/qfKsEDm66lRfdBuZfyVVmY cG4NMIceI/6UI5RjVMrtmtjS6WnAVs+RLKGPNBGqv27tZLCMgauea7qOZd4qOxnrh2W2 Ssg1KAfhpgylCVfsXQY3K7+hyhWXqFzRzI9FIgHXMG9sFxrkQk/pd/bLhw/5N5FawnhN nYV1OgaAjzuFxqjcvt0IS/Be8uzZ6bVEuxSIMCDHmdCBbLSh4uao/UTmM1yAHQ4ZevWj 8BUKZ0cYlQQ70m9b+QxZuc++nVu8Dt/zFviycyGX7TYrt2HV9zks3mozUJCNTzBeOPMj zqRA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lKOVa0SV; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115630-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115630-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 f2-20020a635102000000b005dbf4efa1f8si7566740pgb.852.2024.03.25.07.20.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 07:20:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-115630-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=lKOVa0SV; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115630-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115630-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 25CD2B66553 for ; Mon, 25 Mar 2024 11:32:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 752A8254F82; Mon, 25 Mar 2024 02:50:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lKOVa0SV" 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 B560220371E; Sun, 24 Mar 2024 23:04:14 +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=1711321455; cv=none; b=mOF9M7dsvE4XC5tB8hR5S6Rl0sJe+SabZPhFSfYiDP9G/6CE6tP6fDibbXqxjIAli3wgtVoX4xO8t/ohlorcNF821Cv7Df3nUdphJgDEZx+QIhUpiQvOOvhhAnV1a2gDzRTkgjwudzV1G3M3ZMwZVYV29K2WvWGXqZk/b0ZW6u0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711321455; c=relaxed/simple; bh=LvtZg5e0VQtOBT+DmVlIpjevxUc7VebV46SOEb3fPHw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=e6Rx81wQxlHrEaGoqjpTgGnz7YRYwuBzxHViHZPuTcDxiaZBR/29LuTDL3D1FjRb7xpYUEecwmZkIi8R/X05LCWITNohHuoEQYgb4Pjb6KirlQKKdQnG7uAqTsU23kHJzUVZ0zVjM0qUiC1n+nuwu7zusibQYC2F/bnxZWh59bU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lKOVa0SV; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DFE0CC43394; Sun, 24 Mar 2024 23:04:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711321454; bh=LvtZg5e0VQtOBT+DmVlIpjevxUc7VebV46SOEb3fPHw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lKOVa0SVcBY7l0tlsQLT6FtEeU+Efg5RNfuMennxuVC2PN6FwFVwz7kWg8Nz07Zvp mtWipfFyV9WuhFyjthcZXsAS/FLi64bfIEE7SML4nSVzulTOF9blm24BEFgjeOD0SM Xor9zuuMgYBuKyfRjfwaXs16UulrGnqYgN2Q6H2ufdKFyHhEwEkrhR0auk6cWMlwev pgf278jfnFwQU/nXYP46x4yPuwzbQMGlIfqEgtSmQJIT+nbUc/WKfs41aRkBF1gRqD 0QoowKLSmBVJGXhvK/TpSPFJV5z2HMn2u1ZjzAvrTT5g6Po3wsWYf23nxdruwxNM6w UbEiN8LEwwqBA== 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.6 179/638] net: blackhole_dev: fix build warning for ethh set but not used Date: Sun, 24 Mar 2024 18:53:36 -0400 Message-ID: <20240324230116.1348576-180-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324230116.1348576-1-sashal@kernel.org> References: <20240324230116.1348576-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