From: tpepper@vato.org
To: f5ibh <f5ibh@db0bm.ampr.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.4.9 does not compile [better PATCH]
Date: Thu, 16 Aug 2001 15:10:51 -0700 [thread overview]
Message-ID: <20010816151051.A5232@cb.vato.org> (raw)
In-Reply-To: <200108162111.XAA07177@db0bm.ampr.org>
In-Reply-To: <200108162111.XAA07177@db0bm.ampr.org>; from f5ibh@db0bm.ampr.org on Thu, Aug 16, 2001 at 11:11:40PM +0200
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=unknown-8bit, Size: 2057 bytes --]
It looks like they are actually using a 3 argument min() function in the ntfs
code. It seems happy with these three arg's and an include added so this patch is pr÷bably preferable:
diff -Naur linux-2.4.9/fs/ntfs/unistr.c.orig linux-2.4.9/fs/ntfs/unistr.c
--- linux-2.4.9/fs/ntfs/unistr.c.orig Thu Aug 16 14:35:03 2001
+++ linux-2.4.9/fs/ntfs/unistr.c Thu Aug 16 15:07:54 2001
@@ -24,6 +24,7 @@
#include <linux/string.h>
#include <asm/byteorder.h>
+#include "ntfstypes.h"
#include "unistr.h"
#include "macros.h"
@@ -96,7 +97,7 @@
__u32 cnt;
wchar_t c1, c2;
- for (cnt = 0; cnt < min(unsigned int, name1_len, name2_len); ++cnt)
+ for (cnt = 0; cnt < min(__u32, name1_len, name2_len); ++cnt)
{
c1 = le16_to_cpu(*name1++);
c2 = le16_to_cpu(*name2++);
Tim
--
*********************************************************
* tpepper@vato dot org * Venimus, Vidimus, *
* http://www.vato.org/~tpepper * Dolavimus *
*********************************************************
On Thu 16 Aug at 23:11:40 +0200 f5ibh@db0bm.ampr.org done said:
> unistr.c: In function `ntfs_collate_names':
> unistr.c:99: warning: implicit declaration of function `min'
> unistr.c:99: parse error before `unsigned'
> unistr.c:99: parse error before `)'
> unistr.c:97: warning: `c1' might be used uninitialized in this function
> unistr.c: At top level:
> unistr.c:118: parse error before `if'
> unistr.c:123: warning: type defaults to `int' in declaration of `c1'
> unistr.c:123: `name1' undeclared here (not in a function)
> unistr.c:123: warning: data definition has no type or storage class
> unistr.c:124: parse error before `if'
> make[3]: *** [unistr.o] Erreur 1
> make[3]: Leaving directory `/usr/src/kernel-sources-2.4.9/fs/ntfs'
> make[2]: *** [_modsubdir_ntfs] Erreur 2
> make[2]: Leaving directory `/usr/src/kernel-sources-2.4.9/fs'
> make[1]: *** [_mod_fs] Erreur 2
> make[1]: Leaving directory `/usr/src/kernel-sources-2.4.9'
> make: *** [stamp-build] Erreur 2
next prev parent reply other threads:[~2001-08-16 22:11 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-16 21:11 2.4.9 does not compile f5ibh
2001-08-16 21:41 ` 2.4.9 does not compile [PATCH] tpepper
2001-08-16 22:31 ` David S. Miller
2001-08-16 23:13 ` Daniel Phillips
2001-08-16 23:11 ` David S. Miller
2001-08-16 23:14 ` Alan Cox
2001-08-16 23:35 ` Anton Altaparmakov
2001-08-16 23:40 ` David S. Miller
[not found] ` <Pine.LNX.4.33L.0108171844000.2277-100000@duckman.distro.conectiva>
2001-08-17 21:58 ` David S. Miller
2001-08-17 1:46 ` Jeff Dike
[not found] ` <Your message of "Fri, 17 Aug 2001 00:35:02 +0100." <5.1.0.14.2.20010817002825.00b1e4e0@pop.cus.cam.ac.uk>
2001-08-17 1:22 ` Anton Altaparmakov
2001-08-17 1:49 ` Andrew Morton
2001-08-17 1:53 ` David S. Miller
2001-08-17 2:05 ` Daniel Phillips
2001-08-17 3:55 ` Jeff Dike
2001-08-17 17:30 ` Rik van Riel
2001-08-16 23:22 ` Anton Altaparmakov
2001-08-16 23:38 ` David S. Miller
2001-08-17 1:24 ` Roman Zippel
2001-08-17 1:50 ` David S. Miller
2001-08-17 2:29 ` Roman Zippel
2001-08-17 2:38 ` David S. Miller
2001-08-17 2:53 ` Roman Zippel
2001-08-17 2:59 ` David S. Miller
2001-08-17 3:23 ` Roman Zippel
2001-08-17 3:37 ` David S. Miller
2001-08-17 3:59 ` Roman Zippel
2001-08-17 8:35 ` Anton Altaparmakov
2001-08-17 4:29 ` Ben LaHaise
2001-08-17 6:07 ` David S. Miller
2001-08-17 3:08 ` Roman Zippel
2001-08-17 3:13 ` David S. Miller
2001-08-17 3:39 ` Roman Zippel
2001-08-17 3:44 ` David S. Miller
2001-08-16 22:10 ` tpepper [this message]
2001-08-16 22:21 ` Anton Altaparmakov
2001-08-16 22:28 ` 2.4.9 does not compile [better PATCH] Anton Altaparmakov
2001-08-17 4:23 ` Jeff Chua
2001-08-17 1:06 ` 2.4.9 does not compile (adaptec new driver) Luigi Genoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010816151051.A5232@cb.vato.org \
--to=tpepper@vato.org \
--cc=f5ibh@db0bm.ampr.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.