lkml.org 
[lkml]   [2021]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[chenxing:msc313_mainlining 53/78] drivers/gpio/gpio-msc313.c:622:23: error: 'SSD20XD_TTL_OFFSET_TTL0' undeclared
tree:   git://github.com/linux-chenxing/linux.git msc313_mainlining
head: 04c62a6ed8b1b9034464e903809c8b6a9354bf6e
commit: a49bf8bf6981c5b4f5c0dbb89e216ed0537172dc [53/78] gpio: msc313: Add irq support for ssd20xd
config: arm-randconfig-r025-20211214 (https://download.01.org/0day-ci/archive/20211215/202112151308.N8OkCaa1-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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/linux-chenxing/linux/commit/a49bf8bf6981c5b4f5c0dbb89e216ed0537172dc
git remote add chenxing git://github.com/linux-chenxing/linux.git
git fetch --no-tags chenxing msc313_mainlining
git checkout a49bf8bf6981c5b4f5c0dbb89e216ed0537172dc
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash drivers/

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

All errors (new ones prefixed by >>):

drivers/gpio/gpio-msc313.c: In function 'ssd20xd_gpio_child_to_parent_hwirq':
>> drivers/gpio/gpio-msc313.c:622:23: error: 'SSD20XD_TTL_OFFSET_TTL0' undeclared (first use in this function)
622 | if (offset >= SSD20XD_TTL_OFFSET_TTL0 && offset <= SSD20XD_TTL_OFFSET_TTL27){
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpio/gpio-msc313.c:622:23: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/gpio/gpio-msc313.c:622:60: error: 'SSD20XD_TTL_OFFSET_TTL27' undeclared (first use in this function)
622 | if (offset >= SSD20XD_TTL_OFFSET_TTL0 && offset <= SSD20XD_TTL_OFFSET_TTL27){
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpio/gpio-msc313.c:626:28: error: 'SSD20XD_GPIO_OFF_GPIO0' undeclared (first use in this function); did you mean 'SSD20XD_GPIO_GPIO0'?
626 | else if (offset >= SSD20XD_GPIO_OFF_GPIO0 && offset <= SSD20XD_GPIO_OFF_GPIO14){
| ^~~~~~~~~~~~~~~~~~~~~~
| SSD20XD_GPIO_GPIO0
>> drivers/gpio/gpio-msc313.c:626:64: error: 'SSD20XD_GPIO_OFF_GPIO14' undeclared (first use in this function); did you mean 'SSD20XD_GPIO_GPIO14'?
626 | else if (offset >= SSD20XD_GPIO_OFF_GPIO0 && offset <= SSD20XD_GPIO_OFF_GPIO14){
| ^~~~~~~~~~~~~~~~~~~~~~~
| SSD20XD_GPIO_GPIO14
At top level:
drivers/gpio/gpio-msc313.c:607:12: warning: 'ssd20xd_gpio_child_to_parent_hwirq' defined but not used [-Wunused-function]
607 | static int ssd20xd_gpio_child_to_parent_hwirq(struct gpio_chip *chip,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpio/gpio-msc313.c:584:12: warning: 'msc313e_gpio_child_to_parent_hwirq' defined but not used [-Wunused-function]
584 | static int msc313e_gpio_child_to_parent_hwirq(struct gpio_chip *chip,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpio/gpio-msc313.c:565:14: warning: 'msc313_gpio_populate_parent_fwspec' defined but not used [-Wunused-function]
565 | static void *msc313_gpio_populate_parent_fwspec(struct gpio_chip *gc,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for TEGRA20_APB_DMA
Depends on DMADEVICES && (ARCH_TEGRA || COMPILE_TEST
Selected by
- SOC_TEGRA_FUSE && ARCH_TEGRA && ARCH_TEGRA_2x_SOC


vim +/SSD20XD_TTL_OFFSET_TTL0 +622 drivers/gpio/gpio-msc313.c

606
607 static int ssd20xd_gpio_child_to_parent_hwirq(struct gpio_chip *chip,
608 unsigned int child,
609 unsigned int child_type,
610 unsigned int *parent,
611 unsigned int *parent_type)
612 {
613 struct msc313_gpio *priv = gpiochip_get_data(chip);
614 unsigned int offset = priv->gpio_data->offsets[child];
615
616 *parent_type = child_type;
617
618 /*
619 * On the ssd20xd chips a lot more pins are interrupt enabled but it
620 * still isn't a linear mapping and not all pins are wired up.
621 */
> 622 if (offset >= SSD20XD_TTL_OFFSET_TTL0 && offset <= SSD20XD_TTL_OFFSET_TTL27){
623 *parent = ((offset - SSD20XD_TTL_OFFSET_TTL0) >> 2) + 4;
624 return 0;
625 }
> 626 else if (offset >= SSD20XD_GPIO_OFF_GPIO0 && offset <= SSD20XD_GPIO_OFF_GPIO14){
627 *parent = ((offset - SSD20XD_GPIO_OFF_GPIO0) >> 2) + 45;
628 return 0;
629 }
630 else if (offset >= OFF_FUART_RX && offset <= OFF_FUART_RTS){
631 *parent = ((offset - OFF_FUART_RX) >> 2) + 60;
632 return 0;
633 }
634
635 return -EINVAL;
636 }
637

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

\
 
 \ /
  Last update: 2021-12-15 06:09    [W:0.030 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site