[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CA+r1ZhjZKntDZHBQ=W=zGLVrPzWKLbm9VuVjnNMK=Wv_yPMKWA@mail.gmail.com>
Date: Tue, 27 Jan 2015 16:52:31 -0700
From: Jim Davis <jim.epost@...il.com>
To: Stephen Rothwell <sfr@...b.auug.org.au>,
linux-next <linux-next@...r.kernel.org>,
linux-kernel <linux-kernel@...r.kernel.org>,
linux-iio@...r.kernel.org
Subject: randconfig build error with next-20150127, in drivers/iio/magnetometer/ak8975.c
Building with the attached random configuration file,
drivers/iio/magnetometer/ak8975.c: In function ‘ak8975_who_i_am’:
drivers/iio/magnetometer/ak8975.c:393:2: error: implicit declaration of function
‘i2c_smbus_read_i2c_block_data’ [-Werror=implicit-function-declaration]
ret = i2c_smbus_read_i2c_block_data(client, AK09912_REG_WIA1,
^
drivers/iio/magnetometer/ak8975.c: In function ‘ak8975_set_mode’:
drivers/iio/magnetometer/ak8975.c:431:2: error: implicit declaration of function
‘i2c_smbus_write_byte_data’ [-Werror=implicit-function-declaration]
ret = i2c_smbus_write_byte_data(data->client,
^
drivers/iio/magnetometer/ak8975.c: In function ‘wait_conversion_complete_gpio’:
drivers/iio/magnetometer/ak8975.c:555:2: error: implicit declaration
of function ‘i2c_smbus_read_byte_data’
[-Werror=implicit-function-declaration]
ret = i2c_smbus_read_byte_data(client, data->def->ctrl_regs[ST1]);
^
drivers/iio/magnetometer/ak8975.c: In function ‘ak8975_read_axis’:
drivers/iio/magnetometer/ak8975.c:650:2: error: implicit declaration
of function ‘i2c_smbus_read_word_data’
[-Werror=implicit-function-declaration]
ret = i2c_smbus_read_word_data(client, data->def->data_regs[index]);
^
drivers/iio/magnetometer/ak8975.c: At top level:
drivers/iio/magnetometer/ak8975.c:845:1: warning: data definition has
no type or storage class [enabled by default]
module_i2c_driver(ak8975_driver);
^
drivers/iio/magnetometer/ak8975.c:845:1: error: type defaults to ‘int’
in declaration of ‘module_i2c_driver’ [-Werror=implicit-int]
drivers/iio/magnetometer/ak8975.c:845:1: warning: parameter names
(without types) in function declaration [enabled by default]
drivers/iio/magnetometer/ak8975.c:836:26: warning: ‘ak8975_driver’
defined but not used [-Wunused-variable]
static struct i2c_driver ak8975_driver = {
^
cc1: some warnings being treated as errors
make[3]: *** [drivers/iio/magnetometer/ak8975.o] Error 1
View attachment "randconfig-1422393872.txt" of type "text/plain" (56124 bytes)
Powered by blists - more mailing lists