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=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED 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 A7949ECDFB8 for ; Sun, 22 Jul 2018 13:33:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5C9C320878 for ; Sun, 22 Jul 2018 13:33:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5C9C320878 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=users.sourceforge.jp Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728483AbeGVOaB (ORCPT ); Sun, 22 Jul 2018 10:30:01 -0400 Received: from mail01.asahi-net.or.jp ([202.224.55.13]:38271 "EHLO mail01.asahi-net.or.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728244AbeGVOaB (ORCPT ); Sun, 22 Jul 2018 10:30:01 -0400 Received: from h61-195-96-97.vps.ablenet.jp (h61-195-96-97.vps.ablenet.jp [61.195.96.97]) (Authenticated sender: PQ4Y-STU) by mail01.asahi-net.or.jp (Postfix) with ESMTPA id 11FC282137; Sun, 22 Jul 2018 22:33:18 +0900 (JST) Received: from yo-satoh-debian.ysato.ml (ZM028236.ppp.dion.ne.jp [222.8.28.236]) by h61-195-96-97.vps.ablenet.jp (Postfix) with ESMTPSA id 8FB9D24006D; Sun, 22 Jul 2018 22:33:18 +0900 (JST) Date: Sun, 22 Jul 2018 22:33:15 +0900 Message-ID: <87lga3fl9g.wl-ysato@users.sourceforge.jp> From: Yoshinori Sato To: Randy Dunlap Cc: LKML , uclinux-h8-devel@lists.sourceforge.jp Subject: Re: [PATCH] arch/h8300: eliminate ptrace.h warnings In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 20 Jul 2018 11:34:53 +0900, Randy Dunlap wrote: > > From: Randy Dunlap > > Add a "struct task_struct;" stub to arch/h8300's ptrace.h header to > eliminate gcc warnings (gcc version is 8.1.0). > > ../arch/h8300/include/asm/ptrace.h:32:34: warning: 'struct task_struct' declared inside parameter list will not be visible outside of this definition or declaration > extern long h8300_get_reg(struct task_struct *task, int regno); > ../arch/h8300/include/asm/ptrace.h:33:33: warning: 'struct task_struct' declared inside parameter list will not be visible outside of this definition or declaration > extern int h8300_put_reg(struct task_struct *task, int regno, > > Signed-off-by: Randy Dunlap > Cc: Yoshinori Sato > Cc: uclinux-h8-devel@lists.sourceforge.jp > --- > arch/h8300/include/asm/ptrace.h | 2 ++ > 1 file changed, 2 insertions(+) > > --- linux-next-20180717.orig/arch/h8300/include/asm/ptrace.h > +++ linux-next-20180717/arch/h8300/include/asm/ptrace.h > @@ -4,6 +4,8 @@ > > #include > > +struct task_struct; > + > #ifndef __ASSEMBLY__ > #ifndef PS_S > #define PS_S (0x10) > > Applied to h8300-next. Thanks. -- Yosinori Sato