lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Sun, 5 Apr 2009 13:51:26 -0400
From:	Andres Salomon <dilinger@...ued.net>
To:	Randy Dunlap <randy.dunlap@...cle.com>
Cc:	linux-kernel@...r.kernel.org,
	Andrew Morton <akpm@...ux-foundation.org>
Subject: [PATCH] [OLPC] force GENERIC_GPIO to be defined when OLPC is
 selected

Hi,

Thanks for the report, and sorry for the late response.  The patch below
*should* fix this, but I'm having trouble compiling generic gpio support in
with the config that you supplied.


  CC      drivers/i2c/busses/i2c-pca-platform.o
In file included from /home/dilinger/git/linux-2.6/arch/x86/include/asm/gpio.h:19,
                 from include/linux/gpio.h:7,
                 from drivers/i2c/busses/i2c-pca-platform.c:24:
include/asm-generic/gpio.h: In function ‘gpio_get_value_cansleep’:
include/asm-generic/gpio.h:163: error: implicit declaration of function ‘gpio_get_value’
include/asm-generic/gpio.h: In function ‘gpio_set_value_cansleep’:
include/asm-generic/gpio.h:169: error: implicit declaration of function ‘gpio_set_value’

This is, however, on a different kernel tree (2.6.29 + cs553x patches).



On Thu, 12 Mar 2009 10:00:33 -0700
Randy Dunlap <randy.dunlap@...cle.com> wrote:

> akpm@...ux-foundation.org wrote:
> > The mm-of-the-moment snapshot 2009-03-11-16-06 has been uploaded to
> > 
> >    http://userweb.kernel.org/~akpm/mmotm/
> > 
> > and will soon be available at
> > 
> >    git://git.zen-sources.org/zen/mmotm.git
> > 
> > It contains the following patches against 2.6.29-rc7:
> 
> > cs553x-gpio-add-amd-cs5535-cs5536-gpio-driver-support.patch
> > cs553x-gpio-add-amd-cs5535-cs5536-gpio-driver-support-fix.patch
> > alsa-cs5535audio-free-olpc-quirks-from-reliance-on-mgeode_lx-cpu-optimization.patch
> 
> 
> With these kconfig options:
> CONFIG_SND_CS5535AUDIO=m
> CONFIG_OLPC=y
> 
> build fails with:
> ERROR: "olpc_mic_bias" [sound/pci/cs5535audio/snd-cs5535audio.ko]
> undefined! ERROR:
> "olpc_quirks" [sound/pci/cs5535audio/snd-cs5535audio.ko] undefined!
> ERROR:
> "olpc_quirks_cleanup" [sound/pci/cs5535audio/snd-cs5535audio.ko]
> undefined! ERROR:
> "olpc_prequirks" [sound/pci/cs5535audio/snd-cs5535audio.ko]
> undefined! ERROR:
> "olpc_analog_input" [sound/pci/cs5535audio/snd-cs5535audio.ko]
> undefined!
> 
> 
> full .config is attached.
> 





We've begun using the generic GPIO stuff for geodes, so OLPC implicitly
depends upon this.  This patch forces selection of it.

Signed-off-by: Andres Salomon <dilinger@...ian.org>
---
 arch/x86/Kconfig               |    1 +
 sound/pci/cs5535audio/Makefile |    2 --
 2 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index bc2fbad..588ec18 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -1925,6 +1925,7 @@ config GEODE_MFGPT_TIMER
 config OLPC
 	bool "One Laptop Per Child support"
 	default n
+	select GENERIC_GPIO
 	help
 	  Add support for detecting the unique features of the OLPC
 	  XO hardware.
diff --git a/sound/pci/cs5535audio/Makefile b/sound/pci/cs5535audio/Makefile
index 9b5c689..ccc6422 100644
--- a/sound/pci/cs5535audio/Makefile
+++ b/sound/pci/cs5535audio/Makefile
@@ -4,9 +4,7 @@
 
 snd-cs5535audio-y := cs5535audio.o cs5535audio_pcm.o
 snd-cs5535audio-$(CONFIG_PM) += cs5535audio_pm.o
-ifdef CONFIG_GENERIC_GPIO
 snd-cs5535audio-$(CONFIG_OLPC) += cs5535audio_olpc.o
-endif
 
 # Toplevel Module Dependency
 obj-$(CONFIG_SND_CS5535AUDIO) += snd-cs5535audio.o
-- 
1.5.6.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ