diff options
author | Lidza Louina <lidza.louina@gmail.com> | 2013-08-26 15:08:02 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-26 23:26:55 (GMT) |
commit | 2587771a61bdf89a45cf54ddbed5458deaaddf26 (patch) | |
tree | 85096b9e42cec407d3cf6760a8dd2c107f2a308f /usr | |
parent | 2ea550bdfad1442749e6a1353afda93c8bb7a9ac (diff) | |
download | linux-fsl-qoriq-2587771a61bdf89a45cf54ddbed5458deaaddf26.tar.xz |
staging: dgnc: neo_uart_struct: adds marker and changes vars' types for sparse
This patch fixes these warnings found in the neo.c file:
warning: incorrect type in argument 1 (different address spaces)
expected void const volatile [noderef] <asn:2>*addr
got unsigned char volatile *<noident>
warning: incorrect type in argument 2 (different address spaces)
expected void volatile [noderef] <asn:2>*addr
got unsigned char volatile *<noident>
The variables passed to readb and writeb need to
be of type u8 with a __iomem marker. These warnings
were popping up everytime the readb and writeb
functions were called with a neo_uart_struct variable.
The change made to the driver.h file adds the marker
to the neo_uart_struct and the changes in neo.h
changes the variables' types.
Signed-off-by: Lidza Louina <lidza.louina@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions