From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS, T_DKIMWL_WL_HIGH,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23AEFC04AAB for ; Mon, 6 May 2019 14:47:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EA278214C6 for ; Mon, 6 May 2019 14:47:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557154039; bh=FbLKEUl3KRNnMUhZoYAxYnUWvRn/WoNTy/4xfKgqgTc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=c5PTRtW6742QNMgKwRC2FcA8PFi3ub8qDxKeIB1v7mEzWnBtWHTlHL1Bps64DZ+di QrOyBr5pK7lkvkHlfZTdkHqId9aim/v66khuTwJLDp4D7xILz6PksItNT42JZxCjaR X5XzWO77vSCTrWclyIri+FVLpSTX4DMM3BWw80XU= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729283AbfEFOrS (ORCPT ); Mon, 6 May 2019 10:47:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:46172 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729279AbfEFOrQ (ORCPT ); Mon, 6 May 2019 10:47:16 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0BEB6214AE; Mon, 6 May 2019 14:47:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557154035; bh=FbLKEUl3KRNnMUhZoYAxYnUWvRn/WoNTy/4xfKgqgTc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iUsUXaFajtpqNF0q1lCxj9XIrxofqh2XCdO6WpTr4XHRDWF/HI4uOUGGhXqvhr8NE MfhqSQRfMMievXaY+F1BpGX+pRcZw4U6enDqD2TymUJ1sgh7BhcCfMlpYpWOLEjIx3 Ln85VIyPHfE0k+lc30UIlamnsD8VU+5Cnvu4rn5I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Masami Hiramatsu , Alexander Potapenko , Andrey Ryabinin , Dmitry Vyukov , Andrew Morton , Linus Torvalds , Andrey Konovalov Subject: [PATCH 4.9 14/62] kasan: add a prototype of task_struct to avoid warning Date: Mon, 6 May 2019 16:32:45 +0200 Message-Id: <20190506143052.314322038@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190506143051.102535767@linuxfoundation.org> References: <20190506143051.102535767@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Masami Hiramatsu commit 5be9b730b09c45c358bbfe7f51d254e306cccc07 upstream. Add a prototype of task_struct to fix below warning on arm64. In file included from arch/arm64/kernel/probes/kprobes.c:19:0: include/linux/kasan.h:81:132: error: 'struct task_struct' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] 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. [arnd] A related warning was fixed before, but now appears in a different line in the same file in v4.11-rc2. The patch from Masami Hiramatsu still seems appropriate, so let's take his version. Fixes: 71af2ed5eeea ("kasan, sched/headers: Remove from ") Link: https://patchwork.kernel.org/patch/9569839/ Link: http://lkml.kernel.org/r/20170313141517.3397802-1-arnd@arndb.de Signed-off-by: Arnd Bergmann Signed-off-by: Masami Hiramatsu Acked-by: Alexander Potapenko Acked-by: Andrey Ryabinin Cc: Dmitry Vyukov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Andrey Konovalov Signed-off-by: Greg Kroah-Hartman --- include/linux/kasan.h | 1 + 1 file changed, 1 insertion(+) --- 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