18 Sep, 2006
1 commit
-
If the user tries to traverse to the next node of the
last node, we get NULL in current_node and a zero phandle
returned. That's fine, but if the user tries to obtain
properties in that state, we try to dereference a NULL
pointer in the downcall to the of_*() routines.So protect against that.
Signed-off-by: David S. Miller
22 Jul, 2006
1 commit
-
Just name them "sbus%d" otherwise on sun4d we try to register
multiple entries named "sbi@0,0" which does not work.Based upon a report from Raymond Burns.
Signed-off-by: David S. Miller
03 Jul, 2006
1 commit
-
Signed-off-by: Thomas Gleixner
Cc: Ingo Molnar
Cc: "David S. Miller"
Cc: Benjamin Herrenschmidt
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
01 Jul, 2006
1 commit
-
Signed-off-by: Jörn Engel
Signed-off-by: Adrian Bunk
27 Jun, 2006
4 commits
-
Also fixes up all files that #include it.
Signed-off-by: Greg Kroah-Hartman
-
Removes the devfs_remove() function and all callers of it.
Signed-off-by: Greg Kroah-Hartman
-
Removes the devfs_mk_cdev() function and all callers of it.
Signed-off-by: Greg Kroah-Hartman
-
Removes the devfs_mk_dir() function and all callers of it.
Signed-off-by: Greg Kroah-Hartman
26 Jun, 2006
4 commits
-
Signed-off-by: David S. Miller
-
Signed-off-by: David S. Miller
-
Signed-off-by: David S. Miller
-
Remove VM_LOCKED before remap_pfn range from device drivers and get rid of
VM_SHM.remap_pfn_range() already sets VM_IO. There is no need to set VM_SHM since
it does nothing. VM_LOCKED is of no use since the remap_pfn_range does not
place pages on the LRU. The pages are therefore never subject to swap
anyways. Remove all the vm_flags settings before calling remap_pfn_range.After removing all the vm_flag settings no use of VM_SHM is left. Drop it.
Signed-off-by: Christoph Lameter
Acked-by: Hugh Dickins
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
24 Jun, 2006
4 commits
-
I severely apologize, I was still learning how to program
in C when I wrote this stuff 10 years ago...Signed-off-by: David S. Miller
-
Signed-off-by: David S. Miller
-
One thing this change pointed out was that we really should
pull the "get 'local-mac-address' property" logic into a helper
function all the network drivers can call.Signed-off-by: David S. Miller
-
In particular, move the IRQ probing out to sparc32/sparc64
arch specific code where it belongs.Signed-off-by: David S. Miller
20 Jun, 2006
1 commit
-
This ugly hack was long overdue to die.
It was a way to print out Sparc interrupts in a more freindly format,
since IRQ numbers were arbitrary opaque 32-bit integers which vectored
into PIL levels. These 32-bit integers were not necessarily in the
0-->NR_IRQS range, but the PILs they vectored to were.The idea now is that we will increase NR_IRQS a little bit and use a
virtualreal IRQ number mapping scheme similar to PowerPC.That makes this IRQ printing hack irrelevant, and furthermore only a
handful of drivers actually used __irq_itoa() making it even less
useful.Signed-off-by: David S. Miller
13 May, 2006
1 commit
-
Signed-off-by: Martin Habets
Signed-off-by: David S. Miller
22 Mar, 2006
1 commit
-
Make sure the callers do a pgprot_noncached() on
vma->vm_page_prot.Pointed out by Hugh Dickens.
Signed-off-by: David S. Miller
20 Mar, 2006
1 commit
-
Should allow cheetah_plus cpu types and don't taint
the kernel.Signed-off-by: David S. Miller
15 Jan, 2006
1 commit
-
tmp_buf_sem sems to be a common name for something completely unused...
Signed-off-by: Adrian Bunk
Acked-by: Greg Kroah-Hartman ("usb portion")
Signed-off-by: Linus Torvalds
16 Dec, 2005
3 commits
-
Signed-off-by: Al Viro
Signed-off-by: Linus Torvalds -
Signed-off-by: Al Viro
Signed-off-by: Linus Torvalds -
Signed-off-by: Al Viro
Signed-off-by: Linus Torvalds
23 Nov, 2005
1 commit
-
"extern inline" doesn't make much sense.
Signed-off-by: Adrian Bunk
Signed-off-by: David S. Miller
13 Nov, 2005
1 commit
-
On Fri, Nov 11, 2005 at 12:58:40PM -0800, David S. Miller wrote:
>
> This change:
>
> diff-tree 8ca2bdc7a98b9584ac5f640761501405154171c7 (from feee207e44d3643d19e648aAuthor: Christoph Hellwig
> Date: Wed Nov 9 12:07:18 2005 -0800
>
> [SPARC] sbus rtc: implement ->compat_ioctl
>
> Signed-off-by: Christoph Hellwig
> Signed-off-by: David S. Miller
>
> results in the console now getting spewed on sparc64 systems
> with messages like:
>
> [ 11.968298] ioctl32(hwclock:464): Unknown cmd fd(3) cmd(401c7014){00} arg(efc
> What's happening is hwclock tries first the SBUS rtc device ioctls
> then the normal rtc driver ones.
>
> So things actually worked better when we had the SBUS rtc compat ioctl
> directly handled via the generic compat ioctl code.
>
> There are _so_ many rtc drivers in the kernel implementing the
> generic rtc ioctls that I don't think putting a ->compat_ioctl
> into all of them to fix this problem is feasible. Unless we
> write a single rtc_compat_ioctl(), export it to modules, and hook
> it into all of those somehow.
>
> But even that doesn't appear to have any pretty implementation.
>
> Any better ideas?We had similar problems with other ioctls where userspace did things
like that. What we did there was to put the compat handler to generic
code. The patch below does that, adding a big comment about what's
going on and removing the COMPAT_IOCTL entires for these on powerpc
that not only weren't ever useful but are duplicated now aswell.Signed-off-by: Christoph Hellwig
Signed-off-by: David S. Miller
11 Nov, 2005
1 commit
-
Signed-off-by: Andrew Morton
Signed-off-by: David S. Miller
10 Nov, 2005
2 commits
-
Signed-off-by: Christoph Hellwig
Signed-off-by: David S. Miller -
Noticed by Eric Brower.
Signed-off-by: David S. Miller
09 Nov, 2005
1 commit
-
Signed-off-by: David S. Miller
08 Nov, 2005
4 commits
-
Signed-off-by: Christoph Hellwig
Signed-off-by: David S. Miller -
all ioctls are 32bit compat clean, so the driver can use ->compat_ioctl
and ->unlocked_ioctl easily.Signed-off-by: Christoph Hellwig
Signed-off-by: David S. Miller -
implement a compat_ioctl handle in the driver instead of having table
entries in sparc64 ioctl32.c (I plan to get rid of the arch ioctl32.c
file eventually)Signed-off-by: Christoph Hellwig
Signed-off-by: David S. Miller -
all the ioctls in the driver are 32bit compat clean and don't need BKL,
so we can switch it to ->unlocked_ioctl and ->compat_ioctl trivially.Signed-off-by: Christoph Hellwig
Signed-off-by: David S. Miller
07 Nov, 2005
1 commit
-
This is the remaining misc drivers/ part of the big kfree cleanup patch.
Remove pointless checks for NULL prior to calling kfree() in misc files in
drivers/.Signed-off-by: Jesper Juhl
Acked-by: Aristeu Sergio Rozanski Filho
Acked-by: Roland Dreier
Acked-by: Pierre Ossman
Acked-by: Jean Delvare
Acked-by: Greg Kroah-Hartman
Acked-by: Len Brown
Acked-by: "Antonino A. Daplas"
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
13 Sep, 2005
2 commits
-
Remove check_region references from comments and printk statements so that
searching for real users of this deprecated function gets easier.Signed-off-by: Peter Osterlund
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Use schedule_timeout_uninterruptible() instead of
set_current_state()/schedule_timeout() to reduce kernel size.Signed-off-by: Nishanth Aravamudan
Signed-off-by: Andrew Morton
Signed-off-by: David S. Miller
11 Sep, 2005
1 commit
-
envctrl doesn't need unistd.h; moreover, since it declares errno static
gcc4 gets very unhappy about including unistd.h.Signed-off-by: Al Viro
Signed-off-by: Linus Torvalds
10 Sep, 2005
1 commit
-
Clean up timer initialization by introducing DEFINE_TIMER a'la
DEFINE_SPINLOCK. Build and boot-tested on x86. A similar patch has been
been in the -RT tree for some time.Signed-off-by: Ingo Molnar
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
31 Aug, 2005
1 commit
-
And move some other stuff into drivers/sbus/char/Kconfig.
Signed-off-by: David S. Miller