public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Arnd Bergmann <arnd@arndb.de>
Cc: "Arve Hjønnevåg" <arve@android.com>,
	"Riley Andrews" <riandrews@android.com>,
	devel@driverdev.osuosl.org, "Todd Kjos" <tkjos@android.com>,
	linux-kernel@vger.kernel.org,
	"John Stultz" <john.stultz@linaro.org>,
	"Martijn Coenen" <maco@android.com>
Subject: Re: [PATCH] android: binder: fix type mismatch warning
Date: Mon, 18 Sep 2017 16:02:44 +0200	[thread overview]
Message-ID: <20170918140244.GB21714@kroah.com> (raw)
In-Reply-To: <20170905085640.1566593-1-arnd@arndb.de>

On Tue, Sep 05, 2017 at 10:56:13AM +0200, Arnd Bergmann wrote:
> Allowing binder to expose the 64-bit API on 32-bit kernels caused a
> build warning:
> 
> drivers/android/binder.c: In function 'binder_transaction_buffer_release':
> drivers/android/binder.c:2220:15: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
>     fd_array = (u32 *)(parent_buffer + fda->parent_offset);
>                ^
> drivers/android/binder.c: In function 'binder_translate_fd_array':
> drivers/android/binder.c:2445:13: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
>   fd_array = (u32 *)(parent_buffer + fda->parent_offset);
>              ^
> drivers/android/binder.c: In function 'binder_fixup_parent':
> drivers/android/binder.c:2511:18: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
> 
> This adds extra type casts to avoid the warning.
> 
> However, there is another problem with the Kconfig option: turning
> it on or off creates two incompatible ABI versions, a kernel that
> has this enabled cannot run user space that was built without it
> or vice versa. A better solution might be to leave the option hidden
> until the binder code is fixed to deal with both ABI versions.

I don't know if that is ever going to be fixed, as it's not an issue
that you will ever see "in the wild" from what I can tell...

thanks,

greg k-h

  reply	other threads:[~2017-09-18 14:02 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-05  8:56 [PATCH] android: binder: fix type mismatch warning Arnd Bergmann
2017-09-18 14:02 ` Greg Kroah-Hartman [this message]
2017-09-18 15:35   ` Arnd Bergmann
2017-09-18 15:52     ` Christoph Hellwig
2017-09-18 15:53     ` Greg Kroah-Hartman
2017-09-18 16:23       ` Christoph Hellwig
2017-09-18 16:33         ` Greg Kroah-Hartman
2017-09-18 19:49         ` Arnd Bergmann
2017-09-20  9:08           ` Martijn Coenen
2017-09-20  9:58             ` Arnd Bergmann
2017-09-20 10:24               ` Martijn Coenen
2017-09-20 13:37                 ` Arnd Bergmann
2017-09-21  7:44                   ` Greg Kroah-Hartman
2017-09-22  7:00                   ` Martijn Coenen
2017-09-22  9:12                     ` Arnd Bergmann
2017-09-22 12:46                       ` Martijn Coenen

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=20170918140244.GB21714@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=arnd@arndb.de \
    --cc=arve@android.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=john.stultz@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maco@android.com \
    --cc=riandrews@android.com \
    --cc=tkjos@android.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox