Commit 7e928143 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] s390: general update.

From: Martin Schwidefsky <schwidefsky@de.ibm.com>

s390 general update:

- Add archhelp for "make image".

- 32-bit execve fix.

- Export some symbols: sys_ioctl, put_files_struct & ccw_device_work.

- Minor cleanups in arch/s390/mm/init.c & drivers/s390/net/ctctty.c.
parent 36de3f33
...@@ -70,3 +70,8 @@ include/asm-$(ARCH)/offsets.h: arch/$(ARCH)/kernel/asm-offsets.s ...@@ -70,3 +70,8 @@ include/asm-$(ARCH)/offsets.h: arch/$(ARCH)/kernel/asm-offsets.s
$(call filechk,gen-asm-offsets) $(call filechk,gen-asm-offsets)
CLEAN_FILES += include/asm-$(ARCH)/offsets.h CLEAN_FILES += include/asm-$(ARCH)/offsets.h
# Don't use tabs in echo arguments
define archhelp
echo '* image - Kernel image for IPL ($(boot)/image)'
endef
...@@ -147,6 +147,7 @@ CONFIG_MD_LINEAR=m ...@@ -147,6 +147,7 @@ CONFIG_MD_LINEAR=m
CONFIG_MD_RAID0=m CONFIG_MD_RAID0=m
CONFIG_MD_RAID1=m CONFIG_MD_RAID1=m
CONFIG_MD_RAID5=m CONFIG_MD_RAID5=m
# CONFIG_MD_RAID6 is not set
CONFIG_MD_MULTIPATH=m CONFIG_MD_MULTIPATH=m
# CONFIG_BLK_DEV_DM is not set # CONFIG_BLK_DEV_DM is not set
......
...@@ -1912,7 +1912,8 @@ do_execve32(char * filename, u32 * argv, u32 * envp, struct pt_regs * regs) ...@@ -1912,7 +1912,8 @@ do_execve32(char * filename, u32 * argv, u32 * envp, struct pt_regs * regs)
security_bprm_free(&bprm); security_bprm_free(&bprm);
out_mm: out_mm:
mmdrop(bprm.mm); if (bprm.mm)
mmdrop(bprm.mm);
out_file: out_file:
if (bprm.file) { if (bprm.file) {
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/smp.h> #include <linux/smp.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/ioctl32.h>
#include <asm/checksum.h> #include <asm/checksum.h>
#include <asm/cpcmd.h> #include <asm/cpcmd.h>
#include <asm/delay.h> #include <asm/delay.h>
...@@ -74,4 +75,5 @@ EXPORT_SYMBOL(console_device); ...@@ -74,4 +75,5 @@ EXPORT_SYMBOL(console_device);
EXPORT_SYMBOL_NOVERS(do_call_softirq); EXPORT_SYMBOL_NOVERS(do_call_softirq);
EXPORT_SYMBOL(sys_wait4); EXPORT_SYMBOL(sys_wait4);
EXPORT_SYMBOL(cpcmd); EXPORT_SYMBOL(cpcmd);
EXPORT_SYMBOL(sys_ioctl);
...@@ -79,8 +79,6 @@ extern unsigned long __init_end; ...@@ -79,8 +79,6 @@ extern unsigned long __init_end;
* paging_init() sets up the page tables * paging_init() sets up the page tables
*/ */
unsigned long last_valid_pfn;
#ifndef CONFIG_ARCH_S390X #ifndef CONFIG_ARCH_S390X
void __init paging_init(void) void __init paging_init(void)
{ {
......
...@@ -908,3 +908,4 @@ EXPORT_SYMBOL(ccw_driver_register); ...@@ -908,3 +908,4 @@ EXPORT_SYMBOL(ccw_driver_register);
EXPORT_SYMBOL(ccw_driver_unregister); EXPORT_SYMBOL(ccw_driver_unregister);
EXPORT_SYMBOL(get_ccwdev_by_busid); EXPORT_SYMBOL(get_ccwdev_by_busid);
EXPORT_SYMBOL(ccw_bus_type); EXPORT_SYMBOL(ccw_bus_type);
EXPORT_SYMBOL(ccw_device_work);
/* /*
* $Id: ctctty.c,v 1.14 2003/10/06 11:33:33 mschwide Exp $ * $Id: ctctty.c,v 1.15 2004/01/26 10:21:01 mschwide Exp $
* *
* CTC / ESCON network driver, tty interface. * CTC / ESCON network driver, tty interface.
* *
...@@ -759,9 +759,7 @@ ctc_tty_ioctl(struct tty_struct *tty, struct file *file, ...@@ -759,9 +759,7 @@ ctc_tty_ioctl(struct tty_struct *tty, struct file *file,
info->line); info->line);
#endif #endif
error = put_user(C_CLOCAL(tty) ? 1 : 0, (ulong *) arg); error = put_user(C_CLOCAL(tty) ? 1 : 0, (ulong *) arg);
if (error) return error;
return error;
return 0;
case TIOCSSOFTCAR: case TIOCSSOFTCAR:
#ifdef CTC_DEBUG_MODEM_IOCTL #ifdef CTC_DEBUG_MODEM_IOCTL
printk(KERN_DEBUG "%s%d ioctl TIOCSSOFTCAR\n", CTC_TTY_NAME, printk(KERN_DEBUG "%s%d ioctl TIOCSSOFTCAR\n", CTC_TTY_NAME,
......
...@@ -403,6 +403,8 @@ void put_files_struct(struct files_struct *files) ...@@ -403,6 +403,8 @@ void put_files_struct(struct files_struct *files)
} }
} }
EXPORT_SYMBOL(put_files_struct);
static inline void __exit_files(struct task_struct *tsk) static inline void __exit_files(struct task_struct *tsk)
{ {
struct files_struct * files = tsk->files; struct files_struct * files = tsk->files;
......
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