From patchwork Mon May 22 07:00:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 97092 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1256993vqo; Mon, 22 May 2023 00:06:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5bCXH+DBk6d3sm6/khImPQr0nfczEKLrfpQ6P/yW0U/W6yXilc+xW0B6fftxV6JqpMRB5A X-Received: by 2002:a05:6a20:1444:b0:103:73a6:5cc1 with SMTP id a4-20020a056a20144400b0010373a65cc1mr10778729pzi.4.1684739164716; Mon, 22 May 2023 00:06:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684739164; cv=none; d=google.com; s=arc-20160816; b=vsuqssvzEZs0AjVWXASRXGoUU7MDFegNHfouyjptDItHIkLyqB3y5OzqeJckmVojGr C0BRBwBMMqeiHa3dYaSTFBYvtNQtToHJ5aM2xiV6IDWfMBiaENQquswHjeoMOUW4xRji /t34TJbu0fKeaDrEySo+BaQdAvlliOeC7HiuxQ5wCK5aUUO5welUEsfnHr2yQ7iNvP0P LDyspJMlKT40bqauUK+/qxUE73fTQzr3vO497h+DTuVpUJlF+ZwktFzizbc7SbdddMQ7 WqxM04s9TeWpvINWXNvpW+CKYyWA98cF7eGHstYjViZdiKrg97NwuGVc7vudleZoM2LC hKmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=H1mJE8PBb75X4TbUyJXZ6L55Fw+NsuGtTu+nI/l3Cvc=; b=gRoAdPLvLsKgUaU09fUoiOWvjrroM2jRvhQlFhpFMT/quMMLihGLbSh9e4cIcMDlQa kjXx6YoOVAkJKRYF3y6K8MPlBL3fn2PdicH2fEw+kJDJPdDuQFNyOYREFiA0QuBRiXZH y6LOAC1Fk1kyPcfCW1YjV++i9o/fvWSbtUMrLGoPZ52uAyM2IkEoOZpfdXOoYuZSVdyU 2aWB18n2EWdEtPaDqgI4E5suPQLXH7sfuojiYHxALymGioSCN/Cd8W+JDRc4ahouYWI3 /4UqxexYdNC7wpbOGceSLdUtDv9LIsmR8jpJujehrtyrpMy8WR2L9N0rzJPQxkVG8Fi6 Gy4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FMR+Qlxw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v11-20020a63b94b000000b005073e333addsi4182147pgo.390.2023.05.22.00.05.49; Mon, 22 May 2023 00:06:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FMR+Qlxw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232312AbjEVHCH (ORCPT + 99 others); Mon, 22 May 2023 03:02:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232147AbjEVHBE (ORCPT ); Mon, 22 May 2023 03:01:04 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58446E9 for ; Mon, 22 May 2023 00:00:49 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2af316b4515so17193821fa.1 for ; Mon, 22 May 2023 00:00:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684738847; x=1687330847; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=H1mJE8PBb75X4TbUyJXZ6L55Fw+NsuGtTu+nI/l3Cvc=; b=FMR+Qlxwuc8HLvz2Un+03lMzADefhZtZYcE4XHeTZEM0NlyayLDLr/ghrIPr4wOfsn hd18jrfSt0sSLwyi2R+kpdFTUKZrJ+BZ/C8tqM3Dro15MT0Bz2r43LqkO6JTuURAVyjo Hb5ibuaMMZUbyrbu0TGj+c4eZkPKyBY2Q7Hmx1HpmabTY9nj/7nqGyXR7uNb2h4G+5o+ IbpEDIbdkQb08eN8cpfyD7jW1r5UTuEKzmsjHWQMxcDTMqfGNaZaaT25Z3ATIrIWcChT 9UniGw6vl1lHpSHdcRd6BKV3duDmePJf14FnN89u8aN1cFzRNUW+g2/WjLxXlTSI3LHB 9xcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684738847; x=1687330847; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=H1mJE8PBb75X4TbUyJXZ6L55Fw+NsuGtTu+nI/l3Cvc=; b=aCcqD0iUT72iLePKJ/flZtKH7JAnR0KNCLicbpZrs2GjuYoD2J30pF7pGA/NHM5TRn o8l+/ss81iyKhpoxtHtMwNIS7ZLu0D+iIJ7XVV2Kqn66rkqBL2DUqFFNdVQB+vyk2YSK 286r9K65jqQoZgc3kQCvwgpYwtvx6BW/AhwBPna9EH0e4WzyByNdqt8VgCKhBwV/tew+ UvQzwqdI6fE0Y6oiQpV96ulvvupHil9fz+vw2g29eUZtGenhqtNlQT3F3/nboG5e4/HX Hp1pi+Abt/WirsLj+oOD1DIIkk1oSHyLWYGtP/3CDbpPe7y2w5+exCWPyk4YoellI+Xq GvXQ== X-Gm-Message-State: AC+VfDy075tXLqsR7Gij6sv6viS+ILOxcOeLBBJbvs31FXHYU8qwFyTH 9WeQaedBnYPaPApcy+KBOk2fW/HQWy2rVTWYyl0= X-Received: by 2002:a2e:a40d:0:b0:2a8:a5b8:184a with SMTP id p13-20020a2ea40d000000b002a8a5b8184amr3297249ljn.40.1684738847083; Mon, 22 May 2023 00:00:47 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id q4-20020a2e8744000000b002adb98fdf81sm1010187ljj.7.2023.05.22.00.00.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 May 2023 00:00:46 -0700 (PDT) From: Linus Walleij Date: Mon, 22 May 2023 09:00:43 +0200 Subject: [PATCH v2 08/12] arm64: vdso: Pass (void *) to virt_to_page() MIME-Version: 1.0 Message-Id: <20230503-virt-to-pfn-v6-4-rc1-v2-8-0948d38bddab@linaro.org> References: <20230503-virt-to-pfn-v6-4-rc1-v2-0-0948d38bddab@linaro.org> In-Reply-To: <20230503-virt-to-pfn-v6-4-rc1-v2-0-0948d38bddab@linaro.org> To: Andrew Morton , Geert Uytterhoeven , Vineet Gupta , Catalin Marinas , Will Deacon , Arnd Bergmann , Russell King , Greg Ungerer Cc: linux-mm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-snps-arc@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, Linus Walleij X-Mailer: b4 0.12.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766577054409755743?= X-GMAIL-MSGID: =?utf-8?q?1766577054409755743?= 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. Acked-by: Catalin Marinas Signed-off-by: Linus Walleij --- 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 0119dc91abb5..d9e1355730ef 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; }