From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753629AbcLHCT4 (ORCPT ); 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 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 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org 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(+) 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 -- 1.7.12.4