Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 10 Dec 2002 09:42:09 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 10 Dec 2002 09:42:09 -0500 Received: from d146.dhcp212-198-27.noos.fr ([212.198.27.146]:59871 "EHLO deep-space-9.dsnet") by vger.kernel.org with ESMTP id ; Tue, 10 Dec 2002 09:41:25 -0500 Date: Tue, 10 Dec 2002 15:49:04 +0100 From: Stelian Pop To: Linux Kernel Mailing List Subject: [PATCH 2.4.20-BK] make new ide compile Message-ID: <20021210154904.E18849@deep-space-9.dsnet> Reply-To: Stelian Pop Mail-Followup-To: Stelian Pop , Linux Kernel Mailing List Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1122 Lines: 30 The new ide code in the latest BK 2.4 kernel does not compile. Several symbols: local_save_flags, save_and_cli, local_irq_set are not defined, probably due to a missing merge somewhere in include/asm-*/system.h. The attached (dirty) patch makes it compile again. Just in case somebody else needs it, while waiting for the proper fix. Stelian. ===== include/linux/ide.h 1.7 vs edited ===== --- 1.7/include/linux/ide.h Fri Nov 29 23:03:01 2002 +++ edited/include/linux/ide.h Tue Dec 10 12:20:01 2002 @@ -1755,5 +1755,8 @@ #define ide_lock (io_request_lock) #define DRIVE_LOCK(drive) ((drive)->queue.queue_lock) +#define local_save_flags(flags) save_flags((flags)) +#define save_and_cli(x) local_irq_save(x) +#define local_irq_set(flags) do { local_save_flags((flags)); local_irq_enable(); } while (0) #endif /* _IDE_H */ -- Stelian Pop - 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/