Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157010
b: refs/heads/master
c: 6777d77
h: refs/heads/master
v: v3
  • Loading branch information
Mimi Zohar authored and James Morris committed Aug 24, 2009
1 parent eeb55ef commit a453c42
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 24 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: 637952ca689013339b977558061fa4ca8e07e1c1
refs/heads/master: 6777d773a463ac045d333b989d4e44660f8d92ad
25 changes: 7 additions & 18 deletions trunk/arch/s390/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,20 +154,6 @@ static int __init condev_setup(char *str)

__setup("condev=", condev_setup);

static void __init set_preferred_console(void)
{
if (MACHINE_IS_KVM) {
add_preferred_console("hvc", 0, NULL);
s390_virtio_console_init();
return;
}

if (CONSOLE_IS_3215 || CONSOLE_IS_SCLP)
add_preferred_console("ttyS", 0, NULL);
if (CONSOLE_IS_3270)
add_preferred_console("tty3270", 0, NULL);
}

static int __init conmode_setup(char *str)
{
#if defined(CONFIG_SCLP_CONSOLE) || defined(CONFIG_SCLP_VT220_CONSOLE)
Expand All @@ -182,7 +168,6 @@ static int __init conmode_setup(char *str)
if (strncmp(str, "3270", 5) == 0)
SET_CONSOLE_3270;
#endif
set_preferred_console();
return 1;
}

Expand Down Expand Up @@ -795,6 +780,9 @@ static void __init setup_hwcaps(void)
void __init
setup_arch(char **cmdline_p)
{
/* set up preferred console */
add_preferred_console("ttyS", 0, NULL);

/*
* print what head.S has found out about the machine
*/
Expand All @@ -814,9 +802,11 @@ setup_arch(char **cmdline_p)
if (MACHINE_IS_VM)
pr_info("Linux is running as a z/VM "
"guest operating system in 64-bit mode\n");
else if (MACHINE_IS_KVM)
else if (MACHINE_IS_KVM) {
pr_info("Linux is running under KVM in 64-bit mode\n");
else
add_preferred_console("hvc", 0, NULL);
s390_virtio_console_init();
} else
pr_info("Linux is running natively in 64-bit mode\n");
#endif /* CONFIG_64BIT */

Expand Down Expand Up @@ -861,7 +851,6 @@ setup_arch(char **cmdline_p)

/* Setup default console */
conmode_default();
set_preferred_console();

/* Setup zfcpdump support */
setup_zfcpdump(console_devno);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/s390/block/dasd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2135,9 +2135,9 @@ static int dasd_getgeo(struct block_device *bdev, struct hd_geometry *geo)
struct dasd_device *base;

block = bdev->bd_disk->private_data;
base = block->base;
if (!block)
return -ENODEV;
base = block->base;

if (!base->discipline ||
!base->discipline->fill_geometry)
Expand Down
4 changes: 3 additions & 1 deletion trunk/drivers/s390/cio/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -772,8 +772,10 @@ static struct ccw_device * io_subchannel_create_ccwdev(struct subchannel *sch)
cdev = io_subchannel_allocate_dev(sch);
if (!IS_ERR(cdev)) {
ret = io_subchannel_initialize_dev(sch, cdev);
if (ret)
if (ret) {
kfree(cdev);
cdev = ERR_PTR(ret);
}
}
return cdev;
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/fs/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -678,8 +678,8 @@ struct file *open_exec(const char *name)
}
EXPORT_SYMBOL(open_exec);

int kernel_read(struct file *file, unsigned long offset,
char *addr, unsigned long count)
int kernel_read(struct file *file, loff_t offset,
char *addr, unsigned long count)
{
mm_segment_t old_fs;
loff_t pos = offset;
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -2123,7 +2123,7 @@ extern struct file *do_filp_open(int dfd, const char *pathname,
int open_flag, int mode, int acc_mode);
extern int may_open(struct path *, int, int);

extern int kernel_read(struct file *, unsigned long, char *, unsigned long);
extern int kernel_read(struct file *, loff_t, char *, unsigned long);
extern struct file * open_exec(const char *);

/* fs/dcache.c -- generic fs support functions */
Expand Down

0 comments on commit a453c42

Please sign in to comment.