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 A7E2BC7EE29 for ; Thu, 25 May 2023 18:41:16 +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=b00FmFLUYIzePSIi7Vhmzvk509ub06bgLoJf97P8oHc=; b=TKD08sY576QkUp Jw0TNBFTz4Ey49kU125NyfPEPqZczsMoUXiHFKCi4R7wLGGdJhaKuyO403kvAGKGLmuAlE6m/TUc0 YRqePzYG1hElMffZz4z7QbOIpXbceBKmwGz1R9PjEFdyvQ7m0iPOuymNMD2bV1EW59RJag2fN1NXp JIhtAFUlFsQLreclPudg4xaEH2JSNkzDsi14dnCNTPpPJqHDXhs1yEYgXWuQuNVawkwkNyI+IE0iW Js6MW7b7hxHM2uSavqw57VOqDnKuBIZxq49RKkK4U+OVzbxmtpgXLRFSBWfbeCkYgaZbiMqqXXQPw Pq36Ihs6WLLg7e2zP1Qg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q2FtK-00HS21-38; Thu, 25 May 2023 18:40:50 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q2Ft5-00HRwo-34 for linux-arm-kernel@lists.infradead.org; Thu, 25 May 2023 18:40: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 8CEE460F13; Thu, 25 May 2023 18:40:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5CAEAC433EF; Thu, 25 May 2023 18:40:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685040035; bh=gXwRhtRsYouFNBMlk7S8phDmvO3mR2uoyaYBy8rdqV4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PIW1y+grPdpJGoU49IfAjCLPDxGIW82VdRQoatHG0j8kTuqXM7G19iDQ+XscQ+Aug Fz4ScrqLa+2M+SshqZn2BpEHTl9yRgU8T9mk7bpo/UyI82fIq/Zq1p/i1BRjAJAcL3 08XtsAi4aY8kfDJmXqTgijR+GBv6HOTJEsdj1T3zU0aTZxDJLJgMwTjmBObAwyMZ95 tCCjPnAm3vpXQcTPGwdw2PhcfIsg7sCGggbZ7LvgWwgj5mKFNwcSJngHVb3DRrOxrb VssNpU1cACi/paqfJ+cByWNpXNEKCPkZfYwTV/wk2wa+qN5EOSWPFShUC4T+Z91oOf B4XFJy/J2ty2g== 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, peterx@redhat.com, hca@linux.ibm.com, dave@stgolabs.net, vbabka@suse.cz, mike.kravetz@oracle.com, willy@infradead.org, joey.gouly@arm.com, jannh@google.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 5.15 32/43] arm64: vdso: Pass (void *) to virt_to_page() Date: Thu, 25 May 2023 14:38:43 -0400 Message-Id: <20230525183854.1855431-32-sashal@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230525183854.1855431-1-sashal@kernel.org> References: <20230525183854.1855431-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_114036_022973_1E10161B X-CRM114-Status: GOOD ( 14.30 ) 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 a61fc4f989b37..55dd15c9745da 100644 --- a/arch/arm64/kernel/vdso.c +++ b/arch/arm64/kernel/vdso.c @@ -314,7 +314,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