Received: by 2002:a05:7412:1492:b0:e2:908c:2ebd with SMTP id s18csp556815rdh; Wed, 23 Aug 2023 08:07:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEve5rdmpDFdtU0OMyl4iHC0RKNVUGs3AaMBWkqh+MmTdOYR3LN9obl/C2Z/tWJYgRKz2eP X-Received: by 2002:a17:90a:6d65:b0:269:4fe8:687 with SMTP id z92-20020a17090a6d6500b002694fe80687mr19320430pjj.19.1692803261635; Wed, 23 Aug 2023 08:07:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692803261; cv=none; d=google.com; s=arc-20160816; b=VdpkHvXP5Z7rtD7iN59f8jsFrFIJvTEBfrkob0IEwBIJOc9V1k9rbeSE+ebmCFPJgC iDgWFDtjYL39/MB1CNztNiH011pTjplTqxW1OlS4dMjqz5d+vrwRb5C6mWeE+4gVGu5V WXOQMPdon29sAJ+aPrS91kXSUd72w0h/KoL4faEOf3BLlsmtjluRDDoDlP1MLEvlOTQs ac+CfPEpWly5M5+ubTjMop4CdpEGJHmsQ5doUnf3/+x26PDfJ+SsKavHiT1uzr8/DyMs 6Wg1T/1iYg1RvU97K0o0yqPMddftlASGjvKjXFcbtUIeAjo+BZYFWipg6ggasgGjQVd1 CXLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from; bh=9mY3aSS7IYIvY4s6/sLW1f5oGLgei05UFhv59YTkHrs=; fh=VWXNS6qvChDqokjK7mJJiGb+DCYPU2zaUFk61al9MJI=; b=A2LO6GjUt20gmetfPteMslfWkKnahfaQ5QSdLIw82fJHiv15ZlJ/F6WgnhRcFnmoUN w9zP0pZ3hCx1f84ILEBK/20JI7hkqzkzZIUD+UODPbAGDGJXaK2oiUL7krD7v+CGqGxT w8k9EEQFY0S7ONSWSsnsSNcDYuF1gqvTtJ6kS/wnwBqlGPfpbqtglOXGYCBeXQ+Xek6K 26hYo5saFZDIBAyzRddlW5765/wPchP1zGNuDyucQSRv1NsPfI6x1lh5oR/Dpv0r+UvL bVZ1fhu/NoXnjFjwC7Tf5Othdts/fBvbGKbyRxZfjP3FEkALh79mNcr8K2JE/CGtSgDp 4/NQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ls3-20020a17090b350300b0026b5a807042si14499983pjb.90.2023.08.23.08.07.27; Wed, 23 Aug 2023 08:07:41 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234858AbjHWMEv (ORCPT + 99 others); Wed, 23 Aug 2023 08:04:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234829AbjHWME3 (ORCPT ); Wed, 23 Aug 2023 08:04:29 -0400 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8A3BE70; Wed, 23 Aug 2023 05:04:03 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4RW4cz2GpGz4x3D; Wed, 23 Aug 2023 22:04:03 +1000 (AEST) From: Michael Ellerman To: Nicholas Piggin , Christophe Leroy , Linus Walleij Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org In-Reply-To: <20230809-virt-to-phys-powerpc-v1-1-12e912a7d439@linaro.org> References: <20230809-virt-to-phys-powerpc-v1-1-12e912a7d439@linaro.org> Subject: Re: [PATCH] powerpc: Make virt_to_pfn() a static inline Message-Id: <169279175548.797584.16810981257080808003.b4-ty@ellerman.id.au> Date: Wed, 23 Aug 2023 21:55:55 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS 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 Wed, 09 Aug 2023 10:07:13 +0200, Linus Walleij wrote: > Making virt_to_pfn() a static inline taking a strongly typed > (const void *) makes the contract of a passing a pointer of that > type to the function explicit and exposes any misuse of the > macro virt_to_pfn() acting polymorphic and accepting many types > such as (void *), (unitptr_t) or (unsigned long) as arguments > without warnings. > > [...] Applied to powerpc/next. [1/1] powerpc: Make virt_to_pfn() a static inline https://git.kernel.org/powerpc/c/58b6fed89ab0f602de0d143c617c29c3d4c67429 cheers