Re: [PATCH 2.6.39-rc7] RTC: rtc-ds1307 EEPROM support for ds1388 chip

Andrew Morton
2011-09-23T23:05:31Z

On Mon, 1 Aug 2011 10:30:57 +1200
Austin Boyle <Austin.Boyle@Aviatnet.com> wrote:

> [PATCH 3.0] RTC: EEPROM support for DS1388
>
> This patch adds support for different sized NVRAM, such as
> the 512 bytes of EEPROM on the DS1388 chip.

This patch is causing problems in today's linux-next, with x86_64 allmodconfig:

drivers/rtc/rtc-ds1307.c: In function 'ds1307_probe':
drivers/rtc/rtc-ds1307.c:796: warning: passing argument 1 of 'i2c_smbus_read_i2c_block_data' from incompatible pointer type
include/linux/i2c.h:98: note: expected 'const struct i2c_client *' but argument is of type 'struct i2c_client **'
drivers/rtc/rtc-ds1307.c:949: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'

Please take a look? You'll need %z for the printk warning.