linux/include/asm-s390
Martin Schwidefsky afff7e2b3b [PATCH] s390: find_next_{zero}_bit fixes
The find_next_{zero}_bit primitives on s390* should never return a bit number
bigger then the bit field size.  In the case of a bitfield that doesn't end on
a word boundary, an offset that makes the search start at the last word of the
bit field and the last word doesn't contain any zero/one bits the search is
continued with a call to find_first_bit with a negative size.  The search
normally ends pretty quickly because the words following the bit field contain
a mix of zeros and ones.  But the bit number that is returned in this case is
too big.

To fix this and additional if to check for this case is needed.  To make the
code easier to read I removed the assembler parts from the
find_next_{zero}_bit functions, the C-ified code is as good.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-07-27 16:26:04 -07:00
..
a.out.h
atomic.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bitops.h [PATCH] s390: find_next_{zero}_bit fixes 2005-07-27 16:26:04 -07:00
bug.h
bugs.h
byteorder.h
cache.h
cacheflush.h
ccwdev.h
ccwgroup.h
checksum.h
cio.h
cmb.h
compat.h
cpcmd.h
cputime.h
current.h
dasd.h
debug.h
delay.h
div64.h
dma-mapping.h
dma.h
ebcdic.h
elf.h
emergency-restart.h
errno.h
extmem.h
fcntl.h
hardirq.h
idals.h
io.h
ioctl.h
ioctls.h
ipc.h
ipcbuf.h
irq.h
kexec.h
kmap_types.h
linkage.h
local.h
lowcore.h
mathemu.h
mman.h
mmu.h
mmu_context.h
module.h
msgbuf.h
namei.h
page.h
param.h
pci.h
percpu.h
pgalloc.h
pgtable.h
poll.h
posix_types.h
processor.h
ptrace.h
qdio.h
qeth.h
resource.h
rwsem.h
s390_ext.h
scatterlist.h
sections.h
segment.h
semaphore.h
sembuf.h
setup.h
sfp-machine.h
shmbuf.h
shmparam.h
sigcontext.h
siginfo.h
signal.h
sigp.h
smp.h
socket.h
sockios.h
spinlock.h
stat.h
statfs.h
string.h
suspend.h
system.h
tape390.h
termbits.h
termios.h
thread_info.h
timer.h
timex.h
tlb.h
tlbflush.h
todclk.h
topology.h
types.h
uaccess.h
ucontext.h
unaligned.h
unistd.h
user.h
vtoc.h
xor.h