Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4993922rwb; Tue, 8 Aug 2023 18:21:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGHVgUApaz6o2FPWjynQoX4ual46Fic+0cHtmZLhuWj+/uCjFETkY0aG4IeGL8fUQg0GvVF X-Received: by 2002:a05:6a20:7fa9:b0:137:23a2:2b3c with SMTP id d41-20020a056a207fa900b0013723a22b3cmr1618586pzj.49.1691544080403; Tue, 08 Aug 2023 18:21:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691544080; cv=none; d=google.com; s=arc-20160816; b=a3kMsERMx7xbs3iFDFtN7pK7qc3ihaC5yYsMjv2Ufw18gWDImyE+A+fB2MfziNdYL2 Pt6/rYEpI44ZxcrJqEJbs8bNP9IfIax0FRa+IG+0fw7IH5HYG0p33r9XWm5QsQIM94Yg nUD699RQCJBaBO6z7OUMu2maFKzweEyZqSmfymWHpKx3I9BNleMo2qN0fztDBLG5tOGs FN3DKBa1H9Zojrj1NdgryAqYpeUQzzqSf+Hk+u3nH/x/UrpibWulW04ArgXK4t4rYVvG q1RiW1rHjQv0+sHx4ZX3TgzfeV7hpDRJVEc5O3H9MZt/+X4QNYIJQ5ohhHSZLYqTGF8X F0WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ZYorVlZ1+4OOrbQX1pd+9MxK5+MW9VClnR1wyzV8Z9g=; fh=SYG3RdAhP5RXL5jLjf9jdifque3vDk5NsTJkBv7mwKM=; b=Nqll+2buSJbdJH/JY3pq7VtwgchRMJmJ2IQ/qwLzLyqGboE+tCbG/YbHwtxmIVlzBr usq/y8M71hr/OxQYKfM5B+KXA2mCqEmZhWjwmuafH3hO6U2ejYhGA95d/B29CtzqYHhZ Otpaf9Rlrq8LuVGYo9SD0CwNrCAS1Ma/dvfEfjZMWhjYiu4eJkw62zgpGoOBy2ADpzoa wiumfa1JJDCTveTfaZB/J0BCLQ6As4vRjeEUqNuOOcZkgLCT/19W3ehK8z7E38Jy/mRl XZm8yxX669ZRR/HhMhBeBQh960RRDY+TkKfnU/tzU6b4f+Ng+ESMgxcuwHEg77Z6RE1/ 5qyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JgAwzxI3; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id by4-20020a056a00400400b0067de347ee12si7926904pfb.164.2023.08.08.18.21.09; Tue, 08 Aug 2023 18:21:20 -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=@kernel.org header.s=k20201202 header.b=JgAwzxI3; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230476AbjHIAPr (ORCPT + 99 others); Tue, 8 Aug 2023 20:15:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229564AbjHIAPq (ORCPT ); Tue, 8 Aug 2023 20:15:46 -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 5C4C81996; Tue, 8 Aug 2023 17:15:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DF15D62E5B; Wed, 9 Aug 2023 00:15:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3EEB9C433C7; Wed, 9 Aug 2023 00:15:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691540142; bh=Z/PzABt4yt6pB7W6zcNJyZg9QLMe8RQXoLL9jioMaLo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=JgAwzxI3HMQmgfnxNA6oQck5CYyBENOfzYqBCGCzf80RKP8dYRnV2Rnq5twL6cWoW Oqg87XbROkHnYNTE02odPJKBjYYym1CwcOlMg+xOIInOfACVjLMGmAiLt4Fm8KUGqc 31p530ZuBdh2ZbHBRsyo4AItz3TklpspwKSzppaJQbYrUyhuzbo7g18CpzBNg08fVu Iexigjzin9wr4LM0P9jSIAZsJJM/GzXU3VmnS0n3ATXQdGSiy+R7pPSHj+e9CRctoJ /BFZIFLz/ioMlNWucqXxvF5OT3TkE1PJtsxLiN0/90P6EBQyrTVv9ck/9d6h8FDUnR PtIsUIDyrUX+w== Received: by mail-lj1-f170.google.com with SMTP id 38308e7fff4ca-2b9a2033978so96690781fa.0; Tue, 08 Aug 2023 17:15:42 -0700 (PDT) X-Gm-Message-State: AOJu0YxHhEofRqw7Rub+wocMRusWHV15YlhfMpYrlRYvGCxSgTTCVfMP HPHrh7cbgaJkXydAnp2NRQWtbwrnuJQg8wmlqw0= X-Received: by 2002:a05:651c:214:b0:2b6:de52:34f with SMTP id y20-20020a05651c021400b002b6de52034fmr728417ljn.24.1691540140217; Tue, 08 Aug 2023 17:15:40 -0700 (PDT) MIME-Version: 1.0 References: <20230808-csky-virt-to-phys-v1-0-ac727f8def2f@linaro.org> In-Reply-To: <20230808-csky-virt-to-phys-v1-0-ac727f8def2f@linaro.org> From: Guo Ren Date: Wed, 9 Aug 2023 08:15:28 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/2] csky: Convert memory accessors to static inlines To: Linus Walleij Cc: Vineet Gupta , linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org, linux-csky@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,SUSPICIOUS_RECIPS autolearn=no 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 Tue, Aug 8, 2023 at 4:26=E2=80=AFPM Linus Walleij wrote: > > This converts the virt_to_pfn and pfn_to_virt macros > into static inlines so we get proper type checking on > the pointers passed in. > > Signed-off-by: Linus Walleij > --- > Linus Walleij (2): > csky: Cast argument to virt_to_pfn() to (void *) > csky: Make pfn accessors static inlines > > arch/arc/include/asm/page.h | 2 +- > arch/csky/include/asm/page.h | 13 ++++++++++--- > 2 files changed, 11 insertions(+), 4 deletions(-) > --- > base-commit: 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5 > change-id: 20230808-csky-virt-to-phys-3d80c17211f9 > > Best regards, > -- > Linus Walleij > Thx, Approved. --=20 Best Regards Guo Ren