From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Fri, 24 Oct 2008 17:42:54 +0100 (BST) Received: from h4.dl5rb.org.uk ([81.2.74.4]:31714 "EHLO ditditdahdahdah-dahdahdahditdit.dl5rb.org.uk") by ftp.linux-mips.org with ESMTP id S22305498AbYJXQmq (ORCPT ); Fri, 24 Oct 2008 17:42:46 +0100 Received: from denk.linux-mips.net (denk.linux-mips.net [127.0.0.1]) by ditditdahdahdah-dahdahdahditdit.dl5rb.org.uk (8.14.2/8.14.1) with ESMTP id m9OGghu9026873; Fri, 24 Oct 2008 17:42:43 +0100 Received: (from ralf@localhost) by denk.linux-mips.net (8.14.2/8.14.2/Submit) id m9OGgfCO026871; Fri, 24 Oct 2008 17:42:41 +0100 Date: Fri, 24 Oct 2008 17:42:41 +0100 From: Ralf Baechle To: Yoichi Yuasa Cc: linux-mips , David Daney Subject: Re: [PATCH][MIPS] fix kgdb build error Message-ID: <20081024164241.GB21892@linux-mips.org> References: <20081025001725.7ac18a1b.yoichi_yuasa@tripeaks.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081025001725.7ac18a1b.yoichi_yuasa@tripeaks.co.jp> User-Agent: Mutt/1.5.18 (2008-05-17) Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 20943 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: ralf@linux-mips.org Precedence: bulk X-list: linux-mips On Sat, Oct 25, 2008 at 12:17:25AM +0900, Yoichi Yuasa wrote: > ptrace.h needs #include > > In file included from include/linux/ptrace.h:49, > from arch/mips/kernel/kgdb.c:25: > /home/yuasa/src/linux/test/generic/linux/arch/mips/include/asm/ptrace.h:83: error: expected specifier-qualifier-list before 'uint32_t' > /home/yuasa/src/linux/test/generic/linux/arch/mips/include/asm/ptrace.h:98: error: expected specifier-qualifier-list before 'uint64_t' > In file included from include/linux/ptrace.h:49, > from arch/mips/kernel/kgdb.c:25: > /home/yuasa/src/linux/test/generic/linux/arch/mips/include/asm/ptrace.h:123: error: expected declaration specifiers or '...' before '__s64' > /home/yuasa/src/linux/test/generic/linux/arch/mips/include/asm/ptrace.h:124: error: expected declaration specifiers or '...' before '__s64' > /home/yuasa/src/linux/test/generic/linux/arch/mips/include/asm/ptrace.h:126: error: expected declaration specifiers or '...' before '__u32' > /home/yuasa/src/linux/test/generic/linux/arch/mips/include/asm/ptrace.h:127: error: expected declaration specifiers or '...' before '__u32' > make[1]: *** [arch/mips/kernel/kgdb.o] Error 1 > > Signed-off-by: Yoichi Yuasa is exported to userland so we can't include these types. Basically or are polluting the namespace. So either we use some __* type and include only those or we get entirely rid of typedef'ed types - as in the patch that you've posted while I was writing this. Ralf