From: kbuild test robot <lkp@intel.com>
To: Ingi Kim <ingi2.kim@samsung.com>
Cc: kbuild-all@01.org, robh+dt@kernel.org, pawel.moll@arm.com,
mark.rutland@arm.com, ijc+devicetree@hellion.org.uk,
galak@codeaurora.org, rpurdie@rpsys.net,
j.anaszewski@samsung.com, sameo@linux.intel.com,
lee.jones@linaro.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org,
Ingi Kim <ingi2.kim@samsung.com>
Subject: Re: [PATCH 2/2] leds: rt5033: Add RT5033 Flash led device driver
Date: Fri, 2 Oct 2015 18:04:23 +0800 [thread overview]
Message-ID: <201510021853.BvrUdUOU%fengguang.wu@intel.com> (raw)
In-Reply-To: <1443778875-18261-3-git-send-email-ingi2.kim@samsung.com>
[-- Attachment #1: Type: text/plain, Size: 7260 bytes --]
Hi Ingi,
[auto build test results on v4.3-rc3 -- if it's inappropriate base, please ignore]
config: i386-allmodconfig (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All error/warnings (new ones prefixed by >>):
In file included from include/linux/list.h:8:0,
from include/linux/kobject.h:20,
from include/linux/device.h:17,
from include/linux/leds.h:15,
from include/linux/led-class-flash.h:15,
from include/linux/mfd/rt5033.h:15,
from drivers/leds/leds-rt5033.c:13:
drivers/leds/leds-rt5033.c: In function 'flcdev_to_led':
>> include/linux/kernel.h:811:27: error: 'struct rt5033_led' has no member named 'fled_cdev'
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
^
>> drivers/leds/leds-rt5033.c:28:9: note: in expansion of macro 'container_of'
return container_of(fled_cdev, struct rt5033_led, fled_cdev);
^
include/linux/kernel.h:811:48: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
^
>> drivers/leds/leds-rt5033.c:28:9: note: in expansion of macro 'container_of'
return container_of(fled_cdev, struct rt5033_led, fled_cdev);
^
In file included from include/linux/compiler.h:56:0,
from include/linux/ioport.h:12,
from include/linux/device.h:16,
from include/linux/leds.h:15,
from include/linux/led-class-flash.h:15,
from include/linux/mfd/rt5033.h:15,
from drivers/leds/leds-rt5033.c:13:
>> include/linux/compiler-gcc.h:158:2: error: 'struct rt5033_led' has no member named 'fled_cdev'
__builtin_offsetof(a, b)
^
include/linux/stddef.h:16:32: note: in expansion of macro '__compiler_offsetof'
#define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
^
include/linux/kernel.h:812:29: note: in expansion of macro 'offsetof'
(type *)( (char *)__mptr - offsetof(type,member) );})
^
>> drivers/leds/leds-rt5033.c:28:9: note: in expansion of macro 'container_of'
return container_of(fled_cdev, struct rt5033_led, fled_cdev);
^
drivers/leds/leds-rt5033.c: In function 'rt5033_led_brightness_set':
>> drivers/leds/leds-rt5033.c:42:8: error: 'RT5033_FL_FUNC1_MASK' undeclared (first use in this function)
RT5033_FL_FUNC1_MASK, RT5033_FL_PINCTRL);
^
drivers/leds/leds-rt5033.c:42:8: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/leds/leds-rt5033.c:42:30: error: 'RT5033_FL_PINCTRL' undeclared (first use in this function)
RT5033_FL_FUNC1_MASK, RT5033_FL_PINCTRL);
^
drivers/leds/leds-rt5033.c: In function 'rt5033_init_flash_timeout':
>> drivers/leds/leds-rt5033.c:56:16: error: 'struct rt5033_led' has no member named 'fled_cdev'
setting = &led->fled_cdev.timeout;
^
>> drivers/leds/leds-rt5033.c:58:20: error: 'struct rt5033_led' has no member named 'data'
setting->max = led->data->flash_max_timeout;
^
drivers/leds/leds-rt5033.c:60:20: error: 'struct rt5033_led' has no member named 'data'
setting->val = led->data->flash_max_timeout;
^
drivers/leds/leds-rt5033.c: In function 'rt5033_led_parse_dt':
drivers/leds/leds-rt5033.c:83:5: error: 'struct rt5033_led' has no member named 'fled_cdev'
led->fled_cdev.led_cdev.name =
^
drivers/leds/leds-rt5033.c:106:5: error: 'struct rt5033_led' has no member named 'data'
led->data = data;
^
drivers/leds/leds-rt5033.c: In function 'rt5033_led_flash_strobe_set':
drivers/leds/leds-rt5033.c:124:7: error: 'RT5033_FL_FUNC1_MASK' undeclared (first use in this function)
RT5033_FL_FUNC1_MASK, RT5033_FL_RESET);
^
>> drivers/leds/leds-rt5033.c:133:30: error: 'RT5033_FL_STRB_SEL' undeclared (first use in this function)
RT5033_FL_FUNC1_MASK, RT5033_FL_STRB_SEL
^
drivers/leds/leds-rt5033.c:134:10: error: 'RT5033_FL_PINCTRL' undeclared (first use in this function)
| RT5033_FL_PINCTRL);
^
>> drivers/leds/leds-rt5033.c:136:8: error: 'RT5033_FL_FUNC2_MASK' undeclared (first use in this function)
RT5033_FL_FUNC2_MASK, RT5033_FL_ENFLED
^
>> drivers/leds/leds-rt5033.c:137:10: error: 'RT5033_FL_SREG_STRB' undeclared (first use in this function)
| RT5033_FL_SREG_STRB);
^
drivers/leds/leds-rt5033.c: In function 'rt5033_led_probe':
drivers/leds/leds-rt5033.c:168:5: error: 'struct rt5033_led' has no member named 'fled_cdev'
led->fled_cdev.ops = &flash_ops;
^
drivers/leds/leds-rt5033.c:169:17: error: 'struct rt5033_led' has no member named 'fled_cdev'
led_cdev = &led->fled_cdev.led_cdev;
^
drivers/leds/leds-rt5033.c:175:52: error: 'struct rt5033_led' has no member named 'fled_cdev'
ret = led_classdev_flash_register(&pdev->dev, &led->fled_cdev);
^
drivers/leds/leds-rt5033.c:182:7: error: 'RT5033_FL_FUNC1_MASK' undeclared (first use in this function)
RT5033_FL_FUNC1_MASK, RT5033_FL_RESET);
^
drivers/leds/leds-rt5033.c: In function 'rt5033_led_remove':
drivers/leds/leds-rt5033.c:191:36: error: 'struct rt5033_led' has no member named 'fled_cdev'
led_classdev_flash_unregister(&led->fled_cdev);
^
drivers/leds/leds-rt5033.c: In function 'flcdev_to_led':
>> drivers/leds/leds-rt5033.c:29:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
vim +811 include/linux/kernel.h
^1da177e Linus Torvalds 2005-04-16 805 * @ptr: the pointer to the member.
^1da177e Linus Torvalds 2005-04-16 806 * @type: the type of the container struct this is embedded in.
^1da177e Linus Torvalds 2005-04-16 807 * @member: the name of the member within the struct.
^1da177e Linus Torvalds 2005-04-16 808 *
^1da177e Linus Torvalds 2005-04-16 809 */
^1da177e Linus Torvalds 2005-04-16 810 #define container_of(ptr, type, member) ({ \
^1da177e Linus Torvalds 2005-04-16 @811 const typeof( ((type *)0)->member ) *__mptr = (ptr); \
^1da177e Linus Torvalds 2005-04-16 812 (type *)( (char *)__mptr - offsetof(type,member) );})
^1da177e Linus Torvalds 2005-04-16 813
b9d4f426 Arnaud Lacombe 2011-07-25 814 /* Rebuild everything on CONFIG_FTRACE_MCOUNT_RECORD */
:::::: The code at line 811 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 51595 bytes --]
next prev parent reply other threads:[~2015-10-02 10:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-02 9:41 [PATCH 0/2] Add RT5033 Flash LED driver Ingi Kim
2015-10-02 9:41 ` [PATCH 1/2] leds: rt5033: add DT binding for RT5033 Ingi Kim
2015-10-02 14:31 ` Rob Herring
2015-10-05 10:40 ` Ingi Kim
2015-10-02 9:41 ` [PATCH 2/2] leds: rt5033: Add RT5033 Flash led device driver Ingi Kim
2015-10-02 10:04 ` kbuild test robot [this message]
2015-10-05 7:21 ` Lee Jones
2015-10-05 10:36 ` Ingi Kim
2015-10-02 14:59 ` [PATCH 0/2] Add RT5033 Flash LED driver Jacek Anaszewski
2015-10-05 2:11 ` Ingi Kim
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=201510021853.BvrUdUOU%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=ingi2.kim@samsung.com \
--cc=j.anaszewski@samsung.com \
--cc=kbuild-all@01.org \
--cc=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@kernel.org \
--cc=rpurdie@rpsys.net \
--cc=sameo@linux.intel.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®