From: Fengguang Wu <fengguang.wu@intel.com>
To: Jean Delvare <khali@linux-fr.org>
Cc: kernel-janitors@vger.kernel.org,
Parisc List <linux-parisc@vger.kernel.org>
Subject: [jdelvare-staging:i2c-for-linus 9/15] drivers/leds/leds-tca6507.c:179:20: error: field 'gpio' has in
Date: Tue, 16 Oct 2012 05:58:29 +0000 [thread overview]
Message-ID: <20121016055829.GA31864@localhost> (raw)
In-Reply-To: <20121008071452.GA29214@localhost>
Hi Jean,
FYI, kernel build failed on
tree: git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging.git i2c-for-linus
head: c415b303a704e5c5f766fc0404093910c36cc4ab
commit: 3ad7ea18ae8c7ddda46b7276e0bda73e707ea9c1 [9/15] i2c-i801: Support SMBus multiplexing on Asus Z8 series
config: parisc-allyesconfig # make ARCH=parisc allyesconfig
All error/warnings:
drivers/leds/leds-tca6507.c:179:20: error: field 'gpio' has incomplete type
drivers/leds/leds-tca6507.c: In function 'tca6507_gpio_set_value':
drivers/leds/leds-tca6507.c:591:29: warning: initialization from incompatible pointer type [enabled by default]
drivers/leds/leds-tca6507.c:591:29: warning: (near initialization for 'tca') [enabled by default]
drivers/leds/leds-tca6507.c: In function 'tca6507_probe_gpios':
drivers/leds/leds-tca6507.c:640:2: error: implicit declaration of function 'gpiochip_add' [-Werror=implicit-function-declaration]
drivers/leds/leds-tca6507.c: In function 'tca6507_remove_gpio':
drivers/leds/leds-tca6507.c:653:3: error: implicit declaration of function 'gpiochip_remove' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
--
drivers/input/touchscreen/ad7879.c:115:19: error: field 'gc' has incomplete type
drivers/input/touchscreen/ad7879.c: In function 'ad7879_gpio_direction_input':
drivers/input/touchscreen/ad7879.c:385:22: warning: initialization from incompatible pointer type [enabled by default]
drivers/input/touchscreen/ad7879.c:385:22: warning: (near initialization for 'ts') [enabled by default]
drivers/input/touchscreen/ad7879.c: In function 'ad7879_gpio_direction_output':
drivers/input/touchscreen/ad7879.c:399:22: warning: initialization from incompatible pointer type [enabled by default]
drivers/input/touchscreen/ad7879.c:399:22: warning: (near initialization for 'ts') [enabled by default]
drivers/input/touchscreen/ad7879.c: In function 'ad7879_gpio_get_value':
drivers/input/touchscreen/ad7879.c:418:22: warning: initialization from incompatible pointer type [enabled by default]
drivers/input/touchscreen/ad7879.c:418:22: warning: (near initialization for 'ts') [enabled by default]
drivers/input/touchscreen/ad7879.c: In function 'ad7879_gpio_set_value':
drivers/input/touchscreen/ad7879.c:431:22: warning: initialization from incompatible pointer type [enabled by default]
drivers/input/touchscreen/ad7879.c:431:22: warning: (near initialization for 'ts') [enabled by default]
drivers/input/touchscreen/ad7879.c: In function 'ad7879_gpio_add':
drivers/input/touchscreen/ad7879.c:462:3: error: implicit declaration of function 'gpiochip_add' [-Werror=implicit-function-declaration]
drivers/input/touchscreen/ad7879.c: In function 'ad7879_gpio_remove':
drivers/input/touchscreen/ad7879.c:477:3: error: implicit declaration of function 'gpiochip_remove' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
vim +179 drivers/leds/leds-tca6507.c
a6d511e5 NeilBrown 2012-01-10 163 int time_use, level_use;
a6d511e5 NeilBrown 2012-01-10 164 } bank[3];
a6d511e5 NeilBrown 2012-01-10 165 struct i2c_client *client;
a6d511e5 NeilBrown 2012-01-10 166 struct work_struct work;
a6d511e5 NeilBrown 2012-01-10 167 spinlock_t lock;
a6d511e5 NeilBrown 2012-01-10 168
a6d511e5 NeilBrown 2012-01-10 169 struct tca6507_led {
a6d511e5 NeilBrown 2012-01-10 170 struct tca6507_chip *chip;
a6d511e5 NeilBrown 2012-01-10 171 struct led_classdev led_cdev;
a6d511e5 NeilBrown 2012-01-10 172 int num;
a6d511e5 NeilBrown 2012-01-10 173 int ontime, offtime;
a6d511e5 NeilBrown 2012-01-10 174 int on_dflt, off_dflt;
a6d511e5 NeilBrown 2012-01-10 175 int bank; /* Bank used, or -1 */
a6d511e5 NeilBrown 2012-01-10 176 int blink; /* Set if hardware-blinking */
a6d511e5 NeilBrown 2012-01-10 177 } leds[NUM_LEDS];
a6d511e5 NeilBrown 2012-01-10 178 #ifdef CONFIG_GPIOLIB
a6d511e5 NeilBrown 2012-01-10 @179 struct gpio_chip gpio;
a6d511e5 NeilBrown 2012-01-10 180 const char *gpio_name[NUM_LEDS];
a6d511e5 NeilBrown 2012-01-10 181 int gpio_map[NUM_LEDS];
a6d511e5 NeilBrown 2012-01-10 182 #endif
a6d511e5 NeilBrown 2012-01-10 183 };
a6d511e5 NeilBrown 2012-01-10 184
a6d511e5 NeilBrown 2012-01-10 185 static const struct i2c_device_id tca6507_id[] = {
a6d511e5 NeilBrown 2012-01-10 186 { "tca6507" },
a6d511e5 NeilBrown 2012-01-10 187 { }
The code at line 179 was first introduced by commit:
a6d511e leds: add driver for TCA6507 LED controller
---
0-DAY kernel build testing backend Open Source Technology Center
Fengguang Wu, Yuanhan Liu Intel Corporation
WARNING: multiple messages have this Message-ID (diff)
From: Fengguang Wu <fengguang.wu@intel.com>
To: Jean Delvare <khali@linux-fr.org>
Cc: kernel-janitors@vger.kernel.org,
Parisc List <linux-parisc@vger.kernel.org>
Subject: [jdelvare-staging:i2c-for-linus 9/15] drivers/leds/leds-tca6507.c:179:20: error: field 'gpio' has incomplete type
Date: Tue, 16 Oct 2012 13:58:29 +0800 [thread overview]
Message-ID: <20121016055829.GA31864@localhost> (raw)
Hi Jean,
FYI, kernel build failed on
tree: git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging.git i2c-for-linus
head: c415b303a704e5c5f766fc0404093910c36cc4ab
commit: 3ad7ea18ae8c7ddda46b7276e0bda73e707ea9c1 [9/15] i2c-i801: Support SMBus multiplexing on Asus Z8 series
config: parisc-allyesconfig # make ARCH=parisc allyesconfig
All error/warnings:
drivers/leds/leds-tca6507.c:179:20: error: field 'gpio' has incomplete type
drivers/leds/leds-tca6507.c: In function 'tca6507_gpio_set_value':
drivers/leds/leds-tca6507.c:591:29: warning: initialization from incompatible pointer type [enabled by default]
drivers/leds/leds-tca6507.c:591:29: warning: (near initialization for 'tca') [enabled by default]
drivers/leds/leds-tca6507.c: In function 'tca6507_probe_gpios':
drivers/leds/leds-tca6507.c:640:2: error: implicit declaration of function 'gpiochip_add' [-Werror=implicit-function-declaration]
drivers/leds/leds-tca6507.c: In function 'tca6507_remove_gpio':
drivers/leds/leds-tca6507.c:653:3: error: implicit declaration of function 'gpiochip_remove' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
--
drivers/input/touchscreen/ad7879.c:115:19: error: field 'gc' has incomplete type
drivers/input/touchscreen/ad7879.c: In function 'ad7879_gpio_direction_input':
drivers/input/touchscreen/ad7879.c:385:22: warning: initialization from incompatible pointer type [enabled by default]
drivers/input/touchscreen/ad7879.c:385:22: warning: (near initialization for 'ts') [enabled by default]
drivers/input/touchscreen/ad7879.c: In function 'ad7879_gpio_direction_output':
drivers/input/touchscreen/ad7879.c:399:22: warning: initialization from incompatible pointer type [enabled by default]
drivers/input/touchscreen/ad7879.c:399:22: warning: (near initialization for 'ts') [enabled by default]
drivers/input/touchscreen/ad7879.c: In function 'ad7879_gpio_get_value':
drivers/input/touchscreen/ad7879.c:418:22: warning: initialization from incompatible pointer type [enabled by default]
drivers/input/touchscreen/ad7879.c:418:22: warning: (near initialization for 'ts') [enabled by default]
drivers/input/touchscreen/ad7879.c: In function 'ad7879_gpio_set_value':
drivers/input/touchscreen/ad7879.c:431:22: warning: initialization from incompatible pointer type [enabled by default]
drivers/input/touchscreen/ad7879.c:431:22: warning: (near initialization for 'ts') [enabled by default]
drivers/input/touchscreen/ad7879.c: In function 'ad7879_gpio_add':
drivers/input/touchscreen/ad7879.c:462:3: error: implicit declaration of function 'gpiochip_add' [-Werror=implicit-function-declaration]
drivers/input/touchscreen/ad7879.c: In function 'ad7879_gpio_remove':
drivers/input/touchscreen/ad7879.c:477:3: error: implicit declaration of function 'gpiochip_remove' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
vim +179 drivers/leds/leds-tca6507.c
a6d511e5 NeilBrown 2012-01-10 163 int time_use, level_use;
a6d511e5 NeilBrown 2012-01-10 164 } bank[3];
a6d511e5 NeilBrown 2012-01-10 165 struct i2c_client *client;
a6d511e5 NeilBrown 2012-01-10 166 struct work_struct work;
a6d511e5 NeilBrown 2012-01-10 167 spinlock_t lock;
a6d511e5 NeilBrown 2012-01-10 168
a6d511e5 NeilBrown 2012-01-10 169 struct tca6507_led {
a6d511e5 NeilBrown 2012-01-10 170 struct tca6507_chip *chip;
a6d511e5 NeilBrown 2012-01-10 171 struct led_classdev led_cdev;
a6d511e5 NeilBrown 2012-01-10 172 int num;
a6d511e5 NeilBrown 2012-01-10 173 int ontime, offtime;
a6d511e5 NeilBrown 2012-01-10 174 int on_dflt, off_dflt;
a6d511e5 NeilBrown 2012-01-10 175 int bank; /* Bank used, or -1 */
a6d511e5 NeilBrown 2012-01-10 176 int blink; /* Set if hardware-blinking */
a6d511e5 NeilBrown 2012-01-10 177 } leds[NUM_LEDS];
a6d511e5 NeilBrown 2012-01-10 178 #ifdef CONFIG_GPIOLIB
a6d511e5 NeilBrown 2012-01-10 @179 struct gpio_chip gpio;
a6d511e5 NeilBrown 2012-01-10 180 const char *gpio_name[NUM_LEDS];
a6d511e5 NeilBrown 2012-01-10 181 int gpio_map[NUM_LEDS];
a6d511e5 NeilBrown 2012-01-10 182 #endif
a6d511e5 NeilBrown 2012-01-10 183 };
a6d511e5 NeilBrown 2012-01-10 184
a6d511e5 NeilBrown 2012-01-10 185 static const struct i2c_device_id tca6507_id[] = {
a6d511e5 NeilBrown 2012-01-10 186 { "tca6507" },
a6d511e5 NeilBrown 2012-01-10 187 { }
The code at line 179 was first introduced by commit:
a6d511e leds: add driver for TCA6507 LED controller
---
0-DAY kernel build testing backend Open Source Technology Center
Fengguang Wu, Yuanhan Liu Intel Corporation
next prev parent reply other threads:[~2012-10-16 5:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-08 7:14 [jdelvare-staging:i2c-for-linus 9/15] drivers/i2c/busses/i2c-i801.c:1014:21: error: dereferencing po Fengguang Wu
2012-10-15 8:00 ` [jdelvare-staging:i2c-for-linus 9/15] drivers/tty/serial/max310x.c:277:19: error: field 'gpio' has i Fengguang Wu
2012-10-16 3:18 ` [jdelvare-staging:i2c-for-linus 9/15] drivers/input/keyboard/adp5588-keys.c:52:19: error: field 'gc' Fengguang Wu
2012-10-16 5:58 ` Fengguang Wu [this message]
2012-10-16 5:58 ` [jdelvare-staging:i2c-for-linus 9/15] drivers/leds/leds-tca6507.c:179:20: error: field 'gpio' has incomplete type Fengguang Wu
2012-10-24 9:07 ` [jdelvare-staging:i2c-for-linus 9/15] drivers/leds/leds-tca6507.c:179:20: error: field 'gpio' h Jean Delvare
2012-10-24 9:07 ` [jdelvare-staging:i2c-for-linus 9/15] drivers/leds/leds-tca6507.c:179:20: error: field 'gpio' has incomplete type Jean Delvare
2012-10-24 9:11 ` [jdelvare-staging:i2c-for-linus 9/15] drivers/leds/leds-tca6507.c:179:20: error: field 'gpio' ha Fengguang Wu
2012-10-24 9:11 ` [jdelvare-staging:i2c-for-linus 9/15] drivers/leds/leds-tca6507.c:179:20: error: field 'gpio' has incomplete type Fengguang Wu
2012-10-21 1:30 ` [jdelvare-staging:i2c-for-linus 9/15] drivers/leds/leds-pca9532.c:46:19: error: field 'gpio' has inc Fengguang Wu
2012-10-21 1:48 ` [jdelvare-staging:i2c-for-linus 9/15] drivers/input/keyboard/adp5588-keys.c:52:19: error: field Fengguang Wu
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=20121016055829.GA31864@localhost \
--to=fengguang.wu@intel.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=khali@linux-fr.org \
--cc=linux-parisc@vger.kernel.org \
/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.