From patchwork Tue Dec 12 00:45:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10106071 X-Patchwork-Delegate: christophe.varoqui@free.fr Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 718B260752 for ; Tue, 12 Dec 2017 00:46:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6327E299F7 for ; Tue, 12 Dec 2017 00:46:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 584C8299FA; Tue, 12 Dec 2017 00:46:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 12935299F7 for ; Tue, 12 Dec 2017 00:46:04 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6E7ABC0546E6; Tue, 12 Dec 2017 00:46:03 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4ABDB58826; Tue, 12 Dec 2017 00:46:03 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 25B884A467; Tue, 12 Dec 2017 00:46:03 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id vBC0k1Gm005602 for ; Mon, 11 Dec 2017 19:46:01 -0500 Received: by smtp.corp.redhat.com (Postfix) id C3FD44DC46; Tue, 12 Dec 2017 00:46:01 +0000 (UTC) Delivered-To: dm-devel@redhat.com Received: from mx1.redhat.com (ext-mx07.extmail.prod.ext.phx2.redhat.com [10.5.110.31]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BCDA661299 for ; Tue, 12 Dec 2017 00:45:58 +0000 (UTC) Received: from esa6.hgst.iphmx.com (esa6.hgst.iphmx.com [216.71.154.45]) (using TLSv1.2 with cipher RC4-SHA (112/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3E483C04B32E for ; Tue, 12 Dec 2017 00:45:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1513039550; x=1544575550; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=3ZvPBILGU4+45IXO1uY1UxNs6ABy3gA06yOWpVDOgpA=; b=Hub6P0MEsE40g5UxkpIvF81hNXOywlpeOAFmYy2yIPxB56DVbo1ZAS7f 1W640JtG22HlPmb/b+ozVKf+rMGWniCf7kBeQjjS15KJGAqqwoldoZ0ib QiXfl2r8FnZEgnIHoofL74cV+tvpcbmLm2xBKh0poPQqdHLbVlE6TJnTf W6UKCgkB3ggXfsUVFfuUPOSCOyhVBd08gmb3I0FlQ6hfif3duXMqS5Ca+ 2+iKaAEOqDYafyH9+15gsgsW93GBcU0c3PtVnFzccjmC06OI1PNKQTaJ4 o3bALmOrp939OKUkrep2yKWkX4D416uvy+dgFlwlsPwJaCRHGnh87kYrJ g==; X-IronPort-AV: E=Sophos;i="5.45,393,1508774400"; d="scan'208";a="65167472" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 12 Dec 2017 08:45:05 +0800 Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep02.wdc.com with ESMTP; 11 Dec 2017 16:41:31 -0800 Received: from thinkpad-bart.sdcorp.global.sandisk.com (HELO thinkpad-bart.int.fusionio.com) ([10.11.166.51]) by uls-op-cesaip01.wdc.com with ESMTP; 11 Dec 2017 16:45:05 -0800 From: Bart Van Assche To: Christophe Varoqui Date: Mon, 11 Dec 2017 16:45:02 -0800 Message-Id: <20171212004503.12823-3-bart.vanassche@wdc.com> In-Reply-To: <20171212004503.12823-1-bart.vanassche@wdc.com> References: <20171212004503.12823-1-bart.vanassche@wdc.com> X-Greylist: Sender passed SPF test, Sender IP whitelisted by DNSRBL, ACL 207 matched, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Tue, 12 Dec 2017 00:45:50 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Tue, 12 Dec 2017 00:45:50 +0000 (UTC) for IP:'216.71.154.45' DOMAIN:'esa6.hgst.iphmx.com' HELO:'esa6.hgst.iphmx.com' FROM:'bart.vanassche@wdc.com' RCPT:'' X-RedHat-Spam-Score: -0.8 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_LOW) 216.71.154.45 esa6.hgst.iphmx.com 216.71.154.45 esa6.hgst.iphmx.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.31 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: dm-devel@redhat.com Cc: Bart Van Assche , dm-devel@redhat.com Subject: [dm-devel] [PATCH 2/3] Allow the compiler to verify the consistency of the uxsock_timeout definition and declaration X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Tue, 12 Dec 2017 00:46:03 +0000 (UTC) X-Virus-Scanned: ClamAV using ClamSMTP Global variables should be defined after the header file with their declaration has been included. Hence move the declaration of usock_timeout further down. Signed-off-by: Bart Van Assche Reviewed-by: Martin Wilck --- multipathd/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/multipathd/main.c b/multipathd/main.c index 31ce923385a7..d611597a4ef8 100644 --- a/multipathd/main.c +++ b/multipathd/main.c @@ -39,8 +39,6 @@ static int use_watchdog; #endif -int uxsock_timeout; - /* * libmultipath */ @@ -106,6 +104,7 @@ struct mpath_event_param }; int logsink; +int uxsock_timeout; int verbosity; int bindings_read_only; int ignore_new_devs;