kernel-janitors.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [staging:staging-next 98/99] drivers/iio/light/adjd_s311.c:188:12: warning: cast from pointer to int
@ 2012-07-13  6:14 Fengguang Wu
  0 siblings, 0 replies; only message in thread
From: Fengguang Wu @ 2012-07-13  6:14 UTC (permalink / raw)
  To: kernel-janitors

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)
 > 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 <wfg@linux.intel.com>                     Intel Corporation

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-07-13  6:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-13  6:14 [staging:staging-next 98/99] drivers/iio/light/adjd_s311.c:188:12: warning: cast from pointer to int Fengguang Wu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).