From patchwork Sat Feb 1 18:33:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josh Triplett X-Patchwork-Id: 3565211 Return-Path: X-Original-To: patchwork-linux-sparse@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2109CC02DC for ; Sat, 1 Feb 2014 18:33:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5F848202B8 for ; Sat, 1 Feb 2014 18:33:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 45C2C202A7 for ; Sat, 1 Feb 2014 18:33:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752873AbaBASdt (ORCPT ); Sat, 1 Feb 2014 13:33:49 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:51940 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751327AbaBASds (ORCPT ); Sat, 1 Feb 2014 13:33:48 -0500 Received: from mfilter26-d.gandi.net (mfilter26-d.gandi.net [217.70.178.154]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id 2C023172094 for ; Sat, 1 Feb 2014 19:33:45 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter26-d.gandi.net Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by mfilter26-d.gandi.net (mfilter26-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id Ie+RTUGJSs4S for ; Sat, 1 Feb 2014 19:33:43 +0100 (CET) X-Originating-IP: 50.43.14.201 Received: from leaf (static-50-43-14-201.bvtn.or.frontiernet.net [50.43.14.201]) (Authenticated sender: josh@joshtriplett.org) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id EC14F172055 for ; Sat, 1 Feb 2014 19:33:42 +0100 (CET) Date: Sat, 1 Feb 2014 10:33:40 -0800 From: Josh Triplett To: linux-sparse@vger.kernel.org Subject: [PATCH] validation: In context test, make conditional acquire return a status Message-ID: <20140201183335.GA9697@leaf> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-sparse-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sparse@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The context test defines and tests a __cond_lock mechanism similar to the kernel, but then applies it to a function that returns void. Change that to int. Signed-off-by: Josh Triplett --- validation/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validation/context.c b/validation/context.c index 33b70b8..b9500dc 100644 --- a/validation/context.c +++ b/validation/context.c @@ -10,7 +10,7 @@ static void r(void) __attribute__((context(1,0))) __context__(-1); } -extern void _ca(int fail); +extern int _ca(int fail); #define ca(fail) __cond_lock(_ca(fail)) static void good_paired1(void)