Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp10099951rwr; Fri, 12 May 2023 03:58:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7U1B66DB2ryy9FhnE2scxmZKCoJe/rE9xXdD5/DHw/D9CJZcsWGfnIP4gOzDfklxnck/3A X-Received: by 2002:a05:6a20:12d0:b0:102:f744:a708 with SMTP id v16-20020a056a2012d000b00102f744a708mr11592816pzg.35.1683889107988; Fri, 12 May 2023 03:58:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683889107; cv=none; d=google.com; s=arc-20160816; b=El+U1zsMQBFU5GWGrALNFFQW8XnDhNgUQ+mBmVPu13/zKdY5q+aDnJosv/wumJRsAk V9Ck8uV+vVi0PM5Qm8iRSTjWXjJrbSAMuruJAtLJwIzHKAh6i/NFr1FSWTf7v0TcNY+Y S1nnLk7M0kvvgvgRobQhLWjYiU8xVy6IqqQsdFYcNLsAT2lVagnw2N4woBymIEDvjdtf YiJzMpnQVIWmZtKVtJBUN56C9p7+qDxVrIQikttledZvb0RCScZvOifcYuA3os0lxBws qYGZ/8qr56tMhdVdKO+EfNWiEeFwChPgp6I2H5hwC9ZaUhmnGoVcZWuScngDaPje1PdR yprQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=iq+z4PKYXPQVOIey9QG+JlZ2+WriwL4/YK7AH6Uh1vY=; b=Hpy+emc2T/dAXG5PtiyVqiCW+zFGzkGiH5J7kTm/tSbnV3Vgo3s7uOONvrnrRlWwbJ cR5mpmwNjZg26uRcM1a1Kg572qcMreil74UK091mpXbZaLhzXbBqrN+rm/8GaiNTquE+ p3GPabxDEqEaQkVvX2+ZfHPX0PrfNtb2dAu1MtGjISBpjSTbpDEL9qpkKW3I80CVyv/E yuZSBY8UzDyeeLYt11i7dtAzosmD1fw7gZUFCykRqRyKpZBZcmcFJ1gw3+aO/48EqEZc ZvE/vRYEEGbI1XdQ8zTcqRqmYM1qXui58A/vwgVYn8z2R/nnlnUYcdsTjRrgLfqBwKzY TLrQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b197-20020a6334ce000000b0050bcb8e3a8csi9015448pga.828.2023.05.12.03.58.13; Fri, 12 May 2023 03:58:27 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240811AbjELKoE (ORCPT + 99 others); Fri, 12 May 2023 06:44:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240810AbjELKoB (ORCPT ); Fri, 12 May 2023 06:44:01 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E3C9268D; Fri, 12 May 2023 03:43:59 -0700 (PDT) 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 C659765534; Fri, 12 May 2023 10:43:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4185C433D2; Fri, 12 May 2023 10:43:55 +0000 (UTC) Date: Fri, 12 May 2023 11:43:52 +0100 From: Catalin Marinas To: Linus Walleij Cc: Geert Uytterhoeven , Vineet Gupta , Will Deacon , Arnd Bergmann , Russell King , Greg Ungerer , 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 Subject: Re: [PATCH 08/12] arm64: vdso: Pass (void *) to virt_to_page() Message-ID: References: <20230503-virt-to-pfn-v6-4-rc1-v1-0-6c4698dcf9c8@linaro.org> <20230503-virt-to-pfn-v6-4-rc1-v1-8-6c4698dcf9c8@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230503-virt-to-pfn-v6-4-rc1-v1-8-6c4698dcf9c8@linaro.org> X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Thu, May 11, 2023 at 01:59:25PM +0200, Linus Walleij wrote: > 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 Acked-by: Catalin Marinas