login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
27
Re: [PATCH] bitops: simplify generic bit finding functions
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Harvey Harrison <harvey.harrison@...>
To: Al Viro <viro@...>
Cc: Linus Torvalds <torvalds@...>, Ingo Molnar <mingo@...>, Andrew Morton <akpm@...>, LKML <linux-kernel@...>, <linux-sparse@...>
Subject:
Re: [PATCH] bitops: simplify generic bit finding functions
Date: Sunday, April 27, 2008 - 4:38 pm
On Sun, 2008-04-27 at 21:36 +0100, Al Viro wrote:
quoted text
> On Sun, Apr 27, 2008 at 01:29:21PM -0700, Harvey Harrison wrote: > > > Oh, I didn't realize, I only did this because sparse started spewing out > > lots of: > > include/linux/bitops.h:166:32: warning: shift too big (65536) for type unsigned long > > > > due to shift by size there, and again on line 202...I just wanted something > > that sparse wouldn't warn about and was a little easier to understand to boot. > > That's a sparse problem, really. I wonder if we simply should introduce a > new node type: EXPR_WARN. So that expand would generate those from things > like division by zero/overflow/bad shift *and* emitting an insn for those > would generate a stored warning.
Well, even though it is a sparse problem, I think my revised version was cleaner code anyway.
quoted text
> > Objections?
None here Harvey --
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:
[PATCH] bitops: simplify generic bit finding functions
, Harvey Harrison
, (Sun Apr 27, 4:19 pm)
Re: [PATCH] bitops: simplify generic bit finding functions
, Alexander van Heukelum
, (Mon Apr 28, 10:32 am)
Re: [PATCH] bitops: simplify generic bit finding functions
, Linus Torvalds
, (Sun Apr 27, 4:26 pm)
Re: [PATCH] bitops: simplify generic bit finding functions
, Alexander van Heukelum
, (Mon Apr 28, 10:58 am)
Re: [PATCH] bitops: simplify generic bit finding functions
, Thomas Gleixner
, (Mon Apr 28, 10:04 am)
Re: [PATCH] bitops: simplify generic bit finding functions
, Linus Torvalds
, (Mon Apr 28, 12:25 pm)
Re: [PATCH] bitops: simplify generic bit finding functions
, Thomas Gleixner
, (Mon Apr 28, 12:47 pm)
Re: [PATCH] bitops: simplify generic bit finding functions
, Linus Torvalds
, (Mon Apr 28, 12:54 pm)
Re: [PATCH] bitops: simplify generic bit finding functions
, Andi Kleen
, (Mon Apr 28, 3:57 pm)
Re: [PATCH] bitops: simplify generic bit finding functions
, Thomas Gleixner
, (Mon Apr 28, 3:26 pm)
Re: [PATCH] bitops: simplify generic bit finding functions
, Linus Torvalds
, (Mon Apr 28, 3:37 pm)
[PATCH] bitops: remove "optimizations"
, Thomas Gleixner
, (Tue Apr 29, 6:01 am)
Re: [PATCH] bitops: remove "optimizations"
, David Miller
, (Tue Apr 29, 6:03 am)
Re: [PATCH] bitops: remove "optimizations"
, David Miller
, (Tue Apr 29, 8:34 am)
Re: [PATCH] bitops: remove "optimizations"
, Thomas Gleixner
, (Tue Apr 29, 12:51 pm)
Re: [PATCH] bitops: remove "optimizations"
, David Miller
, (Tue Apr 29, 6:58 pm)
Re: [PATCH] bitops: remove "optimizations"
, David Miller
, (Tue Apr 29, 7:30 pm)
Re: [PATCH] bitops: remove "optimizations"
, Ingo Molnar
, (Tue Apr 29, 10:20 am)
Re: [PATCH] bitops: remove "optimizations"
, David Miller
, (Tue Apr 29, 6:31 pm)
Re: [PATCH] bitops: simplify generic bit finding functions
, Ingo Molnar
, (Mon Apr 28, 5:55 pm)
Re: [PATCH] bitops: simplify generic bit finding functions
, Alexander van Heukelum
, (Mon Apr 28, 11:10 am)
Re: [PATCH] bitops: simplify generic bit finding functions
, Thomas Gleixner
, (Mon Apr 28, 11:58 am)
Re: [PATCH] bitops: simplify generic bit finding functions
, Harvey Harrison
, (Sun Apr 27, 4:29 pm)
Re: [PATCH] bitops: simplify generic bit finding functions
, Linus Torvalds
, (Sun Apr 27, 4:38 pm)
Re: [PATCH] bitops: simplify generic bit finding functions
, Al Viro
, (Sun Apr 27, 5:02 pm)
Re: [PATCH] bitops: simplify generic bit finding functions
, Al Viro
, (Sun Apr 27, 4:36 pm)
Re: [PATCH] bitops: simplify generic bit finding functions
, Harvey Harrison
, (Sun Apr 27, 4:38 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 008/196] Chinese: add translation of volatile-considered-harmful.txt
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg KH
Re: [Patch v2] Make PCI extended config space (MMCONFIG) a driver opt-in
Andrew Morton
-mm merge plans for 2.6.23
git
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Herbert Xu
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
[GIT]: Networking
Rémi Denis-Courmont
[PATCH 01/14] Phonet global definitions
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
0 users
and
693 guests
online.
Syndicate