All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Bjorn Andersson <andersson@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev,
	Steev Klimaszewski <steev@kali.org>,
	Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Subject: [steev:c630-v6.3 6/11] drivers/power/supply/yoga-c630-ec.c:465:18: error: initialization of 'int (*)(struct i2c_client *)' from incompatible pointer type 'int (*)(struct i2c_client *, const struct i2c_device_id *)'
Date: Mon, 24 Apr 2023 11:28:28 +0800	[thread overview]
Message-ID: <202304241141.fKraXeXf-lkp@intel.com> (raw)

tree:   https://github.com/steev/linux c630-v6.3
head:   b4d83e68be9f1bb3539ea6b23f3f5a9f8cebc7df
commit: f8cff82b4956f2b243daa4c120b68f80c774d9cf [6/11] power: supply: Add Lenovo Yoga C630 EC driver
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20230424/202304241141.fKraXeXf-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/steev/linux/commit/f8cff82b4956f2b243daa4c120b68f80c774d9cf
        git remote add steev https://github.com/steev/linux
        git fetch --no-tags steev c630-v6.3
        git checkout f8cff82b4956f2b243daa4c120b68f80c774d9cf
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=alpha olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=alpha SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304241141.fKraXeXf-lkp@intel.com/

Note: the steev/c630-v6.3 HEAD b4d83e68be9f1bb3539ea6b23f3f5a9f8cebc7df builds fine.
      It only hurts bisectability.

All errors (new ones prefixed by >>):

>> drivers/power/supply/yoga-c630-ec.c:465:18: error: initialization of 'int (*)(struct i2c_client *)' from incompatible pointer type 'int (*)(struct i2c_client *, const struct i2c_device_id *)' [-Werror=incompatible-pointer-types]
     465 |         .probe = yoga_c630_ec_probe,
         |                  ^~~~~~~~~~~~~~~~~~
   drivers/power/supply/yoga-c630-ec.c:465:18: note: (near initialization for 'yoga_c630_ec_i2c_driver.<anonymous>.probe')
   cc1: some warnings being treated as errors


vim +465 drivers/power/supply/yoga-c630-ec.c

   459	
   460	static struct i2c_driver yoga_c630_ec_i2c_driver = {
   461		.driver = {
   462			.name = "yoga-c630-ec",
   463			.of_match_table = yoga_c630_ec_of_match,
   464		},
 > 465		.probe = yoga_c630_ec_probe,
   466		.id_table = yoga_c630_ec_i2c_id_table,
   467	};
   468	module_i2c_driver(yoga_c630_ec_i2c_driver);
   469	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

                 reply	other threads:[~2023-04-24  3:28 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=202304241141.fKraXeXf-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andersson@kernel.org \
    --cc=dmitry.baryshkov@linaro.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=steev@kali.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.