Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2443422rdb; Wed, 21 Feb 2024 07:52:37 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVEDTQKkL5gIXBYXZMguo9vP7lajM7515QLegeBMPms2UTPCMZkeeM2w4q4yUlmL4gpV6RWzt6jVJXr3At6T8pgefrv8yEWjCdnqigoeA== X-Google-Smtp-Source: AGHT+IFlAf6Fk6JskKfqInIo9RmdRWlT2d07HA7uZdZaFwb8QV1Q5gzlpjOVUMmm0x6ht+f1voWN X-Received: by 2002:a05:6870:e247:b0:21f:397c:bf51 with SMTP id d7-20020a056870e24700b0021f397cbf51mr3679373oac.25.1708530756865; Wed, 21 Feb 2024 07:52:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708530756; cv=pass; d=google.com; s=arc-20160816; b=Wq20/SSoy8wKOjK/v/JXLO3+AQ9/37fiRH9yI759q7BrpHSzhdIKtca924tw/bhy3g vV5RBGvgZN/HdDyddzRe+nv5m+AhVfGgYnshXn5Lj6+DruWxDxWVDpbqV3JWaGY2Z7lu ruKJLADYY1SxMc24ORpwd3B/Febi7GJTGBI1hh9V8otoX+8Car+RzG3gzypmmNcyurCW T0LngtsApAjOl+xf6D5VBuARmBvWebdFVWb7CTcBg7t5YzoZlkpMsNXY/Ir1SKjxeomG ZWcOjqCgxPY5B3CqPd+8A7crloyjjp/TlFqtzAvMwokAZhfZb8Onfi+CvZlrhJJFvaKP OOIQ== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=I6ZtKdgLCvx1XPAa7SMOxop0Q2NoG9bWoXFAp/H8wbk=; fh=miBHPha9xM31KmFfoK6LHVK4KG0Us/LUrPWThsBbmw8=; b=vla9smNUY1t04awMvBAL3ydan0mmzMMoUCPj5Xd30X3F3KurjsYOl60QsCP1QfA7zT dlkCBLmMfHNPNmS0GSq/I/P4jnpg7hXamVCZHAteKGtlkQi7GbSzFW9QoOcv1+VcLfB9 Tq1E4kDc7MzN2YssAsQVfOjBe0rqksVaRIO2QFqv7Ov2F1CLSs2W1uribb2UaoqLym6s Zn8evYZRYJ8Jg1ZC4O+LZ+PLZLgFtMl3WTpNqZB2RRnhAMQKqRReG4jq01ZZFwTnUsSV 2prRWrc7SwYRRxXzzgSNl4NgGyqDspRZ4cEDiuZBJ5g9h68H9dgwGSUsvlkvxbQOW3Pd uWyg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H+Cr9eoL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-75023-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75023-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 a65-20020a639044000000b005e3cdf125easi4329743pge.612.2024.02.21.07.52.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 07:52:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75023-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=H+Cr9eoL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-75023-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75023-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 998FDB2271F for ; Wed, 21 Feb 2024 15:46:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7DD9581205; Wed, 21 Feb 2024 15:45:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="H+Cr9eoL" 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 97CCA80C18; Wed, 21 Feb 2024 15:45:56 +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=1708530356; cv=none; b=pKVeiy5Uqxmcmcsk8BomGXoc2dTNZRwIqEPxjIp0IB0CVX/6zYTx9+iCYUZJdPSMl8hWbMq+LGZ08uJ8qlGYQOUnJmSlQboR9/wKCmxRu87M83xilABmE6JExbqrCBsqic4SxCExvWfjgx23q9q0Sz7GwWPSkggz7LaMckNjyII= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708530356; c=relaxed/simple; bh=P/mpas3J/TkZfCO9L2DgIxqYbys+a0Vsm10ZNtd+lcI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=l5CquHOroAwPWneqP1i4b2irSV+GzxXlHh9VFJHNoQ3VymDNPZf6rbuLw8Rob2SPrsqBEDWQ2oYeAAFrh/ECjscRpJDmtGscuC8HNQ0fuGLKipx/NZtH2kVsqryJGFO+loMRqyz994ZCvqXtTEXJf/ZYD9YVIFzSWhyuGhX7Muc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=H+Cr9eoL; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 530DFC433A6; Wed, 21 Feb 2024 15:45:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708530356; bh=P/mpas3J/TkZfCO9L2DgIxqYbys+a0Vsm10ZNtd+lcI=; h=From:To:Cc:Subject:Date:From; b=H+Cr9eoLl+fXedgpLYqZMW5afOoTadBK1bLxge/KlxopT+WqCKozCkU2qcX1fAjN8 Vq1xRPwdybtci4gMRXHIEYUxO+dq6p6L9dWxPs4qhOhk9/b30VB9tvupItkoa31+5l II9E+f2oAvzDWAxpIe/JQbIn2es8Gq+1bwNP59Jb83zlA6c2W84ziLOi93erh5MDuc Yy9BuUDI6qS0fEkxJXaMJmlPwaN2KxoKtKQJ/msnTfkwNWMklyJcIb1xlCri7pmKb4 ha9IcknixFdeKHRDb6RgtK4dznORynMDrgf4vcGFMhDQtIPtvYwb/RSfQFg5iYLTvb lnCBhOJN7z2wQ== From: Arnd Bergmann To: Andrew Morton , David Hildenbrand Cc: Arnd Bergmann , Will Deacon , "Aneesh Kumar K.V" , Nick Piggin , Peter Zijlstra , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Ryan Roberts , "Vishal Moola (Oracle)" , Alistair Popple , linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: [PATCH] mm/mmu_gather: change __tlb_remove_tlb_entry() to an inline function Date: Wed, 21 Feb 2024 16:45:21 +0100 Message-Id: <20240221154549.2026073-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann clang complains about tlb_remove_tlb_entries() not using the 'ptep' variable when __tlb_remove_tlb_entry() is an empty macro: include/asm-generic/tlb.h:627:10: error: parameter 'ptep' set but not used [-Werror,-Wunused-but-set-parameter] Change it to an equivalent inline function that avoids the warning since the compiler can see how the variable gets passed into it. Fixes: 66958b447695 ("mm/mmu_gather: add tlb_remove_tlb_entries()") Signed-off-by: Arnd Bergmann --- include/asm-generic/tlb.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/asm-generic/tlb.h b/include/asm-generic/tlb.h index bd00dd238b79..709830274b75 100644 --- a/include/asm-generic/tlb.h +++ b/include/asm-generic/tlb.h @@ -600,7 +600,9 @@ static inline void tlb_flush_p4d_range(struct mmu_gather *tlb, } #ifndef __tlb_remove_tlb_entry -#define __tlb_remove_tlb_entry(tlb, ptep, address) do { } while (0) +static inline void __tlb_remove_tlb_entry(struct mmu_gather *tlb, pte_t *ptep, unsigned long address) +{ +} #endif /** -- 2.39.2