Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1719010
| From | Lee Jones <lee.jones@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] mfd: omap-usb-tll: fix register offsets |
| Date | 2017-08-24 10:50 +0200 |
| Message-ID | <uhVZU-46O-13@gated-at.bofh.it> (permalink) |
| References | <uhF8J-1Mw-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, 23 Aug 2017, Arnd Bergmann wrote:
> gcc-8 notices that the register number calculation is wrong
> when the offset is an 'u8' but the number is larger than 256:
>
> drivers/mfd/omap-usb-tll.c: In function 'omap_tll_init':
> drivers/mfd/omap-usb-tll.c:90:46: error: overflow in conversion from 'int' to 'u8 {aka unsigned char}' chages value from 'i * 256 + 2070' to '22' [-Werror=overflow]
>
> This addresses it by always using a 32-bit offset number for
> the register. This is apparently an old problem that previous
> compilers did not find.
>
> Fixes: 16fa3dc75c22 ("mfd: omap-usb-tll: HOST TLL platform driver")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> drivers/mfd/omap-usb-tll.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Applied, thanks.
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] mfd: omap-usb-tll: fix register offsets Arnd Bergmann <arnd@arndb.de> - 2017-08-23 16:50 +0200 Re: [PATCH] mfd: omap-usb-tll: fix register offsets Lee Jones <lee.jones@linaro.org> - 2017-08-24 10:50 +0200
csiph-web