Re: [PATCH] i2c: jz4780: Explicitly include linux/io.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 15, 2015 at 07:08:11PM +0100, Mark Brown wrote:
> This driver uses readw() and writew() which are declared in asm/io.h but
> does not explicitly include that header, causing build failures on
> architectures where there is not an implicit inclusion such as arm and
> arm64:
> 
> ../drivers/i2c/busses/i2c-jz4780.c:181:2: error: implicit declaration of function 'readw' [-Werror=implicit-function-declaration]
> ../drivers/i2c/busses/i2c-jz4780.c:187:2: error: implicit declaration of function 'writew' [-Werror=implicit-function-declaration]
> 
> Add an explicit inclusion to fix this.
> 
> Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>

Thanks, I just pushed the same fix from Guenter Roeck to -next.

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux