Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp14168lqb; Tue, 16 Apr 2024 07:34:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUjBHQbtN5/kthAUiVLYafTdt210VN2PcAf9Nlqvqg4ACTxNn0eOudOLhFSTHBoBfzCgHPqiJYpibpL4MvUImJsDv+UhM7x0FNjwSys2Q== X-Google-Smtp-Source: AGHT+IHGA4CIbAiwcUYkiPnoVCL4xszzXf1GnWyfCKIknb0/bmTHDnxxKc9ZepsGZd+f86HIE3a3 X-Received: by 2002:a17:90b:1198:b0:2a2:8710:5ae5 with SMTP id gk24-20020a17090b119800b002a287105ae5mr11600287pjb.14.1713278075432; Tue, 16 Apr 2024 07:34:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713278075; cv=pass; d=google.com; s=arc-20160816; b=XAXYs5oM8018t4nrRuwvrnVflHU38yAwuIYp1z8Sksvk4lAbR8yqeOBk0RXIN1FDy/ ++RkZRlY566JAofE1dL8LXnFKLg6QSHbnvrRzjUoRLPdzeK4BITYLIbvrQXQEOJoov/0 ke0cpJJNNXjFq5bX+R2++RsBlcyqGwwPq7ZmQ//v5IyWwjpC1G6LoBRqfx0C8ACVFidQ Q1YYcmY1bg7JAl5NdGgdzW+pmOVGEmhhvjyiutNHw9fQhWoKctWaf76tDDFYDO/PDsiB +8yEuZb5kEpnNQ+GkM4AJhBcX3pSeu/LJiFoxtdxGCivm+oVsgDCqJBXYNVsQdAPX3Hz 3Gyg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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=KPzLCaHC/pj+3rFajrw0i7S4P/VVkta4Rje0fImd0yQ=; fh=FbIngsAWmHS/EwVL63bDLdAc5uPWWnUAzcxC+3cExU4=; b=V2tTE7wCJyErM6m5GynNAgWUHJgfQcboZEp3qfH92deXhkrIiDx91HwMd9aLhvdz8x KBHazhYmCRfj3n1QPp3d6TJfzA9b7E7PTdvmSEFYCDTIDuJ9W9y/Pe+vOopuM8RbMrjT YRr9o0kka7ivvTFqYbC+++P3CDOvTbtK13JGnMGna9Tf21H9o32MD1HW1xc6JgWXcMe5 yHgRVia2cFwuV+17M40L/MKsJYYgMESScNcJkbJQ25OTk9zvxv9+L7FgvpZzrDBGhdOA ECSyX7mLSBKeLi2UDZwgnv8Mlb28RFYnC+pqVD1qnlaze3HZDGCFOHWyZmxc8Xri5nJl kQDw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=PhuHidJG; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=DwJzTEWO; 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-146976-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146976-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id ie12-20020a17090b400c00b002a52e9db5bdsi10040448pjb.38.2024.04.16.07.34.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 07:34:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146976-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=PhuHidJG; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=DwJzTEWO; 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-146976-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146976-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 528D6B25DB2 for ; Tue, 16 Apr 2024 14:18:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B9D8412E1C7; Tue, 16 Apr 2024 14:14:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="PhuHidJG"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="DwJzTEWO" Received: from wfhigh4-smtp.messagingengine.com (wfhigh4-smtp.messagingengine.com [64.147.123.155]) (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 8F07012D1EF; Tue, 16 Apr 2024 14:14:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.155 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713276896; cv=none; b=cMVzEpGD9BUSpx7Q46xQHb/sEfevZwtvtl3+hlfQOxfMs6tlUoWuvaPvI7Ud3aluzkHczy8ZLSGD8LutwyoiRQ4HcpEQk+8oUQW9hCFaTO9PB33P45/3KCr1Od6R90oGlv+3cIyyimU+VaZtHY7PH/RQkXnBXYV7sLvUBAU4tbI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713276896; c=relaxed/simple; bh=ykb7W4k1sAQJ+bAaSvIxWtB7tBpsRi36G1ivw8abnYc=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=giJA4Q/6iAn2uKSw7xdI624y4cfvJBeIQZ5lBILy3V+d5fpdVS3vNdh/lbwrhwcz1utKL7CCqgvgQizwgwHYsMUpgOaQpCaOoQmQFi3zCogFQUVpUAjdB7o8v7qYpWTbXAQN4t+lyFA38vNJvarGZ85OMZ4egfhRrY5WgP0GP84= 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=PhuHidJG; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=DwJzTEWO; arc=none smtp.client-ip=64.147.123.155 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 mailfhigh.west.internal (Postfix) with ESMTP id CF4801800101; Tue, 16 Apr 2024 10:14:50 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Tue, 16 Apr 2024 10:14:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc: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=fm2; t=1713276890; x=1713363290; bh=KPzLCaHC/p j+3rFajrw0i7S4P/VVkta4Rje0fImd0yQ=; b=PhuHidJG8VxEaleWcSvfT8RrHw TcYpy++V74uv3QKWGOlpgpgf+SyQ5ZMUDqJLv+ieUMsuc8Pmtiq++dNE663y9Uad LvrAN0HOtT2qs+A/f4aq+nVonFlt/VwdOkU2nanJjNa82ewBH8oB5aLebg7I9L9Q MQ35Lsqa1E3jBtPSDHEtJJYSzPk0kEH2oNsZ+DH7YzOAgG77pfREDjIKDZK0OlU1 ykJdeMBcVae2QG9+ALYmi6W5QL9dT2t1oSscxO7e/VEwRsVmEZ0C2f4Zbh9vjVw+ W7IpXT1f6uaR8m9elp7Eg6QbzlD/0IGMBHFJTDDTj/YgkNWa9g2+6a+UOAVg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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=1713276890; x=1713363290; bh=KPzLCaHC/pj+3rFajrw0i7S4P/VV kta4Rje0fImd0yQ=; b=DwJzTEWOX2Hls51YomwtsnXC6I5vZWVj1oEjCmZqd/w4 /BM9dctAypC3VAh4Oz4mY5kcs6zSW8fe8cAZRgBLT55bjA2fqIDMNe6WGNO2KRuZ Jjr3ZtAKKxCedEfxYPU1bazquw118noVHXdS6lyH410qPjgoLUJXE2hO07NqjAt5 8Hcs44ULBFzJak5+kCEL52Xk8RDeQY0GcG2jRLdtWqv3OJ6v8QIdpm0CMDrt/K9C lY5NoW7RWgLaOzRd+eqlsZnc4LwI2mzdxNykJ4pUQ57VU7MJEG9gzAjvcCM/7O3x +JWWrL+wX7/DQoBETaXJDPd5ndEqTBtJtmv+W+8xsA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudejiedgudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepjefgfedvgeejvdefudeuhfdtkeekvdeutefhuedthfegheelhefgleegkeeg fedvnecuffhomhgrihhnpehkvghrnhgvlhdrohhrghdpledqrhgtuddrhhhofienucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrhhnugesrghr nhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 4BA4BB6008D; Tue, 16 Apr 2024 10:14:49 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-379-gabd37849b7-fm-20240408.001-gabd37849 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <53d194db-c7d4-4026-9fbb-3b41de545849@app.fastmail.com> In-Reply-To: References: Date: Tue, 16 Apr 2024 16:14:29 +0200 From: "Arnd Bergmann" To: "David Hildenbrand" , "Miguel Ojeda" , "Huacai Chen" , "WANG Xuerui" Cc: "Andrew Morton" , "Ryan Roberts" , Linux-Arch , Linux-MM , linux-kernel , loongarch@lists.linux.dev, clang-built-linux Subject: Re: ./include/asm-generic/tlb.h:629:10: error: parameter 'ptep' set but not used Content-Type: text/plain On Tue, Apr 16, 2024, at 15:51, David Hildenbrand wrote: > On 16.04.24 12:26, Miguel Ojeda wrote: >> Hi David, Arnd, LoongArch, >> >> In a linux-next defconfig LLVM=1 build today I got: >> >> ./include/asm-generic/tlb.h:629:10: error: parameter 'ptep' set >> but not used [-Werror,-Wunused-but-set-parameter] >> 629 | pte_t *ptep, unsigned int nr, unsigned long address) >> | ^ >> >> Indeed, in loongarch, `__tlb_remove_tlb_entry` does not do anything. >> This seems the same that Arnd reported for arm64: >> >> https://lore.kernel.org/all/20240221154549.2026073-1-arnd@kernel.org/ >> >> So perhaps the loongarch's one should also be changed into an static inline? > > 4d5bf0b6183f79ea361dd506365d2a471270735c is already part of v6.9-rc1. How come > we see that only now on linux-next? Andrew merged my patch to enable -Wextra yesterday, and it appears that this one fell through the cracks with my testing, either I missed the combination of loongarch with clang, or I last tested it before your patches got merged. > I assume we should see the same on upstream Linux with LLVM=1, correct? On upstream, it only shows up with 'make W=1'. > If so, we should likely just drop that completely and rely on the > asm-generic one: > > diff --git a/arch/loongarch/include/asm/tlb.h > b/arch/loongarch/include/asm/tlb.h > index da7a3b5b9374a..e071f5e9e8580 100644 > --- a/arch/loongarch/include/asm/tlb.h > +++ b/arch/loongarch/include/asm/tlb.h > @@ -132,8 +132,6 @@ static __always_inline void invtlb_all(u32 op, u32 > info, u64 addr) > ); > } > > -#define __tlb_remove_tlb_entry(tlb, ptep, address) do { } while (0) > - > static void tlb_flush(struct mmu_gather *tlb); Yes, this looks like the best solution, and I can confirm that this addresses the warning on linux-next. Tested-by: Arnd Bergmann