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: <201510161800.lgrXcGri%fengguang.wu@intel.com>
Date:	Fri, 16 Oct 2015 18:46:41 +0800
From:	kbuild test robot <lkp@...el.com>
To:	Heiko Schocher <hs@...x.de>
Cc:	kbuild-all@...org, linux-kernel@...r.kernel.org,
	Heiko Schocher <hs@...x.de>,
	Alexandre Belloni <alexandre.belloni@...e-electrons.com>,
	Georg.Soffel@...ch-si.com, rtc-linux@...glegroups.com,
	Alessandro Zummo <a.zummo@...ertech.it>,
	devicetree@...r.kernel.org
Subject: Re: [PATCH v2] rtc: pcf8563: add CLKOUT to common clock framework

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ