linux/drivers/sound/bin2hex.c patch

Bob_Tracy (rct@gherkin.sa.wlk.com)
Fri, 27 Mar 1998 07:45:00 -0600 (CST)


I was hoping something like this would make it into 2.1.91. Oh well...
Alan, Linus, Michael, Thomas: please add to .92. This allows maui_boot.h
to be created as Alan intended (the __initdata stuff) and actually compile.
Note that a similar thing needs to be done to the hex2hex.c file (and
there's a beautiful syntax error in that one where a '^]' needs to be
replaced by ']'). (Are there any MediaTrix AudioTrix Pro users? If
so, why haven't we heard from you?)

====--CUT HERE--====
--- linux/drivers/sound/bin2hex.c.orig Wed Mar 18 09:11:12 1998
+++ linux/drivers/sound/bin2hex.c Thu Mar 26 21:36:21 1998
@@ -22,7 +22,10 @@

varname = argv[1];
printf( "/* automatically generated by bin2hex */\n" );
- printf( "static unsigned char %s [] %s =\n{\n", varname , id?"__initdata":"");
+ if(id)
+ printf( "#include <asm/init.h>\n" );
+ printf( "static unsigned char%s%s [] =\n{\n",
+ id ? " __initdata " : " ", varname );

while ( ( c = getchar( ) ) != EOF )
{
====--TUC EREH--====

-- 
Bob Tracy               |  "They couldn't hit an elephant at this dist- "
Firewall Security Corp. |   - Last words of Union General John Sedgwick,
rct@frus.com            |  Battle of Spotsylvania Court House, U.S. Civil War

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu