login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
July
»
13
Re: [bisected] kernel panic 2.6.22 -> 2.6.26-rc9+
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Andrew Morton
Subject:
Re: [bisected] kernel panic 2.6.22 -> 2.6.26-rc9+
Date: Sunday, July 13, 2008 - 2:55 pm
On Sun, 13 Jul 2008 23:51:06 +0200 Krzysztof Halasa <khc@pm.waw.pl> wrote:
quoted text
> Andrew Morton <akpm@linux-foundation.org> writes: > > > --- a/include/asm-arm/bitops.h~a > > +++ a/include/asm-arm/bitops.h > > @@ -277,9 +277,16 @@ static inline int constant_fls(int x) > > * the clz instruction for much better code efficiency. > > */ > > > > -#define fls(x) \ > > +#define __fls(x) \ > > ( __builtin_constant_p(x) ? constant_fls(x) : \ > > ({ int __r; asm("clz\t%0, %1" : "=r"(__r) : "r"(x) : "cc"); 32-__r; }) ) > > + > > +/* Implement fls() in C so that 64-bit args are suitably truncated */ > > +static inline int fls(int x) > > +{ > > + return __fls(x); > > +} > > + > > Well, I like it more as it fixes all possible places instead of only > fls64(). > > But... can't we just move the #define body into the inline fls(x)? > Will there be other users of __fls(x)? It seems the > __builtin_constant_p(x) works for inline functions.
Could. That was a minimal&safe thing.
quoted text
> The above patch fixes the kernel panic, too.
OK, thanks. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[bisected] kernel panic 2.6.22 -> 2.6.26-rc9+
, Krzysztof Halasa
, (Sat Jul 12, 5:28 pm)
Re: [bisected] kernel panic 2.6.22 -> 2.6.26-rc9+
, Andrew Morton
, (Sun Jul 13, 1:31 am)
Re: [bisected] kernel panic 2.6.22 -> 2.6.26-rc9+
, Krzysztof Halasa
, (Sun Jul 13, 3:48 am)
Re: [bisected] kernel panic 2.6.22 -> 2.6.26-rc9+
, Andrew Morton
, (Sun Jul 13, 11:22 am)
Re: [bisected] kernel panic 2.6.22 -> 2.6.26-rc9+
, Krzysztof Halasa
, (Sun Jul 13, 2:51 pm)
Re: [bisected] kernel panic 2.6.22 -> 2.6.26-rc9+
, Andrew Morton
, (Sun Jul 13, 2:55 pm)
Re: [bisected] kernel panic 2.6.22 -> 2.6.26-rc9+
, Willy Tarreau
, (Tue Jul 22, 9:52 pm)
Re: [bisected] kernel panic 2.6.22 -> 2.6.26-rc9+
, Andrew Morton
, (Tue Jul 22, 10:00 pm)
Re: [bisected] kernel panic 2.6.22 -> 2.6.26-rc9+
, Willy Tarreau
, (Tue Jul 22, 10:06 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Alexey Dobriyan
Re: [2.6.22.2 review 09/84] Fix rfkill IRQ flags.
Michael Moore
Re: underage models, pre teen models, lolita porn, young preteens, little lolitas
Alex Riesen
Re: [PATCH 4/7] lib: Introduce strnstr()
Thomas Gleixner
[ANNOUNCE] 2.6.31-rc6-rt2
Mathieu Desnoyers
Re: Linux 2.6.25-rc2
git
:
Blaisorblade
git-unpack-objects < pack file in repository doesn't work!
Matthieu Moy
Re: Cloning empty repositories, was Re: What is the idea for bare repositories?
Linus Torvalds
Re: Untracked working tree files
Peter Karlsson
Re: CRLF problems with Git on Win32
Johannes Schindelin
Re: [PATCH 4/4] git-rebase -i: New option to support rebase with merges
linux-netdev
:
Alan Menegotto
Re: Linux networking implementation and packet capture
Andrew Morton
Re: [PATCH] PHYLIB: IRQ event workqueue handling fixes
Timo Teräs
ip xfrm policy semantics
Jarek Poplawski
Re: [PATCH]: Fix queueing return values...
David Miller
Re: [PATCH 1/2] netdev: bfin_mac: enable bfin_mac net dev driver for BF51x
git-commits-head
:
Linux Kernel Mailing List
Blackfin: don't give CPU its own line in traps output
Linux Kernel Mailing List
No need to do lock_super() for exclusion in generic_shutdown_super()
Linux Kernel Mailing List
x86, msr: Export the register-setting MSR functions via /dev/*/msr
Linux Kernel Mailing List
MIPS: SMTC: Fix lockup in smtc_distribute_timer
Linux Kernel Mailing List
powerpc: gamecube/wii: usbgecko bootwrapper console support
openbsd-misc
:
Aaron Mason
Re: Defending OpenBSD Performance
Henning Brauer
Re: Defending OpenBSD Performance
Henning Brauer
Re: Defending OpenBSD Performance
Christiano Farina Haesbaert
Re: Defending OpenBSD Performance
Nick Holland
Re: 1 out of 3 hunks failed--saving rejects to kerberosV/src/lib/krb5/crypto.c.rej
Colocation donated by:
Syndicate