From: kernel test robot <lkp@intel.com>
To: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
linux-gpio@vger.kernel.org
Subject: [brgl:gpio/devel 2/2] arch/mips/alchemy/common/gpiolib.c:100:12: error: incompatible function pointer types initializing 'int (*)(struct gpio_chip *, unsigned int, int)' with an expression of type 'void (struct gpio_chip *, unsigned int, int)'
Date: Sun, 27 Jul 2025 07:34:23 +0800 [thread overview]
Message-ID: <202507270738.rj7En3F7-lkp@intel.com> (raw)
Hi Bartosz,
FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git gpio/devel
head: 2c924414c5d54d7ffc883039176b66efbb735b72
commit: 2c924414c5d54d7ffc883039176b66efbb735b72 [2/2] treewide: rename GPIO set callbacks back to their original names
config: mips-db1xxx_defconfig (https://download.01.org/0day-ci/archive/20250727/202507270738.rj7En3F7-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 853c343b45b3e83cc5eeef5a52fc8cc9d8a09252)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250727/202507270738.rj7En3F7-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202507270738.rj7En3F7-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/mips/alchemy/common/gpiolib.c:100:12: error: incompatible function pointer types initializing 'int (*)(struct gpio_chip *, unsigned int, int)' with an expression of type 'void (struct gpio_chip *, unsigned int, int)' [-Wincompatible-function-pointer-types]
100 | .set = gpio1_set,
| ^~~~~~~~~
arch/mips/alchemy/common/gpiolib.c:110:12: error: incompatible function pointer types initializing 'int (*)(struct gpio_chip *, unsigned int, int)' with an expression of type 'void (struct gpio_chip *, unsigned int, int)' [-Wincompatible-function-pointer-types]
110 | .set = gpio2_set,
| ^~~~~~~~~
2 errors generated.
vim +100 arch/mips/alchemy/common/gpiolib.c
51e02b02e65018 arch/mips/alchemy/common/gpiolib-au1000.c Manuel Lauss 2009-06-06 93
51e02b02e65018 arch/mips/alchemy/common/gpiolib-au1000.c Manuel Lauss 2009-06-06 94 struct gpio_chip alchemy_gpio_chip[] = {
51e02b02e65018 arch/mips/alchemy/common/gpiolib-au1000.c Manuel Lauss 2009-06-06 95 [0] = {
51e02b02e65018 arch/mips/alchemy/common/gpiolib-au1000.c Manuel Lauss 2009-06-06 96 .label = "alchemy-gpio1",
51e02b02e65018 arch/mips/alchemy/common/gpiolib-au1000.c Manuel Lauss 2009-06-06 97 .direction_input = gpio1_direction_input,
51e02b02e65018 arch/mips/alchemy/common/gpiolib-au1000.c Manuel Lauss 2009-06-06 98 .direction_output = gpio1_direction_output,
51e02b02e65018 arch/mips/alchemy/common/gpiolib-au1000.c Manuel Lauss 2009-06-06 99 .get = gpio1_get,
51e02b02e65018 arch/mips/alchemy/common/gpiolib-au1000.c Manuel Lauss 2009-06-06 @100 .set = gpio1_set,
51e02b02e65018 arch/mips/alchemy/common/gpiolib-au1000.c Manuel Lauss 2009-06-06 101 .to_irq = gpio1_to_irq,
51e02b02e65018 arch/mips/alchemy/common/gpiolib-au1000.c Manuel Lauss 2009-06-06 102 .base = ALCHEMY_GPIO1_BASE,
51e02b02e65018 arch/mips/alchemy/common/gpiolib-au1000.c Manuel Lauss 2009-06-06 103 .ngpio = ALCHEMY_GPIO1_NUM,
51e02b02e65018 arch/mips/alchemy/common/gpiolib-au1000.c Manuel Lauss 2009-06-06 104 },
51e02b02e65018 arch/mips/alchemy/common/gpiolib-au1000.c Manuel Lauss 2009-06-06 105 [1] = {
51e02b02e65018 arch/mips/alchemy/common/gpiolib-au1000.c Manuel Lauss 2009-06-06 106 .label = "alchemy-gpio2",
51e02b02e65018 arch/mips/alchemy/common/gpiolib-au1000.c Manuel Lauss 2009-06-06 107 .direction_input = gpio2_direction_input,
51e02b02e65018 arch/mips/alchemy/common/gpiolib-au1000.c Manuel Lauss 2009-06-06 108 .direction_output = gpio2_direction_output,
51e02b02e65018 arch/mips/alchemy/common/gpiolib-au1000.c Manuel Lauss 2009-06-06 109 .get = gpio2_get,
51e02b02e65018 arch/mips/alchemy/common/gpiolib-au1000.c Manuel Lauss 2009-06-06 110 .set = gpio2_set,
51e02b02e65018 arch/mips/alchemy/common/gpiolib-au1000.c Manuel Lauss 2009-06-06 111 .to_irq = gpio2_to_irq,
51e02b02e65018 arch/mips/alchemy/common/gpiolib-au1000.c Manuel Lauss 2009-06-06 112 .base = ALCHEMY_GPIO2_BASE,
51e02b02e65018 arch/mips/alchemy/common/gpiolib-au1000.c Manuel Lauss 2009-06-06 113 .ngpio = ALCHEMY_GPIO2_NUM,
51e02b02e65018 arch/mips/alchemy/common/gpiolib-au1000.c Manuel Lauss 2009-06-06 114 },
51e02b02e65018 arch/mips/alchemy/common/gpiolib-au1000.c Manuel Lauss 2009-06-06 115 };
51e02b02e65018 arch/mips/alchemy/common/gpiolib-au1000.c Manuel Lauss 2009-06-06 116
:::::: The code at line 100 was first introduced by commit
:::::: 51e02b02e650183ff1277bcbad6a01d6ea0e9edb MIPS: Alchemy: Rewrite GPIO support.
:::::: TO: Manuel Lauss <manuel.lauss@googlemail.com>
:::::: CC: Ralf Baechle <ralf@linux-mips.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-07-26 23:35 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=202507270738.rj7En3F7-lkp@intel.com \
--to=lkp@intel.com \
--cc=bartosz.golaszewski@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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.