Re: [PATCH v2] eeprom/at24: use device_property_*() functions instead of of_get_property()

From: kbuild test robot
Date: Thu Feb 09 2017 - 18:59:15 EST


Hi Ben,

[auto build test ERROR on char-misc/char-misc-testing]
[also build test ERROR on v4.10-rc7]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Ben-Gardner/eeprom-at24-use-device_property_-functions-instead-of-of_get_property/20170210-025938
config: x86_64-randconfig-it0-02100353 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64

All errors (new ones prefixed by >>):

drivers/misc/eeprom/at24.c: In function 'at24_get_pdata':
>> drivers/misc/eeprom/at24.c:580:7: error: request for member 'page_size' in something not a structure or union
chip.page_size = 1;
^

vim +/page_size +580 drivers/misc/eeprom/at24.c

574 } else {
575 /*
576 * This is slow, but we can't know all eeproms, so we better
577 * play safe. Specifying custom eeprom-types via platform_data
578 * is recommended anyhow.
579 */
> 580 chip.page_size = 1;
581 }
582 }
583

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

Attachment: .config.gz
Description: application/gzip