drivers/iio/light/adjd_s311.c:188:12: warning: cast from pointer to int
PATCH 98/99 drivers/iio/light/adjd_s311.c:188:12: warning: cast from pointer to int
Hi Peter,
There are new compile warnings show up in
tree: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-next head: bd972ff3176caf91a49d1d754848c3f6c5435328 commit: bbdb822c4c3f8dbefd8f6dc84f6d98c33af6e051 [98/99] iio: add adjd_s311 I2C digital color sensor driver
All warnings:
drivers/iio/light/adjd_s311.c: In function 'adjd_s311_trigger_handler':drivers/iio/light/adjd_s311.c:188:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] drivers/iio/light/adjd_s311.c:188:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
vim +188 drivers/iio/light/adjd_s311.c
185 }
186
187 if (indio_dev->scan_timestamp)
Quoted 1 line
188 *(s64 *)((phys_addr_t)data->buffer +
ALIGN(len, sizeof(s64)))
189 = time_ns;
190 iio_push_to_buffer(buffer, (u8 *)data->buffer, time_ns);
191
---
0-DAY kernel build testing backend Open Source Technology Centre
Fengguang Wu <[email protected]> Intel Corporation