From: "Arnd Bergmann" <arnd@arndb.de>
To: "Andy Shevchenko" <andriy.shevchenko@linux.intel.com>,
"Raag Jadav" <raag.jadav@intel.com>
Cc: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Dave Airlie" <airlied@gmail.com>,
"Simona Vetter" <simona@ffwll.ch>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 0/2] Cleanup io.h
Date: Mon, 03 Mar 2025 09:31:06 +0100 [thread overview]
Message-ID: <fa3b2ef5-e2f8-473f-9e9c-c855d70230cf@app.fastmail.com> (raw)
In-Reply-To: <Z8Ve1CQQQAz2le0a@smile.fi.intel.com>
On Mon, Mar 3, 2025, at 08:48, Andy Shevchenko wrote:
> On Fri, Feb 28, 2025 at 09:08:15PM +0200, Raag Jadav wrote:
>> > > > Ah, you mean devres related?
>> > >
>> > > Yeah, couldn't find it on Arnd's tree and I'm not sure if this series
>> > > works without it.
>> >
>> > But err.h is included in the io.h, no? Or did I misunderstand the point?
>>
>> First patch on the immutable tag moves IOMEM_ERR_PTR() to err.h and here
>> we're dropping err.h from io.h. So without the tag this series will probably
>> break IOMEM_ERR_PTR().
>
> I see, I think it might be due to some other includes that make this happen.
> Whatever, I assume that Arnd heavily tested this anyway, so it's good to go
> independently on the immutable tag..
I see that err.h gets included through at least linux/string.h,
linux/logic_pio.h and (depending on the architecture architectures)
asm/page.h, so there is no huge risk of something breaking here ;-)
Ideally all of the above should be removed here, but to do
it right, the linux/pgtable.h dependency needs to also be replaced
with a smaller pgprot_t specific one, which takes a bit of
cross-platform work as the definition is not in a consistent
place at the moment.
The change below still builds fine, and that likely indicates
that the same headers are still included from either asm/io.h
or asm/pgtable.h on the architectures I'm testing.
Arnd
----
diff --git a/include/asm-generic/io.h b/include/asm-generic/io.h
index 402020b23423..60a162591072 100644
--- a/include/asm-generic/io.h
+++ b/include/asm-generic/io.h
@@ -7,16 +7,16 @@
#ifndef __ASM_GENERIC_IO_H
#define __ASM_GENERIC_IO_H
-#include <asm/page.h> /* I/O is all done through memory accesses */
-#include <linux/string.h> /* for memset() and memcpy() */
#include <linux/sizes.h>
#include <linux/types.h>
#include <linux/instruction_pointer.h>
+#include <linux/compiler.h>
#ifdef CONFIG_GENERIC_IOMAP
#include <asm-generic/iomap.h>
#endif
+#include <asm/byteorder.h>
#include <asm/mmiowb.h>
#include <asm-generic/pci_iomap.h>
diff --git a/include/linux/logic_pio.h b/include/linux/logic_pio.h
index 8f1a9408302f..a83286bf13ab 100644
--- a/include/linux/logic_pio.h
+++ b/include/linux/logic_pio.h
@@ -8,7 +8,9 @@
#ifndef __LINUX_LOGIC_PIO_H
#define __LINUX_LOGIC_PIO_H
-#include <linux/fwnode.h>
+#include <linux/types.h>
+
+struct fwnode_handle;
enum {
LOGIC_PIO_INDIRECT, /* Indirect IO flag */
next prev parent reply other threads:[~2025-03-03 8:31 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-27 7:07 [PATCH v3 0/2] Cleanup io.h Raag Jadav
2025-02-27 7:07 ` [PATCH v3 1/2] drm/draw: include missing headers Raag Jadav
2025-02-27 7:07 ` [PATCH v3 2/2] io.h: drop unused headers Raag Jadav
2025-02-27 15:25 ` [PATCH v3 0/2] Cleanup io.h Andy Shevchenko
2025-02-28 17:11 ` Arnd Bergmann
2025-02-28 17:41 ` Raag Jadav
2025-02-28 18:41 ` Andy Shevchenko
2025-02-28 18:42 ` Andy Shevchenko
2025-02-28 18:45 ` Raag Jadav
2025-02-28 18:52 ` Andy Shevchenko
2025-02-28 19:08 ` Raag Jadav
2025-03-03 7:48 ` Andy Shevchenko
2025-03-03 8:31 ` Arnd Bergmann [this message]
2025-03-03 9:44 ` Andy Shevchenko
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=fa3b2ef5-e2f8-473f-9e9c-c855d70230cf@app.fastmail.com \
--to=arnd@arndb.de \
--cc=airlied@gmail.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=raag.jadav@intel.com \
--cc=simona@ffwll.ch \
/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