2.5.41 s390 (1/8): compile fixes.
Subsystems (2)
PATCH 1/1 2.5.41 s390 (1/8): compile fixes.
Switch to @$(generate-asm-offsets.h) method to create the asm-offsets.h file, fix signal dequeueing in the 31 bit emulation code and fix includes.
arch/s390/Makefile +18 -7
@@ -17,9 +17,7 @@ OBJCOPYFLAGS := -O binary LDFLAGS_vmlinux := -e start -CFLAGS_PIPE := -pipe -CFLAGS_NSR := -fno-strength-reduce -CFLAGS := $(CFLAGS) $(CFLAGS_PIPE) $(CFLAGS_NSR) +CFLAGS += -pipe -fno-strength-reduce HEAD := arch/s390/kernel/head.o arch/s390/kernel/init_task.o
@@ -38,11 +36,24 @@ image: vmlinux @$(MAKEBOOT) image +install: vmlinux + @$(MAKEBOOT) BOOTIMAGE=image install + archclean: - @$(MAKEBOOT) clean - $(MAKE) -C arch/$(ARCH)/kernel clean archmrproper: -install: vmlinux - @$(MAKEBOOT) BOOTIMAGE=image install +prepare: include/asm-$(ARCH)/offsets.h + +arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \ + include/config/MARKER + +include/asm-$(ARCH)/offsets.h.tmp: arch/$(ARCH)/kernel/asm-offsets.s + @$(generate-asm-offsets.h) < $< > $@ + +include/asm-$(ARCH)/offsets.h: include/asm-$(ARCH)/offsets.h.tmp + @echo -n ' Generating $@' + @$(update-if-changed) + +CLEAN_FILES += include/asm-$(ARCH)/offsets.h.tmp \ + include/asm-$(ARCH)/offsets.h
arch/s390/defconfig +2 -0
@@ -91,6 +91,7 @@ # # CONFIG_SCSI_7000FASST is not set # CONFIG_SCSI_ACARD is not set +# CONFIG_SCSI_AACRAID is not set # CONFIG_SCSI_AIC7XXX is not set # CONFIG_SCSI_AIC7XXX_OLD is not set # CONFIG_SCSI_DPT_I2O is not set
@@ -121,6 +122,7 @@ # CONFIG_SCSI_SYM53C416 is not set # CONFIG_SCSI_T128 is not set # CONFIG_SCSI_U14_34F is not set +# CONFIG_SCSI_NSP32 is not set # CONFIG_SCSI_DEBUG is not set #
arch/s390/kernel/Makefile +0 -23
@@ -19,26 +19,3 @@ obj-$(CONFIG_REMOTE_DEBUG) += gdb-stub.o #gdb-low.o include $(TOPDIR)/Rules.make - -.PHONY: asm-offsets.h - -entry.S: asm-offsets.h - -asm-offsets.h: asm-offsets.c - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -S $< -o - | grep -- "->" | \ - (echo "#ifndef __ASM_OFFSETS_H__"; \ - echo "#define __ASM_OFFSETS_H__"; \ - echo "/*"; \ - echo " * DO NOT MODIFY"; \ - echo " *"; \ - echo " * This file was generated by arch/s390/kernel/Makefile"; \ - echo " */"; \ - sed -e "s:^->\([^ ]*\) \([^ ]*\) \(.*\):#define \\1 \\2 /* \\3*/:" \ - -e "s:->::"; \ - echo "#endif" \ - ) > asm-offsets.h - -clean: - rm -f asm-offsets.h - -
arch/s390/kernel/entry.S +1 -2
@@ -17,8 +17,7 @@ #include <asm/errno.h> #include <asm/ptrace.h> #include <asm/thread_info.h> - -#include "asm-offsets.h" +#include <asm/offsets.h> /* * Stack layout for the system_call stack entry.
arch/s390x/Makefile +16 -5
@@ -18,9 +18,7 @@ LDFLAGS_vmlinux := -e start MODFLAGS += -fpic -CFLAGS_PIPE := -pipe -CFLAGS_NSR := -fno-strength-reduce -CFLAGS := $(CFLAGS) $(CFLAGS_PIPE) $(CFLAGS_NSR) +CFLAGS += -pipe -fno-strength-reduce HEAD := arch/s390x/kernel/head.o arch/s390x/kernel/init_task.o
@@ -42,7 +40,20 @@ @$(MAKEBOOT) BOOTIMAGE=image install archclean: - @$(MAKEBOOT) clean - $(MAKE) -C arch/$(ARCH)/kernel clean archmrproper: + +prepare: include/asm-$(ARCH)/offsets.h + +arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \ + include/config/MARKER + +include/asm-$(ARCH)/offsets.h.tmp: arch/$(ARCH)/kernel/asm-offsets.s + @$(generate-asm-offsets.h) < $< > $@ + +include/asm-$(ARCH)/offsets.h: include/asm-$(ARCH)/offsets.h.tmp + @echo -n ' Generating $@' + @$(update-if-changed) + +CLEAN_FILES += include/asm-$(ARCH)/offsets.h.tmp \ + include/asm-$(ARCH)/offsets.h
arch/s390x/defconfig +2 -0
@@ -92,6 +92,7 @@ # # CONFIG_SCSI_7000FASST is not set # CONFIG_SCSI_ACARD is not set +# CONFIG_SCSI_AACRAID is not set # CONFIG_SCSI_AIC7XXX is not set # CONFIG_SCSI_AIC7XXX_OLD is not set # CONFIG_SCSI_DPT_I2O is not set
@@ -122,6 +123,7 @@ # CONFIG_SCSI_SYM53C416 is not set # CONFIG_SCSI_T128 is not set # CONFIG_SCSI_U14_34F is not set +# CONFIG_SCSI_NSP32 is not set # CONFIG_SCSI_DEBUG is not set #
arch/s390x/kernel/Makefile +0 -25
@@ -30,28 +30,3 @@ # This is just to get the dependencies... # binfmt_elf32.o: $(TOPDIR)/fs/binfmt_elf.c - -.PHONY: asm-offsets.h - -entry.S: asm-offsets.h - -# -# Automatic offset generation for assembler files. -# -asm-offsets.h: asm-offsets.c - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -S $< -o - | grep -- "->" | \ - (echo "#ifndef __ASM_OFFSETS_H__"; \ - echo "#define __ASM_OFFSETS_H__"; \ - echo "/*"; \ - echo " * DO NOT MODIFY"; \ - echo " *"; \ - echo " * This file was generated by arch/s390/kernel/Makefile"; \ - echo " */"; \ - sed -e "s:^->\([^ ]*\) \([^ ]*\) \(.*\):#define \\1 \\2 /* \\3*/:" \ - -e "s:->::"; \ - echo "#endif" \ - ) > asm-offsets.h - -clean: - rm -f asm-offsets.h -
arch/s390x/kernel/entry.S +1 -2
@@ -17,8 +17,7 @@ #include <asm/errno.h> #include <asm/ptrace.h> #include <asm/thread_info.h> - -#include "asm-offsets.h" +#include <asm/offsets.h> /* * Stack layout for the system_call stack entry.
arch/s390x/kernel/ioctl32.c +1 -1
@@ -25,9 +25,9 @@#include <linux/ext2_fs.h> #include <linux/hdreg.h> #include <linux/if_bonding.h> -#include <linux/loop.h> #include <linux/blkpg.h> #include <linux/blk.h> +#include <linux/loop.h> #include <linux/elevator.h> #include <asm/types.h> #include <asm/uaccess.h>
arch/s390x/kernel/linux32.c +2 -6
@@ -1953,9 +1953,7 @@ }spin_lock_irq (¤t->sig->siglock); - sig =dequeue_signal (¤t->sig->shared_pending, &these, &info); -if (!sig) - sig =dequeue_signal (¤t->pending, &these, &info); + sig =dequeue_signal (&these, &info);if (!sig) {/* None ready -- temporarily unblock those we're interested in so that we'll be awakened when they arrive. */
@@ -1973,9 +1971,7 @@ timeout =schedule_timeout (timeout);spin_lock_irq (¤t->sig->siglock); - sig =dequeue_signal (¤t->sig->shared_pending, &these, &info); -if (!sig) - sig =dequeue_signal (¤t->pending, &these, &info); + sig =dequeue_signal (&these, &info); current->blocked = current->real_blocked;siginitset (¤t->real_blocked,0 );recalc_sigpending ();
drivers/s390/cio/cio.c +2 -1
@@ -1,7 +1,7 @@/* * drivers/s390/cio/cio.c * S/390 common I/O routines -- low level i/o calls -* $Revision: 1.26 $ +* $Revision: 1.27 $ * * Copyright (C) 1999-2002 IBM Deutschland Entwicklung GmbH, * IBM Corporation
@@ -27,6 +27,7 @@#include "cio.h" #include "cio_debug.h" #include "ioinfo.h" +#include "chsc.h" #include "s390io.h" /* FIXME: try to do without this */ static atomic_t sync_isc =ATOMIC_INIT (-1 );