From patchwork Wed Feb 21 15:45:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13565758 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 95408C48BEB for ; Wed, 21 Feb 2024 15:46:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2895D6B0085; Wed, 21 Feb 2024 10:46:00 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 212946B0087; Wed, 21 Feb 2024 10:46:00 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0B3E16B0088; Wed, 21 Feb 2024 10:46:00 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id ED0B96B0085 for ; Wed, 21 Feb 2024 10:45:59 -0500 (EST) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 869C21C0999 for ; Wed, 21 Feb 2024 15:45:59 +0000 (UTC) X-FDA: 81816236838.12.E8355C1 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf05.hostedemail.com (Postfix) with ESMTP id AE5B4100015 for ; Wed, 21 Feb 2024 15:45:57 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=H+Cr9eoL; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf05.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1708530357; a=rsa-sha256; cv=none; b=zyOqGlViacKZSJLulv+a3wBTWl8PlvXdLmFxGZ9bMHQDzfJ+NAlPlMZaM+5KrNi4JRJSCG iY5EUAYj++C1wElELR8KA89aMKUKhOtCsPwAsqyraZGH7aaBfF7LyNJvSW12L6TeHPWqAn FknrvFVa8u/L+KoyUlrOAqI+EYQ+q5M= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=H+Cr9eoL; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf05.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1708530357; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=I6ZtKdgLCvx1XPAa7SMOxop0Q2NoG9bWoXFAp/H8wbk=; b=EQ8IJRWDchYII8G6j76J7ijFgApjhNva31X8+eBO/l1paXrYGFjbo42fsAY7/oCPm4lLPg 3G3lDJZ6RysQ7L4XjZbXLjkW4PRg3x4o+MR2hKMeDxwz7M99INOj6xjMj96cTchxmn6JXZ kSJ0rqT4gkVaH7zC8MwV95Oq7Cw2d50= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 80EF661531; Wed, 21 Feb 2024 15:45:56 +0000 (UTC) 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 MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: AE5B4100015 X-Stat-Signature: fi3u58k6198xbw5x7gu5yjx7xo1gupqp X-HE-Tag: 1708530357-139497 X-HE-Meta: U2FsdGVkX19m9IBLtDubdF/wMeqQENwPLbRmF/5LRaectrWQ6OWNlHLhjUdr53Q2LIJPTWr6jQRP9djCvrzyEdTdgU5iAD5FVHv5z08rrSohkt3ltDwTbtfjLPj6GG7i6LBlYfvt9BLWdd8hGQ8mDtK3Fp2bKFabjetv4KrPq3kRXQ3H+rHYEDENBvG5fLO4aSdjCpWQ02bj4HvHYUIBXHjJtICnOI9UZA+csdHqKpSus0P/+S9PrkkGFDe6s6FnVzmcvkLFVemt9XqkrcixwLCl542x5TWZ9XfD1zSHMzllcYG7FS5cHU67vGqDj+pmVexhn3e/1ZdZo6c/I5deVWgWaYMhrg9/lo2IeOC59KmIihtoZHLAw9Ag9d3cvFieqPYbDN+oooqbzKodF0J7VxwoqqD/1PvsLURZoefT/LT1prU3m9cO8pr5AKZ3jTnyDzyInVBIhksdgGiFF0yFeNin08AKM7xVJI6YTqryts2Wv5lM8p/L8AwoT58WchankELRkAoHjY7fzPZaxowpvbDYm4Auj9GrnlhoFTDPFAXMm2uW0d2ZunPjiBtgT7ypD40uFbI4ewbRwe6K1g/Lvc7seI/3K2YKi93pU7hGDX6dSYu9KhvEcql96jj+AtwJJCFikeRNtGNc6EoJ9JBCMrdlwdI04hu2gtPgp04MX3tNeTgRXgmZFfXMVACnfhuXeM7tamZQxgV6awV2Yx7iFDCvlkqBYJPMdg9dxPU3E19hczLFqY98K8sKx9H3UL4iMRzWrhjE6R/Lat8u+rae/9GtSyp17cSLfr2pfZTwPP4jVlZUQSZIgejP/d1aos6H8HasOurBCHzo+SLcZj7/C27dV6I4b2Bg38o2w0NbwxtHDgy5iYfKtlXH27heAPIYDIGwAVjxQtArJczUEQ57WqCY75t6ckyVjDaKsny8zHAuw/oiMd25oGyukWweFTigZB6M/KfKsXV12ZvSnag LXQwTpMB 6g+IQReXttFe44RN701K2uzauaA+f+YTgF9GKchHN5XkxWNtAjZck0A85fnIfLS8W70f5+Kei82b0wZ7TpQ20zTRYXjh78FuXKVfiv485xeJZuoZ0+oT0HPg6ZCHvoQnOVHkha2Kwa/QJgGzpgL34D5RHqucI4RaIhyna573PetDlSBV5Pioj8UzN2CiF9/5kZIkSC/InHt8CRcmS4hSri0QLY1jDwHsHxLAWACOjistZGjpb+BUebqWbJpzTWMJofAe1SD+5Olo9vLQZuY4tO9lLblyDsTgMTemLqQLm5Bjstvw= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: 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 /**