From: kbuild test robot <lkp@intel.com>
To: Peter Hung <hpeter@gmail.com>
Cc: kbuild-all@01.org, linus.walleij@linaro.org, gnurou@gmail.com,
gregkh@linuxfoundation.org, andriy.shevchenko@linux.intel.com,
paul.gortmaker@windriver.com, lee.jones@linaro.org,
jslaby@suse.com, peter_hong@fintek.com.tw,
heikki.krogerus@linux.intel.com, peter@hurleysoftware.com,
soeren.grunewald@desy.de, udknight@gmail.com,
adam.lee@canonical.com, arnd@arndb.de, manabian@gmail.com,
scottwood@freescale.com, yamada.masahiro@socionext.com,
paul.burton@imgtec.com, mans@mansr.com, matthias.bgg@gmail.com,
ralf@linux-mips.org, linux-kernel@vger.kernel.org,
linux-gpio@vger.kernel.org, linux-serial@vger.kernel.org,
tom_tsai@fintek.com.tw,
Peter Hung <hpeter+linux_kernel@gmail.com>
Subject: Re: [PATCH V2 2/4] gpio: gpio-f81504: Add Fintek F81504/508/512 PCIE-to-UART/GPIO GPIOLIB support
Date: Thu, 28 Jan 2016 17:54:42 +0800 [thread overview]
Message-ID: <201601281741.VQn0cxoj%fengguang.wu@intel.com> (raw)
In-Reply-To: <1453972838-30268-3-git-send-email-hpeter+linux_kernel@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 5319 bytes --]
Hi Peter,
[auto build test ERROR on gpio/for-next]
[also build test ERROR on v4.5-rc1 next-20160128]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]
url: https://github.com/0day-ci/linux/commits/Peter-Hung/Transform-Fintek-PCIE-driver-from-8250-to-MFD/20160128-172929
base: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git for-next
config: i386-allmodconfig (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All error/warnings (new ones prefixed by >>):
In file included from include/linux/list.h:8:0,
from include/linux/kobject.h:20,
from include/linux/device.h:17,
from include/linux/platform_device.h:14,
from drivers/gpio/gpio-f81504.c:18:
drivers/gpio/gpio-f81504.c: In function 'f81504_gpio_direction_in':
>> drivers/gpio/gpio-f81504.c:41:56: error: 'struct gpio_chip' has no member named 'dev'
struct platform_device *pdev = to_platform_device(chip->dev);
^
include/linux/kernel.h:841:49: note: in definition of macro 'container_of'
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
^
>> drivers/gpio/gpio-f81504.c:41:33: note: in expansion of macro 'to_platform_device'
struct platform_device *pdev = to_platform_device(chip->dev);
^
drivers/gpio/gpio-f81504.c: In function 'f81504_gpio_direction_out':
drivers/gpio/gpio-f81504.c:63:56: error: 'struct gpio_chip' has no member named 'dev'
struct platform_device *pdev = to_platform_device(chip->dev);
^
include/linux/kernel.h:841:49: note: in definition of macro 'container_of'
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
^
drivers/gpio/gpio-f81504.c:63:33: note: in expansion of macro 'to_platform_device'
struct platform_device *pdev = to_platform_device(chip->dev);
^
drivers/gpio/gpio-f81504.c: In function 'f81504_gpio_get_direction':
drivers/gpio/gpio-f81504.c:104:56: error: 'struct gpio_chip' has no member named 'dev'
struct platform_device *pdev = to_platform_device(chip->dev);
^
include/linux/kernel.h:841:49: note: in definition of macro 'container_of'
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
^
drivers/gpio/gpio-f81504.c:104:33: note: in expansion of macro 'to_platform_device'
struct platform_device *pdev = to_platform_device(chip->dev);
^
drivers/gpio/gpio-f81504.c: In function 'f81504_gpio_get':
drivers/gpio/gpio-f81504.c:122:56: error: 'struct gpio_chip' has no member named 'dev'
struct platform_device *pdev = to_platform_device(chip->dev);
^
include/linux/kernel.h:841:49: note: in definition of macro 'container_of'
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
^
drivers/gpio/gpio-f81504.c:122:33: note: in expansion of macro 'to_platform_device'
struct platform_device *pdev = to_platform_device(chip->dev);
^
drivers/gpio/gpio-f81504.c: In function 'f81504_gpio_probe':
drivers/gpio/gpio-f81504.c:212:10: error: 'struct gpio_chip' has no member named 'dev'
gc->chip.dev = &pdev->dev;
^
coccinelle warnings: (new ones prefixed by >>)
>> drivers/gpio/gpio-f81504.c:246:3-8: No need to set .owner here. The core will do it.
Please review and possibly fold the followup patch.
vim +41 drivers/gpio/gpio-f81504.c
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
> 18 #include <linux/platform_device.h>
19 #include <linux/gpio.h>
20 #include <linux/pci.h>
21 #include <linux/mfd/f81504.h>
22
23 struct f81504_gpio_chip {
24 struct gpio_chip chip;
25 struct mutex locker;
26 u8 idx;
27 u8 save_out_en;
28 u8 save_drive_en;
29 u8 save_value;
30 };
31
32 static struct f81504_gpio_chip *gpio_to_f81504_chip(struct gpio_chip *chip)
33 {
34 return container_of(chip, struct f81504_gpio_chip, chip);
35 }
36
37 static int f81504_gpio_direction_in(struct gpio_chip *chip, unsigned offset)
38 {
39 u8 tmp;
40 struct f81504_gpio_chip *gc = gpio_to_f81504_chip(chip);
> 41 struct platform_device *pdev = to_platform_device(chip->dev);
42 struct pci_dev *pci_dev = to_pci_dev(pdev->dev.parent);
43
44 mutex_lock(&gc->locker);
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 53466 bytes --]
next prev parent reply other threads:[~2016-01-28 9:56 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-28 9:20 [PATCH V2 0/4] Transform Fintek PCIE driver from 8250 to MFD Peter Hung
2016-01-28 9:20 ` [PATCH V2 1/4] mfd: f81504-core: Add Fintek F81504/508/512 PCIE-to-UART/GPIO core support Peter Hung
2016-01-28 10:04 ` One Thousand Gnomes
2016-01-29 2:22 ` Peter Hung
2016-01-28 11:55 ` Andy Shevchenko
2016-01-29 5:50 ` Peter Hung
2016-01-29 8:21 ` Lee Jones
2016-01-29 8:21 ` Lee Jones
2016-01-29 12:47 ` Andy Shevchenko
2016-02-01 8:29 ` Lee Jones
2016-01-29 13:41 ` Andy Shevchenko
2016-02-01 2:51 ` Peter Hung
2016-02-01 2:51 ` Peter Hung
2016-01-28 9:20 ` [PATCH V2 2/4] gpio: gpio-f81504: Add Fintek F81504/508/512 PCIE-to-UART/GPIO GPIOLIB support Peter Hung
2016-01-28 9:54 ` kbuild test robot [this message]
2016-01-28 9:54 ` [PATCH] gpio: gpio-f81504: fix platform_no_drv_owner.cocci warnings kbuild test robot
2016-01-28 12:03 ` [PATCH V2 2/4] gpio: gpio-f81504: Add Fintek F81504/508/512 PCIE-to-UART/GPIO GPIOLIB support Andy Shevchenko
2016-01-29 8:15 ` Peter Hung
2016-01-29 8:15 ` Peter Hung
2016-02-10 9:08 ` Linus Walleij
2016-02-10 9:08 ` Linus Walleij
2016-02-16 7:03 ` Peter Hung
2016-02-16 7:03 ` Peter Hung
2016-01-28 9:20 ` [PATCH V2 3/4] 8250: 8250_f81504: Add Fintek F81504/508/512 PCIE-to-UART/GPIO UART support Peter Hung
2016-01-28 10:17 ` One Thousand Gnomes
2016-01-28 11:06 ` [PATCH] 8250: 8250_f81504: fix platform_no_drv_owner.cocci warnings kbuild test robot
2016-01-28 11:06 ` [PATCH V2 3/4] 8250: 8250_f81504: Add Fintek F81504/508/512 PCIE-to-UART/GPIO UART support kbuild test robot
2016-01-28 9:20 ` [PATCH V2 4/4] serial: 8250_pci: Remove Fintek F81504/508/512 UART driver Peter Hung
2016-01-28 12:04 ` Andy Shevchenko
2016-01-29 8:20 ` Peter Hung
2016-01-29 8:20 ` Peter Hung
2016-01-29 12:40 ` Andy Shevchenko
2016-01-29 12:40 ` Andy Shevchenko
2016-02-01 3:33 ` Peter Hung
2016-02-01 3:33 ` Peter Hung
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201601281741.VQn0cxoj%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=adam.lee@canonical.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=arnd@arndb.de \
--cc=gnurou@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=heikki.krogerus@linux.intel.com \
--cc=hpeter+linux_kernel@gmail.com \
--cc=hpeter@gmail.com \
--cc=jslaby@suse.com \
--cc=kbuild-all@01.org \
--cc=lee.jones@linaro.org \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=manabian@gmail.com \
--cc=mans@mansr.com \
--cc=matthias.bgg@gmail.com \
--cc=paul.burton@imgtec.com \
--cc=paul.gortmaker@windriver.com \
--cc=peter@hurleysoftware.com \
--cc=peter_hong@fintek.com.tw \
--cc=ralf@linux-mips.org \
--cc=scottwood@freescale.com \
--cc=soeren.grunewald@desy.de \
--cc=tom_tsai@fintek.com.tw \
--cc=udknight@gmail.com \
--cc=yamada.masahiro@socionext.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.