From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 30 Jun 2001 15:38:01 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 30 Jun 2001 15:37:51 -0400 Received: from [211.108.47.117] ([211.108.47.117]:57356 "EHLO progress.plw.net") by vger.kernel.org with ESMTP id ; Sat, 30 Jun 2001 15:37:34 -0400 Date: Sun, 1 Jul 2001 04:37:08 +0900 (KST) From: Byeong-ryeol Kim Reply-To: Byeong-ryeol Kim To: cc: Keith Owens , David Woodhouse , Alan Cox Subject: Re: compile error about do_softirq in 2.4.5-ac21 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 1 Jul 2001, Byeong-ryeol Kim wrote: >On Sat, 30 Jun 2001, Keith Owens wrote: > >>On Sat, 30 Jun 2001 10:07:20 +0900 (KST), >>Byeong-ryeol Kim wrote: >>>>>background.c:57: `do_softirq_Rf0a529b7' undeclared (first use in \ >>>>> this function) >> >>Missing include in fs/jffs2/background.c. spin_unlock_bh() needs the >>definition of do_softirq(). Against 2.4.5-ac21, will fit -ac22 as well. >> >>Index: 5.52/fs/jffs2/background.c >>--- 5.52/fs/jffs2/background.c Sun, 22 Apr 2001 07:25:55 +1000 kaos (linux-2.4/Z/d/7_background 1.1 644) >>+++ 5.52(w)/fs/jffs2/background.c Sat, 30 Jun 2001 14:13:12 +1000 kaos (linux-2.4/Z/d/7_background 1.1 644) >>@@ -43,6 +43,7 @@ >> #include >> #include >>+#include >> #include >> #include "nodelist.h" >... > >Thank you. >But, it is proved to be that jffs2/background.c includes 'linux/smp_lock.h', >'linux/smp_lock.h' includes 'asm/smplock.h' and 'asm/smplock.h' includes >'linux/interrupt.h'. >Is it correct to put 'linux/interrupt.h' into jffs2/background.c in this >situation? ... Please, ignore my previous mail about 'linux/interrupt.h'. I bypassed the '#ifndef CONFIG_SMP ... #endif' wrapper in linux/smp_lock.h. ... #ifndef CONFIG_SMP #define lock_kernel() do { } while(0) #define unlock_kernel() do { } while(0) #define release_kernel_lock(task, cpu) do { } while(0) #define reacquire_kernel_lock(task) do { } while(0) #define kernel_locked() 1 #else #include #endif /* CONFIG_SMP */ ... Thanks, -- Where there is a will, there is a way. jinbo21@hananet.net For the future of you and me! jinbo21@hitel.net fingerprint = 1429 8AAF 8A2C 6043 DA2E BD4C 964C 2698 687D 4B7D