Received: by 10.223.164.202 with SMTP id h10csp1190560wrb; Tue, 7 Nov 2017 23:47:42 -0800 (PST) X-Google-Smtp-Source: ABhQp+TCDBME2+aU4B/+yqTD8ShwFMIETmok7YSQ+aABc9MCCI6BeprpMqXkUyhHd0VSaUWrwnCq X-Received: by 10.101.69.6 with SMTP id n6mr1464096pgq.290.1510127262840; Tue, 07 Nov 2017 23:47:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510127262; cv=none; d=google.com; s=arc-20160816; b=l4xw9Svood3s6bu+TZwfn50Ufs82M8urdS2WLV7ktyCSrtJEqwi3E4j+gSgg+uqsNZ A61tPYGNbQk1DXAv1Q3w0UvnTbVMEa2YKBHPSfjpp4/8jL80yLMn2N8N3Dt/1+V4svip wCaT4sXPauCSw/fDZ2oaTnhfFL2oVd8jOiNkIML5LlQgiG462OJ4xAvWFEMGKJU46JSy 9UsHJZV+58K8JcLBO/DOFgLfAd46f6zrCDpEUYRqZtAV6VQVbIOiclvbfboyYtMDMIsK +vTGAZgW/0+R83tRqOT5Hopfbu7V97BPWDS7vqzsOB3/BZ96V/EbwqO/juR4Hi7Yzs7F 11tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:to:from:arc-authentication-results; bh=pRsFQjtAe4RESO+I5eKYnsLyGuyQ4QE0ige6vPyUlw4=; b=O70srTVZplfwN1n+5yalczRdJ2toG7EHqrBkcNWLJF+QPB1Na6E+uOxBU4QcRyRXIg eSpNXHj/OsfPU6LB/fJ7CrrqikHpOXclKD1nc5ON5tGfnkDoc2fRaf6XCsN1CaDhhlLk tHryvu32mRtfqzHFZkF+99/dUK+QXTfBFCNJJoD4T98upkgSqq+SBZZBCsLL5D/anUWH hfDdjrNouRQC3S/CIFPHHX6MMu28k3HtcSB3pm9VjMXeIp4klLVXSiQnfHLP6ox32lUk LjPk9D06garllS2WRGA3k0C2tIEgCLAb3NC3EWoahDFwdlc8GUUlaP3qa61NG2edvXms b0UQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a73si1643651pge.281.2017.11.07.23.47.29; Tue, 07 Nov 2017 23:47:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752879AbdKHFYR (ORCPT + 92 others); Wed, 8 Nov 2017 00:24:17 -0500 Received: from mail1.windriver.com ([147.11.146.13]:35474 "EHLO mail1.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750951AbdKHFYP (ORCPT ); Wed, 8 Nov 2017 00:24:15 -0500 Received: from ALA-HCB.corp.ad.wrs.com (ala-hcb.corp.ad.wrs.com [147.11.189.41]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id vA85ODcc017835 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Tue, 7 Nov 2017 21:24:13 -0800 (PST) Received: from pek-lyang0-u17.wrs.com (128.224.162.161) by ALA-HCB.corp.ad.wrs.com (147.11.189.41) with Microsoft SMTP Server id 14.3.361.1; Tue, 7 Nov 2017 21:24:13 -0800 From: Lei Yang To: , , , Subject: [PATCH] selftests: kselftest.h: fix compilation errors Date: Wed, 8 Nov 2017 13:24:10 +0800 Message-ID: <20171108052410.14616-1-Lei.Yang@windriver.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In next branch, Various build failed with: In file included from membarrier_test.c:8:0: ../kselftest.h: In function ‘ksft_print_header’: ../kselftest.h:61:3: error: expected ‘)’ before ‘printf’ printf("TAP version 13\n"); ^ ../kselftest.h:62:1: error: expected expression before ‘}’ token } ^ Signed-off-by: Lei Yang --- tools/testing/selftests/kselftest.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kselftest.h b/tools/testing/selftests/kselftest.h index d6732ba312ef..acc98a5c3d73 100644 --- a/tools/testing/selftests/kselftest.h +++ b/tools/testing/selftests/kselftest.h @@ -57,7 +57,7 @@ static inline int ksft_get_error_cnt(void) { return ksft_cnt.ksft_error; } static inline void ksft_print_header(void) { - if (!(getenv("KSFT_TAP_LEVEL")) + if (!(getenv("KSFT_TAP_LEVEL"))) printf("TAP version 13\n"); } -- 2.11.0 From 1583945283671387340@xxx Mon Nov 13 10:12:15 +0000 2017 X-GM-THRID: 1583945283671387340 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread