From patchwork Sun Apr 14 13:03:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1085313 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=suse.cz 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 44hsJc2VtVz9s8m for ; Sun, 14 Apr 2019 23:03:42 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id AC37E294ADD for ; Sun, 14 Apr 2019 15:03:39 +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 [217.194.8.2]) by picard.linux.it (Postfix) with ESMTP id BB0EC294AA1 for ; Sun, 14 Apr 2019 15:03:37 +0200 (CEST) Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by in-2.smtp.seeweb.it (Postfix) with ESMTPS id 6601260132D for ; Sun, 14 Apr 2019 15:03:36 +0200 (CEST) Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 6DE79AFA7; Sun, 14 Apr 2019 13:03:35 +0000 (UTC) From: Petr Vorel To: ltp@lists.linux.it Date: Sun, 14 Apr 2019 15:03:29 +0200 Message-Id: <20190414130329.14607-1-pvorel@suse.cz> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 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=SPF_PASS 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 1/1] tst_test.h: Include common headers to fix missing function declaration 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: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" This fixes build errors caused by -Werror-implicit-function-declaration defined for android. Due often missing when using common memory and string related functions added , and . Including headers here seems to be better than handling implicit function declaration error every now and then. + update copyright, use SPDX-License-Identifier. Suggested-by: Zhengwang Ruan Signed-off-by: Petr Vorel Signed-off-by: Petr Vorel <pvorel@suse.cz> --- Hi, IMHO better than previous patches [1] [2] to handle this. I decided to include also (there other non-deprecated functions besides to deprecated bzero) and (for malloc). Kind regards, Petr [1] https://patchwork.ozlabs.org/patch/1084064/ [2] https://patchwork.ozlabs.org/patch/1084370/ --- include/tst_test.h | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/include/tst_test.h b/include/tst_test.h index cf2447fe3..69629caff 100644 --- a/include/tst_test.h +++ b/include/tst_test.h @@ -1,18 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2015-2016 Cyril Hrubis - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * Copyright (c) Linux Test Project, 2016-2019 */ #ifndef TST_TEST_H__ @@ -24,6 +13,9 @@ #include #include +#include +#include +#include #include "tst_common.h" #include "tst_res_flags.h"