From: Greg KH <greg@kroah.com>
To: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>,
Arnd Bergmann <arnd@arndb.de>,
Alex Gaynor <alex.gaynor@gmail.com>,
Carlos Llamas <cmllamas@google.com>, Finn Behrens <me@kloenk.de>,
Gary Guo <gary@garyguo.net>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Linux Next Mailing List <linux-next@vger.kernel.org>,
Miguel Ojeda <ojeda@kernel.org>,
Sven Van Asbroeck <thesven73@gmail.com>,
Wayne Campbell <wcampbell1995@gmail.com>,
Wedson Almeida Filho <wedsonaf@google.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Subject: Re: linux-next: manual merge of the rust tree with the char-misc tree
Date: Mon, 16 May 2022 09:49:05 +0200 [thread overview]
Message-ID: <YoIB8WCdgHr6Cp+z@kroah.com> (raw)
In-Reply-To: <20220516171329.6b10e4e5@canb.auug.org.au>
On Mon, May 16, 2022 at 05:13:29PM +1000, Stephen Rothwell wrote:
> Hi all,
>
> Today's linux-next merge of the rust tree got a conflict in:
>
> include/uapi/linux/android/binder.h
>
> between commit:
>
> bd32889e841c ("binder: add BINDER_GET_EXTENDED_ERROR ioctl")
>
> from the char-misc tree and commit:
>
> d637f9ec1954 ("[RFC] drivers: android: Binder IPC in Rust")
>
> from the rust tree.
>
> I fixed it up (see below) and can carry the fix as necessary. This
> is now fixed as far as linux-next is concerned, but any non trivial
> conflicts should be mentioned to your upstream maintainer when your tree
> is submitted for merging. You may also want to consider cooperating
> with the maintainer of the conflicting tree to minimise any particularly
> complex conflicts.
>
> --
> Cheers,
> Stephen Rothwell
>
> diff --cc include/uapi/linux/android/binder.h
> index e6ee8cae303b,a982c30dbbf5..000000000000
> --- a/include/uapi/linux/android/binder.h
> +++ b/include/uapi/linux/android/binder.h
> @@@ -236,35 -236,21 +236,37 @@@ struct binder_frozen_status_info
> __u32 async_recv;
> };
>
> +/* struct binder_extened_error - extended error information
> + * @id: identifier for the failed operation
> + * @command: command as defined by binder_driver_return_protocol
> + * @param: parameter holding a negative errno value
> + *
> + * Used with BINDER_GET_EXTENDED_ERROR. This extends the error information
> + * returned by the driver upon a failed operation. Userspace can pull this
> + * data to properly handle specific error scenarios.
> + */
> +struct binder_extended_error {
> + __u32 id;
> + __u32 command;
> + __s32 param;
> +};
> +
> - #define BINDER_WRITE_READ _IOWR('b', 1, struct binder_write_read)
> - #define BINDER_SET_IDLE_TIMEOUT _IOW('b', 3, __s64)
> - #define BINDER_SET_MAX_THREADS _IOW('b', 5, __u32)
> - #define BINDER_SET_IDLE_PRIORITY _IOW('b', 6, __s32)
> - #define BINDER_SET_CONTEXT_MGR _IOW('b', 7, __s32)
> - #define BINDER_THREAD_EXIT _IOW('b', 8, __s32)
> - #define BINDER_VERSION _IOWR('b', 9, struct binder_version)
> - #define BINDER_GET_NODE_DEBUG_INFO _IOWR('b', 11, struct binder_node_debug_info)
> - #define BINDER_GET_NODE_INFO_FOR_REF _IOWR('b', 12, struct binder_node_info_for_ref)
> - #define BINDER_SET_CONTEXT_MGR_EXT _IOW('b', 13, struct flat_binder_object)
> - #define BINDER_FREEZE _IOW('b', 14, struct binder_freeze_info)
> - #define BINDER_GET_FROZEN_INFO _IOWR('b', 15, struct binder_frozen_status_info)
> - #define BINDER_ENABLE_ONEWAY_SPAM_DETECTION _IOW('b', 16, __u32)
> - #define BINDER_GET_EXTENDED_ERROR _IOWR('b', 17, struct binder_extended_error)
> + enum {
> + BINDER_WRITE_READ = _IOWR('b', 1, struct binder_write_read),
> + BINDER_SET_IDLE_TIMEOUT = _IOW('b', 3, __s64),
> + BINDER_SET_MAX_THREADS = _IOW('b', 5, __u32),
> + BINDER_SET_IDLE_PRIORITY = _IOW('b', 6, __s32),
> + BINDER_SET_CONTEXT_MGR = _IOW('b', 7, __s32),
> + BINDER_THREAD_EXIT = _IOW('b', 8, __s32),
> + BINDER_VERSION = _IOWR('b', 9, struct binder_version),
> + BINDER_GET_NODE_DEBUG_INFO = _IOWR('b', 11, struct binder_node_debug_info),
> + BINDER_GET_NODE_INFO_FOR_REF = _IOWR('b', 12, struct binder_node_info_for_ref),
> + BINDER_SET_CONTEXT_MGR_EXT = _IOW('b', 13, struct flat_binder_object),
> + BINDER_FREEZE = _IOW('b', 14, struct binder_freeze_info),
> + BINDER_GET_FROZEN_INFO = _IOWR('b', 15, struct binder_frozen_status_info),
> + BINDER_ENABLE_ONEWAY_SPAM_DETECTION = _IOW('b', 16, __u32),
> ++ BINDER_GET_EXTENDED_ERROR = _IOWR('b', 17, struct binder_extended_error),
> + };
>
Odd, why does the Rust binder implementation require the IOCTL
definitions to be in an enum instead of a #define?
If that's required, I can take that type of change now to prevent merge
issues in the future.
thanks,
greg k-h
next prev parent reply other threads:[~2022-05-16 7:49 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-16 7:13 linux-next: manual merge of the rust tree with the char-misc tree Stephen Rothwell
2022-05-16 7:49 ` Greg KH [this message]
2022-05-16 8:18 ` Miguel Ojeda
2022-05-16 8:27 ` Greg KH
-- strict thread matches above, loose matches on Subject: below --
2024-11-11 6:34 Stephen Rothwell
2024-11-11 14:54 ` Greg KH
2024-11-11 23:56 ` Miguel Ojeda
2024-11-28 1:48 ` Stephen Rothwell
2021-04-16 7:58 Stephen Rothwell
2021-04-16 8:10 ` Greg KH
2021-04-16 8:26 ` Stephen Rothwell
2021-04-16 12:31 ` Miguel Ojeda
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=YoIB8WCdgHr6Cp+z@kroah.com \
--to=greg@kroah.com \
--cc=alex.gaynor@gmail.com \
--cc=arnd@arndb.de \
--cc=cmllamas@google.com \
--cc=gary@garyguo.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=me@kloenk.de \
--cc=miguel.ojeda.sandonis@gmail.com \
--cc=ojeda@kernel.org \
--cc=sfr@canb.auug.org.au \
--cc=thesven73@gmail.com \
--cc=wcampbell1995@gmail.com \
--cc=wedsonaf@google.com \
/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 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.