lkml.org 
[lkml]   [1999]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 2.3.19 compiler warnings
Attached is small patch to get rid of two unused variables complaints in 
drivers/scsi/sr.c by 2.3.19.

2.3.19 still has those "greater than maximum object file alignment"
warnings, probably related to NR_CPUS/NR_IRQS (I'm running a UP box here.)
Removing __cacheline_aligned gets rid of the errors, but as I'm not too
familiar with SMP spinlocking and such, I didn't include that in the
patch.

As a side note, is there any chance of getting Erez Zadok's loopback file
system into 2.3.20?
(http://www.cs.columbia.edu/~ezk/research/software/fist-2.3.18.diff)
--- linux-old/drivers/scsi/sr.c Mon Oct 4 19:56:14 1999
+++ linux/drivers/scsi/sr.c Mon Oct 4 20:54:57 1999
@@ -861,7 +861,6 @@
unsigned char *buffer;
int the_result, retries;
Scsi_Cmnd *SCpnt;
- unsigned long flags;

buffer = (unsigned char *) scsi_malloc(512);
SCpnt = scsi_allocate_device(NULL, scsi_CDs[i].device, 1);
@@ -1031,7 +1030,6 @@
{
Scsi_Cmnd *SCpnt;
Scsi_Device *device = scsi_CDs[MINOR(cdi->dev)].device;
- unsigned long flags;
int stat;

/* get the device */
\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.025 / U:0.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site