Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40959
b: refs/heads/master
c: 0ccead1
h: refs/heads/master
i:
  40957: e5cb803
  40955: f7e407a
  40951: 78115a4
  40943: 6c0fd69
  40927: 9b6ec94
  40895: 8a2e5c6
  40831: 562e845
  40703: b27c2e0
  40447: 88bcbb1
  39935: b6c8e1c
  38911: 270a202
  36863: 71092ce
  32767: 5ae4f03
v: v3
  • Loading branch information
Gary Zambrano authored and David S. Miller committed Nov 16, 2006
1 parent 66bb3fd commit 33a155d
Show file tree
Hide file tree
Showing 34 changed files with 48 additions and 86 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: b342baa737164e86cc67d5f16a305d04895ef338
refs/heads/master: 0ccead1869444891ae6b41f2c5fc8498521c908e
13 changes: 2 additions & 11 deletions trunk/Documentation/filesystems/udf.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,8 @@ If you encounter problems with reading UDF discs using this driver,
please report them to linux_udf@hpesjro.fc.hp.com, which is the
developer's list.

Write support requires a block driver which supports writing. Currently
dvd+rw drives and media support true random sector writes, and so a udf
filesystem on such devices can be directly mounted read/write. CD-RW
media however, does not support this. Instead the media can be formatted
for packet mode using the utility cdrwtool, then the pktcdvd driver can
be bound to the underlying cd device to provide the required buffering
and read-modify-write cycles to allow the filesystem random sector writes
while providing the hardware with only full packet writes. While not
required for dvd+rw media, use of the pktcdvd driver often enhances
performance due to very poor read-modify-write support supplied internally
by drive firmware.
Write support requires a block driver which supports writing. The current
scsi and ide cdrom drivers do not support writing.

-------------------------------------------------------------------------------
The following mount options are supported:
Expand Down
5 changes: 2 additions & 3 deletions trunk/Documentation/kprobes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -442,10 +442,9 @@ static int __init kprobe_init(void)
kp.fault_handler = handler_fault;
kp.symbol_name = "do_fork";

ret = register_kprobe(&kp);
if (ret < 0) {
if ((ret = register_kprobe(&kp) < 0)) {
printk("register_kprobe failed, returned %d\n", ret);
return ret;
return -1;
}
printk("kprobe registered\n");
return 0;
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/ia64/hp/sim/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ config HP_SIMSERIAL_CONSOLE
depends on HP_SIMSERIAL

config HP_SIMSCSI
bool "Simulated SCSI disk"
depends on SCSI=y
tristate "Simulated SCSI disk"
depends on SCSI

endmenu

2 changes: 1 addition & 1 deletion trunk/arch/ia64/hp/sim/hpsim_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ hpsim_set_affinity_noop (unsigned int a, cpumask_t b)
}

static struct hw_interrupt_type irq_type_hp_sim = {
.name = "hpsim",
.typename = "hpsim",
.startup = hpsim_irq_startup,
.shutdown = hpsim_irq_noop,
.enable = hpsim_irq_noop,
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/ia64/kernel/iosapic.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ iosapic_end_level_irq (unsigned int irq)
#define iosapic_ack_level_irq nop

struct hw_interrupt_type irq_type_iosapic_level = {
.name = "IO-SAPIC-level",
.typename = "IO-SAPIC-level",
.startup = iosapic_startup_level_irq,
.shutdown = iosapic_shutdown_level_irq,
.enable = iosapic_enable_level_irq,
Expand Down Expand Up @@ -473,7 +473,7 @@ iosapic_ack_edge_irq (unsigned int irq)
#define iosapic_end_edge_irq nop

struct hw_interrupt_type irq_type_iosapic_edge = {
.name = "IO-SAPIC-edge",
.typename = "IO-SAPIC-edge",
.startup = iosapic_startup_edge_irq,
.shutdown = iosapic_disable_edge_irq,
.enable = iosapic_enable_edge_irq,
Expand Down Expand Up @@ -664,7 +664,7 @@ register_intr (unsigned int gsi, int vector, unsigned char delivery,
printk(KERN_WARNING
"%s: changing vector %d from %s to %s\n",
__FUNCTION__, vector,
idesc->chip->name, irq_type->name);
idesc->chip->typename, irq_type->typename);
idesc->chip = irq_type;
}
return 0;
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/ia64/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ int show_interrupts(struct seq_file *p, void *v)
seq_printf(p, "%10u ", kstat_cpu(j).irqs[i]);
}
#endif
seq_printf(p, " %14s", irq_desc[i].chip->name);
seq_printf(p, " %14s", irq_desc[i].chip->typename);
seq_printf(p, " %s", action->name);

for (action=action->next; action; action = action->next)
Expand Down Expand Up @@ -197,7 +197,7 @@ void fixup_irqs(void)
struct pt_regs *old_regs = set_irq_regs(NULL);

vectors_in_migration[irq]=0;
generic_handle_irq(irq);
__do_IRQ(irq);
set_irq_regs(old_regs);
}
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/ia64/kernel/irq_ia64.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ ia64_handle_irq (ia64_vector vector, struct pt_regs *regs)
ia64_setreg(_IA64_REG_CR_TPR, vector);
ia64_srlz_d();

generic_handle_irq(local_vector_to_irq(vector));
__do_IRQ(local_vector_to_irq(vector));

/*
* Disable interrupts and send EOI:
Expand Down Expand Up @@ -242,7 +242,7 @@ void ia64_process_pending_intr(void)
* Probably could shared code.
*/
vectors_in_migration[local_vector_to_irq(vector)]=0;
generic_handle_irq(local_vector_to_irq(vector));
__do_IRQ(local_vector_to_irq(vector));
set_irq_regs(old_regs);

/*
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/ia64/kernel/irq_lsapic.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ static int lsapic_retrigger(unsigned int irq)
}

struct hw_interrupt_type irq_type_ia64_lsapic = {
.name = "LSAPIC",
.typename = "LSAPIC",
.startup = lsapic_noop_startup,
.shutdown = lsapic_noop,
.enable = lsapic_noop,
Expand Down
9 changes: 5 additions & 4 deletions trunk/arch/ia64/sn/kernel/bte.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,13 +381,14 @@ bte_result_t bte_unaligned_copy(u64 src, u64 dest, u64 len, u64 mode)
* bcopy to the destination.
*/

/* Add the leader from source */
headBteLen = len + (src & L1_CACHE_MASK);
/* Add the trailing bytes from footer. */
headBteLen += L1_CACHE_BYTES - (headBteLen & L1_CACHE_MASK);
headBteSource = src & ~L1_CACHE_MASK;
headBcopySrcOffset = src & L1_CACHE_MASK;
headBcopyDest = dest;
headBcopyLen = len;

headBteSource = src - headBcopySrcOffset;
/* Add the leading and trailing bytes from source */
headBteLen = L1_CACHE_ALIGN(len + headBcopySrcOffset);
}

if (headBcopyLen > 0) {
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/ia64/sn/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ static void sn_set_affinity_irq(unsigned int irq, cpumask_t mask)
}

struct hw_interrupt_type irq_type_sn = {
.name = "SN hub",
.typename = "SN hub",
.startup = sn_startup_irq,
.shutdown = sn_shutdown_irq,
.enable = sn_enable_irq,
Expand Down
3 changes: 2 additions & 1 deletion trunk/block/scsi_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,9 @@ static int sg_io(struct file *file, request_queue_t *q,
* fill in request structure
*/
rq->cmd_len = hdr->cmd_len;
memset(rq->cmd, 0, BLK_MAX_CDB); /* ATAPI hates garbage after CDB */
memcpy(rq->cmd, cmd, hdr->cmd_len);
if (sizeof(rq->cmd) != hdr->cmd_len)
memset(rq->cmd + hdr->cmd_len, 0, sizeof(rq->cmd) - hdr->cmd_len);

memset(sense, 0, sizeof(sense));
rq->sense = sense;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/ipmi/ipmi_msghandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -2118,7 +2118,7 @@ static int ipmi_bmc_register(ipmi_smi_t intf)
dev_set_drvdata(&bmc->dev->dev, bmc);
kref_init(&bmc->refcount);

rv = platform_device_add(bmc->dev);
rv = platform_device_register(bmc->dev);
mutex_unlock(&ipmidriver_mutex);
if (rv) {
printk(KERN_ERR
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/ipmi/ipmi_si_intf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2346,7 +2346,7 @@ static int try_smi_init(struct smi_info *new_smi)
new_smi->dev = &new_smi->pdev->dev;
new_smi->dev->driver = &ipmi_driver;

rv = platform_device_add(new_smi->pdev);
rv = platform_device_register(new_smi->pdev);
if (rv) {
printk(KERN_ERR
"ipmi_si_intf:"
Expand Down
9 changes: 5 additions & 4 deletions trunk/drivers/firmware/dell_rbu.c
Original file line number Diff line number Diff line change
Expand Up @@ -705,16 +705,17 @@ static struct bin_attribute rbu_packet_size_attr = {

static int __init dcdrbu_init(void)
{
int rc;
int rc = 0;
spin_lock_init(&rbu_data.lock);

init_packet_head();
rbu_device = platform_device_register_simple("dell_rbu", -1, NULL, 0);
if (IS_ERR(rbu_device)) {
rbu_device =
platform_device_register_simple("dell_rbu", -1, NULL, 0);
if (!rbu_device) {
printk(KERN_ERR
"dell_rbu:%s:platform_device_register_simple "
"failed\n", __FUNCTION__);
return PTR_ERR(rbu_device);
return -EIO;
}

rc = sysfs_create_bin_file(&rbu_device->dev.kobj, &rbu_data_attr);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/infiniband/hw/ipath/Kconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
config INFINIBAND_IPATH
tristate "QLogic InfiniPath Driver"
depends on (PCI_MSI || HT_IRQ) && 64BIT && INFINIBAND
depends on PCI_MSI && 64BIT && INFINIBAND
---help---
This is a driver for QLogic InfiniPath host channel adapters,
including InfiniBand verbs support. This driver allows these
Expand Down
5 changes: 2 additions & 3 deletions trunk/drivers/infiniband/hw/ipath/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ ib_ipath-y := \
ipath_eeprom.o \
ipath_file_ops.o \
ipath_fs.o \
ipath_iba6110.o \
ipath_iba6120.o \
ipath_init_chip.o \
ipath_intr.o \
ipath_keys.o \
Expand All @@ -29,8 +31,5 @@ ib_ipath-y := \
ipath_verbs_mcast.o \
ipath_verbs.o

ib_ipath-$(CONFIG_HT_IRQ) += ipath_iba6110.o
ib_ipath-$(CONFIG_PCI_MSI) += ipath_iba6120.o

ib_ipath-$(CONFIG_X86_64) += ipath_wc_x86_64.o
ib_ipath-$(CONFIG_PPC64) += ipath_wc_ppc64.o
4 changes: 0 additions & 4 deletions trunk/drivers/infiniband/hw/ipath/ipath_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,16 +390,12 @@ static int __devinit ipath_init_one(struct pci_dev *pdev,

/* setup the chip-specific functions, as early as possible. */
switch (ent->device) {
#ifdef CONFIG_HT_IRQ
case PCI_DEVICE_ID_INFINIPATH_HT:
ipath_init_iba6110_funcs(dd);
break;
#endif
#ifdef CONFIG_PCI_MSI
case PCI_DEVICE_ID_INFINIPATH_PE800:
ipath_init_iba6120_funcs(dd);
break;
#endif
default:
ipath_dev_err(dd, "Found unknown QLogic deviceid 0x%x, "
"failing\n", ent->device);
Expand Down
5 changes: 3 additions & 2 deletions trunk/drivers/net/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -4728,10 +4728,11 @@ static int tg3_poll_fw(struct tg3 *tp)
u32 val;

if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5906) {
for (i = 0; i < 400; i++) {
/* Wait up to 20ms for init done. */
for (i = 0; i < 200; i++) {
if (tr32(VCPU_STATUS) & VCPU_STATUS_INIT_DONE)
return 0;
udelay(10);
udelay(100);
}
return -ENODEV;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/parport/parport_ip32.c
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ static irqreturn_t parport_ip32_interrupt(int irq, void *dev_id)
enum parport_ip32_irq_mode irq_mode = priv->irq_mode;
switch (irq_mode) {
case PARPORT_IP32_IRQ_FWD:
parport_generic_irq(irq, p);
parport_generic_irq(irq, p, regs);
break;
case PARPORT_IP32_IRQ_HERE:
parport_ip32_wakeup(p);
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/scsi/scsi_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,6 @@ int scsi_execute_async(struct scsi_device *sdev, const unsigned char *cmd,
goto free_req;

req->cmd_len = cmd_len;
memset(req->cmd, 0, BLK_MAX_CDB); /* ATAPI hates garbage after CDB */
memcpy(req->cmd, cmd, req->cmd_len);
req->sense = sioc->sense;
req->sense_len = 0;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/video/aty/atyfb_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ static struct {
{ PCI_CHIP_MACH64LB, "3D RAGE LT PRO (Mach64 LB, AGP)", 236, 75, 100, 135, ATI_CHIP_264LTPRO },
{ PCI_CHIP_MACH64LD, "3D RAGE LT PRO (Mach64 LD, AGP)", 230, 100, 100, 135, ATI_CHIP_264LTPRO },
{ PCI_CHIP_MACH64LI, "3D RAGE LT PRO (Mach64 LI, PCI)", 230, 100, 100, 135, ATI_CHIP_264LTPRO | M64F_G3_PB_1_1 | M64F_G3_PB_1024x768 },
{ PCI_CHIP_MACH64LP, "3D RAGE LT PRO (Mach64 LP, PCI)", 230, 100, 100, 135, ATI_CHIP_264LTPRO | M64F_G3_PB_1024x768 },
{ PCI_CHIP_MACH64LP, "3D RAGE LT PRO (Mach64 LP, PCI)", 230, 100, 100, 135, ATI_CHIP_264LTPRO },
{ PCI_CHIP_MACH64LQ, "3D RAGE LT PRO (Mach64 LQ, PCI)", 230, 100, 100, 135, ATI_CHIP_264LTPRO },

{ PCI_CHIP_MACH64GM, "3D RAGE XL (Mach64 GM, AGP 2x)", 230, 83, 63, 135, ATI_CHIP_264XL },
Expand Down
5 changes: 2 additions & 3 deletions trunk/drivers/video/pnx4008/pnxrgbfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,7 @@ static int __devinit rgbfb_probe(struct platform_device *pdev)
goto err1;
}

if (!fb_get_options("pnxrgbfb", &option) && option &&
!strcmp(option, "nocursor"))
if (!fb_get_options("pnxrgbfb", &option) && !strcmp(option, "nocursor"))
rgbfb_ops.fb_cursor = no_cursor;

info->node = -1;
Expand Down Expand Up @@ -192,7 +191,7 @@ static int __devinit rgbfb_probe(struct platform_device *pdev)

static struct platform_driver rgbfb_driver = {
.driver = {
.name = "pnx4008-rgbfb",
.name = "rgbfb",
},
.probe = rgbfb_probe,
.remove = rgbfb_remove,
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/video/pnx4008/sdum.c
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ static int sdum_remove(struct platform_device *pdev)

static struct platform_driver sdum_driver = {
.driver = {
.name = "pnx4008-sdum",
.name = "sdum",
},
.probe = sdum_probe,
.remove = sdum_remove,
Expand Down
3 changes: 2 additions & 1 deletion trunk/fs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2060,7 +2060,8 @@ config CODA_FS_OLD_API
For most cases you probably want to say N.

config AFS_FS
tristate "Andrew File System support (AFS) (EXPERIMENTAL)"
# for fs/nls/Config.in
tristate "Andrew File System support (AFS) (Experimental)"
depends on INET && EXPERIMENTAL
select RXRPC
help
Expand Down
6 changes: 0 additions & 6 deletions trunk/fs/ecryptfs/dentry.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,6 @@ static int ecryptfs_d_revalidate(struct dentry *dentry, struct nameidata *nd)
rc = lower_dentry->d_op->d_revalidate(lower_dentry, nd);
nd->dentry = dentry_save;
nd->mnt = vfsmount_save;
if (dentry->d_inode) {
struct inode *lower_inode =
ecryptfs_inode_to_lower(dentry->d_inode);

ecryptfs_copy_attr_all(dentry->d_inode, lower_inode);
}
out:
return rc;
}
Expand Down
5 changes: 1 addition & 4 deletions trunk/fs/ecryptfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,6 @@ static int ecryptfs_link(struct dentry *old_dentry, struct inode *dir,
unlock_dir(lower_dir_dentry);
dput(lower_new_dentry);
dput(lower_old_dentry);
d_drop(lower_old_dentry);
d_drop(new_dentry);
d_drop(old_dentry);
return rc;
Expand All @@ -485,7 +484,7 @@ static int ecryptfs_unlink(struct inode *dir, struct dentry *dentry)
lock_parent(lower_dentry);
rc = vfs_unlink(lower_dir_inode, lower_dentry);
if (rc) {
printk(KERN_ERR "Error in vfs_unlink; rc = [%d]\n", rc);
ecryptfs_printk(KERN_ERR, "Error in vfs_unlink\n");
goto out_unlock;
}
ecryptfs_copy_attr_times(dir, lower_dir_inode);
Expand Down Expand Up @@ -631,8 +630,6 @@ ecryptfs_rename(struct inode *old_dir, struct dentry *old_dentry,
ecryptfs_copy_attr_all(old_dir, lower_old_dir_dentry->d_inode);
out_lock:
unlock_rename(lower_old_dir_dentry, lower_new_dir_dentry);
dput(lower_new_dentry->d_parent);
dput(lower_old_dentry->d_parent);
dput(lower_new_dentry);
dput(lower_old_dentry);
return rc;
Expand Down
10 changes: 0 additions & 10 deletions trunk/fs/fat/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,17 +303,7 @@ void fat_truncate(struct inode *inode)
fat_flush_inodes(inode->i_sb, inode, NULL);
}

int fat_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
{
struct inode *inode = dentry->d_inode;
generic_fillattr(inode, stat);
stat->blksize = MSDOS_SB(inode->i_sb)->cluster_size;
return 0;
}
EXPORT_SYMBOL_GPL(fat_getattr);

struct inode_operations fat_file_inode_operations = {
.truncate = fat_truncate,
.setattr = fat_notify_change,
.getattr = fat_getattr,
};
2 changes: 0 additions & 2 deletions trunk/fs/hfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,13 +390,11 @@ static int hfs_fill_super(struct super_block *sb, void *data, int silent)
hfs_find_exit(&fd);
goto bail_no_root;
}
res = -EINVAL;
root_inode = hfs_iget(sb, &fd.search_key->cat, &rec);
hfs_find_exit(&fd);
if (!root_inode)
goto bail_no_root;

res = -ENOMEM;
sb->s_root = d_alloc_root(root_inode);
if (!sb->s_root)
goto bail_iput;
Expand Down
Loading

0 comments on commit 33a155d

Please sign in to comment.