Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88103
b: refs/heads/master
c: cdc647a
h: refs/heads/master
i:
  88101: ab91a3e
  88099: b44bb54
  88095: 1bda9a7
v: v3
  • Loading branch information
David Brownell authored and Greg Kroah-Hartman committed Apr 2, 2008
1 parent cb0e821 commit 6d339b3
Show file tree
Hide file tree
Showing 54 changed files with 31 additions and 239 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 06f11f37aa84e83b48cdf36037c4414f5a83c13f
refs/heads/master: cdc647a9b75741659bfc6acc44a6b3a646ad53bf
2 changes: 1 addition & 1 deletion trunk/Documentation/SubmittingPatches
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ They provide type safety, have no length limitations, no formatting
limitations, and under gcc they are as cheap as macros.

Macros should only be used for cases where a static inline is clearly
suboptimal [there are a few, isolated cases of this in fast paths],
suboptimal [there a few, isolated cases of this in fast paths],
or where it is impossible to use a static inline function [such as
string-izing].

Expand Down
4 changes: 2 additions & 2 deletions trunk/Documentation/unaligned-memory-access.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ here; a summary of the common scenarios is presented below:
unaligned access to be corrected.
- Some architectures are not capable of unaligned memory access, but will
silently perform a different memory access to the one that was requested,
resulting in a subtle code bug that is hard to detect!
resulting a a subtle code bug that is hard to detect!

It should be obvious from the above that if your code causes unaligned
memory accesses to happen, your code will not work correctly on certain
Expand Down Expand Up @@ -209,7 +209,7 @@ memory and you wish to avoid unaligned access, its usage is as follows:

u32 value = get_unaligned((u32 *) data);

These macros work for memory accesses of any length (not just 32 bits as
These macros work work for memory accesses of any length (not just 32 bits as
in the examples above). Be aware that when compared to standard access of
aligned memory, using these macros to access unaligned memory can be costly in
terms of performance.
Expand Down
8 changes: 3 additions & 5 deletions trunk/arch/alpha/kernel/pci_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,13 +424,11 @@ EXPORT_SYMBOL(pci_unmap_page);
else DMA_ADDRP is undefined. */

void *
__pci_alloc_consistent(struct pci_dev *pdev, size_t size,
dma_addr_t *dma_addrp, gfp_t gfp)
pci_alloc_consistent(struct pci_dev *pdev, size_t size, dma_addr_t *dma_addrp)
{
void *cpu_addr;
long order = get_order(size);

gfp &= ~GFP_DMA;
gfp_t gfp = GFP_ATOMIC;

try_again:
cpu_addr = (void *)__get_free_pages(gfp, order);
Expand Down Expand Up @@ -460,7 +458,7 @@ __pci_alloc_consistent(struct pci_dev *pdev, size_t size,

return cpu_addr;
}
EXPORT_SYMBOL(__pci_alloc_consistent);
EXPORT_SYMBOL(pci_alloc_consistent);

/* Free and unmap a consistent DMA buffer. CPU_ADDR and DMA_ADDR must
be values that were returned from pci_alloc_consistent. SIZE must
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/x86/kernel/machine_kexec_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ NORET_TYPE void machine_kexec(struct kimage *image)

void arch_crash_save_vmcoreinfo(void)
{
VMCOREINFO_SYMBOL(phys_base);
VMCOREINFO_SYMBOL(init_level4_pgt);

#ifdef CONFIG_NUMA
Expand Down
6 changes: 0 additions & 6 deletions trunk/drivers/block/nbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,6 @@ static int sock_xmit(struct nbd_device *lo, int send, void *buf, int size,
struct kvec iov;
sigset_t blocked, oldset;

if (unlikely(!sock)) {
printk(KERN_ERR "%s: Attempted %s on closed socket in sock_xmit\n",
lo->disk->disk_name, (send ? "send" : "recv"));
return -EINVAL;
}

/* Allow interception of SIGKILL only
* Don't allow other signals to interrupt the transmission */
siginitsetinv(&blocked, sigmask(SIGKILL));
Expand Down
12 changes: 5 additions & 7 deletions trunk/drivers/char/ip2/i2lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -644,12 +644,12 @@ i2QueueCommands(int type, i2ChanStrPtr pCh, int timeout, int nCommands,
// Normal Expected path - We still hold LOCK
break; /* from for()- Enough room: goto proceed */
}
ip2trace(CHANN, ITRC_QUEUE, 3, 1, totalsize);
WRITE_UNLOCK_IRQRESTORE(lock_var_p, flags);
} else
ip2trace(CHANN, ITRC_QUEUE, 3, 1, totalsize);
}

ip2trace (CHANN, ITRC_QUEUE, 3, 1, totalsize );

/* Prepare to wait for buffers to empty */
// Prepare to wait for buffers to empty
WRITE_UNLOCK_IRQRESTORE(lock_var_p,flags);
serviceOutgoingFifo(pB); // Dump what we got

if (timeout == 0) {
Expand Down Expand Up @@ -1830,8 +1830,6 @@ i2StripFifo(i2eBordStrPtr pB)
default: // Neither packet? should be impossible
ip2trace (ITRC_NO_PORT, ITRC_SFIFO, 5, 1,
PTYPE_OF(pB->i2eLeadoffWord) );
WRITE_UNLOCK_IRQRESTORE(&pB->read_fifo_spinlock,
bflags);

break;
} // End of switch on type of packets
Expand Down
4 changes: 1 addition & 3 deletions trunk/drivers/char/rio/riotable.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,10 +425,8 @@ int RIOApel(struct rio_info *p)

MapP = &p->RIOConnectTable[Next++];
MapP->HostUniqueNum = HostP->UniqueNum;
if ((HostP->Flags & RUN_STATE) != RC_RUNNING) {
rio_spin_unlock_irqrestore(&HostP->HostLock, flags);
if ((HostP->Flags & RUN_STATE) != RC_RUNNING)
continue;
}
MapP->RtaUniqueNum = 0;
MapP->ID = 0;
MapP->Flags = SLOT_IN_USE;
Expand Down
4 changes: 0 additions & 4 deletions trunk/drivers/char/rio/riotty.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,6 @@ int riotopen(struct tty_struct *tty, struct file *filp)
PortP->State |= RIO_WOPEN;
rio_spin_unlock_irqrestore(&PortP->portSem, flags);
if (RIODelay(PortP, HUNDRED_MS) == RIO_FAIL) {
rio_spin_lock_irqsave(&PortP->portSem, flags);
/*
** ACTION: verify that this is a good thing
** to do here. -- ???
Expand All @@ -335,7 +334,6 @@ int riotopen(struct tty_struct *tty, struct file *filp)
func_exit();
return -EINTR;
}
rio_spin_lock_irqsave(&PortP->portSem, flags);
}
PortP->State &= ~RIO_WOPEN;
}
Expand Down Expand Up @@ -495,7 +493,6 @@ int riotclose(void *ptr)

if (RIOShortCommand(p, PortP, CLOSE, 1, 0) == RIO_FAIL) {
RIOPreemptiveCmd(p, PortP, FCLOSE);
rio_spin_lock_irqsave(&PortP->portSem, flags);
goto close_end;
}

Expand All @@ -511,7 +508,6 @@ int riotclose(void *ptr)

if (p->RIOHalted) {
RIOClearUp(PortP);
rio_spin_lock_irqsave(&PortP->portSem, flags);
goto close_end;
}
if (RIODelay(PortP, HUNDRED_MS) == RIO_FAIL) {
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/ide/arm/ide_arm.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,3 @@ static int __init ide_arm_init(void)
}

module_init(ide_arm_init);

MODULE_LICENSE("GPL");
2 changes: 0 additions & 2 deletions trunk/drivers/ide/cris/ide-cris.c
Original file line number Diff line number Diff line change
Expand Up @@ -1067,5 +1067,3 @@ static void cris_dma_start(ide_drive_t *drive)
}

module_init(init_e100_ide);

MODULE_LICENSE("GPL");
3 changes: 0 additions & 3 deletions trunk/drivers/ide/h8300/ide-h8300.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ static int __init h8300_ide_init(void)
ide_init_port_data(hwif, index);
ide_init_port_hw(hwif, &hw);
hwif_setup(hwif);
hwif->host_flags = IDE_HFLAG_NO_IO_32BIT;
printk(KERN_INFO "ide%d: H8/300 generic IDE interface\n", index);

idx[0] = index;
Expand All @@ -126,5 +125,3 @@ static int __init h8300_ide_init(void)
}

module_init(h8300_ide_init);

MODULE_LICENSE("GPL");
2 changes: 1 addition & 1 deletion trunk/drivers/ide/ide-iops.c
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ int ide_driveid_update(ide_drive_t *drive)
local_irq_restore(flags);
return 0;
}
hwif->ata_input_data(drive, id, SECTOR_WORDS);
ata_input_data(drive, id, SECTOR_WORDS);
(void)ide_read_status(drive); /* clear drive IRQ */
local_irq_enable();
local_irq_restore(flags);
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/ide/ide-pnp.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,3 @@ static void __exit pnpide_exit(void)

module_init(pnpide_init);
module_exit(pnpide_exit);

MODULE_LICENSE("GPL");
2 changes: 0 additions & 2 deletions trunk/drivers/ide/legacy/buddha.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,5 +241,3 @@ static int __init buddha_init(void)
}

module_init(buddha_init);

MODULE_LICENSE("GPL");
2 changes: 0 additions & 2 deletions trunk/drivers/ide/legacy/falconide.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,3 @@ static int __init falconide_init(void)
}

module_init(falconide_init);

MODULE_LICENSE("GPL");
2 changes: 0 additions & 2 deletions trunk/drivers/ide/legacy/gayle.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,5 +195,3 @@ static int __init gayle_init(void)
}

module_init(gayle_init);

MODULE_LICENSE("GPL");
2 changes: 0 additions & 2 deletions trunk/drivers/ide/legacy/macide.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,3 @@ static int __init macide_init(void)
}

module_init(macide_init);

MODULE_LICENSE("GPL");
2 changes: 0 additions & 2 deletions trunk/drivers/ide/legacy/q40ide.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,5 +153,3 @@ static int __init q40ide_init(void)
}

module_init(q40ide_init);

MODULE_LICENSE("GPL");
2 changes: 0 additions & 2 deletions trunk/drivers/ide/pci/cmd640.c
Original file line number Diff line number Diff line change
Expand Up @@ -881,5 +881,3 @@ module_param_named(probe_vlb, cmd640_vlb, bool, 0);
MODULE_PARM_DESC(probe_vlb, "probe for VLB version of CMD640 chipset");

module_init(cmd640x_init);

MODULE_LICENSE("GPL");
2 changes: 0 additions & 2 deletions trunk/drivers/ide/ppc/mpc8xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -853,5 +853,3 @@ static int __init mpc8xx_ide_probe(void)
}

module_init(mpc8xx_ide_probe);

MODULE_LICENSE("GPL");
2 changes: 0 additions & 2 deletions trunk/drivers/ide/ppc/pmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1771,5 +1771,3 @@ static int __devinit pmac_ide_setup_dma(pmac_ide_hwif_t *pmif, ide_hwif_t *hwif)
#endif /* CONFIG_BLK_DEV_IDEDMA_PMAC */

module_init(pmac_ide_probe);

MODULE_LICENSE("GPL");
6 changes: 0 additions & 6 deletions trunk/drivers/net/sky2.c
Original file line number Diff line number Diff line change
Expand Up @@ -4329,14 +4329,10 @@ static int sky2_suspend(struct pci_dev *pdev, pm_message_t state)
if (!hw)
return 0;

del_timer_sync(&hw->watchdog_timer);
cancel_work_sync(&hw->restart_work);

for (i = 0; i < hw->ports; i++) {
struct net_device *dev = hw->dev[i];
struct sky2_port *sky2 = netdev_priv(dev);

netif_device_detach(dev);
if (netif_running(dev))
sky2_down(dev);

Expand Down Expand Up @@ -4387,8 +4383,6 @@ static int sky2_resume(struct pci_dev *pdev)

for (i = 0; i < hw->ports; i++) {
struct net_device *dev = hw->dev[i];

netif_device_attach(dev);
if (netif_running(dev)) {
err = sky2_up(dev);
if (err) {
Expand Down
30 changes: 9 additions & 21 deletions trunk/drivers/serial/atmel_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@

/* PDC registers */
#define UART_PUT_PTCR(port,v) __raw_writel(v, (port)->membase + ATMEL_PDC_PTCR)
#define UART_GET_TCR(port) __raw_readl((port)->membase + ATMEL_PDC_TCR)
#define UART_GET_PTSR(port) __raw_readl((port)->membase + ATMEL_PDC_PTSR)

#define UART_PUT_RPR(port,v) __raw_writel(v, (port)->membase + ATMEL_PDC_RPR)
Expand All @@ -107,7 +106,6 @@

#define UART_PUT_TPR(port,v) __raw_writel(v, (port)->membase + ATMEL_PDC_TPR)
#define UART_PUT_TCR(port,v) __raw_writel(v, (port)->membase + ATMEL_PDC_TCR)
#define UART_GET_TCR(port) __raw_readl((port)->membase + ATMEL_PDC_TCR)

static int (*atmel_open_hook)(struct uart_port *);
static void (*atmel_close_hook)(struct uart_port *);
Expand Down Expand Up @@ -564,22 +562,17 @@ static void atmel_tx_dma(struct uart_port *port)
struct atmel_dma_buffer *pdc = &atmel_port->pdc_tx;
int count;

/* nothing left to transmit? */
if (UART_GET_TCR(port))
return;

xmit->tail += pdc->ofs;
xmit->tail &= UART_XMIT_SIZE - 1;

port->icount.tx += pdc->ofs;
pdc->ofs = 0;

/* more to transmit - setup next transfer */

/* disable PDC transmit */
UART_PUT_PTCR(port, ATMEL_PDC_TXTDIS);

if (!uart_circ_empty(xmit)) {
/* more to transmit - setup next transfer */

/* disable PDC transmit */
UART_PUT_PTCR(port, ATMEL_PDC_TXTDIS);
dma_sync_single_for_device(port->dev,
pdc->dma_addr,
pdc->dma_size,
Expand All @@ -593,6 +586,11 @@ static void atmel_tx_dma(struct uart_port *port)
/* re-enable PDC transmit and interrupts */
UART_PUT_PTCR(port, ATMEL_PDC_TXTEN);
UART_PUT_IER(port, ATMEL_US_ENDTX | ATMEL_US_TXBUFE);
} else {
/* nothing left to transmit - disable the transmitter */

/* disable PDC transmit */
UART_PUT_PTCR(port, ATMEL_PDC_TXTDIS);
}

if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
Expand Down Expand Up @@ -1276,18 +1274,13 @@ static void atmel_console_write(struct console *co, const char *s, u_int count)
{
struct uart_port *port = &atmel_ports[co->index].uart;
unsigned int status, imr;
unsigned int pdc_tx;

/*
* First, save IMR and then disable interrupts
*/
imr = UART_GET_IMR(port);
UART_PUT_IDR(port, ATMEL_US_RXRDY | ATMEL_US_TXRDY);

/* Store PDC transmit status and disable it */
pdc_tx = UART_GET_PTSR(port) & ATMEL_PDC_TXTEN;
UART_PUT_PTCR(port, ATMEL_PDC_TXTDIS);

uart_console_write(port, s, count, atmel_console_putchar);

/*
Expand All @@ -1297,11 +1290,6 @@ static void atmel_console_write(struct console *co, const char *s, u_int count)
do {
status = UART_GET_CSR(port);
} while (!(status & ATMEL_US_TXRDY));

/* Restore PDC transmit status */
if (pdc_tx)
UART_PUT_PTCR(port, ATMEL_PDC_TXTEN);

/* set interrupts back the way they were */
UART_PUT_IER(port, imr);
}
Expand Down
5 changes: 3 additions & 2 deletions trunk/drivers/usb/host/ehci-hub.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,6 @@ static int ehci_bus_suspend (struct usb_hcd *hcd)
hcd->state = HC_STATE_QUIESCING;
}
ehci->command = ehci_readl(ehci, &ehci->regs->command);
if (ehci->reclaim)
end_unlink_async(ehci);
ehci_work(ehci);

/* Unlike other USB host controller types, EHCI doesn't have
Expand Down Expand Up @@ -180,6 +178,9 @@ static int ehci_bus_suspend (struct usb_hcd *hcd)
ehci_halt (ehci);
hcd->state = HC_STATE_SUSPENDED;

if (ehci->reclaim)
end_unlink_async(ehci);

/* allow remote wakeup */
mask = INTR_MASK;
if (!device_may_wakeup(&hcd->self.root_hub->dev))
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/efs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ struct inode *efs_iget(struct super_block *super, unsigned long ino)
brelse(bh);

#ifdef DEBUG
printk(KERN_DEBUG "EFS: efs_iget(): inode %lu, extents %d, mode %o\n",
printk(KERN_DEBUG "EFS: read_inode(): inode %lu, extents %d, mode %o\n",
inode->i_ino, in->numextents, inode->i_mode);
#endif

Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-alpha/current.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include <linux/thread_info.h>

#define get_current() (current_thread_info()->task)
#define get_current() (current_thread_info()->task + 0)
#define current get_current()

#endif /* _ALPHA_CURRENT_H */
2 changes: 1 addition & 1 deletion trunk/include/asm-alpha/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#define dma_unmap_single(dev, addr, size, dir) \
pci_unmap_single(alpha_gendev_to_pci(dev), addr, size, dir)
#define dma_alloc_coherent(dev, size, addr, gfp) \
__pci_alloc_consistent(alpha_gendev_to_pci(dev), size, addr, gfp)
pci_alloc_consistent(alpha_gendev_to_pci(dev), size, addr)
#define dma_free_coherent(dev, size, va, addr) \
pci_free_consistent(alpha_gendev_to_pci(dev), size, va, addr)
#define dma_map_page(dev, page, off, size, dir) \
Expand Down
6 changes: 0 additions & 6 deletions trunk/include/asm-alpha/kvm.h

This file was deleted.

Loading

0 comments on commit 6d339b3

Please sign in to comment.