All of lore.kernel.org
 help / color / mirror / Atom feed
* bugs compiling 2.6.35.4
@ 2010-09-10  1:29 Dennis Gilmore
  2010-09-10  3:36 ` David Miller
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Dennis Gilmore @ 2010-09-10  1:29 UTC (permalink / raw)
  To: sparclinux

[-- Attachment #1: Type: text/plain, Size: 1454 bytes --]

Trying to compile the current Fedora 14 kernel 
im getting 
drivers/built-in.o: In function `n2_des_setkey':
/builddir/build/BUILD/kernel-2.6.35.fc14/linux-2.6.35.sparc64/drivers/crypto/n2_core.c:701: 
undefined reference to `des_ekey'
`.exit.text' referenced in section `.devexit.text' of drivers/built-in.o: 
defined in discarded section `.exit.text' of drivers/built-in.o

we have CONFIG_CRYPTO_DEV_NIAGARA2=y and CONFIG_CRYPTO_DES=m 


With CONFIG_DEBUG_STRICT_USER_COPY_CHECKS=y  i get the following while 
unsetting it allows compilation to move on

In file included from 
/builddir/build/BUILD/kernel-2.6.35.fc14/linux-2.6.35.sparc64/arch/sparc/include/asm/uaccess.h:4,
                 from 
/builddir/build/BUILD/kernel-2.6.35.fc14/linux-2.6.35.sparc64/arch/sparc/include/asm/elf_64.h:10,
                 from 
/builddir/build/BUILD/kernel-2.6.35.fc14/linux-2.6.35.sparc64/arch/sparc/include/asm/elf.h:4,
                 from include/linux/elf.h:7,
                 from include/linux/module.h:14,
                 from fs/debugfs/file.c:16:
In function 'copy_from_user',
    inlined from 'write_file_bool' at fs/debugfs/file.c:434:
/builddir/build/BUILD/kernel-2.6.35.fc14/linux-2.6.35.sparc64/arch/sparc/include/asm/uaccess_64.h:232: 
error: call to 'copy_from_user_overflow' declared with attribute error: 
copy_from_user() buffer size is not provably correct
make[2]: *** [fs/debugfs/file.o] Error 1

Dennis

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: bugs compiling 2.6.35.4
  2010-09-10  1:29 bugs compiling 2.6.35.4 Dennis Gilmore
@ 2010-09-10  3:36 ` David Miller
  2010-09-10  3:56 ` Dennis Gilmore
  2010-09-10  4:08 ` David Miller
  2 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2010-09-10  3:36 UTC (permalink / raw)
  To: sparclinux


Turn off CONFIG_DEBUG_STRICT_USER_COPY_CHECKS in your config, it
is a debugging facility for kernel developers not something you
should enable yourself.

In fact because so many people turned this on and report the build
failures, I've simply just removed it from the tree as I got tired
of explaining this every single time :-/

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

* Re: bugs compiling 2.6.35.4
  2010-09-10  1:29 bugs compiling 2.6.35.4 Dennis Gilmore
  2010-09-10  3:36 ` David Miller
@ 2010-09-10  3:56 ` Dennis Gilmore
  2010-09-10  4:08 ` David Miller
  2 siblings, 0 replies; 4+ messages in thread
From: Dennis Gilmore @ 2010-09-10  3:56 UTC (permalink / raw)
  To: sparclinux

[-- Attachment #1: Type: Text/Plain, Size: 807 bytes --]

On Thursday, September 09, 2010 10:36:51 pm David Miller wrote:
> Turn off CONFIG_DEBUG_STRICT_USER_COPY_CHECKS in your config, it
> is a debugging facility for kernel developers not something you
> should enable yourself.
> 
> In fact because so many people turned this on and report the build
> failures, I've simply just removed it from the tree as I got tired
> of explaining this every single time :-/
> --
> To unsubscribe from this list: send the line "unsubscribe sparclinux" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

the fedora kernel devs have it enabled.  and we picked it up though the 
generic configs for every arch.  for now ive turned it off however the first 
issue still exists.

Dennis

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: bugs compiling 2.6.35.4
  2010-09-10  1:29 bugs compiling 2.6.35.4 Dennis Gilmore
  2010-09-10  3:36 ` David Miller
  2010-09-10  3:56 ` Dennis Gilmore
@ 2010-09-10  4:08 ` David Miller
  2 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2010-09-10  4:08 UTC (permalink / raw)
  To: sparclinux

From: Dennis Gilmore <dennis@ausil.us>
Date: Thu, 9 Sep 2010 22:56:29 -0500

> for now ive turned it off however the first issue still exists.

Ok, I need to add a CRYPTO_DES dependency on the N2 crypto
driver.

I'll send the following patch to the crypto maintainer, thanks.

diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig
index ea0b386..ad1cd59 100644
--- a/drivers/crypto/Kconfig
+++ b/drivers/crypto/Kconfig
@@ -172,6 +172,7 @@ config CRYPTO_DEV_MV_CESA
 
 config CRYPTO_DEV_NIAGARA2
        tristate "Niagara2 Stream Processing Unit driver"
+       select CRYPTO_DES
        select CRYPTO_ALGAPI
        depends on SPARC64
        help

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

end of thread, other threads:[~2010-09-10  4:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-10  1:29 bugs compiling 2.6.35.4 Dennis Gilmore
2010-09-10  3:36 ` David Miller
2010-09-10  3:56 ` Dennis Gilmore
2010-09-10  4:08 ` David Miller

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.