linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Jeff LaBundy <jeff@labundy.com>
Cc: kbuild-all@lists.01.org, linux-input@vger.kernel.org,
	Dmitry Torokhov <dmitry.torokhov@gmail.com>
Subject: [input:next 2481/2485] drivers/input/misc/iqs269a.c:1829:1: error: type defaults to 'int' in declaration of 'module_i2c_driver'
Date: Mon, 18 May 2020 13:20:20 +0800	[thread overview]
Message-ID: <202005181316.XkVj5zCP%lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 5405 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git next
head:   918e2844d940da7c624262a7aa327615d3eb5abd
commit: 04e49867fad1f4a0739862bb15133f96ace1d190 [2481/2485] Input: add support for Azoteq IQS269A
config: sparc-randconfig-r036-20200518 (attached as .config)
compiler: sparc-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 04e49867fad1f4a0739862bb15133f96ace1d190
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=sparc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>

All error/warnings (new ones prefixed by >>, old ones prefixed by <<):

>> drivers/input/misc/iqs269a.c:1829:1: warning: data definition has no type or storage class
1829 | module_i2c_driver(iqs269_i2c_driver);
| ^~~~~~~~~~~~~~~~~
>> drivers/input/misc/iqs269a.c:1829:1: error: type defaults to 'int' in declaration of 'module_i2c_driver' [-Werror=implicit-int]
>> drivers/input/misc/iqs269a.c:1829:1: warning: parameter names (without types) in function declaration
drivers/input/misc/iqs269a.c:1821:26: warning: 'iqs269_i2c_driver' defined but not used [-Wunused-variable]
1821 | static struct i2c_driver iqs269_i2c_driver = {
|                          ^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
drivers/base/regmap/regmap-i2c.c: In function 'regmap_smbus_byte_reg_read':
>> drivers/base/regmap/regmap-i2c.c:25:8: error: implicit declaration of function 'i2c_smbus_read_byte_data' [-Werror=implicit-function-declaration]
25 |  ret = i2c_smbus_read_byte_data(i2c, reg);
|        ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/base/regmap/regmap-i2c.c: In function 'regmap_smbus_byte_reg_write':
>> drivers/base/regmap/regmap-i2c.c:43:9: error: implicit declaration of function 'i2c_smbus_write_byte_data' [-Werror=implicit-function-declaration]
43 |  return i2c_smbus_write_byte_data(i2c, reg, val);
|         ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/base/regmap/regmap-i2c.c: In function 'regmap_smbus_word_reg_read':
>> drivers/base/regmap/regmap-i2c.c:61:8: error: implicit declaration of function 'i2c_smbus_read_word_data' [-Werror=implicit-function-declaration]
61 |  ret = i2c_smbus_read_word_data(i2c, reg);
|        ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/base/regmap/regmap-i2c.c: In function 'regmap_smbus_word_reg_write':
>> drivers/base/regmap/regmap-i2c.c:79:9: error: implicit declaration of function 'i2c_smbus_write_word_data' [-Werror=implicit-function-declaration]
79 |  return i2c_smbus_write_word_data(i2c, reg, val);
|         ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/base/regmap/regmap-i2c.c: In function 'regmap_smbus_word_read_swapped':
>> drivers/base/regmap/regmap-i2c.c:97:8: error: implicit declaration of function 'i2c_smbus_read_word_swapped' [-Werror=implicit-function-declaration]
97 |  ret = i2c_smbus_read_word_swapped(i2c, reg);
|        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/base/regmap/regmap-i2c.c: In function 'regmap_smbus_word_write_swapped':
>> drivers/base/regmap/regmap-i2c.c:115:9: error: implicit declaration of function 'i2c_smbus_write_word_swapped' [-Werror=implicit-function-declaration]
115 |  return i2c_smbus_write_word_swapped(i2c, reg, val);
|         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/base/regmap/regmap-i2c.c: In function 'regmap_i2c_write':
>> drivers/base/regmap/regmap-i2c.c:129:8: error: implicit declaration of function 'i2c_master_send' [-Werror=implicit-function-declaration]
129 |  ret = i2c_master_send(i2c, data, count);
|        ^~~~~~~~~~~~~~~
drivers/base/regmap/regmap-i2c.c: In function 'regmap_i2c_gather_write':
>> drivers/base/regmap/regmap-i2c.c:150:7: error: implicit declaration of function 'i2c_check_functionality' [-Werror=implicit-function-declaration]
150 |  if (!i2c_check_functionality(i2c->adapter, I2C_FUNC_NOSTART))
|       ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/base/regmap/regmap-i2c.c:163:8: error: implicit declaration of function 'i2c_transfer' [-Werror=implicit-function-declaration]
163 |  ret = i2c_transfer(i2c->adapter, xfer, 2);
|        ^~~~~~~~~~~~
drivers/base/regmap/regmap-i2c.c: In function 'regmap_i2c_smbus_i2c_write':
>> drivers/base/regmap/regmap-i2c.c:218:9: error: implicit declaration of function 'i2c_smbus_write_i2c_block_data' [-Werror=implicit-function-declaration]
218 |  return i2c_smbus_write_i2c_block_data(i2c, ((u8 *)data)[0], count,
|         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/base/regmap/regmap-i2c.c: In function 'regmap_i2c_smbus_i2c_read':
>> drivers/base/regmap/regmap-i2c.c:233:8: error: implicit declaration of function 'i2c_smbus_read_i2c_block_data' [-Werror=implicit-function-declaration]
233 |  ret = i2c_smbus_read_i2c_block_data(i2c, ((u8 *)reg)[0], val_size, val);
|        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors

vim +1829 drivers/input/misc/iqs269a.c

  1820	
  1821	static struct i2c_driver iqs269_i2c_driver = {
  1822		.driver = {
  1823			.name = "iqs269a",
  1824			.of_match_table = iqs269_of_match,
  1825			.pm = &iqs269_pm,
  1826		},
  1827		.probe_new = iqs269_probe,
  1828	};
> 1829	module_i2c_driver(iqs269_i2c_driver);
  1830	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 26329 bytes --]

                 reply	other threads:[~2020-05-18  5:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202005181316.XkVj5zCP%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=jeff@labundy.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-input@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).