From patchwork Tue Jun 21 19:09:45 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hartley Sweeten X-Patchwork-Id: 902822 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p5LJAaCQ028123 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 21 Jun 2011 19:11:02 GMT Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QZ6LD-0001qP-1Y; Tue, 21 Jun 2011 19:10:27 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QZ6LC-0002aQ-Mk; Tue, 21 Jun 2011 19:10:26 +0000 Received: from mail127.messagelabs.com ([216.82.250.115]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QZ6L8-0002a8-9k for linux-arm-kernel@lists.infradead.org; Tue, 21 Jun 2011 19:10:24 +0000 X-VirusChecked: Checked X-Env-Sender: hartleys@visionengravers.com X-Msg-Ref: server-11.tower-127.messagelabs.com!1308683405!23160978!28 X-StarScan-Version: 6.2.17; banners=-,-,- X-Originating-IP: [216.166.12.99] Received: (qmail 32360 invoked from network); 21 Jun 2011 19:10:19 -0000 Received: from out001.collaborationhost.net (HELO out001.collaborationhost.net) (216.166.12.99) by server-11.tower-127.messagelabs.com with RC4-SHA encrypted SMTP; 21 Jun 2011 19:10:19 -0000 Received: from etch.local (10.2.3.210) by smtp.collaborationhost.net (10.2.0.100) with Microsoft SMTP Server (TLS) id 8.2.176.0; Tue, 21 Jun 2011 14:10:06 -0500 From: H Hartley Sweeten To: Linux Kernel Subject: [PATCH] ARM: quiet sparse noise due to __ARCH_WANT_SYS_RT_SIG(ACTION|SUSPEND) Date: Tue, 21 Jun 2011 12:09:45 -0700 User-Agent: KMail/1.9.9 MIME-Version: 1.0 Content-Disposition: inline Message-ID: <201106211209.46462.hartleys@visionengravers.com> X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110621_151022_547226_5E9C4486 X-CRM114-Status: GOOD ( 11.41 ) X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [216.82.250.115 listed in list.dnswl.org] Cc: mikpe@it.uu.se, vapier@gentoo.org, tony.luck@intel.com, ebiederm@xmission.com, Russell King , ARM Kernel X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Tue, 21 Jun 2011 19:11:02 +0000 (UTC) ARM defines __ARCH_WANT_SYS_RT_SIG(ACTION|SUSPEND) which produces the following sparse warnings in kernel/signal.c: warning: symbol 'sys_rt_sigaction' was not declared. Should it be static? warning: symbol 'sys_rt_sigsuspend' was not declared. Should it be static? Since ARM doesn't include , due to different calling conventions for some system calls, prototype the functions in to quiet the noise. Signed-off-by: H Hartley Sweeten Cc: Russell King Cc: Mikael Pettersson Cc: "Eric W. Biederman" Cc: Mike Frysinger Cc: Tony Luck diff --git a/arch/arm/include/asm/unistd.h b/arch/arm/include/asm/unistd.h index 2c04ed5..322c54e 100644 --- a/arch/arm/include/asm/unistd.h +++ b/arch/arm/include/asm/unistd.h @@ -467,6 +467,20 @@ #define __ARCH_WANT_SYS_SOCKETCALL #endif +#ifndef __ASSEMBLY__ + +#include +#include +#include +#include + +asmlinkage long sys_rt_sigaction(int sig, const struct sigaction __user *act, + struct sigaction __user *oact, + size_t sigsetsize); +asmlinkage long sys_rt_sigsuspend(sigset_t __user *unewset, size_t sigsetsize); + +#endif /* !__ASSEMBLY__ */ + /* * "Conditional" syscalls *