* [PATCH] compat: move strut compat_iovec out of #ifdef CONFIG_COMPAT
@ 2020-09-28 16:14 Christoph Hellwig
2020-10-02 6:15 ` Christoph Hellwig
0 siblings, 1 reply; 3+ messages in thread
From: Christoph Hellwig @ 2020-09-28 16:14 UTC (permalink / raw)
To: viro; +Cc: linux-kernel
This avoid annoying ifdefs in iov_iter.c
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
This fixes a build failure with the import_iovec / compat_import_iovec
unification.
include/linux/compat.h | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/include/linux/compat.h b/include/linux/compat.h
index 80b9b8cc1cd405..3e3d2beafed312 100644
--- a/include/linux/compat.h
+++ b/include/linux/compat.h
@@ -91,6 +91,11 @@
static inline long __do_compat_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__))
#endif /* COMPAT_SYSCALL_DEFINEx */
+struct compat_iovec {
+ compat_uptr_t iov_base;
+ compat_size_t iov_len;
+};
+
#ifdef CONFIG_COMPAT
#ifndef compat_user_stack_pointer
@@ -248,11 +253,6 @@ typedef struct compat_siginfo {
} _sifields;
} compat_siginfo_t;
-struct compat_iovec {
- compat_uptr_t iov_base;
- compat_size_t iov_len;
-};
-
struct compat_rlimit {
compat_ulong_t rlim_cur;
compat_ulong_t rlim_max;
--
2.28.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] compat: move strut compat_iovec out of #ifdef CONFIG_COMPAT
2020-09-28 16:14 [PATCH] compat: move strut compat_iovec out of #ifdef CONFIG_COMPAT Christoph Hellwig
@ 2020-10-02 6:15 ` Christoph Hellwig
2020-10-03 4:08 ` Al Viro
0 siblings, 1 reply; 3+ messages in thread
From: Christoph Hellwig @ 2020-10-02 6:15 UTC (permalink / raw)
To: viro; +Cc: linux-kernel
ping? This is needed to unbreak the work.iov_iter branch that is in
for-next.
On Mon, Sep 28, 2020 at 06:14:14PM +0200, Christoph Hellwig wrote:
> This avoid annoying ifdefs in iov_iter.c
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
>
> This fixes a build failure with the import_iovec / compat_import_iovec
> unification.
>
> include/linux/compat.h | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/include/linux/compat.h b/include/linux/compat.h
> index 80b9b8cc1cd405..3e3d2beafed312 100644
> --- a/include/linux/compat.h
> +++ b/include/linux/compat.h
> @@ -91,6 +91,11 @@
> static inline long __do_compat_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__))
> #endif /* COMPAT_SYSCALL_DEFINEx */
>
> +struct compat_iovec {
> + compat_uptr_t iov_base;
> + compat_size_t iov_len;
> +};
> +
> #ifdef CONFIG_COMPAT
>
> #ifndef compat_user_stack_pointer
> @@ -248,11 +253,6 @@ typedef struct compat_siginfo {
> } _sifields;
> } compat_siginfo_t;
>
> -struct compat_iovec {
> - compat_uptr_t iov_base;
> - compat_size_t iov_len;
> -};
> -
> struct compat_rlimit {
> compat_ulong_t rlim_cur;
> compat_ulong_t rlim_max;
> --
> 2.28.0
---end quoted text---
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] compat: move strut compat_iovec out of #ifdef CONFIG_COMPAT
2020-10-02 6:15 ` Christoph Hellwig
@ 2020-10-03 4:08 ` Al Viro
0 siblings, 0 replies; 3+ messages in thread
From: Al Viro @ 2020-10-03 4:08 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linux-kernel
On Fri, Oct 02, 2020 at 08:15:12AM +0200, Christoph Hellwig wrote:
> ping? This is needed to unbreak the work.iov_iter branch that is in
> for-next.
Folded into "iov_iter: refactor rw_copy_check_uvector and import_iovec"
and force-pushed...
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-10-03 4:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-28 16:14 [PATCH] compat: move strut compat_iovec out of #ifdef CONFIG_COMPAT Christoph Hellwig
2020-10-02 6:15 ` Christoph Hellwig
2020-10-03 4:08 ` Al Viro
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.