lkml.org 
[lkml]   [2006]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH -mm] fix erroneous strcmp in modpost.c

Hi Andrew,

attached patch fixes an erroneous strcmp in modpost.c which let the
build of some external modules (madwifi, vloopback) on 2.6.17-rc4-mm1
fail. Additionally a small codingstyle one-liner :-)

kind regards,

Sven

Signed-off-by: Sven Schuster <schuster.sven@gmx.de>

--- linux-2.6.17-rc4-mm1/scripts/mod/modpost.c.orig 2006-05-15 20:49:14.000000000 +0200
+++ linux-2.6.17-rc4-mm1/scripts/mod/modpost.c 2006-05-15 20:49:30.000000000 +0200
@@ -1194,9 +1194,9 @@ static void read_dump(const char *fname,
*d != '\0')
goto fail;

- if ((strcmp(export, "EXPORT_SYMBOL_GPL")))
+ if (strcmp(export, "EXPORT_SYMBOL_GPL") == 0)
export_type = 1;
- else if(strcmp(export, "EXPORT_SYMBOL") == 0)
+ else if (strcmp(export, "EXPORT_SYMBOL") == 0)
export_type = 0;
else
goto fail;[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2006-05-15 21:09    [W:0.019 / U:1.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site