- 06 Oct, 2004 2 commits
-
-
David Mosberger authored
Put back a secondary declaration of ipi_base_addr in hardirq.h. It really is needed for UP builds and there doesn't seem to be an easy way to avoid include-hell otherwise. Signed-off-by: davidm@hpl.hp.com Signed-off-by: Tony Luck <tony.luck@intel.com>
-
Tony Luck authored
We had hardcoded defines for TI_TASK TI_EXEC_DOMAIN, TI_FLAGS, TI_CPU, TI_ADDR_LIMIT, TI_PRE_COUNT, TI_RESTART_BLOCK; but only two of these were ever used. Remove all from thread_info.h, and generate the two that we do use (TI_FLAGS and TI_PRE_COUNT) in asm_offsets.c Patch supplied by Zou Nan hai Signed-off-by: Tony Luck <tony.luck@intel.com>
-
- 05 Oct, 2004 11 commits
-
-
David Mosberger authored
Here are three more sparse-triggered fixes which didn't fit anywhere else. The first one gets rid of some quoting in palinfo.c which sparse doesn't like. This used to be necessary because GCC would otherwise warn about an unknown trigraph. That's not a problem anymore since the kernel is now being compiled with -Wno-trigraphs. The efirtc.c patch is mostly sparse-annotations but also cleans up trailing whitespace. Finally, the bitfields in rwlock_t are changed to be explicitly "unsigned" to avoid a warning from sparse (it doesn't like 1-bit signed bitfields in particular). Signed-off-by: David Mosberger-Tang <davidm@hpl.hp.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
-
David Mosberger authored
This patch adds __iomem annotations. The only less-than-trivial part of the patch is the change of ipi_base_addr from "unsigned long" to "void __iomem *" but even that part should be safe. The patch results in additional warnings from certain drivers (e.g., eepro100.c) but the warnings are harmless and just indicate that the offending drivers need to be updated for the more strict __iomem checking. The patch has been boot-tested. Signed-off-by: David Mosberger-Tang <davidm@hpl.hp.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
-
David Mosberger authored
This enables sparse for ia64 and adds a basic set of __user annotations. Apart for sys_execve() and the uaccess.h changes, the patch is trivially safe. Also note that in gcc_intrin.h, I changed "asm __volatile" to "asm volatile" since sparse didn't like the old version (and it's a "strane" version anyhow). Patch has been (boot) tested. Signed-off-by: David Mosberger-Tang <davidm@hpl.hp.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
-
David Mosberger authored
Sparse wants us to be clear about (unsigned) long constants. Make it so. Signed-off-by: David Mosberger-Tang <davidm@hpl.hp.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
-
David Mosberger authored
Sparse really wants NULL for NULL-pointers. This patch makes it so. The patch should be safe. It compiles fine, creates no additional warnings, and the results has been boot-tested on an rx2600. Signed-off-by: David Mosberger-Tang <davidm@hpl.hp.com> Signed-off-by: Tony Luck <tomy.luck@intel.com>
-
David Mosberger authored
copy_siginfo_from_user32() directly dereferences a user-pointer, which is a no-no. At that point, to->si_code already has been initialized so I think we can just use to->si_code instead. Compile-tested (only) patch attached. Signed-off-by: davidm@hpl.hp.com Signed-off-by: Tony Luck <tony.luck@intel.com>
-
David Mosberger authored
Another sparse-detected bug. Signed-off-by: davidm@hpl.hp.com Signed-off-by: Tony Luck <tony.luck@intel.com>
-
David Mosberger authored
Here is another fix for a sparse-detected bug: turns out ptrace_getregs() and ptrace_putregs() did unchecked user-memory accesses! These were tricky to see, so it's not surprising that they went unnoticed so far. Fortunately, sparse can detect these trivially. Patch below should fix the problem, but it's completely untested (I don't have any testcases for getregs/putregs). These were found by sparse. Signed-off-by: davidm@hpl.hp.com Signed-off-by: Tony Luck <tony.luck@intel.com>
-
David Mosberger authored
Signed-off-by: davidm@hpl.hp.com Signed-off-by: Tony Luck <tony.luck@intel.com>
-
Stéphane Eranian authored
the pfm_fasync() function must not lock the context and mask interrupts because the fasync_helper() function may allocate memory and this could lead to sleeping, due to SLAB_KERNEL memory type, if no memory is available. Going to sleep with interrupts mask is not allowed otherwise you have a deadlock. The locking of the context is not necessary in this function because it is protected by caller via get_fd()/put_fd(). The async_queue is also protected. Serialization to pfm_fasync() is also ensured by caller. The fix is to drop the PROTECT_CTX() and UNPROTECT_CTX() calls. signed-off-by: stephane eranian <eranian@hpl.hp.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
-
Tony Luck authored
into agluck-lia64.sc.intel.com:/data/home/aegl/BK/linux-ia64-release-2.6.9
-
- 04 Oct, 2004 2 commits
-
-
Linus Torvalds authored
Al suggested a sparse warning. And sure enough, it found these ones.
-
bk://ppc.bkbits.net/for-linus-ppcLinus Torvalds authored
into ppc970.osdl.org:/home/torvalds/v2.6/linux
-
- 03 Oct, 2004 25 commits
-
-
Bastian Blank authored
The attached patch makes s390 sclp driver buildable again. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
bk://bk.arm.linux.org.uk/linux-2.6-rmkLinus Torvalds authored
into ppc970.osdl.org:/home/torvalds/v2.6/linux
-
Ben Dooks authored
Patch from Ben Dooks Add definitions to the MISCCR register for configuration of the signal states in power down mode. Signed-off-by: Ben Dooks
-
Ben Dooks authored
Patch from Ben Dooks Include file include/asm-arm/arch-s3c2410/regs-iic.h, for the I2C controller on the S3C2410 Samsung SoC. Signed-off-by: Ben Dooks
-
Ben Dooks authored
Patch from Ben Dooks Header file include/asm-arm/arch-s3c2410/regs-mem.h containing definitions for the S3C2410 memory controller Signed-off-by: Ben Dooks
-
Dave Jiang authored
Patch from Dave Jiang Latest IQ80331 redboot changed value of ATU registers and is causing master aborts on the plugged in card. Changing value back to previous sane state for Linux. Signed-off-by: Dave Jiang (dave.jiang@gmail.com) Patch in replacement of 2099/1 due to formatting problems.
-
Russell King authored
-
Russell King authored
-
Russell King authored
-
Russell King authored
Some compilers seem to get "%?" wrong in macros.
-
Russell King authored
We really need to check that we have access to the whole of the signal frame when we allocate it, rather than "most of it" when we have iWMMXt extensions selected.
-
Russell King authored
- Use ISA_DMA_THRESHOLD as the mask for GFP_DMA allocations. - Don't allow DMA allocations which are for a "smaller" mask than ISA_DMA_THRESHOLD. - Ensure that "handle" is initialised to our error value when returning an error.
-
Russell King authored
-
Russell King authored
Add locking for use of kecardd services. Use wait_event_interruptible() rather htan interruptible_sleep_on().
-
Ben Dooks authored
Patch from Ben Dooks Fix missing changelog entries in <asm-arm/arch-s3c2410/hardware.h>, and erroneous EINT definitions in <asm-arm/arch-s3c2410/regs-gpio.h>. Added s3c2410_gpio_getcfg(pin) and s3c2410_gpio_getirq(pin) to get the current configuration of an pin, and which IRQ (if any) maps to it. Signed-off-by: Ben Dooks
-
Ben Dooks authored
Patch from Ben Dooks USB power control and over-current sense Signed-off-by: Ben Dooks
-
Ben Dooks authored
Patch from Ben Dooks Port power control and management for S3C2410 internal USB controller for different boards to interface their power control system to. Signed-off-by: Ben Dooks
-
Sascha Hauer authored
Patch from Sascha Hauer This patch fixes the i.MX timer functions: - imx_gettimeoffset() now returns proper values - fix timer interrupt frequency Signed-off-by: Sascha Hauer
-
Roland Dreier authored
After the "ppc64 monster cleanup," I get powerpc-750-linux-gnu-strip: vmlinux: File format not recognized from my ppc32 strip command when cross-compiling a ppc64 kernel, since vmlinux is a 64-bit ELF file. This patch fixes my build (and the resulting kernel boots fine). Signed-off-by: Roland Dreier <roland@topspin.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Davide Libenzi authored
Ulrich Drepper points out that EPOLL_CTL_DEL doesn't need to copy any of the hash events. Also, we should specify in the man pages that a NULL is allowed in EPOLL_CTL_DEL. Currently it does not say that. Also, starting from when epoll uses rbtrees instead of hashes, the 'size' hint passed to epoll_create(2) is no more used. But since an API change has clearly to be excluded, I guess it'll stay as is. Signed-off-by: Davide Libenzi <davidel@xmailserver.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Josef \'Jeff\' Sipek authored
Add $DEVPATH to the environmental variables during /sbin/hotplug call. Signed-off-by: Josef 'Jeff' Sipek <jeffpc@optonline.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Josef \'Jeff\' Sipek authored
Signed-off-by: Josef "Jeff" Sipek <jeffpc@optonline.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Andreas Schwab authored
Make the PowerMac7,3 no longer unknown. Signed-off-by: Andreas Schwab <schwab@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Alan Cox authored
Missing up() on an error path. Cc: Greg KH <greg@kroah.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
bk://linux-ntfs.bkbits.net/ntfs-2.6Linus Torvalds authored
into ppc970.osdl.org:/home/torvalds/v2.6/linux
-