lkml.org 
[lkml]   [1999]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject2.3.15-pre3 filemap.c
Good day, all,
My 2.3.15 pre3 wouldn't compile:

gcc -D__KERNEL__ -I/usr/src/linux-2.3.15/include -Wall -Wstrict-prototypes
-O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fn
o-strength-reduce -DCPU=586 -march=i586 -c -o filemap.o filemap.c
filemap.c: In function `filemap_nopage':
filemap.c:1408: `error' undeclared (first use in this function)
filemap.c:1408: (Each undeclared identifier is reported only once
filemap.c:1408: for each function it appears in.)
filemap.c:1423: warning: label `no_page' defined but not used
filemap.c:1419: warning: label `failure' defined but not used

Defining "error" as an int seemed to allow it to compile and it's
running now without any visible problems. It applies over 2.3.15-pre3.
Warning: use at your own risk - this falls in the category of
PIPFPWRSBPKA *. Cheers,
- Bill

* Probably Incorrect Patches From People Who Really Shouldn't Be Patching
Kernels Anyways

---------------------------------------------------------------------------
"After being a technician for 2 years, I've discovered if people
took care of their health with the same reckless abandon as their
computers, half would be at the kitchen table on the phone with the
hospital, trying to remove their appendix with a butter knife."
(Courtesy of Brian Jones <balif@nacs.net>)
--------------------------------------------------------------------------
William Stearns (wstearns@pobox.com). Mason, Buildkernel, named2hosts,
and ipfwadm2ipchains are at: http://www.pobox.com/~wstearns/
--------------------------------------------------------------------------

--- linux/mm/filemap.c.orig Mon Aug 23 16:28:17 1999
+++ linux/mm/filemap.c Mon Aug 23 18:24:13 1999
@@ -1314,6 +1314,8 @@

unsigned long offset = address - area->vm_start + area->vm_offset;

+ int error = 0;
+
/*
* Semantics for shared and private memory areas are different
* past the end of the file. A shared mapping past the last page
\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.044 / U:0.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site