All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC PATCH v3 14/15] gpio: Add definition for GPIO direction
Date: Sun, 03 Nov 2019 00:45:38 +0800	[thread overview]
Message-ID: <201911030032.7zCI0WxF%lkp@intel.com> (raw)
In-Reply-To: <f08d265c12ebf185c0e1dbbfe0a3f86de4907194.1572606437.git.matti.vaittinen@fi.rohmeurope.com>

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

Hi Matti,

[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on ljones-mfd/for-mfd-next]
[also build test ERROR on v5.4-rc5 next-20191031]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    https://github.com/0day-ci/linux/commits/Matti-Vaittinen/Support-ROHM-BD71828-PMIC/20191102-222004
base:   https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next
config: arm-multi_v5_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=arm 

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

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

   In file included from arch/arm/mach-imx/iomux-v1.c:21:0:
>> arch/arm/mach-imx/iomux-v1.h:47:0: warning: "GPIO_OUT" redefined
    #define GPIO_OUT (1 << 8)
    
   In file included from include/asm-generic/gpio.h:13:0,
                    from arch/arm/include/asm/gpio.h:10,
                    from include/linux/gpio.h:59,
                    from arch/arm/mach-imx/iomux-v1.c:16:
   include/linux/gpio/driver.h:26:0: note: this is the location of the previous definition
    #define GPIO_OUT 0
    
   In file included from arch/arm/mach-imx/iomux-v1.c:21:0:
>> arch/arm/mach-imx/iomux-v1.h:48:0: warning: "GPIO_IN" redefined
    #define GPIO_IN  (0 << 8)
    
   In file included from include/asm-generic/gpio.h:13:0,
                    from arch/arm/include/asm/gpio.h:10,
                    from include/linux/gpio.h:59,
                    from arch/arm/mach-imx/iomux-v1.c:16:
   include/linux/gpio/driver.h:25:0: note: this is the location of the previous definition
    #define GPIO_IN  1
    
--
   In file included from include/asm-generic/gpio.h:13:0,
                    from arch/arm/include/asm/gpio.h:10,
                    from include/linux/gpio.h:59,
                    from arch/arm/plat-orion/gpio.c:21:
>> include/linux/gpio/driver.h:26:18: error: expected identifier or '(' before numeric constant
    #define GPIO_OUT 0
                     ^
>> arch/arm/plat-orion/gpio.c:51:22: note: in expansion of macro 'GPIO_OUT'
    static void __iomem *GPIO_OUT(struct orion_gpio_chip *ochip)
                         ^~~~~~~~
   In file included from include/linux/byteorder/little_endian.h:5:0,
                    from arch/arm/include/uapi/asm/byteorder.h:22,
                    from include/asm-generic/bitops/le.h:6,
                    from arch/arm/include/asm/bitops.h:268,
                    from include/linux/bitops.h:19,
                    from include/linux/kernel.h:12,
                    from arch/arm/plat-orion/gpio.c:13:
   arch/arm/plat-orion/gpio.c: In function '__set_level':
>> include/linux/gpio/driver.h:26:18: error: called object is not a function or function pointer
    #define GPIO_OUT 0
                     ^
   include/uapi/linux/byteorder/little_endian.h:34:51: note: in definition of macro '__le32_to_cpu'
    #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
                                                      ^
>> arch/arm/include/asm/io.h:303:32: note: in expansion of macro 'readl_relaxed'
    #define readl(c)  ({ u32 __v = readl_relaxed(c); __iormb(); __v; })
                                   ^~~~~~~~~~~~~
>> arch/arm/plat-orion/gpio.c:112:6: note: in expansion of macro 'readl'
     u = readl(GPIO_OUT(ochip));
         ^~~~~
   arch/arm/plat-orion/gpio.c:112:12: note: in expansion of macro 'GPIO_OUT'
     u = readl(GPIO_OUT(ochip));
               ^~~~~~~~
   In file included from include/linux/io.h:13:0,
                    from include/linux/irq.h:20,
                    from arch/arm/plat-orion/gpio.c:15:
>> include/linux/gpio/driver.h:26:18: error: called object is not a function or function pointer
    #define GPIO_OUT 0
                     ^
   arch/arm/include/asm/io.h:299:71: note: in definition of macro 'writel_relaxed'
    #define writel_relaxed(v,c) __raw_writel((__force u32) cpu_to_le32(v),c)
                                                                          ^
>> arch/arm/plat-orion/gpio.c:117:2: note: in expansion of macro 'writel'
     writel(u, GPIO_OUT(ochip));
     ^~~~~~
   arch/arm/plat-orion/gpio.c:117:12: note: in expansion of macro 'GPIO_OUT'
     writel(u, GPIO_OUT(ochip));
               ^~~~~~~~
   In file included from include/linux/byteorder/little_endian.h:5:0,
                    from arch/arm/include/uapi/asm/byteorder.h:22,
                    from include/asm-generic/bitops/le.h:6,
                    from arch/arm/include/asm/bitops.h:268,
                    from include/linux/bitops.h:19,
                    from include/linux/kernel.h:12,
                    from arch/arm/plat-orion/gpio.c:13:
   arch/arm/plat-orion/gpio.c: In function 'orion_gpio_get':
>> include/linux/gpio/driver.h:26:18: error: called object is not a function or function pointer
    #define GPIO_OUT 0
                     ^
   include/uapi/linux/byteorder/little_endian.h:34:51: note: in definition of macro '__le32_to_cpu'
    #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
                                                      ^
>> arch/arm/include/asm/io.h:303:32: note: in expansion of macro 'readl_relaxed'
    #define readl(c)  ({ u32 __v = readl_relaxed(c); __iormb(); __v; })
                                   ^~~~~~~~~~~~~
   arch/arm/plat-orion/gpio.c:189:9: note: in expansion of macro 'readl'
      val = readl(GPIO_OUT(ochip));
            ^~~~~
   arch/arm/plat-orion/gpio.c:189:15: note: in expansion of macro 'GPIO_OUT'
      val = readl(GPIO_OUT(ochip));
                  ^~~~~~~~
   arch/arm/plat-orion/gpio.c: In function 'orion_gpio_dbg_show':
>> include/linux/gpio/driver.h:26:18: error: called object is not a function or function pointer
    #define GPIO_OUT 0
                     ^
   include/uapi/linux/byteorder/little_endian.h:34:51: note: in definition of macro '__le32_to_cpu'
    #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
                                                      ^
>> arch/arm/plat-orion/gpio.c:447:8: note: in expansion of macro 'readl_relaxed'
     out = readl_relaxed(GPIO_OUT(ochip));
           ^~~~~~~~~~~~~
   arch/arm/plat-orion/gpio.c:447:22: note: in expansion of macro 'GPIO_OUT'
     out = readl_relaxed(GPIO_OUT(ochip));
                         ^~~~~~~~

vim +26 include/linux/gpio/driver.h

    24	
    25	#define GPIO_IN		1
  > 26	#define GPIO_OUT	0
    27	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

  reply	other threads:[~2019-11-02 16:45 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-01 11:28 [RFC PATCH v3 00/15] Support ROHM BD71828 PMIC Matti Vaittinen
2019-11-01 11:29 ` [RFC PATCH v3 01/15] mfd: bd71828: Support ROHM BD71828 PMIC - core Matti Vaittinen
2019-11-03  1:48   ` kbuild test robot
2019-11-11 10:57   ` Lee Jones
2019-11-11 11:20     ` Vaittinen, Matti
2019-11-01 11:31 ` [RFC PATCH v3 02/15] dt-bindings: mfd: Document ROHM BD71828 bindings Matti Vaittinen
2019-11-05 20:43   ` Rob Herring
2019-11-06 12:55     ` SPAM (R/EU IT) // " Vaittinen, Matti
2019-11-01 11:31 ` [RFC PATCH v3 03/15] dt-bindings: regulator: Document ROHM BD71282 regulator bindings Matti Vaittinen
2019-11-05 20:52   ` Rob Herring
2019-11-07  6:50     ` SPAM (R/EU IT) // " Vaittinen, Matti
2019-11-01 11:32 ` [RFC PATCH v3 04/15] dt-bindings: leds: ROHM BD71282 PMIC LED driver Matti Vaittinen
2019-11-05 19:14   ` Dan Murphy
2019-11-05 20:59     ` Rob Herring
2019-11-06 13:05     ` Vaittinen, Matti
2019-11-05 20:57   ` Rob Herring
2019-11-01 11:33 ` [RFC PATCH v3 05/15] mfd: input: bd71828: Add power-key support Matti Vaittinen
2019-11-11 10:59   ` Lee Jones
2019-11-11 11:07     ` Vaittinen, Matti
2019-11-01 11:38 ` [RFC PATCH v3 06/15] clk: bd718x7: Support ROHM BD71828 clk block Matti Vaittinen
2019-11-01 11:39 ` [RFC PATCH v3 07/15] clk: bd718x7: simplify header dependencies Matti Vaittinen
2019-11-01 11:41 ` [RFC PATCH v3 08/15] regulator: bd718x7: Split driver to common and bd718x7 specific parts Matti Vaittinen
2019-11-01 11:42 ` [RFC PATCH v3 09/15] regulator: bd71828: Basic support for ROHM bd71828 PMIC regulators Matti Vaittinen
2019-11-01 11:43 ` [RFC PATCH v3 10/15] regulator: bd71828: Add GPIO based run-level control for regulators Matti Vaittinen
2019-11-03 22:27   ` Linus Walleij
2019-11-04  7:05     ` Vaittinen, Matti
2019-11-05 13:24       ` Linus Walleij
2019-11-05 14:07         ` Vaittinen, Matti
2019-11-01 11:44 ` [RFC PATCH v3 11/15] regulator: bd71828: enhanced run-level support Matti Vaittinen
2019-11-01 11:45 ` [RFC PATCH v3 12/15] regulator: bd71828: Support in-kernel APIs to change run-level Matti Vaittinen
2019-11-01 11:49 ` [RFC PATCH v3 13/15] rtc: bd70528 add BD71828 support Matti Vaittinen
2019-11-01 11:49 ` [RFC PATCH v3 14/15] gpio: Add definition for GPIO direction Matti Vaittinen
2019-11-02 16:45   ` kbuild test robot [this message]
2019-11-03 22:30   ` Linus Walleij
2019-11-04  6:57     ` Vaittinen, Matti
2019-11-04 15:48     ` Vaittinen, Matti
2019-11-05 15:05       ` Linus Walleij
2019-11-06  6:51         ` Vaittinen, Matti
2019-11-01 11:51 ` [RFC PATCH v3 15/15] gpio: bd71828: Initial support for ROHM BD71828 PMIC GPIOs Matti Vaittinen
2019-11-01 11:53 ` [RFC PATCH v3 00/15] Support ROHM BD71828 PMIC Vaittinen, Matti

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=201911030032.7zCI0WxF%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.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.