From patchwork Thu Apr 11 14:18:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?6Ziu5q2j5pe6?= X-Patchwork-Id: 1084064 X-Patchwork-Delegate: petr.vorel@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.linux.it (client-ip=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=xiaopeng.com Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44g37w40yxz9s0W for ; Fri, 12 Apr 2019 00:19:53 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id CB93C294ABE for ; Thu, 11 Apr 2019 16:19:48 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-2.smtp.seeweb.it (in-2.smtp.seeweb.it [IPv6:2001:4b78:1:20::2]) by picard.linux.it (Postfix) with ESMTP id 28E423EABB8 for ; Thu, 11 Apr 2019 16:19:46 +0200 (CEST) Received: from out28-197.mail.aliyun.com (out28-197.mail.aliyun.com [115.124.28.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by in-2.smtp.seeweb.it (Postfix) with ESMTPS id A7DF5601E93 for ; Thu, 11 Apr 2019 16:19:33 +0200 (CEST) X-Alimail-AntiSpam: AC=CONTINUE; BC=0.07463402|-1; CH=green; DM=CONTINUE|CONTINUE|true|0.325655-0.017923-0.656422; FP=0|0|0|0|0|-1|-1|-1; HT=e02c03300; MF=ruanzw@xiaopeng.com; NM=1; PH=DS; RN=2; RT=2; SR=0; TI=SMTPD_---.EJxCDSe_1554992366; Received: from ruanzw-ThinkPad-L480.xiaopeng.local(mailfrom:ruanzw@xiaopeng.com fp:SMTPD_---.EJxCDSe_1554992366) by smtp.aliyun-inc.com(10.147.42.197); Thu, 11 Apr 2019 22:19:27 +0800 From: Zhengwang Ruan To: ltp@lists.linux.it Date: Thu, 11 Apr 2019 22:18:43 +0800 Message-Id: <1554992323-14338-1-git-send-email-ruanzw@xiaopeng.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: clamav-milter 0.99.2 at in-2.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.0 required=7.0 tests=none autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-2.smtp.seeweb.it Subject: [LTP] [PATCH v1] Fix build error caused by -Werror-implicit-function-declaration for Android X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.18 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" Fix build errors caused by -Werror-implicit-function-declaration by add missing and for Android. Signed-off-by: Zhengwang Ruan Reviewed-by: Enji Cooper Reviewed-by: Petr Vorel Reviewed-by: Enji Cooper <yaneurabeya@gmail.com> --- include/tst_numa.h | 2 ++ include/tst_test.h | 1 + testcases/kernel/syscalls/copy_file_range/copy_file_range01.c | 1 + testcases/kernel/syscalls/epoll_ctl/epoll_ctl01.c | 2 +- testcases/kernel/syscalls/epoll_wait/epoll_wait01.c | 1 + 5 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/tst_numa.h b/include/tst_numa.h index a4cd1be..4f98066 100644 --- a/include/tst_numa.h +++ b/include/tst_numa.h @@ -7,6 +7,8 @@ #ifndef TST_NUMA_H__ #define TST_NUMA_H__ +#include + /** * Numa nodemap. */ diff --git a/include/tst_test.h b/include/tst_test.h index cf2447f..25b9763 100644 --- a/include/tst_test.h +++ b/include/tst_test.h @@ -24,6 +24,7 @@ #include #include +#include #include "tst_common.h" #include "tst_res_flags.h" diff --git a/testcases/kernel/syscalls/copy_file_range/copy_file_range01.c b/testcases/kernel/syscalls/copy_file_range/copy_file_range01.c index 2bca8a4..61a6042 100644 --- a/testcases/kernel/syscalls/copy_file_range/copy_file_range01.c +++ b/testcases/kernel/syscalls/copy_file_range/copy_file_range01.c @@ -15,6 +15,7 @@ #define _GNU_SOURCE #include #include +#include #include "tst_test.h" #include "tst_safe_stdio.h" #include "lapi/syscalls.h" diff --git a/testcases/kernel/syscalls/epoll_ctl/epoll_ctl01.c b/testcases/kernel/syscalls/epoll_ctl/epoll_ctl01.c index e837913..4df55b5 100644 --- a/testcases/kernel/syscalls/epoll_ctl/epoll_ctl01.c +++ b/testcases/kernel/syscalls/epoll_ctl/epoll_ctl01.c @@ -31,7 +31,7 @@ #include #include -#include +#include #include #include "tst_test.h" diff --git a/testcases/kernel/syscalls/epoll_wait/epoll_wait01.c b/testcases/kernel/syscalls/epoll_wait/epoll_wait01.c index 0ded127..6099b84 100644 --- a/testcases/kernel/syscalls/epoll_wait/epoll_wait01.c +++ b/testcases/kernel/syscalls/epoll_wait/epoll_wait01.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include "tst_test.h"