From: Linus Walleij <linus.walleij@linaro.org>
To: Thomas Bogendoerfer <tsbogend@alpha.franken.de>,
Florian Fainelli <f.fainelli@gmail.com>
Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org,
Linus Walleij <linus.walleij@linaro.org>
Subject: [PATCH] MIPS: Drop virt_to_phys define to self
Date: Tue, 08 Aug 2023 11:29:53 +0200 [thread overview]
Message-ID: <20230808-virt-to-phys-mips-v1-1-af6fcd45ed31@linaro.org> (raw)
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 <linus.walleij@linaro.org>
---
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 <linus.walleij@linaro.org>
next reply other threads:[~2023-08-08 17:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-08 9:29 Linus Walleij [this message]
2023-08-08 13:12 ` [PATCH] MIPS: Drop virt_to_phys define to self Linus Walleij
2023-08-08 13:45 ` Arnd Bergmann
2023-08-08 20:05 ` Linus Walleij
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230808-virt-to-phys-mips-v1-1-af6fcd45ed31@linaro.org \
--to=linus.walleij@linaro.org \
--cc=f.fainelli@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=tsbogend@alpha.franken.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).