From: "Charles Coffing" Subject: [PATCH] fix build of gdbstub.c Date: Mon, 25 Sep 2006 17:44:30 -0400 Message-ID: <4517F8E4.D169.003C.0@novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartD6F286AE.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --=__PartD6F286AE.0__= Content-Type: text/plain; charset=Windows-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Changeset 11598 broke the build with my gcc-4.1.2. You can't forward-decla= re a static function within another function. Trivial patch attached to = fix this. Signed-off-by: Charles Coffing gcc -O1 -fno-omit-frame-pointer -g -m32 -march=3Di686 -Wall -Wstrict-protot= ypes -Wdeclaration-after-statement -nostdinc -fno-builtin -fno-common = -fno-strict-aliasing -iwithprefix include -Werror -Wno-pointer-arith -pipe = -I/usr/src/packages/BUILD/xen-unstable/xen/include -I/usr/src/packages/BUIL= D/xen-unstable/xen/include/asm-x86/mach-generic -I/usr/src/packages/BUILD/x= en-unstable/xen/include/asm-x86/mach-default -msoft-float -g -D__XEN__ = -DVERBOSE -DCRASH_DEBUG -c gdbstub.c -o gdbstub.o gdbstub.c: In function =91gdbstub_attach=92: gdbstub.c:363: error: invalid storage class for function =91gdbstub_console= _puts=92 gdbstub.c:367: error: =91gdbstub_console_puts=92 undeclared (first use in = this function) gdbstub.c:367: error: (Each undeclared identifier is reported only once gdbstub.c:367: error: for each function it appears in.) make[4]: *** [gdbstub.o] Error 1 --=__PartD6F286AE.0__= Content-Type: application/octet-stream; name="gdbstubs.diff" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="gdbstubs.diff" SW5kZXg6IHhlbi11bnN0YWJsZS94ZW4vY29tbW9uL2dkYnN0dWIuYwo9PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSB4 ZW4tdW5zdGFibGUub3JpZy94ZW4vY29tbW9uL2dkYnN0dWIuYworKysgeGVuLXVuc3RhYmxlL3hl bi9jb21tb24vZ2Ric3R1Yi5jCkBAIC0zNTcsMTAgKzM1NywxMCBAQCBnZGJfY21kX3dyaXRlX21l bSh1bnNpZ25lZCBsb25nIGFkZHIsIHVuCiAgICAgZ2RiX3NlbmRfcGFja2V0KGN0eCk7CiB9CiAK K3N0YXRpYyB2b2lkIGdkYnN0dWJfY29uc29sZV9wdXRzKGNvbnN0IGNoYXIgKnN0cik7CiBzdGF0 aWMgdm9pZAogZ2Ric3R1Yl9hdHRhY2goc3RydWN0IGdkYl9jb250ZXh0ICpjdHgpCiB7Ci0gICAg c3RhdGljIHZvaWQgZ2Ric3R1Yl9jb25zb2xlX3B1dHMoY29uc3QgY2hhciAqc3RyKTsKICAgICBp ZiAoIGN0eC0+Y3VycmVudGx5X2F0dGFjaGVkICkKICAgICAgICAgcmV0dXJuOyAgICAKICAgICBj dHgtPmN1cnJlbnRseV9hdHRhY2hlZCA9IDE7Cg== --=__PartD6F286AE.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__PartD6F286AE.0__=--