From patchwork Thu Nov 26 07:12:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: suxingxing X-Patchwork-Id: 11932761 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F054C63777 for ; Thu, 26 Nov 2020 07:12:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 457D320DD4 for ; Thu, 26 Nov 2020 07:12:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388291AbgKZHM0 (ORCPT ); Thu, 26 Nov 2020 02:12:26 -0500 Received: from mail.loongson.cn ([114.242.206.163]:47450 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388278AbgKZHM0 (ORCPT ); Thu, 26 Nov 2020 02:12:26 -0500 Received: from bogon.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9AxitBOVb9fSuMWAA--.37576S2; Thu, 26 Nov 2020 15:12:15 +0800 (CST) From: Xingxing Su To: Christian Brauner , Shuah Khan , linux-kernel@vger.kernel.org Cc: linux-kselftest@vger.kernel.org Subject: [PATCH] selftests/clone3: Add gun99 to compile in Makefile. Date: Thu, 26 Nov 2020 15:12:14 +0800 Message-Id: <1606374734-12639-1-git-send-email-suxingxing@loongson.cn> X-Mailer: git-send-email 2.1.0 MIME-Version: 1.0 X-C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UUI43ZEXa7IU8X_-PUUUUU== X-CM-SenderInfo: pvx0x0xj0l0wo6or00hjvr0hdfq/1tbiAQAMC13QvMrvhAABsX Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org CFLAGS add -std=gnu99. Fllowing build error: test_core.c: In function ‘test_cgcore_destroy’: test_core.c:87:2: error: ‘for’ loop initial declarations are only allowed in C99 mode for (int i = 0; i < 10; i++) { ^ test_core.c:87:2: note: use option -std=c99 or -std=gnu99 to compile your code Signed-off-by: Xingxing Su Acked-by: Christian Brauner --- tools/testing/selftests/clone3/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/clone3/Makefile b/tools/testing/selftests/clone3/Makefile index ef7564c..88354a8 100644 --- a/tools/testing/selftests/clone3/Makefile +++ b/tools/testing/selftests/clone3/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -g -I../../../../usr/include/ +CFLAGS += -g -std=gnu99 -I../../../../usr/include/ LDLIBS += -lcap TEST_GEN_PROGS := clone3 clone3_clear_sighand clone3_set_tid \