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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 35259C7EE29 for ; Thu, 25 May 2023 18:35:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=P46tRSYebOHiuMGfRjTmz/6tP23/oCBdCUeNiOdDGwk=; b=JiOrKLo+ThBBYc K/oICVEsIkiGmRrrKnh6m1xcZiYQFqlW77bt2OG4CrmQIfiWrMedId/SR5RcdVztLfohrUGU4sqe2 +4RWYfL+HqsgKtrqqy+jJsvTx0Wa+KeUH5wRMKA9IUgOgol0g4nL9ZTlAERVMTJxrkmv5kTq7xKo5 XYEap/r42tZ3rX3u8bUvFDe7o3irRy9BFI/bnlohiFbesJp2jz+URjRfn4VlvEVgu1TxIENc9KOZs NyP3Eo1EYvJKzY8cMiEEUgPjpfaD17zDjHBvcsftWSu3vXSaCv/AHdiJNxAAT2ISPr+mXl62gi2B/ p/rPf9T/iPLShur4rocA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q2FnX-00HPlV-06; Thu, 25 May 2023 18:34:51 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q2FnI-00HPgP-0p for linux-arm-kernel@lists.infradead.org; Thu, 25 May 2023 18:34:37 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AC480648BD; Thu, 25 May 2023 18:34:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5218C433EF; Thu, 25 May 2023 18:34:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685039675; bh=DrIOmp9TaBfRxEIlICSLUZcRJY6bSl9wUv6235PC/mg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ew0Kz7b17tzre7oddcgXM0es3TJHSnP1qfVA/nH8iW91M++/vM2kQKDtHT/3hGMdN dHmXNPS3JQyhbCqCiA+lHmKt0n1dz7jEkau9CSaa3trdKb9GT+2gxXTYzgV4NVhOJA YeD8289NEiUY0PnZHCL4cTLYjY/ceKRvOCSyBmPtcgew1158sUVov3wxo/JKWVHSFl 6UBukxxV94ja64mR3MRH976em5gYnWOHn8vYBjROZid0as2FVY5k5HetHY6SWQahHW qg/IazzZgRehpu3Z+2wdm0FTCwdAo+dArgGlmDoEQ49wKDMHFmU4rajmpbidh4IvAB A096tV7Vo27CQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Linus Walleij , Will Deacon , Sasha Levin , catalin.marinas@arm.com, akpm@linux-foundation.org, mhocko@suse.com, joey.gouly@arm.com, peterx@redhat.com, hca@linux.ibm.com, jannh@google.com, mike.kravetz@oracle.com, willy@infradead.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 6.3 44/67] arm64: vdso: Pass (void *) to virt_to_page() Date: Thu, 25 May 2023 14:31:21 -0400 Message-Id: <20230525183144.1717540-44-sashal@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230525183144.1717540-1-sashal@kernel.org> References: <20230525183144.1717540-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230525_113436_341560_FE528506 X-CRM114-Status: GOOD ( 13.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Linus Walleij [ Upstream commit b0abde80620f42d1ceb3de5e4c1a49cdd5628229 ] Like the other calls in this function virt_to_page() expects a pointer, not an integer. However since many architectures implement virt_to_pfn() as a macro, this function becomes polymorphic and accepts both a (unsigned long) and a (void *). Fix this up with an explicit cast. Signed-off-by: Linus Walleij Link: http://lists.infradead.org/pipermail/linux-arm-kernel/2023-May/832583.html Signed-off-by: Will Deacon Signed-off-by: Sasha Levin --- arch/arm64/kernel/vdso.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/vdso.c b/arch/arm64/kernel/vdso.c index 0119dc91abb5d..d9e1355730ef5 100644 --- a/arch/arm64/kernel/vdso.c +++ b/arch/arm64/kernel/vdso.c @@ -288,7 +288,7 @@ static int aarch32_alloc_kuser_vdso_page(void) memcpy((void *)(vdso_page + 0x1000 - kuser_sz), __kuser_helper_start, kuser_sz); - aarch32_vectors_page = virt_to_page(vdso_page); + aarch32_vectors_page = virt_to_page((void *)vdso_page); return 0; } -- 2.39.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel