* [arm-platforms:irq/irq_chip_ro 10/20] drivers/gpio/gpio-mt7621.c:198:22: warning: format specifies type 'char *' but the argument has type 'int'
@ 2022-01-31 18:33 ` kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2022-01-31 18:33 UTC (permalink / raw)
To: Marc Zyngier; +Cc: llvm, kbuild-all, linux-arm-kernel
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/irq_chip_ro
head: 3feae85f6c2365d60a02d167b72a3e7410f82160
commit: a2c5a576e1b1c539e3676c024c67a3c2acfe8852 [10/20] gpio: mt7621: Switch to dynamic chip name output
config: hexagon-randconfig-r041-20220130 (https://download.01.org/0day-ci/archive/20220201/202202010228.xL1vl2JR-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 2cdbaca3943a4d6259119f185656328bd3805b68)
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://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/commit/?id=a2c5a576e1b1c539e3676c024c67a3c2acfe8852
git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
git fetch --no-tags arm-platforms irq/irq_chip_ro
git checkout a2c5a576e1b1c539e3676c024c67a3c2acfe8852
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/gpio/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/gpio/gpio-mt7621.c:194:52: error: passing 'struct irq_data' to parameter of incompatible type 'struct irq_data *'; take the address with &
struct gpio_chip *gc = irq_data_get_irq_chip_data(d);
^
&
include/linux/irq.h:834:65: note: passing argument to parameter 'd' here
static inline void *irq_data_get_irq_chip_data(struct irq_data *d)
^
drivers/gpio/gpio-mt7621.c:198:22: error: implicit declaration of function 'devname' [-Werror,-Wimplicit-function-declaration]
seq_printf(p, "%s", devname(mtk->dev));
^
drivers/gpio/gpio-mt7621.c:198:22: note: did you mean 'dev_name'?
include/linux/device.h:633:27: note: 'dev_name' declared here
static inline const char *dev_name(const struct device *dev)
^
>> drivers/gpio/gpio-mt7621.c:198:22: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat]
seq_printf(p, "%s", devname(mtk->dev));
~~ ^~~~~~~~~~~~~~~~~
%d
drivers/gpio/gpio-mt7621.c:256:32: error: use of undeclared identifier 'mediatek_gpio_irq_print_chip'; did you mean 'mediatek_irq_print_chip'?
rg->irq_chip.irq_print_chip = mediatek_gpio_irq_print_chip;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
mediatek_irq_print_chip
drivers/gpio/gpio-mt7621.c:192:13: note: 'mediatek_irq_print_chip' declared here
static void mediatek_irq_print_chip(struct irq_data d, struct seq_file *p)
^
1 warning and 3 errors generated.
vim +198 drivers/gpio/gpio-mt7621.c
191
192 static void mediatek_irq_print_chip(struct irq_data d, struct seq_file *p)
193 {
194 struct gpio_chip *gc = irq_data_get_irq_chip_data(d);
195 struct mtk_gc *rg = to_mediatek_gpio(gc);
196 struct mtk *mtk = container_of(rg - rg->bank, struct mtk, gc_map[0]);
197
> 198 seq_printf(p, "%s", devname(mtk->dev));
199 }
200
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
^ permalink raw reply [flat|nested] 3+ messages in thread
* [arm-platforms:irq/irq_chip_ro 10/20] drivers/gpio/gpio-mt7621.c:198:22: warning: format specifies type 'char *' but the argument has type 'int'
@ 2022-01-31 18:33 ` kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2022-01-31 18:33 UTC (permalink / raw)
To: Marc Zyngier; +Cc: llvm, kbuild-all, linux-arm-kernel
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/irq_chip_ro
head: 3feae85f6c2365d60a02d167b72a3e7410f82160
commit: a2c5a576e1b1c539e3676c024c67a3c2acfe8852 [10/20] gpio: mt7621: Switch to dynamic chip name output
config: hexagon-randconfig-r041-20220130 (https://download.01.org/0day-ci/archive/20220201/202202010228.xL1vl2JR-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 2cdbaca3943a4d6259119f185656328bd3805b68)
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://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/commit/?id=a2c5a576e1b1c539e3676c024c67a3c2acfe8852
git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
git fetch --no-tags arm-platforms irq/irq_chip_ro
git checkout a2c5a576e1b1c539e3676c024c67a3c2acfe8852
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/gpio/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/gpio/gpio-mt7621.c:194:52: error: passing 'struct irq_data' to parameter of incompatible type 'struct irq_data *'; take the address with &
struct gpio_chip *gc = irq_data_get_irq_chip_data(d);
^
&
include/linux/irq.h:834:65: note: passing argument to parameter 'd' here
static inline void *irq_data_get_irq_chip_data(struct irq_data *d)
^
drivers/gpio/gpio-mt7621.c:198:22: error: implicit declaration of function 'devname' [-Werror,-Wimplicit-function-declaration]
seq_printf(p, "%s", devname(mtk->dev));
^
drivers/gpio/gpio-mt7621.c:198:22: note: did you mean 'dev_name'?
include/linux/device.h:633:27: note: 'dev_name' declared here
static inline const char *dev_name(const struct device *dev)
^
>> drivers/gpio/gpio-mt7621.c:198:22: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat]
seq_printf(p, "%s", devname(mtk->dev));
~~ ^~~~~~~~~~~~~~~~~
%d
drivers/gpio/gpio-mt7621.c:256:32: error: use of undeclared identifier 'mediatek_gpio_irq_print_chip'; did you mean 'mediatek_irq_print_chip'?
rg->irq_chip.irq_print_chip = mediatek_gpio_irq_print_chip;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
mediatek_irq_print_chip
drivers/gpio/gpio-mt7621.c:192:13: note: 'mediatek_irq_print_chip' declared here
static void mediatek_irq_print_chip(struct irq_data d, struct seq_file *p)
^
1 warning and 3 errors generated.
vim +198 drivers/gpio/gpio-mt7621.c
191
192 static void mediatek_irq_print_chip(struct irq_data d, struct seq_file *p)
193 {
194 struct gpio_chip *gc = irq_data_get_irq_chip_data(d);
195 struct mtk_gc *rg = to_mediatek_gpio(gc);
196 struct mtk *mtk = container_of(rg - rg->bank, struct mtk, gc_map[0]);
197
> 198 seq_printf(p, "%s", devname(mtk->dev));
199 }
200
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
* [arm-platforms:irq/irq_chip_ro 10/20] drivers/gpio/gpio-mt7621.c:198:22: warning: format specifies type 'char *' but the argument has type 'int'
@ 2022-01-31 18:33 ` kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2022-01-31 18:33 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3779 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/irq_chip_ro
head: 3feae85f6c2365d60a02d167b72a3e7410f82160
commit: a2c5a576e1b1c539e3676c024c67a3c2acfe8852 [10/20] gpio: mt7621: Switch to dynamic chip name output
config: hexagon-randconfig-r041-20220130 (https://download.01.org/0day-ci/archive/20220201/202202010228.xL1vl2JR-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 2cdbaca3943a4d6259119f185656328bd3805b68)
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://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/commit/?id=a2c5a576e1b1c539e3676c024c67a3c2acfe8852
git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
git fetch --no-tags arm-platforms irq/irq_chip_ro
git checkout a2c5a576e1b1c539e3676c024c67a3c2acfe8852
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/gpio/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/gpio/gpio-mt7621.c:194:52: error: passing 'struct irq_data' to parameter of incompatible type 'struct irq_data *'; take the address with &
struct gpio_chip *gc = irq_data_get_irq_chip_data(d);
^
&
include/linux/irq.h:834:65: note: passing argument to parameter 'd' here
static inline void *irq_data_get_irq_chip_data(struct irq_data *d)
^
drivers/gpio/gpio-mt7621.c:198:22: error: implicit declaration of function 'devname' [-Werror,-Wimplicit-function-declaration]
seq_printf(p, "%s", devname(mtk->dev));
^
drivers/gpio/gpio-mt7621.c:198:22: note: did you mean 'dev_name'?
include/linux/device.h:633:27: note: 'dev_name' declared here
static inline const char *dev_name(const struct device *dev)
^
>> drivers/gpio/gpio-mt7621.c:198:22: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat]
seq_printf(p, "%s", devname(mtk->dev));
~~ ^~~~~~~~~~~~~~~~~
%d
drivers/gpio/gpio-mt7621.c:256:32: error: use of undeclared identifier 'mediatek_gpio_irq_print_chip'; did you mean 'mediatek_irq_print_chip'?
rg->irq_chip.irq_print_chip = mediatek_gpio_irq_print_chip;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
mediatek_irq_print_chip
drivers/gpio/gpio-mt7621.c:192:13: note: 'mediatek_irq_print_chip' declared here
static void mediatek_irq_print_chip(struct irq_data d, struct seq_file *p)
^
1 warning and 3 errors generated.
vim +198 drivers/gpio/gpio-mt7621.c
191
192 static void mediatek_irq_print_chip(struct irq_data d, struct seq_file *p)
193 {
194 struct gpio_chip *gc = irq_data_get_irq_chip_data(d);
195 struct mtk_gc *rg = to_mediatek_gpio(gc);
196 struct mtk *mtk = container_of(rg - rg->bank, struct mtk, gc_map[0]);
197
> 198 seq_printf(p, "%s", devname(mtk->dev));
199 }
200
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-01-31 18:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-31 18:33 [arm-platforms:irq/irq_chip_ro 10/20] drivers/gpio/gpio-mt7621.c:198:22: warning: format specifies type 'char *' but the argument has type 'int' kernel test robot
2022-01-31 18:33 ` kernel test robot
2022-01-31 18:33 ` kernel test robot
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.