Hi Heiko, [auto build test WARNING on abelloni/rtc-next -- if it's inappropriate base, please suggest rules for selecting the more suitable base] url: https://github.com/0day-ci/linux/commits/Heiko-Schocher/rtc-pcf8563-add-CLKOUT-to-common-clock-framework/20151016-160221 config: sh-ap325rxa_defconfig (attached as .config) reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=sh All warnings (new ones prefixed by >>): drivers/rtc/rtc-pcf8563.c:87:17: error: field 'clkout_hw' has incomplete type drivers/rtc/rtc-pcf8563.c: In function 'pcf8563_clkout_recalc_rate': drivers/rtc/rtc-pcf8563.c:418:28: warning: initialization from incompatible pointer type [enabled by default] >> drivers/rtc/rtc-pcf8563.c:418:28: warning: (near initialization for 'pcf8563') [enabled by default] drivers/rtc/rtc-pcf8563.c: In function 'pcf8563_clkout_set_rate': drivers/rtc/rtc-pcf8563.c:445:28: warning: initialization from incompatible pointer type [enabled by default] drivers/rtc/rtc-pcf8563.c:445:28: warning: (near initialization for 'pcf8563') [enabled by default] drivers/rtc/rtc-pcf8563.c: In function 'pcf8563_clkout_control': drivers/rtc/rtc-pcf8563.c:469:28: warning: initialization from incompatible pointer type [enabled by default] drivers/rtc/rtc-pcf8563.c:469:28: warning: (near initialization for 'pcf8563') [enabled by default] drivers/rtc/rtc-pcf8563.c: In function 'pcf8563_clkout_is_prepared': drivers/rtc/rtc-pcf8563.c:498:28: warning: initialization from incompatible pointer type [enabled by default] drivers/rtc/rtc-pcf8563.c:498:28: warning: (near initialization for 'pcf8563') [enabled by default] drivers/rtc/rtc-pcf8563.c: At top level: drivers/rtc/rtc-pcf8563.c:509:21: error: variable 'pcf8563_clkout_ops' has initializer but incomplete type drivers/rtc/rtc-pcf8563.c:510:2: error: unknown field 'prepare' specified in initializer drivers/rtc/rtc-pcf8563.c:510:2: warning: excess elements in struct initializer [enabled by default] drivers/rtc/rtc-pcf8563.c:510:2: warning: (near initialization for 'pcf8563_clkout_ops') [enabled by default] drivers/rtc/rtc-pcf8563.c:511:2: error: unknown field 'unprepare' specified in initializer drivers/rtc/rtc-pcf8563.c:511:2: warning: excess elements in struct initializer [enabled by default] drivers/rtc/rtc-pcf8563.c:511:2: warning: (near initialization for 'pcf8563_clkout_ops') [enabled by default] drivers/rtc/rtc-pcf8563.c:512:2: error: unknown field 'is_prepared' specified in initializer drivers/rtc/rtc-pcf8563.c:512:2: warning: excess elements in struct initializer [enabled by default] drivers/rtc/rtc-pcf8563.c:512:2: warning: (near initialization for 'pcf8563_clkout_ops') [enabled by default] drivers/rtc/rtc-pcf8563.c:513:2: error: unknown field 'recalc_rate' specified in initializer drivers/rtc/rtc-pcf8563.c:513:2: warning: excess elements in struct initializer [enabled by default] drivers/rtc/rtc-pcf8563.c:513:2: warning: (near initialization for 'pcf8563_clkout_ops') [enabled by default] drivers/rtc/rtc-pcf8563.c:514:2: error: unknown field 'round_rate' specified in initializer drivers/rtc/rtc-pcf8563.c:514:2: warning: excess elements in struct initializer [enabled by default] drivers/rtc/rtc-pcf8563.c:514:2: warning: (near initialization for 'pcf8563_clkout_ops') [enabled by default] drivers/rtc/rtc-pcf8563.c:515:2: error: unknown field 'set_rate' specified in initializer drivers/rtc/rtc-pcf8563.c:515:2: warning: excess elements in struct initializer [enabled by default] drivers/rtc/rtc-pcf8563.c:515:2: warning: (near initialization for 'pcf8563_clkout_ops') [enabled by default] drivers/rtc/rtc-pcf8563.c: In function 'pcf8563_clkout_register_clk': drivers/rtc/rtc-pcf8563.c:523:23: error: storage size of 'init' isn't known drivers/rtc/rtc-pcf8563.c:535:15: error: 'CLK_IS_ROOT' undeclared (first use in this function) drivers/rtc/rtc-pcf8563.c:535:15: note: each undeclared identifier is reported only once for each function it appears in drivers/rtc/rtc-pcf8563.c:544:2: error: implicit declaration of function 'clk_register' [-Werror=implicit-function-declaration] drivers/rtc/rtc-pcf8563.c:547:3: error: implicit declaration of function 'of_clk_add_provider' [-Werror=implicit-function-declaration] drivers/rtc/rtc-pcf8563.c:547:29: error: 'of_clk_src_simple_get' undeclared (first use in this function) drivers/rtc/rtc-pcf8563.c:523:23: warning: unused variable 'init' [-Wunused-variable] cc1: some warnings being treated as errors vim +/pcf8563 +418 drivers/rtc/rtc-pcf8563.c 402 /* 403 * Handling of the clkout 404 */ 405 406 #define clkout_hw_to_pcf8563(_hw) container_of(_hw, struct pcf8563, clkout_hw) 407 408 static int clkout_rates[] = { 409 32768, 410 1024, 411 32, 412 1, 413 }; 414 415 static unsigned long pcf8563_clkout_recalc_rate(struct clk_hw *hw, 416 unsigned long parent_rate) 417 { > 418 struct pcf8563 *pcf8563 = clkout_hw_to_pcf8563(hw); 419 struct i2c_client *client = pcf8563->client; 420 unsigned char buf; 421 int ret = pcf8563_read_block_data(client, PCF8563_REG_CLKO, 1, &buf); 422 423 if (ret < 0) 424 return 0; 425 426 buf &= PCF8563_REG_CLKO_F_MASK; --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: Binary data