From: akpm@linux-foundation.org Subject: [patch 3/3] kcov: add missing #include Date: Wed, 07 Dec 2016 14:44:36 -0800 Message-ID: <584890d4.x+MUrbRap5KY0KOK%akpm@linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:33406 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932857AbcLGWoE (ORCPT ); Wed, 7 Dec 2016 17:44:04 -0500 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: torvalds@linux-foundation.org, mm-commits@vger.kernel.org, akpm@linux-foundation.org, wangkefeng.wang@huawei.com, aryabinin@virtuozzo.com, dvyukov@google.com, james.morse@arm.com, mark.rutland@arm.com From: Kefeng Wang Subject: kcov: add missing #include In __sanitizer_cov_trace_pc we use task_struct and fields within it, but as we haven't included , it is not guaranteed to be defined. While we usually happen to acquire the definition through a transitive include, this is fragile (and hasn't been true in the past, causing issues with backports). Include to avoid any fragility. [mark.rutland@arm.com: rewrote changelog] Link: http://lkml.kernel.org/r/1481007384-27529-1-git-send-email-wangkefeng.wang@huawei.com Signed-off-by: Kefeng Wang Acked-by: Mark Rutland Cc: Dmitry Vyukov Cc: Andrey Ryabinin Cc: James Morse Signed-off-by: Andrew Morton --- kernel/kcov.c | 1 + 1 file changed, 1 insertion(+) diff -puN kernel/kcov.c~kcov-add-missing-include-linux-schedh kernel/kcov.c --- a/kernel/kcov.c~kcov-add-missing-include-linux-schedh +++ a/kernel/kcov.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include _