lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201510021853.BvrUdUOU%fengguang.wu@intel.com>
Date:	Fri, 2 Oct 2015 18:04:23 +0800
From:	kbuild test robot <lkp@...el.com>
To:	Ingi Kim <ingi2.kim@...sung.com>
Cc:	kbuild-all@...org, robh+dt@...nel.org, pawel.moll@....com,
	mark.rutland@....com, ijc+devicetree@...lion.org.uk,
	galak@...eaurora.org, rpurdie@...ys.net, j.anaszewski@...sung.com,
	sameo@...ux.intel.com, lee.jones@...aro.org,
	devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
	linux-leds@...r.kernel.org, Ingi Kim <ingi2.kim@...sung.com>
Subject: Re: [PATCH 2/2] leds: rt5033: Add RT5033 Flash led device driver

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@...970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@...970.osdl.org>

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

Download attachment ".config.gz" of type "application/octet-stream" (51595 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ