Message ID | 20230808-csky-virt-to-phys-v1-0-ac727f8def2f@linaro.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2408993vqr; Tue, 8 Aug 2023 14:37:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH6sCu2spPbb/XtWfWkpY2+bL8nvFfVMiTxngxf/O6YRwQ1nwIwZUGDMBQkJ80GuwvqKvfZ X-Received: by 2002:a17:902:b70e:b0:1b5:64a4:bea0 with SMTP id d14-20020a170902b70e00b001b564a4bea0mr814778pls.10.1691530633726; Tue, 08 Aug 2023 14:37:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691530633; cv=none; d=google.com; s=arc-20160816; b=n2Y4RqXE/NHb3kcIe4slEUz+FGR4KDVClaJLlPVL5+1bkHWO5BoHXxUXpppwIsb4wg D9UZBdmCC7Gz0K/0onk9XWx6Jr3A4KepwxGyqr+LsTSWeTEVNPxqHjWdNoirE2pKKE26 b4BOz7aZNXjBQNICrF1I3LOupYf57Dw0XBTJLm7whO87bxVKlSKQQ4mLaq+jMjbRwlNJ LsrCAshi7h1tDxeXXhYbyfcAkBUK1ni1G7urPAsf+qHdbQ1awD7CJHveFHUCnyXA5Uqq wauGZF0SZwMJekf5/S1fpizjbgidtB/yi8zDWXuHQBjOT+YJLkrHMMkAqXN9LHEgPMWu XxnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=fKaXpSlwUGOFKYnA0/ujGgP0b2CVx1lfhbc608RRtk4=; fh=U9aMXhC4C3vp50RpX5/W/je1e0oxyhy5HPsCZC8XORg=; b=06WJhxdQ6cvD4IGLe2cLlCmjAstrk79sPM8qo2xWdgxglpb314Q5sg32zWQ2tZjtt2 /QYQn0HnEH/domODvGMsVGZ/3Fa8JkmC1ktXDaBOw1nHp2va3pb4O+Gi4Q2ZjmAOIzG+ TnmCUrZj4VLkVyTHqN3lEesHGQFio6W6reC/13emqfKUVV29UVWFBxnxvVy4+YFFQqJi bqLsMJr3NEPGPYyGn9j4mF/ffB++GGhUpLwM6rI4Gmlvf31o+bTDJUYVysk6bfBw3zL2 wrAv9EE6ujLseIPI3egnmq95hOboegpMSa/B9/2D9DyqcoohELeh4alnV1bhM89E0mqc sIaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AJCi6xZx; 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 a16-20020a170902ecd000b001bc5f13c67esi5397153plh.589.2023.08.08.14.36.45; Tue, 08 Aug 2023 14:37:13 -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=AJCi6xZx; 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 S235518AbjHHUut (ORCPT <rfc822;aaronkmseo@gmail.com> + 99 others); Tue, 8 Aug 2023 16:50:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235425AbjHHUue (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 8 Aug 2023 16:50:34 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A06110E9FB for <linux-kernel@vger.kernel.org>; Tue, 8 Aug 2023 09:45:51 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3fe32016bc8so49645635e9.1 for <linux-kernel@vger.kernel.org>; Tue, 08 Aug 2023 09:45:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691513147; x=1692117947; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=fKaXpSlwUGOFKYnA0/ujGgP0b2CVx1lfhbc608RRtk4=; b=AJCi6xZxL9ZGGAzt8y1R8enCqQgZuK6TMlP9v7+QISt/nuuJ2fgOtYwKDqKPV9b+5I Slu5etz8yrr+TlmDb7fS13ShjIThB1lkgiFWUjiZV95BAwLhY6+/6ghvLXZJHMkdlrLM vbe7Wshb8wpstKDUbjY9om0Yi3eVUXeG3UPVTZhW7Y9yNakLWHOuIfz1oVor5JF/h/4M uTSGh8L/bvMnFP41I90Z/Hb+ZkFmmyeK+M57SgoM5xWgh4E2j6Z5FnQGcjH02lbj5Ugl ZNsL2ZtfR0zjvKyfcD7U5cRGZtzaVXe8l1lUBKNtcKytkqmxiJv3iIgQ3vqJ9+AgH+eF Vj7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691513147; x=1692117947; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fKaXpSlwUGOFKYnA0/ujGgP0b2CVx1lfhbc608RRtk4=; b=Ir9C0B3iFnLkwka6iojwa1PxAm0+zbS5CGhIRq/DZVEbu8LAaSQMfne9BrIjdNnjeC vlS25d3VQbv2+c4kCRlFPE9qk2TDAdh2VXFF2D8NsVGp10iCaALqQNGcMc1/mJN/S8Qw jtmNl2ayXg7US4fLQOwbxbqvoebLjuP9xhZtVHkBoODing4YT+Qt/7YRGc/gSSOYaEXK /n0YnpGzDKSkUIVDI02wSPE1aPK7cxax0Y89gjRUPXvynP1sgvfqSSNVFRB0m/LMKEMc si7bQ5kJFYKwejRzVfcteejj2L2syepQZH0+bcvl/2Mo+/FKgjkHFQaY3AvkSb6Je6QN svHw== X-Gm-Message-State: AOJu0Yx2I6Twfa7FAlGpTAjet8n39MR+2C4n2kYqayuxtZPQJeSZ9SFc wVf7vhb/H75LjdTWueG6jMKRkOsNvf91dNAXekg= X-Received: by 2002:ac2:5b89:0:b0:4fb:7888:7e6d with SMTP id o9-20020ac25b89000000b004fb78887e6dmr7043859lfn.46.1691483162463; Tue, 08 Aug 2023 01:26:02 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id t13-20020a19ad0d000000b004fbae18984dsm1787087lfc.255.2023.08.08.01.26.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Aug 2023 01:26:01 -0700 (PDT) From: Linus Walleij <linus.walleij@linaro.org> Subject: [PATCH 0/2] csky: Convert memory accessors to static inlines Date: Tue, 08 Aug 2023 10:25:54 +0200 Message-Id: <20230808-csky-virt-to-phys-v1-0-ac727f8def2f@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIABL80WQC/x3MPQqAMAxA4atIZgP9GaxeRRykphoElaYUpXh3i +M3vFdAKDIJDE2BSJmFz6NCtw34bT5WQl6qwShjlVMOvewPZo4J04nX9gjaxSmvO6N16KF2V6T A9/8cp/f9ALLAmCNjAAAA To: Vineet Gupta <vgupta@kernel.org>, Guo Ren <guoren@kernel.org> Cc: linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org, linux-csky@vger.kernel.org, Linus Walleij <linus.walleij@linaro.org> X-Mailer: b4 0.12.3 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_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773698425432979390 X-GMAIL-MSGID: 1773698425432979390 |
Series |
csky: Convert memory accessors to static inlines
|
|
Message
Linus Walleij
Aug. 8, 2023, 8:25 a.m. UTC
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@linaro.org>
---
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,
Comments
On Tue, Aug 8, 2023 at 4:26 PM Linus Walleij <linus.walleij@linaro.org> 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@linaro.org> > --- > 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 <linus.walleij@linaro.org> > Thx, Approved.