From patchwork Wed Aug 25 10:22:40 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 131501 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o7PARjGK013745 for ; Wed, 25 Aug 2010 10:27:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753172Ab0HYK1p (ORCPT ); Wed, 25 Aug 2010 06:27:45 -0400 Received: from brigitte.telenet-ops.be ([195.130.137.66]:58075 "EHLO brigitte.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753149Ab0HYK1o (ORCPT ); Wed, 25 Aug 2010 06:27:44 -0400 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 25 Aug 2010 10:27:45 +0000 (UTC) X-Greylist: delayed 301 seconds by postgrey-1.27 at vger.kernel.org; Wed, 25 Aug 2010 06:27:44 EDT Received: from ayla.of.borg ([94.224.189.190]) by brigitte.telenet-ops.be with bizsmtp id yaNh1e00W46vLmN0GaNidL; Wed, 25 Aug 2010 12:22:42 +0200 Received: from geert (helo=localhost) by ayla.of.borg with local-esmtp (Exim 4.71) (envelope-from ) id 1OoD7x-0007iK-5q; Wed, 25 Aug 2010 12:22:41 +0200 Date: Wed, 25 Aug 2010 12:22:40 +0200 (CEST) From: Geert Uytterhoeven To: Sam Ravnborg cc: linux-kbuild@vger.kernel.org, Linux Kernel Development Subject: [PATCH] checksyscalls: Fix stand-alone usage Message-ID: User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org diff --git a/scripts/checksyscalls.sh b/scripts/checksyscalls.sh index 6bb42e7..3ab316e 100755 --- a/scripts/checksyscalls.sh +++ b/scripts/checksyscalls.sh @@ -6,7 +6,7 @@ # and listed below so they are ignored. # # Usage: -# syscallchk gcc gcc-options +# checksyscalls.sh gcc gcc-options # ignore_list() { @@ -204,5 +204,5 @@ sed -n -e '/^\#define/ s/[^_]*__NR_\([^[:space:]]*\).*/\ \#endif/p' $1 } -(ignore_list && syscall_list ${srctree}/arch/x86/include/asm/unistd_32.h) | \ +(ignore_list && syscall_list $(dirname $0)/../arch/x86/include/asm/unistd_32.h) | \ $* -E -x c - > /dev/null