From patchwork Thu Dec 8 02:13:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 87187 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp628867qgi; Wed, 7 Dec 2016 18:20:00 -0800 (PST) X-Received: by 10.99.136.194 with SMTP id l185mr127444166pgd.106.1481163600905; Wed, 07 Dec 2016 18:20:00 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v2si26537171pfi.174.2016.12.07.18.20.00; Wed, 07 Dec 2016 18:20:00 -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 S1753631AbcLHCT4 (ORCPT + 25 others); Wed, 7 Dec 2016 21:19:56 -0500 Received: from szxga01-in.huawei.com ([58.251.152.64]:37572 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752802AbcLHCTz (ORCPT ); Wed, 7 Dec 2016 21:19:55 -0500 Received: from 172.24.1.60 (EHLO SZXEML424-HUB.china.huawei.com) ([172.24.1.60]) by szxrg01-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id DWF18397; Thu, 08 Dec 2016 10:16:25 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by SZXEML424-HUB.china.huawei.com (10.82.67.153) with Microsoft SMTP Server id 14.3.235.1; Thu, 8 Dec 2016 10:16:17 +0800 From: Kefeng Wang To: CC: Dmitry Vyukov , Andrey Ryabinin , Mark Rutland , James Morse , Andrew Morton , , Kefeng Wang Subject: [PATCH] kcov: add more missing include Date: Thu, 8 Dec 2016 10:13:41 +0800 Message-ID: <1481163221-40170-1-git-send-email-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 1.7.12.4 In-Reply-To: <20161206110905.GA24177@leverpostej> References: <20161206110905.GA24177@leverpostej> MIME-Version: 1.0 X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It is fragile that some definitions acquired via transitive dependencies, as shown in below: atomic_* () ENOMEM/EN* () EXPORT_SYMBOL () device_initcall () preempt_* () Include them to prevent possible issues. Suggested-by: Mark Rutland Signed-off-by: Kefeng Wang --- kernel/kcov.c | 5 +++++ 1 file changed, 5 insertions(+) -- 1.7.12.4 diff --git a/kernel/kcov.c b/kernel/kcov.c index 3cbb0c8..cc2fa35ca 100644 --- a/kernel/kcov.c +++ b/kernel/kcov.c @@ -1,11 +1,16 @@ #define pr_fmt(fmt) "kcov: " fmt #define DISABLE_BRANCH_PROFILING +#include #include +#include +#include #include #include #include +#include #include +#include #include #include #include