From patchwork Tue Dec 13 05:29:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhen Ren X-Patchwork-Id: 9471803 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 35D33607F0 for ; Tue, 13 Dec 2016 05:32:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2825E284C5 for ; Tue, 13 Dec 2016 05:32:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1C97928414; Tue, 13 Dec 2016 05:32:37 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81]) (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 9DC30281C3 for ; Tue, 13 Dec 2016 05:32:36 +0000 (UTC) Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id uBD5W107013530 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 13 Dec 2016 05:32:01 GMT Received: from oss.oracle.com (oss-old-reserved.oracle.com [137.254.22.2]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id uBD5W02o024673 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 13 Dec 2016 05:32:01 GMT Received: from localhost ([127.0.0.1] helo=lb-oss.oracle.com) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1cGfh2-00088e-UL; Mon, 12 Dec 2016 21:32:00 -0800 Received: from userv0021.oracle.com ([156.151.31.71]) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1cGfgp-000863-4z; Mon, 12 Dec 2016 21:31:47 -0800 Received: from aserp1020.oracle.com (aserp1020.oracle.com [141.146.126.67]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id uBD5Vk5C014991 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 13 Dec 2016 05:31:46 GMT Received: from userp2040.oracle.com (userp2040.oracle.com [156.151.31.90]) by aserp1020.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id uBD5VjxH020069 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 13 Dec 2016 05:31:46 GMT Received: from pps.filterd (userp2040.oracle.com [127.0.0.1]) by userp2040.oracle.com (8.16.0.17/8.16.0.17) with SMTP id uBD5Vi1Q000768; Tue, 13 Dec 2016 05:31:45 GMT Authentication-Results: oracle.com; spf=pass smtp.mailfrom=zren@suse.com Received: from prv3-mh.provo.novell.com (prv3-mh.provo.novell.com [137.65.250.26]) by userp2040.oracle.com with ESMTP id 2788bae4ua-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Dec 2016 05:31:45 +0000 Received: from laptop.apac.novell.com (prv-ext-foundry1int.gns.novell.com [137.65.251.240]) by prv3-mh.provo.novell.com with ESMTP (TLS encrypted); Mon, 12 Dec 2016 22:31:19 -0700 From: Eric Ren To: ocfs2-test-devel@oss.oracle.com Date: Tue, 13 Dec 2016 13:29:34 +0800 Message-Id: <1481606975-13186-17-git-send-email-zren@suse.com> X-Mailer: git-send-email 2.6.6 In-Reply-To: <1481606975-13186-1-git-send-email-zren@suse.com> References: <1481606975-13186-1-git-send-email-zren@suse.com> X-PDR: PASS X-ServerName: prv3-mh.provo.novell.com X-Proofpoint-SPF-Result: pass X-Proofpoint-SPF-Record: v=spf1 include:microfocus.com ~all X-Proofpoint-Virus-Version: vendor=nai engine=5800 definitions=8377 signatures=670775 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1612130095 Cc: ocfs2-devel@oss.oracle.com Subject: [Ocfs2-devel] [PATCH 16/17] inline data: fix build error X-BeenThere: ocfs2-devel@oss.oracle.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: ocfs2-devel-bounces@oss.oracle.com Errors-To: ocfs2-devel-bounces@oss.oracle.com X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Eric Ren --- programs/defrag-test/frager.c | 2 +- programs/directio_test/directio_test.c | 2 +- programs/discontig_bg_test/spawn_inodes.c | 2 +- programs/dx_dirs_tests/index_dir.c | 2 +- programs/inline-data/inline-data.c | 2 +- programs/inline-data/inline-dirs.c | 2 +- programs/reflink_tests/reflink_test.c | 2 +- programs/xattr_tests/xattr-test.c | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/programs/defrag-test/frager.c b/programs/defrag-test/frager.c index f510dde..473c31c 100755 --- a/programs/defrag-test/frager.c +++ b/programs/defrag-test/frager.c @@ -86,7 +86,7 @@ static int usage(void) static void sigchld_handler() { pid_t pid; - union wait status; + int status; while (1) { pid = wait3(&status, WNOHANG, NULL); diff --git a/programs/directio_test/directio_test.c b/programs/directio_test/directio_test.c index 7ec5278..21bc32c 100755 --- a/programs/directio_test/directio_test.c +++ b/programs/directio_test/directio_test.c @@ -214,7 +214,7 @@ static int teardown(void) static void sigchld_handler() { pid_t pid; - union wait status; + int status; while (1) { pid = wait3(&status, WNOHANG, NULL); diff --git a/programs/discontig_bg_test/spawn_inodes.c b/programs/discontig_bg_test/spawn_inodes.c index 6bb7a93..633f0a9 100755 --- a/programs/discontig_bg_test/spawn_inodes.c +++ b/programs/discontig_bg_test/spawn_inodes.c @@ -64,7 +64,7 @@ static int usage(void) static void sigchld_handler() { pid_t pid; - union wait status; + int status; while (1) { pid = wait3(&status, WNOHANG, NULL); diff --git a/programs/dx_dirs_tests/index_dir.c b/programs/dx_dirs_tests/index_dir.c index 75ea8bd..ffdfa0f 100755 --- a/programs/dx_dirs_tests/index_dir.c +++ b/programs/dx_dirs_tests/index_dir.c @@ -926,7 +926,7 @@ void random_test(void) static void sigchld_handler() { pid_t pid; - union wait status; + int status; while (1) { pid = wait3(&status, WNOHANG, NULL); diff --git a/programs/inline-data/inline-data.c b/programs/inline-data/inline-data.c index 13124d7..daaee3c 100644 --- a/programs/inline-data/inline-data.c +++ b/programs/inline-data/inline-data.c @@ -256,7 +256,7 @@ static int teardown(void) static void sigchld_handler() { pid_t pid; - union wait status; + int status; while (1) { pid = wait3(&status, WNOHANG, NULL); diff --git a/programs/inline-data/inline-dirs.c b/programs/inline-data/inline-dirs.c index ac7882f..0db24b9 100644 --- a/programs/inline-data/inline-dirs.c +++ b/programs/inline-data/inline-dirs.c @@ -357,7 +357,7 @@ static void run_large_dir_tests(void) static void sigchld_handler() { pid_t pid; - union wait status; + int status; while (1) { pid = wait3(&status, WNOHANG, NULL); diff --git a/programs/reflink_tests/reflink_test.c b/programs/reflink_tests/reflink_test.c index 22386db..2801968 100755 --- a/programs/reflink_tests/reflink_test.c +++ b/programs/reflink_tests/reflink_test.c @@ -965,7 +965,7 @@ static int stress_test() static void sigchld_handler() { pid_t pid; - union wait status; + int status; while (1) { pid = wait3(&status, WNOHANG, NULL); diff --git a/programs/xattr_tests/xattr-test.c b/programs/xattr_tests/xattr-test.c index d204aba..77be780 100755 --- a/programs/xattr_tests/xattr-test.c +++ b/programs/xattr_tests/xattr-test.c @@ -301,7 +301,7 @@ static void judge_sys_return(int ret, const char *sys_func) static void sigchld_handler() { pid_t pid; - union wait status; + int status; while (1) { pid = wait3(&status, WNOHANG, NULL); if (pid <= 0)