Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4736736rwb; Tue, 8 Aug 2023 13:02:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEzHDMdRHj6j0Dy0UG4nO63or0IU4H85EoBCQjltQyvI91NACJ0+Yz/JJ/Z7fcDgZzKfIIl X-Received: by 2002:aca:2318:0:b0:3a7:83f6:9d19 with SMTP id e24-20020aca2318000000b003a783f69d19mr780245oie.51.1691524945416; Tue, 08 Aug 2023 13:02:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691524945; cv=none; d=google.com; s=arc-20160816; b=niB36iebI1Wc/SEtyfKBqqCpILUp6nKa+VNuWs5SX3u/ad2LCkpoVSRfj6l03wjedS ripABprUY80YCbLAa3AbO6Dh3KX7B91/ZlbTvGjwKwq/CYViKebZtXWhpP9TwF1U7zgD xz0rYqMh1ZgrCrN9nrrULSfncJ3GzrxJdgydJsQbWVlYrralJireqz9PWZ97WnKLLrKF s8zal8FB2o1gyzw24tPL2g0kM3eJtxZ/uTyxnDeVQjZMBeqwessuAA7tN0FM8LGqwmaU 2kM9RXbl+9DoL2bYl8cO8NfrDPDS3UvvfMiAxf/PugQv8Y72NgnG441h/m7FYAkkSydr PVMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:message-id:content-transfer-encoding :mime-version:subject:date:from:dkim-signature; bh=anuYTtEViMW4nrjJPfmB+dcKnLZHUPG9Gjj/JVLBORE=; fh=VLZjmoEaLjCN8TWmm9Svos4gPZCMpMZDsHecZRyGRlw=; b=av38p2ngoSjwC9p8SqkOZBnwC4ugow8gyhKeS+setImQB1wNVGDS6uJqLZOWgTCKva LUiFvcxLGuyjF+i+TSALNyT047XHyEt7hpr7fBLrAjjh4KSlvXFU65E7OteGvRm/mAZg +1tkv+OwNNp0TQRIl0GI0qOAOwcsOOaTfktGDuabFMsdh5GLnEaFsWp1DNrldNvj8d42 h+F8U1D8UecJ2wZcsc9v1El7FKwVxNMr0Ul3mpSoeXeunZyuYGxmOg152wm+HdMx/4Ap kEhfe5fGb8+xaC0DzVihoFAvBdeGC64SeICb0ZknOXwr8ZRrgdxAjYsndwvyFiIguCY0 foyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Lc5swfM+; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i6-20020a17090a64c600b002509d96227esi4779015pjm.173.2023.08.08.13.02.13; Tue, 08 Aug 2023 13:02:25 -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=Lc5swfM+; 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 S234342AbjHHSy3 (ORCPT + 99 others); Tue, 8 Aug 2023 14:54:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232712AbjHHSyJ (ORCPT ); Tue, 8 Aug 2023 14:54:09 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F347763F5E for ; Tue, 8 Aug 2023 10:09:05 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-99c10ba30afso10274566b.1 for ; Tue, 08 Aug 2023 10:09:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691514544; x=1692119344; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=anuYTtEViMW4nrjJPfmB+dcKnLZHUPG9Gjj/JVLBORE=; b=Lc5swfM+NlsRGhTjqLhELMAOgb+MTGxtg4ebXpVR7pkAtYtfzbqAw5zd4Njn7Fo7Rd NeQ4MjilpD4r8Yog7m4bTMQ/0p6WRZw6rsloR0/+V+BgOUp03izG8RpsU/Q+8LmAb/GL u+bZ/KdZAD8fJT3bxxkAkKrdnBZMFnRJKs1UER37ADqFq0o7PUGiYvXO4e8BtIe6DfDK DUt3IkAzr1NuEESIDfsfq1mjAbMxLa3qaJzjjqiSzfDWmSqae3RG9hLWTUXex4yk2P5K u5fC0gBb/v4bYQmrbHzWF+vLKXEQpccOZssAk3DprHnCnBfkyXe/uhXro3tf08t9jJuB brhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691514544; x=1692119344; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=anuYTtEViMW4nrjJPfmB+dcKnLZHUPG9Gjj/JVLBORE=; b=CYs1Etw7FQF7JCAejone098vRpATouW8Om2trKcU0+9PFm8iMB7TBsFbrqMkr5IS62 WIDB8by4JA9EI5TRM7P7FnKibpn2qmBgydV3GNUfsU5rogh9gVSCydmPNYs4C5FMnfw7 LVJsnkBZJ5hbGR2V2TGxi3hfzcQaF0H7Lqxok6xNMQBA7qnEmFwRhhLjvsUDmDdq51cT ezE1OmynDEHhsPU8eZns+wHAFXOUgDBIB+eV++a8cmLAZ5qrw+xLk3UWvKy4nLIJ0rl3 suK9IBkXjIzrlgZTVtOu8bVxwnq+SHLdqrOTXKOD5sba3NIPI1xiXo7a8XLCzIP7G/Vx 6D0A== X-Gm-Message-State: AOJu0Ywr68mORxzZJRku4XYyCSS70dE37/1toT2aEcEmYufPtojjDMI/ /N0oUvk0idcuC+DFgv/0/qQ0+61im88mpp0TyAo= X-Received: by 2002:ac2:4e04:0:b0:4fb:8aca:6bb4 with SMTP id e4-20020ac24e04000000b004fb8aca6bb4mr2837425lfr.20.1691486994246; Tue, 08 Aug 2023 02:29:54 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id r20-20020ac24d14000000b004f9c44b3e6dsm1809545lfi.127.2023.08.08.02.29.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Aug 2023 02:29:53 -0700 (PDT) From: Linus Walleij Date: Tue, 08 Aug 2023 11:29:53 +0200 Subject: [PATCH] MIPS: Drop virt_to_phys define to self MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230808-virt-to-phys-mips-v1-1-af6fcd45ed31@linaro.org> X-B4-Tracking: v=1; b=H4sIABAL0mQC/x3MQQ5AMBBA0avIrE1SJZSriEXD0Fmg6UhDGnfXW L7F/wmEApPAUCQIFFn4PDKqsoDZ2WMj5CUbtNK1Mspg5HDhdaJ3j+DOXlDrlhrVW9PYDnLnA61 8/89xet8PyclIPWMAAAA= To: Thomas Bogendoerfer , Florian Fainelli Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Linus Walleij X-Mailer: b4 0.12.3 X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,DATE_IN_PAST_06_12, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 The function virt_to_phys was defined to virt_to_phys and then implemented right below. I can't understand why, just drop it and let the actual function slot in. Fixes: dfad83cb7193 ("MIPS: Add support for CONFIG_DEBUG_VIRTUAL") Signed-off-by: Linus Walleij --- arch/mips/include/asm/io.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h index affd21e9c20b..18ed44843541 100644 --- a/arch/mips/include/asm/io.h +++ b/arch/mips/include/asm/io.h @@ -111,7 +111,6 @@ extern phys_addr_t __virt_to_phys(volatile const void *x); #define __virt_to_phys(x) __virt_to_phys_nodebug(x) #endif -#define virt_to_phys virt_to_phys static inline phys_addr_t virt_to_phys(const volatile void *x) { return __virt_to_phys(x); --- base-commit: 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5 change-id: 20230808-virt-to-phys-mips-226e409a84a7 Best regards, -- Linus Walleij