[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <201511240149.QARg1aGT%fengguang.wu@intel.com>
Date: Tue, 24 Nov 2015 01:34:51 +0800
From: kbuild test robot <fengguang.wu@...el.com>
To: Andrew Lunn <andrew@...n.ch>
Cc: kbuild-all@...org, netdev@...r.kernel.org
Subject: [net-next:master 48/50] net/dsa/dsa.c:783:16: error: implicit
declaration of function 'gpio_to_desc'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head: 3d40e44361eab3dd6c969241d12dac7466eb7174
commit: cc30c16344fc3a25153175c7eb9037b2136cd466 [48/50] net: dsa: Add support for a switch reset gpio
config: mips-allyesconfig (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
git checkout cc30c16344fc3a25153175c7eb9037b2136cd466
# save the attached .config to linux build tree
make.cross ARCH=mips
All error/warnings (new ones prefixed by >>):
net/dsa/dsa.c: In function 'dsa_of_probe':
>> net/dsa/dsa.c:783:16: error: implicit declaration of function 'gpio_to_desc' [-Werror=implicit-function-declaration]
cd->reset = gpio_to_desc(gpio);
^
>> net/dsa/dsa.c:783:14: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
cd->reset = gpio_to_desc(gpio);
^
>> net/dsa/dsa.c:784:4: error: implicit declaration of function 'gpiod_direction_output' [-Werror=implicit-function-declaration]
gpiod_direction_output(cd->reset, 0);
^
cc1: some warnings being treated as errors
vim +/gpio_to_desc +783 net/dsa/dsa.c
777 GPIOF_ACTIVE_LOW : 0);
778 ret = devm_gpio_request_one(dev, gpio, flags,
779 "switch_reset");
780 if (ret)
781 goto out_free_chip;
782
> 783 cd->reset = gpio_to_desc(gpio);
> 784 gpiod_direction_output(cd->reset, 0);
785 }
786
787 for_each_available_child_of_node(child, port) {
---
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" (40036 bytes)
Powered by blists - more mailing lists