From patchwork Tue Dec 6 06:56:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 86680 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp1875355qgi; Mon, 5 Dec 2016 23:00:35 -0800 (PST) X-Received: by 10.99.213.21 with SMTP id c21mr107031040pgg.137.1481007635477; Mon, 05 Dec 2016 23:00:35 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o5si18209689pgh.190.2016.12.05.23.00.34; Mon, 05 Dec 2016 23:00:35 -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 S1752148AbcLFHAc (ORCPT + 25 others); Tue, 6 Dec 2016 02:00:32 -0500 Received: from szxga03-in.huawei.com ([119.145.14.66]:22209 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751690AbcLFHAb (ORCPT ); Tue, 6 Dec 2016 02:00:31 -0500 Received: from 172.24.1.47 (EHLO szxeml426-hub.china.huawei.com) ([172.24.1.47]) by szxrg03-dlp.huawei.com (MOS 4.4.3-GA FastPath queued) with ESMTP id CMJ27612; Tue, 06 Dec 2016 14:59:18 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by szxeml426-hub.china.huawei.com (10.82.67.181) with Microsoft SMTP Server id 14.3.235.1; Tue, 6 Dec 2016 14:59:09 +0800 From: Kefeng Wang To: CC: Dmitry Vyukov , Andrey Ryabinin , Mark Rutland , James Morse , Andrew Morton , Kefeng Wang Subject: [PATCH] kcov: add missing #include Date: Tue, 6 Dec 2016 14:56:24 +0800 Message-ID: <1481007384-27529-1-git-send-email-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 1.7.12.4 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 needed by struct task_struct, fixes the following build problem with old gcc: ../kernel/kcov.c: In function ‘__sanitizer_cov_trace_pc’: ../kernel/kcov.c:66: error: dereferencing pointer to incomplete type ...... ../kernel/kcov.c:239: error: dereferencing pointer to incomplete type Signed-off-by: Kefeng Wang --- note: - Build error occurred when I backported kcov to an old kernel version with an old gcc kernel/kcov.c | 1 + 1 file changed, 1 insertion(+) -- 1.7.12.4 Acked-by: Mark Rutland diff --git a/kernel/kcov.c b/kernel/kcov.c index 30e6d05..3cbb0c8 100644 --- a/kernel/kcov.c +++ b/kernel/kcov.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include