lkml.org 
[lkml]   [2015]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] gpio:Fix build warning about void to integer cast in the function mmio_74xx_gpio_probe
From
On Sat, Jul 4, 2015 at 10:34 PM, Nicholas Krause <xerofoify@gmail.com> wrote:

> This fixes the build warning , warning: cast from pointer to integer
> of different size when building this file on a x86 allmodconfig
> configuration. In order for me to fix this build warning I changed
> the cast in the function mmio_74xx_gpio_probe from casting the
> variable data of the stucture pointer of_id to uintptr_t rather
> then unsigned when assigning to the variable flag of the structure
> pointer priv of the structure type mmio_74xx_gpio_priv.
>
>
> Signed-off-by: Nicholas Krause <xerofoify@gmail.com>

Patch applied with some tweaks to the long subject line.

Yours,
Linus Walleij


\
 
 \ /
  Last update: 2015-07-16 14:21    [W:0.044 / U:0.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site