Commit 4a81c9aa authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] misc fixes

- Add an explanation for clearing the focus bit on P4 (zwane)

- __d_path kerneldoc fix (John Levon)

- generic-hdlc documentation fix (Krzysztof Halasa <khc@pm.waw.pl>)

- cmdline_read_proc cleanup (Oleg Drokin)

- remove a couple of unused vars from drivers/ide/pci/hpt366.c

- sound/core/sgbuf.c needs mm.h at least on alpha, for mem_map and other
  page stuff.  (Ivan Kokshaysky <ink@jurassic.park.msu.ru>)

- Don't use "u32 long" in cs46xx.c (Kevin Puetz <puetzk@puetzk.org>)

- fs/nfs/nfs4xdr.c warning fix: all the `goto out;' statements are
  commented away, so comment away the label too.

- net/ipv6/af_inet6.c: remove unused var

- drivers/media/video/bttv-cards.c: jiffies are unsigned long

- drivers/media/video/saa7134/saa7134-cards.c: unused var

- Fix Documentation/Changes comment wrt sparc compiler version

- drivers/pnp/quirks.c needs slab.h for kfree().  (Daniele Bellucci
  <bellucda@tiscali.it>)
parent 76e5699d
...@@ -83,8 +83,6 @@ almost certainly bugs (mainly, but not exclusively, in the kernel) that ...@@ -83,8 +83,6 @@ almost certainly bugs (mainly, but not exclusively, in the kernel) that
will need to be fixed in order to use these compilers. In any case, using will need to be fixed in order to use these compilers. In any case, using
pgcc instead of plain gcc is just asking for trouble. pgcc instead of plain gcc is just asking for trouble.
gcc 2.91.66 (egcs-1.1.2) continues to be supported for SPARC64 requirements.
The Red Hat gcc 2.96 compiler subtree can also be used to build this tree. The Red Hat gcc 2.96 compiler subtree can also be used to build this tree.
You should ensure you use gcc-2.96-74 or later. gcc-2.96-54 will not build You should ensure you use gcc-2.96-74 or later. gcc-2.96-54 will not build
the kernel correctly. the kernel correctly.
......
...@@ -38,8 +38,10 @@ Usually you want something like: ...@@ -38,8 +38,10 @@ Usually you want something like:
sethdlc hdlc0 cisco interval 10 timeout 25 sethdlc hdlc0 cisco interval 10 timeout 25
or or
sethdlc hdlc0 rs232 clock ext sethdlc hdlc0 rs232 clock ext
sethdlc fr lmi ansi sethdlc hdlc0 fr lmi ansi
sethdlc create 99 sethdlc hdlc0 create 99
ifconfig hdlc0 up
ifconfig pvc0 localIP pointopoint remoteIP
In Frame Relay mode, ifconfig master hdlc device up (without assigning In Frame Relay mode, ifconfig master hdlc device up (without assigning
any IP address to it) before using pvc devices. any IP address to it) before using pvc devices.
......
...@@ -291,6 +291,8 @@ void __init init_bsp_APIC(void) ...@@ -291,6 +291,8 @@ void __init init_bsp_APIC(void)
value = apic_read(APIC_SPIV); value = apic_read(APIC_SPIV);
value &= ~APIC_VECTOR_MASK; value &= ~APIC_VECTOR_MASK;
value |= APIC_SPIV_APIC_ENABLED; value |= APIC_SPIV_APIC_ENABLED;
/* This bit is reserved on P4/Xeon and should be cleared */
if ((boot_cpu_data.x86_vendor == X86_VENDOR_INTEL) && (boot_cpu_data.x86 == 15)) if ((boot_cpu_data.x86_vendor == X86_VENDOR_INTEL) && (boot_cpu_data.x86 == 15))
value &= ~APIC_SPIV_FOCUS_DISABLED; value &= ~APIC_SPIV_FOCUS_DISABLED;
else else
......
...@@ -1105,7 +1105,6 @@ static void __init init_setup_hpt374 (struct pci_dev *dev, ide_pci_device_t *d) ...@@ -1105,7 +1105,6 @@ static void __init init_setup_hpt374 (struct pci_dev *dev, ide_pci_device_t *d)
(findev->device == dev->device) && (findev->device == dev->device) &&
((findev->devfn - dev->devfn) == 1) && ((findev->devfn - dev->devfn) == 1) &&
(PCI_FUNC(findev->devfn) & 1)) { (PCI_FUNC(findev->devfn) & 1)) {
u8 irq = 0, irq2 = 0;
if (findev->irq != dev->irq) { if (findev->irq != dev->irq) {
/* FIXME: we need a core pci_set_interrupt() */ /* FIXME: we need a core pci_set_interrupt() */
findev->irq = dev->irq; findev->irq = dev->irq;
......
...@@ -2671,7 +2671,7 @@ int bus_in(struct bttv *btv, int bit) ...@@ -2671,7 +2671,7 @@ int bus_in(struct bttv *btv, int bit)
static int tea5757_read(struct bttv *btv) static int tea5757_read(struct bttv *btv)
{ {
int value = 0; int value = 0;
long timeout; unsigned long timeout;
int i; int i;
/* better safe than sorry */ /* better safe than sorry */
......
...@@ -596,16 +596,18 @@ static struct { ...@@ -596,16 +596,18 @@ static struct {
static void board_flyvideo(struct saa7134_dev *dev) static void board_flyvideo(struct saa7134_dev *dev)
{ {
u32 value; u32 value;
int index;
saa_writel(SAA7134_GPIO_GPMODE0 >> 2, 0); saa_writel(SAA7134_GPIO_GPMODE0 >> 2, 0);
value = saa_readl(SAA7134_GPIO_GPSTATUS0 >> 2); value = saa_readl(SAA7134_GPIO_GPSTATUS0 >> 2);
#if 0 #if 0
index = (value & 0x1f00) >> 8; {
printk(KERN_INFO "%s: flyvideo: gpio is 0x%x [model=%s,tuner=%d]\n", int index = (value & 0x1f00) >> 8;
dev->name, value, fly_list[index].model, printk(KERN_INFO "%s: flyvideo: gpio is 0x%x "
fly_list[index].tuner_type); "[model=%s,tuner=%d]\n",
dev->tuner_type = fly_list[index].tuner_type; dev->name, value, fly_list[index].model,
fly_list[index].tuner_type);
dev->tuner_type = fly_list[index].tuner_type;
}
#else #else
printk(KERN_INFO "%s: flyvideo: gpio is 0x%x\n", printk(KERN_INFO "%s: flyvideo: gpio is 0x%x\n",
dev->name, value); dev->name, value);
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include <linux/types.h> #include <linux/types.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/string.h> #include <linux/string.h>
#include <linux/slab.h>
#ifdef CONFIG_PNP_DEBUG #ifdef CONFIG_PNP_DEBUG
#define DEBUG #define DEBUG
......
...@@ -1272,8 +1272,9 @@ void d_move(struct dentry * dentry, struct dentry * target) ...@@ -1272,8 +1272,9 @@ void d_move(struct dentry * dentry, struct dentry * target)
* @buflen: buffer length * @buflen: buffer length
* *
* Convert a dentry into an ASCII path name. If the entry has been deleted * Convert a dentry into an ASCII path name. If the entry has been deleted
* the string " (deleted)" is appended. Note that this is ambiguous. Returns * the string " (deleted)" is appended. Note that this is ambiguous.
* the buffer. *
* Returns the buffer or an error code if the path was too long.
* *
* "buflen" should be positive. Caller holds the dcache_lock. * "buflen" should be positive. Caller holds the dcache_lock.
*/ */
......
...@@ -361,7 +361,7 @@ encode_attrs(struct xdr_stream *xdr, struct iattr *iap, ...@@ -361,7 +361,7 @@ encode_attrs(struct xdr_stream *xdr, struct iattr *iap,
*q++ = htonl(len); *q++ = htonl(len);
status = 0; status = 0;
out: /* out: */
return status; return status;
} }
......
...@@ -485,7 +485,6 @@ static int cmdline_read_proc(char *page, char **start, off_t off, ...@@ -485,7 +485,6 @@ static int cmdline_read_proc(char *page, char **start, off_t off,
int len; int len;
len = sprintf(page, "%s\n", saved_command_line); len = sprintf(page, "%s\n", saved_command_line);
len = strlen(page);
return proc_calc_metrics(page, start, off, count, eof, len); return proc_calc_metrics(page, start, off, count, eof, len);
} }
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include <linux/version.h> #include <linux/version.h>
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/mm.h>
#include <linux/vmalloc.h> #include <linux/vmalloc.h>
#include <sound/memalloc.h> #include <sound/memalloc.h>
......
...@@ -944,10 +944,10 @@ static void cs_play_setup(struct cs_state *state) ...@@ -944,10 +944,10 @@ static void cs_play_setup(struct cs_state *state)
} }
struct InitStruct static struct InitStruct
{ {
u32 long off; u32 off;
u32 long val; u32 val;
} InitArray[] = { {0x00000040, 0x3fc0000f}, } InitArray[] = { {0x00000040, 0x3fc0000f},
{0x0000004c, 0x04800000}, {0x0000004c, 0x04800000},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment