From patchwork Sat Jan 19 00:12:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tycho Andersen X-Patchwork-Id: 10771857 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D8C55139A for ; Sat, 19 Jan 2019 00:13:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C8F4630764 for ; Sat, 19 Jan 2019 00:13:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BD0DB307A4; Sat, 19 Jan 2019 00:13:18 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6F9CD30764 for ; Sat, 19 Jan 2019 00:13:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730223AbfASAMw (ORCPT ); Fri, 18 Jan 2019 19:12:52 -0500 Received: from mail-qt1-f196.google.com ([209.85.160.196]:33831 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730209AbfASAMw (ORCPT ); Fri, 18 Jan 2019 19:12:52 -0500 Received: by mail-qt1-f196.google.com with SMTP id r14so17286323qtp.1 for ; Fri, 18 Jan 2019 16:12:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tycho-ws.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SAuIFgVpW37RZZ1WH4D7tVeEC8yoaQHwn0FsTHDsXEs=; b=ECJqMrzUAW/ndBvP11sS46URJwX1QvujnyWdZI69fhkT6satXKdTPZ4WUiCeRDSkkG wkRLC2z8w4W2DEurvNQXcph+xmMhuxp40ygyE80IRKfQ3SXI3guWbIts2YhDajq7g656 4ukDrkfUHtYTu1q7bm4qVDMiNdhTVryCF4Ip96gothQLowxoPUfa/m/mI0TTISDRPx1Z WsXSsPyELkj8WCp1tm5ugwQ5ZADXq35l4ZqoBTwg1SpJ6e3GxRo24EAU7MUKr5rLx322 t6Rket1CWFZdiS7QybX6K/DeOm8Dj7mE8fZU+wuL0FwgQVasbPNuULKgWhZhQ8VSKdx0 zX7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SAuIFgVpW37RZZ1WH4D7tVeEC8yoaQHwn0FsTHDsXEs=; b=VL/VNmzHDIiVzCkpn4Wh2TRVbNcEPCFDq3yYSBHpO1uwSwPPrxIiEqlRNrAjtxOSA5 Mmr0EyzoMbxBYmZUq/piDytN3CP+mddir5X4APuvhderPaFy29ks1rn9bH0iFBVjik/r nt0FIF89QcLpWnNtu/bqxfNIJfD+IHuyICQ95tPWktlxTXHyQ66NNpTRVf3DTfqTnbHA 7gYnn4P5MRLcU8QRiYBHp28pQJu/I/PI+X0g0F4nk2Iq/KU5MVRIdXbiD8nA9dtyoj+u OnPLaNaG78gkmBJgOdssacWRxwTO1caLblYvma6psMCoD90zBNhs2Sgy34uT3QB4ji/u SjWw== X-Gm-Message-State: AJcUukdoJNDYkSBTIC/n4TsMVK3Ybf8onUS4FpfVLKj7UkcPp9KHKFB3 i0lE/COk1cdnjdB5vI2eZQVgSw== X-Google-Smtp-Source: ALg8bN6QwjUGkSVfULEAAzxvC1V1wF6ljlvFkdOn+LEsqG6UkWw+NgCm+fjYZYL606ccTNHjQEVbFA== X-Received: by 2002:ac8:6606:: with SMTP id c6mr18011899qtp.376.1547856770822; Fri, 18 Jan 2019 16:12:50 -0800 (PST) Received: from localhost.localdomain ([64.125.109.186]) by smtp.gmail.com with ESMTPSA id m14sm41140501qka.21.2019.01.18.16.12.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Jan 2019 16:12:50 -0800 (PST) From: Tycho Andersen To: Shuah Khan , Kees Cook Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Tycho Andersen Subject: [PATCH 3/6] selftest: include stdio.h in kselftest.h Date: Fri, 18 Jan 2019 17:12:14 -0700 Message-Id: <20190119001217.12660-4-tycho@tycho.ws> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190119001217.12660-1-tycho@tycho.ws> References: <20190119001217.12660-1-tycho@tycho.ws> MIME-Version: 1.0 Sender: linux-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP While playing around with a way to skip the seccomp get_metadata test, I noticed that this header uses printf() without defining it, leading to, ../kselftest.h: In function ‘ksft_print_header’: ../kselftest.h:61:3: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] printf("TAP version 13\n"); ^~~~~~ ../kselftest.h:61:3: warning: incompatible implicit declaration of built-in function ‘printf’ ../kselftest.h:61:3: note: include ‘’ or provide a declaration of ‘printf’ if user code doesn't also use printf. Signed-off-by: Tycho Andersen --- tools/testing/selftests/kselftest.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/kselftest.h b/tools/testing/selftests/kselftest.h index a3edb2c8e43d..47e1d995c182 100644 --- a/tools/testing/selftests/kselftest.h +++ b/tools/testing/selftests/kselftest.h @@ -13,6 +13,7 @@ #include #include #include +#include /* define kselftest exit codes */ #define KSFT_PASS 0