lkml.org 
[lkml]   [1998]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[2.1.82] unused variable in floppy.c (UP kernel.)
Hi,
This patch removes a warning I get when building linux-2.1.82 as a UP
kernel. I build the floppy driver as a module.

--- linux-2.1.82/drivers/block/floppy.c Sat Jan 24 07:28:17 1998
+++ linux/drivers/block/floppy.c Tue Jan 27 19:18:41 1998
@@ -1710,7 +1710,9 @@
} while ((ST0 & 0x83) != UNIT(current_drive) && inr == 2);
}
if (handler) {
+#ifdef __SMP__
int cpu = smp_processor_id();
+#endif
if(softirq_trylock(cpu)) {
/* got the lock, call the handler immediately */
handler();
--
Med venlig hilsen / Best regards
nkbj@image.dk
Niels Kristian Bech Jensen http://www.image.dk/~nkbj/


\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.038 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site