From patchwork Wed Nov 15 13:28:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 16607 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp2535404vqg; Wed, 15 Nov 2023 05:28:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IHWMF2MUOUKgbcyHWhxmzPJfb420k+YYkR1NhaOokfCT9ljgGr6t1p6kXhyyFfFBnXsm4FD X-Received: by 2002:a17:902:d2ca:b0:1cc:501b:1d13 with SMTP id n10-20020a170902d2ca00b001cc501b1d13mr6273359plc.40.1700054929004; Wed, 15 Nov 2023 05:28:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700054928; cv=none; d=google.com; s=arc-20160816; b=dPgWUni+OhVH2mHYI1riQznIco1cAF5CbrHrjd0FvkVJIzj4IM6xnEtmAx8aw3F/dA mzVF3XonAS3vV482bz5oEVmRS23daTjcXC83bOoa6dCHbITxFQL75oziat8HQYXt6Taj OCy8puA/+eCDK+/nWv33qkJ4+tSSQQvA5y55KFJbIrGqmP02c4ZxztOjAnUdguYpfRKF Ow6xHS/23hsR092lADlgoa8okcKz/0BKgPG0OD4kzLzpPLUa8RYMHQiD9c9B/O+mvc47 1cqWQR85TsSIHdCRuPeV8echJI6WMkaldbVN21APeZMbfve5hemWd3ZgdSUKFQxLAqx+ 4cqg== 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=IwN4XVt8yK1X3+YfAI5MPsrSuan+JzWxqjLblP1tQKk=; fh=vhVM6SZxKPr2veBMjcAvhDXNjn/VVJMcYxTy29AXVyE=; b=MbGJhQM+GbVIXCdpi4/Ag0ubFxniLER6fQREcCV1147oOPm/vY7+VlaFwHDVY8KJqt uO6I83QyA8SkO/a8Qfv3yKAAjfWK/5LOnspe4qjnUg0n59sK0a9UquW356FpcNwTlWVI UUFi2pF7D8yNEZ3MuYgQtlc7u/0j2J+oFYwLxvcrnxgvSNV/G/ZIyLnGe6JjtHMJc6tm Do1TIZWcJs+Ql8KVa9OpOGHiWnqBnC53cY6eHiF+b1Nbgntot7z7oZ3pH0BWPit46FPz FTTRC7R2zXxWcLV9+kFRgkVx6a0ZWHPalteTRHdHMyYj+1OpEb7kFdWYjm9WeMUJdt5T bpVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U8G4Uevf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id jh14-20020a170903328e00b001c77916e87dsi9571331plb.591.2023.11.15.05.28.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 05:28:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U8G4Uevf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 35A6D8197E88; Wed, 15 Nov 2023 05:28:48 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344039AbjKON2i (ORCPT + 28 others); Wed, 15 Nov 2023 08:28:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343967AbjKON2V (ORCPT ); Wed, 15 Nov 2023 08:28:21 -0500 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D192B18F for ; Wed, 15 Nov 2023 05:28:17 -0800 (PST) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-5079f6efd64so9013811e87.2 for ; Wed, 15 Nov 2023 05:28:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700054896; x=1700659696; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=IwN4XVt8yK1X3+YfAI5MPsrSuan+JzWxqjLblP1tQKk=; b=U8G4Uevfz+kHk0zZH4Xj4k/HqAagC61Z5A7roLUdDSoeAGL83SRc6bJWyn5Tl+tQ8c Lmpf6x/qr6bp39utb+XPzTKWPtsZxcwMHKrr20ENEReQH4tDWpx56C8HRLUHCiw/PZOm PyYmYVYywVXySeZsW/POAoHjIGBpaUtZFg2CsbHc9UTq2m/te0/9DcnJ8J27iQELwO/x eBU31l7ADziA4V6WCPqtwTTd6UKL2M3+csZO7kj0m2RcPW8H3oD4IUjL/YFDbD1kuRCA Jbb6+OLtn7d0m6lYlAod08sVzg7tglDPlMVWNZjh13WntC8qXUyNnqprOoPRLznQ1ir0 XjsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700054896; x=1700659696; 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=IwN4XVt8yK1X3+YfAI5MPsrSuan+JzWxqjLblP1tQKk=; b=fQD8IRx0o4Tm9+wm7BkPkiGKI1Bdv37fGeYEICFcImrrlHsHQ8GzGxvoPYfE9lpF0h +Rpiu9on2/9H1FuQltlVvQpCEOMeaSAX2NiXJGBtmA0FFR21p14AUvn2KfA31s0+oEmr Knd7yTLTGCO1WUTQVigHWj1mjYTKPDSkQlCDVW7ot5vJhapVFjn0kd8auvIzkgPHpLQX 5QsOasu5+y4og+CDaWagxf1pKDSfnAZLwGkTuBplrBW3DC7YLFnOPJ5Dn9iJK4c4isQ3 g4UM3BexySy7bwHuEA5/o5NJwqDbVtZjVBiLIfTpkbkX7/xwTNZtljamD64z3ARkohOA XtfA== X-Gm-Message-State: AOJu0Yx6XHD2aHRlaXf0hUcJm+xO8vOwINOoNoSLkEk61fAs97TY4vKK CJp09DI0292KsgrH1+0DCDmrrg== X-Received: by 2002:a05:6512:3e1e:b0:509:4b8a:b65f with SMTP id i30-20020a0565123e1e00b005094b8ab65fmr10675082lfv.60.1700054895757; Wed, 15 Nov 2023 05:28:15 -0800 (PST) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id l12-20020a19c20c000000b00507b1da672bsm1648705lfc.174.2023.11.15.05.28.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 05:28:15 -0800 (PST) From: Linus Walleij Subject: [PATCH 0/2] arch: Virt to phys to static inlines Date: Wed, 15 Nov 2023 14:28:13 +0100 Message-Id: <20231115-virt-to-phy-arch-tree-v1-0-8b61296eae73@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAG3HVGUC/x3MPQqAMAxA4atIZgON/3gVcdAabRaVtBRFvLvF8 Rvee8CzCnvosweUo3g59gTKM7Bu2jdGWZKhMEVJRDVG0YDhwNPdOKl1GJQZqWxn27Wmapggtaf yKtf/Hcb3/QD/9wbVZwAAAA== To: Arnd Bergmann , Vineet Gupta , Brian Cain Cc: linux-arch@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org, linux-hexagon@vger.kernel.org, Linus Walleij X-Mailer: b4 0.12.4 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=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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 15 Nov 2023 05:28:48 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782636797470821834 X-GMAIL-MSGID: 1782636797470821834 Some architectures have been given patches to switch their virt_to_phys()/phys_to_virt() or underlying *pfn etc functions over to static inlines. Some patches have been ignored or have no maintained arch tree. This set includes patches that I suggest to simply be applied to the arch tree so they get in. Signed-off-by: Linus Walleij --- Linus Walleij (2): ARC: mm: Make virt_to_pfn() a static inline Hexagon: Make pfn accessors statics inlines arch/arc/include/asm/page.h | 21 ++++++++++++--------- arch/arc/include/asm/pgtable-levels.h | 2 +- arch/hexagon/include/asm/page.h | 15 +++++++++++++-- 3 files changed, 26 insertions(+), 12 deletions(-) --- base-commit: b85ea95d086471afb4ad062012a4d73cd328fa86 change-id: 20231115-virt-to-phy-arch-tree-137bc87046e1 Best regards,