From nobody Sat Apr 11 20:56:56 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6B94EC00140 for ; Fri, 5 Aug 2022 14:07:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240864AbiHEOHO (ORCPT ); Fri, 5 Aug 2022 10:07:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230095AbiHEOHN (ORCPT ); Fri, 5 Aug 2022 10:07:13 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD2B7CE1A for ; Fri, 5 Aug 2022 07:07:12 -0700 (PDT) Received: from zn.tnic (p200300ea971b986e329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:971b:986e:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 3234E1EC0682; Fri, 5 Aug 2022 16:07:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1659708431; h=from:from: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; bh=p9eP4wQyKgn8YTAYir5niDdY49i1y0JkoNqrfVjqtgA=; b=rKHisTEBxenkjCGSSjrfYCCrQnupDlnoSCBs5mwd/b8WBYz1IEnzAzM/31mAZN95q2H3hq MZF+gfCR7DidLMeU/0AIGiMV8ZWfKlSZqbMeZX6TNUcxjU+rWaqs/y6z/xVkYkSprd998e FuD7nHxfxoGjA00OUU27LNK+8EEWHwk= From: Borislav Petkov To: X86 ML Cc: LKML Subject: [PATCH] x86/mm: Rename set_memory_present() to set_memory_p() Date: Fri, 5 Aug 2022 16:07:02 +0200 Message-Id: <20220805140702.31538-1-bp@alien8.de> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Borislav Petkov Have it adhere to the naming convention for those helpers. No functional changes. Signed-off-by: Borislav Petkov --- arch/x86/mm/pat/set_memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/mm/pat/set_memory.c b/arch/x86/mm/pat/set_memory.c index 1abd5438f126..6a9043b6b8f6 100644 --- a/arch/x86/mm/pat/set_memory.c +++ b/arch/x86/mm/pat/set_memory.c @@ -1944,7 +1944,7 @@ int set_mce_nospec(unsigned long pfn) return rc; } =20 -static int set_memory_present(unsigned long *addr, int numpages) +static int set_memory_p(unsigned long *addr, int numpages) { return change_page_attr_set(addr, numpages, __pgprot(_PAGE_PRESENT), 0); } @@ -1954,7 +1954,7 @@ int clear_mce_nospec(unsigned long pfn) { unsigned long addr =3D (unsigned long) pfn_to_kaddr(pfn); =20 - return set_memory_present(&addr, 1); + return set_memory_p(&addr, 1); } EXPORT_SYMBOL_GPL(clear_mce_nospec); #endif /* CONFIG_X86_64 */ --=20 2.35.1