From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753246AbdBMO31 (ORCPT ); Mon, 13 Feb 2017 09:29:27 -0500 Received: from mail.kernel.org ([198.145.29.136]:45574 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752219AbdBMO30 (ORCPT ); Mon, 13 Feb 2017 09:29:26 -0500 From: Masami Hiramatsu To: Andrey Ryabinin Cc: linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, Alexander Potapenko , Dmitry Vyukov Subject: [PATCH] [TRIVIAL] kasan: Add a prototype of task_struct to avoid warning Date: Mon, 13 Feb 2017 23:28:29 +0900 Message-Id: <148699609915.25482.4216286293667050154.stgit@devbox> X-Mailer: git-send-email 2.9.3 User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a prototype of task_struct to fix below warning on arm64. CC arch/arm64/kernel/probes/kprobes.o In file included from /tmp/linux/arch/arm64/kernel/probes/kprobes.c:19:0: /tmp/linux/include/linux/kasan.h:81:53: warning: 'struct task_struct' declared inside parameter list will not be visible outside of this definition or declaration static inline void kasan_unpoison_task_stack(struct task_struct *task) {} ^~~~~~~~~~~ As same as other types (kmem_cache, page, and vm_struct) this adds a prototype of task_struct data structure on top of kasan.h. Signed-off-by: Masami Hiramatsu Cc: Andrey Ryabinin Cc: Alexander Potapenko Cc: Dmitry Vyukov --- include/linux/kasan.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/kasan.h b/include/linux/kasan.h index 820c0ad..c9df9e1 100644 --- a/include/linux/kasan.h +++ b/include/linux/kasan.h @@ -7,6 +7,7 @@ struct kmem_cache; struct page; struct vm_struct; +struct task_struct; #ifdef CONFIG_KASAN