Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp211676lqe; Thu, 4 Apr 2024 04:44:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUF8PZWo0ZOFLC13Qav/oaIXRMYbcPZZlIzI9dV3j6AIFvH1Ln5EHpkU5G9vhsVwazPJOA7ifBkkwbE8BcH5IUB0nxkoQKIDK3fkCOvcA== X-Google-Smtp-Source: AGHT+IFRMlB1vrhiXIn/f86ARfcmT9oAXp6GNSqZzInM7CHPhMkMAzX4vu97RzLC9Vo5BmQjhgn0 X-Received: by 2002:a17:902:d403:b0:1e2:a467:1b6b with SMTP id b3-20020a170902d40300b001e2a4671b6bmr1490002ple.16.1712231091404; Thu, 04 Apr 2024 04:44:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712231091; cv=pass; d=google.com; s=arc-20160816; b=ah7/VFxpzLSXuauwzaJm3EJrekEKUxpRgk9DJV3vHLRXq+0tz16GXgKBrHluKoKkDr /FCZn7cMkBM6W/GnImRSrPLBEbZQauHRhmm3c/9oL6RM4xnJiseW1O0frZtAibKWDsN8 sF6yjHNOMb3eMFTwrq+bQi19WZhUMMi76Mle428eKfHsoSFzJxvf3Ld1JPh5Ue8djphY GXYkWN/FwTZicycHka13vbt1DTx8+EG1fg2/haMsEBAJ/h8PgRcWYsffsEBesWFqJsK3 uYQd9954qmSdIOi7xuRGBtXmYFMhRyqJTHxo2p0W+3rz2kHKzJ5B0KaAwHFBJA8viAK1 m+dg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:subject:cc:to:from:date:references :in-reply-to:message-id:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:user-agent:feedback-id:dkim-signature :dkim-signature; bh=1CDCHaWEhOkiYy29sYtgzdL6T7tUW4lcGYamlcwuiRA=; fh=5FaYWLnBcdHfxHqzApeDHOE5qkjSp1SBrgZS5GV5Jvs=; b=m4pPWZ8ECJlY1zY8wqBlc5INPglD6VTkBTljP6LO5mHzmC489qzbbfsycNrTNhiOiS G9tiDmmsJapy1Se9vPC6qojyg0DPz6fbHIHLIkpeerZQWeTbqYnJb62SCRmlUOWaiCGA 3ZROs1/LZPPjHjgwnxRgfDdPYkPN4+hcieQyVz6UHlgd6LyG96sw4QXAPCCsqxBGkKgg 0sMUn6tfWcQj1KQSSf/FI+oZhbP8X5nL3WYigksbqAFCgAK75A/S/0pOUWOC+JtTQdVW 8GMColQKDhYCtA2Jos1lI+YHYfm3kfZmQd1PLsti4YzPzkOe/9jnrBAN5pRO26z5VAXb j46Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=CGoMWAsM; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=lFUVoPzS; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-131322-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131322-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b15-20020a170902d50f00b001e0b3d94bd6si15726184plg.564.2024.04.04.04.44.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 04:44:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131322-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=CGoMWAsM; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=lFUVoPzS; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-131322-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131322-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4290928A4AF for ; Thu, 4 Apr 2024 11:44:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9AD1A84A4E; Thu, 4 Apr 2024 11:43:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="CGoMWAsM"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="lFUVoPzS" Received: from wfout7-smtp.messagingengine.com (wfout7-smtp.messagingengine.com [64.147.123.150]) (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 392E383CA2 for ; Thu, 4 Apr 2024 11:43:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.150 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712231035; cv=none; b=nZQt7Iel8GofToEs0quMhutOX98vUzMhzj6LOy/ya1h6y4fDQe/VvcrVIhWSf/xSfvJ8txIOw4DybLM3hVnzUmiRpAEuOHd+tTmfu5qd4Sd5RpD/HMmatwHJhqYjIV8BA0XkcekpXCgjOCNu5HXpZykv1Jgu1BIbQtPziHGsmzo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712231035; c=relaxed/simple; bh=JS/gyrihL+kmuZx19if6yfZwNbw5WpGkmW5rUpwhV1c=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=mwnWsXR4xep8WwqEgVEihW+QzVFuDFhjIqFux6v1ksTF5iLuxE+kPtWfmkLRHNzYI1zIrL3TFruRguW+iDhatYePoaVVNAejaDlCb6gnKTNSvyXM8w/RHX7Yh1f8ULpHEJEjxFbmUGwSlLeshycLpuIh4MSCxg1Ua9d7xMwBdsM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=CGoMWAsM; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=lFUVoPzS; arc=none smtp.client-ip=64.147.123.150 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.west.internal (Postfix) with ESMTP id 87EDE1C00089; Thu, 4 Apr 2024 07:43:51 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Thu, 04 Apr 2024 07:43:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1712231031; x=1712317431; bh=1CDCHaWEhOkiYy29sYtgzdL6T7tUW4lcGYamlcwuiRA=; b= CGoMWAsMcxnS91IP2ezijTguxET+DbB/PlHjKKDN272tv37GjDpNXaOywim5Gsrk aqx2Wt0nZorSAPAr1yQaGdruX5+7A+UkkwGNNA/KZwX471xoSuV5qNuK5RjVx9if 0Mn9lWFi2NgjfmobKQ56bGyOu3vaUhuXNDCRLza3BtXLE5XIVycUZ96LvI4f6daM QGwB16ScbhKDW2J/veuk50i6C4HmckL6Wvoi+5JwmyjoZp7CxgTzU+Vd7XLLuz6F 2Bs7E6XFGMReQUFLAWoJ42B6uV3+UZSrASFlk/qJBxssqonexDaFNGAWLEhX88UK RFixypeC9SgfjnuvHGb5Xg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1712231031; x= 1712317431; bh=1CDCHaWEhOkiYy29sYtgzdL6T7tUW4lcGYamlcwuiRA=; b=l FUVoPzSYVN/yp8KUfA519NK13OXcwH7OOVsJuD1VxLqrM9Gty33ekJSFhWRMfK4Z RWumwKWHpEKYNQJj2MLL9x51COonCbzikphr22HegyCOQoom7DGwlrzMtQQ67q7g IK9edbvGig74BPRXMRoXp0ECZMmAjluSmH0G4zlZ5y9fI3XatkZZcHwkk3R19sxl RUqN1F5loLbFfeCjDaiQhYtXwyiyYHghZpCak6cdanKjdjDTGfPoCK2FMnIbqfFf B804BMqlVaC73DElyBQ9XjZA6bQHDKk/NoIOptn6YIIllNvLmJrxaP9UQbNJb86/ NbUZFPdE0T+RqTo6Xg4xw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudefkedggeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeegfeejhedvledvffeijeeijeeivddvhfeliedvleevheejleetgedukedt gfejveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 57F08B6008D; Thu, 4 Apr 2024 07:43:50 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-333-gbfea15422e-fm-20240327.001-gbfea1542 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <6f79f3bd-e60a-484a-92b7-f6a26f845809@app.fastmail.com> In-Reply-To: <2ffc8633-6ed8-4641-bd9f-313645dfff51@csgroup.eu> References: <20240403080702.3509288-1-arnd@kernel.org> <20240403080702.3509288-19-arnd@kernel.org> <66a1d5f1-d9b2-402c-826d-955370288037@csgroup.eu> <2ffc8633-6ed8-4641-bd9f-313645dfff51@csgroup.eu> Date: Thu, 04 Apr 2024 13:43:29 +0200 From: "Arnd Bergmann" To: "Christophe Leroy" , "Arnd Bergmann" , "linux-kernel@vger.kernel.org" , "Andrew Morton" , "Palmer Dabbelt" Cc: "Dave Hansen" , "Noah Goldstein" , "Charlie Jenkins" Subject: Re: [PATCH 18/34] lib: checksum: hide unused expected_csum_ipv6_magic[] Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable On Wed, Apr 3, 2024, at 11:03, Christophe Leroy wrote: > Le 03/04/2024 =C3=A0 10:58, Arnd Bergmann a =C3=A9crit=C2=A0: > >> On Wed, Apr 3, 2024, at 10:41, Christophe Leroy wrote: >> Yes, I usually prefer that approach, and I think I tried it first >> but ran into compile-time problems because csum_ipv6_magic() >> is declared conditionally. Let me try again, maybe I misremember >> what I did or I can remove some more #ifdef checks for this. > > FWIW, before replying I did a build check with pmac32_defconfig=20 > (powerpc) with CONFIG_NET removed. I was able to build=20 > lib/checksum_kunit.o and objdump shown there was no reference to=20 > csum_ipv6_magic() inside it. Right, got it now. I was confused a bit by CONFIG_NET vs CONFIG_IPV6 given that the common definition for csum_ipv6_magic() is in net/ipv6 but unlike other files there still gets build when IPV6 is disabled but NET remains turned on. I've done a little more randconfig testing to verify it, sending v2 now. Arnd