Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33943
b: refs/heads/master
c: add7afc
h: refs/heads/master
i:
  33941: 9518a91
  33939: 703eb92
  33935: 9785208
v: v3
  • Loading branch information
Ishai Rabinovitz authored and Roland Dreier committed Sep 14, 2006
1 parent e0ea6e4 commit 8c26a51
Show file tree
Hide file tree
Showing 30 changed files with 96 additions and 214 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: 27bea3275515e5bd748ed7a492d0df605f5e824a
refs/heads/master: add7afc756eddd5d02fd986d19e6300b3e1a5ae8
3 changes: 0 additions & 3 deletions trunk/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
*.ko
*.so
*.mod.c
*.i
*.lst
*.symtypes

#
# Top-level generic files
Expand Down
6 changes: 3 additions & 3 deletions trunk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ depend dep:

# ---------------------------------------------------------------------------
# Kernel headers
INSTALL_HDR_PATH=$(objtree)/usr
INSTALL_HDR_PATH=$(MODLIB)/abi
export INSTALL_HDR_PATH

PHONY += headers_install
Expand Down Expand Up @@ -986,7 +986,7 @@ CLEAN_FILES += vmlinux System.map \
.tmp_kallsyms* .tmp_version .tmp_vmlinux* .tmp_System.map

# Directories & files removed with 'make mrproper'
MRPROPER_DIRS += include/config include2 usr/include
MRPROPER_DIRS += include/config include2
MRPROPER_FILES += .config .config.old include/asm .version .old_version \
include/linux/autoconf.h include/linux/version.h \
include/linux/utsrelease.h \
Expand Down Expand Up @@ -1077,7 +1077,7 @@ help:
@echo ' kernelrelease - Output the release version string'
@echo ' kernelversion - Output the version stored in Makefile'
@echo ' headers_install - Install sanitised kernel headers to INSTALL_HDR_PATH'
@echo ' (default: $(INSTALL_HDR_PATH))'
@echo ' (default: /lib/modules/$$VERSION/abi)'
@echo ''
@echo 'Static analysers'
@echo ' checkstack - Generate a list of stack hogs'
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/char/hvc_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,6 @@ int khvcd(void *unused)
do {
poll_mask = 0;
hvc_kicked = 0;
try_to_freeze();
wmb();
if (cpus_empty(cpus_in_xmon)) {
spin_lock(&hvc_structs_lock);
Expand Down
9 changes: 4 additions & 5 deletions trunk/drivers/char/ipmi/ipmi_si_intf.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,10 +402,10 @@ static void handle_flags(struct smi_info *smi_info)
smi_info->curr_msg->data,
smi_info->curr_msg->data_size);
smi_info->si_state = SI_GETTING_EVENTS;
} else if (smi_info->msg_flags & OEM_DATA_AVAIL &&
smi_info->oem_data_avail_handler) {
if (smi_info->oem_data_avail_handler(smi_info))
goto retry;
} else if (smi_info->msg_flags & OEM_DATA_AVAIL) {
if (smi_info->oem_data_avail_handler)
if (smi_info->oem_data_avail_handler(smi_info))
goto retry;
} else {
smi_info->si_state = SI_NORMAL;
}
Expand Down Expand Up @@ -2481,7 +2481,6 @@ static __devinit int init_ipmi_si(void)
#ifdef CONFIG_PCI
pci_unregister_driver(&ipmi_pci_driver);
#endif
driver_unregister(&ipmi_driver);
printk("ipmi_si: Unable to find any System Interface(s)\n");
return -ENODEV;
} else {
Expand Down
14 changes: 0 additions & 14 deletions trunk/drivers/infiniband/ulp/srp/ib_srp.c
Original file line number Diff line number Diff line change
Expand Up @@ -799,13 +799,6 @@ static void srp_process_rsp(struct srp_target_port *target, struct srp_rsp *rsp)
spin_unlock_irqrestore(target->scsi_host->host_lock, flags);
}

static void srp_reconnect_work(void *target_ptr)
{
struct srp_target_port *target = target_ptr;

srp_reconnect_target(target);
}

static void srp_handle_recv(struct srp_target_port *target, struct ib_wc *wc)
{
struct srp_iu *iu;
Expand Down Expand Up @@ -858,18 +851,13 @@ static void srp_completion(struct ib_cq *cq, void *target_ptr)
{
struct srp_target_port *target = target_ptr;
struct ib_wc wc;
unsigned long flags;

ib_req_notify_cq(cq, IB_CQ_NEXT_COMP);
while (ib_poll_cq(cq, 1, &wc) > 0) {
if (wc.status) {
printk(KERN_ERR PFX "failed %s status %d\n",
wc.wr_id & SRP_OP_RECV ? "receive" : "send",
wc.status);
spin_lock_irqsave(target->scsi_host->host_lock, flags);
if (target->state == SRP_TARGET_LIVE)
schedule_work(&target->work);
spin_unlock_irqrestore(target->scsi_host->host_lock, flags);
break;
}

Expand Down Expand Up @@ -1705,8 +1693,6 @@ static ssize_t srp_create_target(struct class_device *class_dev,
target->scsi_host = target_host;
target->srp_host = host;

INIT_WORK(&target->work, srp_reconnect_work, target);

INIT_LIST_HEAD(&target->free_reqs);
INIT_LIST_HEAD(&target->req_queue);
for (i = 0; i < SRP_SQ_SIZE; ++i) {
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/mtd/nand/nand_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -1204,7 +1204,7 @@ static int nand_write_oob_syndrome(struct mtd_info *mtd,
pos = steps * (eccsize + chunk);
steps = 0;
} else
pos = eccsize;
pos = eccsize + chunk;

chip->cmdfunc(mtd, NAND_CMD_SEQIN, pos, page);
for (i = 0; i < steps; i++) {
Expand Down Expand Up @@ -1567,7 +1567,7 @@ static uint8_t *nand_fill_oob(struct nand_chip *chip, uint8_t *oob,
bytes = min_t(size_t, len, free->length);
boffs = free->offset;
}
memcpy(chip->oob_poi + boffs, oob, bytes);
memcpy(chip->oob_poi + woffs, oob, bytes);
oob += bytes;
}
return oob;
Expand Down
39 changes: 0 additions & 39 deletions trunk/fs/ext2/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,52 +251,13 @@ static struct super_operations ext2_sops = {
#endif
};

static struct dentry *ext2_get_dentry(struct super_block *sb, void *vobjp)
{
__u32 *objp = vobjp;
unsigned long ino = objp[0];
__u32 generation = objp[1];
struct inode *inode;
struct dentry *result;

if (ino < EXT2_FIRST_INO(sb) && ino != EXT2_ROOT_INO)
return ERR_PTR(-ESTALE);
if (ino > le32_to_cpu(EXT2_SB(sb)->s_es->s_inodes_count))
return ERR_PTR(-ESTALE);

/* iget isn't really right if the inode is currently unallocated!!
* ext2_read_inode currently does appropriate checks, but
* it might be "neater" to call ext2_get_inode first and check
* if the inode is valid.....
*/
inode = iget(sb, ino);
if (inode == NULL)
return ERR_PTR(-ENOMEM);
if (is_bad_inode(inode) ||
(generation && inode->i_generation != generation)) {
/* we didn't find the right inode.. */
iput(inode);
return ERR_PTR(-ESTALE);
}
/* now to find a dentry.
* If possible, get a well-connected one
*/
result = d_alloc_anon(inode);
if (!result) {
iput(inode);
return ERR_PTR(-ENOMEM);
}
return result;
}

/* Yes, most of these are left as NULL!!
* A NULL value implies the default, which works with ext2-like file
* systems, but can be improved upon.
* Currently only get_parent is required.
*/
static struct export_operations ext2_export_ops = {
.get_parent = ext2_get_parent,
.get_dentry = ext2_get_dentry,
};

static unsigned long get_sb_block(void **data)
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/ext3/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ int ext3_get_blocks_handle(handle_t *handle, struct inode *inode,
set_buffer_new(bh_result);
got_it:
map_bh(bh_result, inode->i_sb, le32_to_cpu(chain[depth-1].key));
if (count > blocks_to_boundary)
if (blocks_to_boundary == 0)
set_buffer_boundary(bh_result);
err = count;
/* Clean up and exit */
Expand Down
42 changes: 0 additions & 42 deletions trunk/fs/ext3/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -554,47 +554,6 @@ static int ext3_show_options(struct seq_file *seq, struct vfsmount *vfs)
return 0;
}


static struct dentry *ext3_get_dentry(struct super_block *sb, void *vobjp)
{
__u32 *objp = vobjp;
unsigned long ino = objp[0];
__u32 generation = objp[1];
struct inode *inode;
struct dentry *result;

if (ino < EXT3_FIRST_INO(sb) && ino != EXT3_ROOT_INO)
return ERR_PTR(-ESTALE);
if (ino > le32_to_cpu(EXT3_SB(sb)->s_es->s_inodes_count))
return ERR_PTR(-ESTALE);

/* iget isn't really right if the inode is currently unallocated!!
*
* ext3_read_inode will return a bad_inode if the inode had been
* deleted, so we should be safe.
*
* Currently we don't know the generation for parent directory, so
* a generation of 0 means "accept any"
*/
inode = iget(sb, ino);
if (inode == NULL)
return ERR_PTR(-ENOMEM);
if (is_bad_inode(inode) ||
(generation && inode->i_generation != generation)) {
iput(inode);
return ERR_PTR(-ESTALE);
}
/* now to find a dentry.
* If possible, get a well-connected one
*/
result = d_alloc_anon(inode);
if (!result) {
iput(inode);
return ERR_PTR(-ENOMEM);
}
return result;
}

#ifdef CONFIG_QUOTA
#define QTYPE2NAME(t) ((t)==USRQUOTA?"user":"group")
#define QTYPE2MOPT(on, t) ((t)==USRQUOTA?((on)##USRJQUOTA):((on)##GRPJQUOTA))
Expand Down Expand Up @@ -663,7 +622,6 @@ static struct super_operations ext3_sops = {

static struct export_operations ext3_export_ops = {
.get_parent = ext3_get_parent,
.get_dentry = ext3_get_dentry,
};

enum {
Expand Down
5 changes: 0 additions & 5 deletions trunk/fs/jffs2/summary.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,6 @@ int jffs2_sum_add_kvec(struct jffs2_sb_info *c, const struct kvec *invecs,
union jffs2_node_union *node;
struct jffs2_eraseblock *jeb;

if (c->summary->sum_size == JFFS2_SUMMARY_NOSUM_SIZE) {
dbg_summary("Summary is disabled for this jeb! Skipping summary info!\n");
return 0;
}

node = invecs[0].iov_base;
jeb = &c->blocks[ofs / c->sector_size];
ofs -= jeb->offset;
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-alpha/Kbuild
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
include include/asm-generic/Kbuild.asm

unifdef-y += console.h fpu.h sysinfo.h compiler.h
unifdef-y += console.h fpu.h sysinfo.h

header-y += gentrap.h regdef.h pal.h reg.h
3 changes: 0 additions & 3 deletions trunk/include/asm-alpha/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@
__asm__("stw %1,%0" : "=m"(mem) : "r"(val))
#endif

#ifdef __KERNEL__
/* Some idiots over in <linux/compiler.h> thought inline should imply
always_inline. This breaks stuff. We'll include this file whenever
we run into such problems. */
Expand All @@ -102,6 +101,4 @@
#undef __always_inline
#define __always_inline inline __attribute__((always_inline))

#endif /* __KERNEL__ */

#endif /* __ALPHA_COMPILER_H */
6 changes: 3 additions & 3 deletions trunk/include/asm-alpha/page.h
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#ifndef _ALPHA_PAGE_H
#define _ALPHA_PAGE_H

#ifdef __KERNEL__

#include <asm/pal.h>

/* PAGE_SHIFT determines the page size */
#define PAGE_SHIFT 13
#define PAGE_SIZE (1UL << PAGE_SHIFT)
#define PAGE_MASK (~(PAGE_SIZE-1))

#ifdef __KERNEL__

#ifndef __ASSEMBLY__

#define STRICT_MM_TYPECHECKS
Expand Down Expand Up @@ -92,9 +92,9 @@ typedef unsigned long pgprot_t;

#define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \
VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
#endif /* __KERNEL__ */

#include <asm-generic/memory_model.h>
#include <asm-generic/page.h>

#endif /* __KERNEL__ */
#endif /* _ALPHA_PAGE_H */
4 changes: 2 additions & 2 deletions trunk/include/asm-i386/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,6 @@
#define __NR_vmsplice 316
#define __NR_move_pages 317

#ifdef __KERNEL__

#define NR_syscalls 318

/*
Expand Down Expand Up @@ -425,6 +423,8 @@ __asm__ volatile ("push %%ebp ; push %%ebx ; movl 4(%2),%%ebp ; " \
__syscall_return(type,__res); \
}

#ifdef __KERNEL__

#define __ARCH_WANT_IPC_PARSE_VERSION
#define __ARCH_WANT_OLD_READDIR
#define __ARCH_WANT_OLD_STAT
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-ia64/Kbuild
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ header-y += break.h fpu.h fpswa.h gcc_intrin.h ia64regs.h \
intel_intrin.h intrinsics.h perfmon_default_smpl.h \
ptrace_offsets.h rse.h setup.h ucontext.h

unifdef-y += perfmon.h ustack.h
unifdef-y += perfmon.h
4 changes: 2 additions & 2 deletions trunk/include/asm-ia64/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* David Mosberger-Tang <davidm@hpl.hp.com>
*/

# ifdef __KERNEL__

#include <asm/intrinsics.h>
#include <asm/types.h>
Expand Down Expand Up @@ -65,6 +64,7 @@
# define __pa(x) ((x) - PAGE_OFFSET)
# define __va(x) ((x) + PAGE_OFFSET)
#else /* !__ASSEMBLY */
# ifdef __KERNEL__
# define STRICT_MM_TYPECHECKS

extern void clear_page (void *page);
Expand Down Expand Up @@ -174,6 +174,7 @@ get_order (unsigned long size)
return order;
}

# endif /* __KERNEL__ */
#endif /* !__ASSEMBLY__ */

#ifdef STRICT_MM_TYPECHECKS
Expand Down Expand Up @@ -227,5 +228,4 @@ get_order (unsigned long size)
(((current->personality & READ_IMPLIES_EXEC) != 0) \
? VM_EXEC : 0))

# endif /* __KERNEL__ */
#endif /* _ASM_IA64_PAGE_H */
10 changes: 3 additions & 7 deletions trunk/include/asm-ia64/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@


#include <asm/fpu.h>

#ifdef __KERNEL__
#ifndef ASM_OFFSETS_C
#include <asm/asm-offsets.h>
#endif
Expand All @@ -81,10 +79,11 @@

#define KERNEL_STACK_SIZE IA64_STK_OFFSET

#endif /* __KERNEL__ */

#ifndef __ASSEMBLY__

#include <asm/current.h>
#include <asm/page.h>

/*
* This struct defines the way the registers are saved on system
* calls.
Expand Down Expand Up @@ -230,9 +229,6 @@ struct switch_stack {

#ifdef __KERNEL__

#include <asm/current.h>
#include <asm/page.h>

#define __ARCH_SYS_PTRACE 1

/*
Expand Down
Loading

0 comments on commit 8c26a51

Please sign in to comment.