From owner-cvs-all Sun Dec 6 20:05:55 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA11212 for cvs-all-outgoing; Sun, 6 Dec 1998 20:05:55 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from godzilla.zeta.org.au ([203.26.10.9]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA11198; Sun, 6 Dec 1998 20:05:50 -0800 (PST) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id PAA03585; Mon, 7 Dec 1998 15:05:39 +1100 Date: Mon, 7 Dec 1998 15:05:39 +1100 From: Bruce Evans Message-Id: <199812070405.PAA03585@godzilla.zeta.org.au> To: archie@whistle.com, phk@critter.freebsd.dk Subject: Re: getting to -Wunused Cc: bde@zeta.org.au, cvs-committers@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk >Cool.. we can make "Step 5" the removal of non-static unused functions :-) >By the way, I neede to add "-aout": Use `OBJFORMAT=aout kernxref.sh'. >Index: kernxref.sh >=================================================================== >RCS file: /home/ncvs/src/tools/tools/kernxref/kernxref.sh,v >retrieving revision 1.9 >diff -u -r1.9 kernxref.sh >--- kernxref.sh 1998/11/27 10:18:56 1.9 >+++ kernxref.sh 1998/12/06 18:57:57 >@@ -13,7 +13,7 @@ > # kernel. > > cd /sys/compile/LINT >-nm -gon `echo *.o /lkm/*.o | tr ' ' '\012' | egrep -v '(aicasm|genassym)'` | >+nm -aout -gon `echo *.o /lkm/*.o | tr ' ' '\012' | egrep -v '(aicasm|genassym)'` | > tr : ' ' | awk ' > NF > 1 { > if (length($2) == 8) { > Bugs in this: - it breaks kernxref.sh some more for elf kernels. LKMs always have a.out format, but the kernel may have elf format. kernxref.sh should look at modules instead of LKMs, but since modules are in the default format, that will only work when the kernel is in the default format. - it makes a line longer than 80 characters. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message