From patchwork Sun Dec 5 09:50:56 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 380771 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oB59u9H5018337 for ; Sun, 5 Dec 2010 09:56:10 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753431Ab0LEJ4J (ORCPT ); Sun, 5 Dec 2010 04:56:09 -0500 Received: from gerard.telenet-ops.be ([195.130.132.48]:45589 "EHLO gerard.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752734Ab0LEJ4I (ORCPT ); Sun, 5 Dec 2010 04:56:08 -0500 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Sun, 05 Dec 2010 09:56:10 +0000 (UTC) X-Greylist: delayed 300 seconds by postgrey-1.27 at vger.kernel.org; Sun, 05 Dec 2010 04:56:08 EST Received: from ayla.of.borg ([94.227.61.81]) by gerard.telenet-ops.be with bizsmtp id fMqz1f00A1lADzy0HMqzbV; Sun, 05 Dec 2010 10:51:05 +0100 Received: from geert (helo=localhost) by ayla.of.borg with local-esmtp (Exim 4.71) (envelope-from ) id 1PPBFC-0004cG-Vt; Sun, 05 Dec 2010 10:50:59 +0100 Date: Sun, 5 Dec 2010 10:50:56 +0100 (CET) From: Geert Uytterhoeven To: Michal Marek cc: Andrew Morton , linux-kbuild@vger.kernel.org, Linux Kernel Development Subject: [PATCH/resend] 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