All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [grant:gpio/next 10/16] gpiolib.c:undefined reference to `gpiod_unexport'
       [not found] <51166e1c.NRfQN8VgI14zuNwf%fengguang.wu@intel.com>
@ 2013-02-09 16:34 ` Grant Likely
  2013-02-10 14:00   ` [PATCH] gpiolib: fix link error when sysfs is not built Alexandre Courbot
  2013-02-10 14:04   ` [grant:gpio/next 10/16] gpiolib.c:undefined reference to `gpiod_unexport' Alex Courbot
  0 siblings, 2 replies; 4+ messages in thread
From: Grant Likely @ 2013-02-09 16:34 UTC (permalink / raw)
  To: Alexandre Courbot; +Cc: Linux Kernel Mailing List

Alex, this is broken when the sysfs interface isn't enabled. Can you
send a fixup patch?

g.

On Sat, Feb 9, 2013 at 3:41 PM, kbuild test robot
<fengguang.wu@intel.com> wrote:
> tree:   git://git.secretlab.ca/git/linux-2.6.git gpio/next
> head:   8a307b35962e42de0f998c6029e8851c61eadb4e
> commit: 5bb47609e8167d733786cb781ada29536385635c [10/16] gpiolib: use descriptors internally
> config: i386-randconfig-b040 (attached as .config)
>
> All error/warnings:
>
>    drivers/built-in.o: In function `gpiod_free':
>>> gpiolib.c:(.text+0xda3): undefined reference to `gpiod_unexport'
>    drivers/built-in.o: In function `gpio_request_one':
>>> (.text+0x147f): undefined reference to `gpiod_export'
>
> ---
> 0-DAY kernel build testing backend              Open Source Technology Center
> http://lists.01.org/mailman/listinfo/kbuild                 Intel Corporation



--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] gpiolib: fix link error when sysfs is not built
  2013-02-09 16:34 ` [grant:gpio/next 10/16] gpiolib.c:undefined reference to `gpiod_unexport' Grant Likely
@ 2013-02-10 14:00   ` Alexandre Courbot
  2013-02-10 18:43     ` Grant Likely
  2013-02-10 14:04   ` [grant:gpio/next 10/16] gpiolib.c:undefined reference to `gpiod_unexport' Alex Courbot
  1 sibling, 1 reply; 4+ messages in thread
From: Alexandre Courbot @ 2013-02-10 14:00 UTC (permalink / raw)
  To: Grant Likely; +Cc: Linux Kernel Mailing List, gnurou, Alexandre Courbot

From: Alexandre Courbot <acourbot@nvidia.com>

Fix all compilation errors and warnings triggered by my latest series of
patch on Grant's linux-next branch. Please meld this patch into the culprit
one to avoid ending with a commit that breaks compilation in the git history.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
---
 drivers/gpio/gpiolib.c | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index b24e820..d283e70 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -1087,6 +1087,27 @@ static inline void gpiochip_unexport(struct gpio_chip *chip)
 {
 }
 
+static inline int gpiod_export(struct gpio_desc *desc,
+			       bool direction_may_change)
+{
+	return -ENOSYS;
+}
+
+static inline int gpiod_export_link(struct device *dev, const char *name,
+				    struct gpio_desc *desc)
+{
+	return -ENOSYS;
+}
+
+static inline int gpiod_sysfs_set_active_low(struct gpio_desc *desc, int value)
+{
+	return -ENOSYS;
+}
+
+static inline void gpiod_unexport(struct gpio_desc *desc)
+{
+}
+
 #endif /* CONFIG_GPIO_SYSFS */
 
 /*
-- 
1.8.1.3


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [grant:gpio/next 10/16] gpiolib.c:undefined reference to `gpiod_unexport'
  2013-02-09 16:34 ` [grant:gpio/next 10/16] gpiolib.c:undefined reference to `gpiod_unexport' Grant Likely
  2013-02-10 14:00   ` [PATCH] gpiolib: fix link error when sysfs is not built Alexandre Courbot
@ 2013-02-10 14:04   ` Alex Courbot
  1 sibling, 0 replies; 4+ messages in thread
From: Alex Courbot @ 2013-02-10 14:04 UTC (permalink / raw)
  To: Grant Likely; +Cc: Linux Kernel Mailing List, gnurou

Hi Grant,

On 02/10/2013 01:34 AM, Grant Likely wrote:
 > Alex, this is broken when the sysfs interface isn't enabled. Can you
 > send a fixup patch?
 >
 > g.
 >
 > On Sat, Feb 9, 2013 at 3:41 PM, kbuild test robot
 > <fengguang.wu@intel.com> wrote:
 >> tree:   git://git.secretlab.ca/git/linux-2.6.git gpio/next
 >> head:   8a307b35962e42de0f998c6029e8851c61eadb4e
 >> commit: 5bb47609e8167d733786cb781ada29536385635c [10/16] gpiolib: 
use descriptors internally
 >> config: i386-randconfig-b040 (attached as .config)
 >>
 >> All error/warnings:
 >>
 >>     drivers/built-in.o: In function `gpiod_free':
 >>>> gpiolib.c:(.text+0xda3): undefined reference to `gpiod_unexport'
 >>     drivers/built-in.o: In function `gpio_request_one':
 >>>> (.text+0x147f): undefined reference to `gpiod_export'

Sorry about that. I have sent you the fix in a separate mail. Please 
meld it into the culprit commit to fix this.

Thanks,
Alex.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] gpiolib: fix link error when sysfs is not built
  2013-02-10 14:00   ` [PATCH] gpiolib: fix link error when sysfs is not built Alexandre Courbot
@ 2013-02-10 18:43     ` Grant Likely
  0 siblings, 0 replies; 4+ messages in thread
From: Grant Likely @ 2013-02-10 18:43 UTC (permalink / raw)
  To: Alexandre Courbot; +Cc: Linux Kernel Mailing List, gnurou, Alexandre Courbot

On Sun, 10 Feb 2013 23:00:21 +0900, Alexandre Courbot <gnurou@gmail.com> wrote:
> From: Alexandre Courbot <acourbot@nvidia.com>
> 
> Fix all compilation errors and warnings triggered by my latest series of
> patch on Grant's linux-next branch. Please meld this patch into the culprit
> one to avoid ending with a commit that breaks compilation in the git history.
> 
> Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>

Applied, thanks. I've pushed it out as a separate commit since I had
already pushed my tree out. so I need to make sure linusw hasn't pulled
it and applied anything on top before I respin.

g.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-02-10 18:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <51166e1c.NRfQN8VgI14zuNwf%fengguang.wu@intel.com>
2013-02-09 16:34 ` [grant:gpio/next 10/16] gpiolib.c:undefined reference to `gpiod_unexport' Grant Likely
2013-02-10 14:00   ` [PATCH] gpiolib: fix link error when sysfs is not built Alexandre Courbot
2013-02-10 18:43     ` Grant Likely
2013-02-10 14:04   ` [grant:gpio/next 10/16] gpiolib.c:undefined reference to `gpiod_unexport' Alex Courbot

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.