[renesas-drivers:topic/renesas-overlays 14/88] drivers//of/unittest.c:1970:2: error: implicit declaration of function 'of_overlay_create_indirect'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git topic/renesas-overlays
head:   1b3280e42a0063f04f3ab7c9f8bbe4b5c65c51d9
commit: 71f8b1178fc334bfb92d8f2c6296a6c83c276b18 [14/88] of: unittest: Add indirect overlay target test
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 71f8b1178fc334bfb92d8f2c6296a6c83c276b18
        # save the attached .config to linux build tree
        make.cross ARCH=xtensa 

All errors (new ones prefixed by >>):

   drivers//of/unittest.c: In function 'of_unittest_overlay_16':
>> drivers//of/unittest.c:1970:2: error: implicit declaration of function 'of_overlay_create_indirect' [-Werror=implicit-function-declaration]
     ret = of_overlay_create_indirect(np, "unittest16");
     ^
   cc1: some warnings being treated as errors

vim +/of_overlay_create_indirect +1970 drivers//of/unittest.c

  1941	
  1942	static void of_unittest_overlay_16(void)
  1943	{
  1944		int ret;
  1945		int overlay_nr = 16;
  1946		int unittest_nr = 16;
  1947		enum overlay_type ovtype = PDEV_OVERLAY;
  1948		int before = 0;
  1949		int after = 1;
  1950		struct device_node *np = NULL;
  1951		int id = -1;
  1952	
  1953		/* unittest device must not be in before state */
  1954		if (of_unittest_device_exists(unittest_nr, ovtype) != before) {
  1955			unittest(0, "overlay @\"%s\" with device @\"%s\" %s\n",
  1956					overlay_path(overlay_nr),
  1957					unittest_path(unittest_nr, ovtype),
  1958					!before ? "enabled" : "disabled");
  1959			return;
  1960		}
  1961	
  1962		np = of_find_node_by_path(overlay_path(overlay_nr));
  1963		if (np == NULL) {
  1964			unittest(0, "could not find overlay node @\"%s\"\n",
  1965					overlay_path(overlay_nr));
  1966			ret = -EINVAL;
  1967			goto out;
  1968		}
  1969	
> 1970		ret = of_overlay_create_indirect(np, "unittest16");
  1971		if (ret < 0) {
  1972			unittest(0, "could not create overlay from \"%s\"\n",
  1973					overlay_path(overlay_nr));
  1974			goto out;
  1975		}
  1976		id = ret;
  1977		of_unittest_track_overlay(id);
  1978	
  1979		ret = 0;
  1980	
  1981	out:
  1982		of_node_put(np);
  1983	
  1984		if (ret)
  1985			return;
  1986	
  1987		/* unittest device must be to set to after state */
  1988		if (of_unittest_device_exists(unittest_nr, ovtype) != after) {
  1989			unittest(0, "overlay @\"%s\" failed to create @\"%s\" %s\n",
  1990					overlay_path(overlay_nr),
  1991					unittest_path(unittest_nr, ovtype),
  1992					!after ? "enabled" : "disabled");
  1993			return;
  1994		}
  1995	
  1996		unittest(1, "overlay test %d passed\n", 16);
  1997	}
  1998	

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux