From: Krzysiek Taraszka <dzimi@ep09.kernel.pl>
To: linux-kernel@vger.kernel.org
Subject: PATCH: 2.2.21rc3 ppc isdn patch
Date: Fri, 3 May 2002 14:40:19 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.44.0205031435320.2298-200000@ep09.kernel.pl> (raw)
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1641 bytes --]
Hi, I tried compile 2.2.21rc3 with ISDN on ppc machine and i had that
messages:
In file included from
/home/users/dzimi/rpm/BUILD/linux/include/linux/interrupt.h:52,
from hysdn_defs.h:19,
from hysdn_sched.c:20:
/home/users/dzimi/rpm/BUILD/linux/include/asm/hardirq.h:4: `NR_CPUS'
undeclared
here (not in a function)
In file included from
/home/users/dzimi/rpm/BUILD/linux/include/linux/interrupt.h:53,
from hysdn_defs.h:19,
from hysdn_sched.c:20:
/home/users/dzimi/rpm/BUILD/linux/include/asm/softirq.h:7: `NR_CPUS'
undeclared
here (not in a function)
/home/users/dzimi/rpm/BUILD/linux/include/asm/softirq.h: In function
`start_bh_atomic':
/home/users/dzimi/rpm/BUILD/linux/include/asm/softirq.h:77: warning:
implicit declaration of function `smp_processor_id'
make[3]: *** [hysdn_sched.o] Error 1
Alan, my patch fix it.
>>-- cut here <<--
--- linux.orig/include/asm-ppc/atomic.h Sun Mar 25 18:31:08 2001
+++ linux/include/asm-ppc/atomic.h Sun Apr 7 20:38:11 2002
@@ -6,6 +6,9 @@
#define _ASM_PPC_ATOMIC_H_
#ifdef __SMP__
+
+#include <asm/smp.h>
+
typedef struct { volatile int counter; } atomic_t;
#else
typedef struct { int counter; } atomic_t;
diff -urN linux.orig/include/asm-ppc/hardirq.h
linux/include/asm-ppc/hardirq.h
--- linux.orig/include/asm-ppc/hardirq.h Sun Mar 25 18:31:09 2001
+++ linux/include/asm-ppc/hardirq.h Sun Apr 7 20:38:49 2002
@@ -1,6 +1,8 @@
#ifndef __ASM_HARDIRQ_H
#define __ASM_HARDIRQ_H
+#include <linux/tasks.h>
+
extern unsigned int ppc_local_irq_count[NR_CPUS];
/*
>>---------<<
Krzysiek Taraszka
[-- Attachment #2: Patch --]
[-- Type: TEXT/PLAIN, Size: 776 bytes --]
diff -urN linux.orig/include/asm-ppc/atomic.h linux/include/asm-ppc/atomic.h
--- linux.orig/include/asm-ppc/atomic.h Sun Mar 25 18:31:08 2001
+++ linux/include/asm-ppc/atomic.h Sun Apr 7 20:38:11 2002
@@ -6,6 +6,9 @@
#define _ASM_PPC_ATOMIC_H_
#ifdef __SMP__
+
+#include <asm/smp.h>
+
typedef struct { volatile int counter; } atomic_t;
#else
typedef struct { int counter; } atomic_t;
diff -urN linux.orig/include/asm-ppc/hardirq.h linux/include/asm-ppc/hardirq.h
--- linux.orig/include/asm-ppc/hardirq.h Sun Mar 25 18:31:09 2001
+++ linux/include/asm-ppc/hardirq.h Sun Apr 7 20:38:49 2002
@@ -1,6 +1,8 @@
#ifndef __ASM_HARDIRQ_H
#define __ASM_HARDIRQ_H
+#include <linux/tasks.h>
+
extern unsigned int ppc_local_irq_count[NR_CPUS];
/*
reply other threads:[~2002-05-03 12:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.44.0205031435320.2298-200000@ep09.kernel.pl \
--to=dzimi@ep09.kernel.pl \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®