Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 30 Sep 2002 09:56:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 30 Sep 2002 09:55:39 -0400 Received: from d06lmsgate-4.uk.ibm.com ([195.212.29.4]:52203 "EHLO d06lmsgate-4.uk.ibm.COM") by vger.kernel.org with ESMTP id convert rfc822-to-8bit; Mon, 30 Sep 2002 09:44:13 -0400 Content-Type: text/plain; charset="us-ascii" From: Martin Schwidefsky Organization: IBM Deutschland GmbH To: linux-kernel@vger.kernel.org, torvalds@transmeta.com Subject: [PATCH] 2.5.39 s390 (26/26): /proc/interrupts. Date: Mon, 30 Sep 2002 15:06:47 +0200 X-Mailer: KMail [version 1.4] MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Message-Id: <200209301506.47989.schwidefsky@de.ibm.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2417 Lines: 80 Don't create /proc/interrupts on s390. diff -urN linux-2.5.39/drivers/s390/cio/proc.c linux-2.5.39-s390/drivers/s390/cio/proc.c --- linux-2.5.39/drivers/s390/cio/proc.c Mon Sep 30 13:25:21 2002 +++ linux-2.5.39-s390/drivers/s390/cio/proc.c Mon Sep 30 13:34:04 2002 @@ -17,7 +17,6 @@ #include #include #include -#include #include #include @@ -31,31 +30,6 @@ static int chan_proc_init (void); -int show_interrupts(struct seq_file *p, void *v) -{ - int i, j; - - seq_puts(p, " "); - - for (j=0; jirq_desc.name); - - seq_putc(p, '\n'); - - } /* endfor */ - - return 0; -} - /* * Display info on subchannels in /proc/subchannels. * Adapted from procfs stuff in dasd.c by Cornelia Huck, 02/28/01. diff -urN linux-2.5.39/fs/proc/proc_misc.c linux-2.5.39-s390/fs/proc/proc_misc.c --- linux-2.5.39/fs/proc/proc_misc.c Fri Sep 27 23:49:06 2002 +++ linux-2.5.39-s390/fs/proc/proc_misc.c Mon Sep 30 13:34:04 2002 @@ -418,6 +418,7 @@ return proc_calc_metrics(page, start, off, count, eof, len); } +#if !defined(CONFIG_ARCH_S390) extern int show_interrupts(struct seq_file *p, void *v); static int interrupts_open(struct inode *inode, struct file *file) { @@ -447,6 +448,7 @@ llseek: seq_lseek, release: single_release, }; +#endif static int filesystems_read_proc(char *page, char **start, off_t off, int count, int *eof, void *data) @@ -629,7 +631,9 @@ entry->proc_fops = &proc_kmsg_operations; create_seq_entry("cpuinfo", 0, &proc_cpuinfo_operations); create_seq_entry("partitions", 0, &proc_partitions_operations); +#if !defined(CONFIG_ARCH_S390) create_seq_entry("interrupts", 0, &proc_interrupts_operations); +#endif create_seq_entry("slabinfo",S_IWUSR|S_IRUGO,&proc_slabinfo_operations); #ifdef CONFIG_MODULES create_seq_entry("modules", 0, &proc_modules_operations); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/