From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759890AbaGCWOO (ORCPT ); Thu, 3 Jul 2014 18:14:14 -0400 Received: from mail-ig0-f179.google.com ([209.85.213.179]:61603 "EHLO mail-ig0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752275AbaGCWON (ORCPT ); Thu, 3 Jul 2014 18:14:13 -0400 Date: Thu, 3 Jul 2014 15:14:10 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Nick Krause cc: monstr@monstr.eu, "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] microblaze: fixes includes in sigcontext.h In-Reply-To: Message-ID: References: <1404423935-5287-1-git-send-email-xerofoify@gmail.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 3 Jul 2014, Nick Krause wrote: > You may be right I don't have a compiler that supports microblaze therefore I > would suggest removing this FIXME message. The FIXME here is obviously stating that the code needs to be fixed so that it can include linux/ptrace.h rather than asm/ptrace.h since we want to include the former rather than the latter. It doesn't imply, in any way, that you can just do the conversion without some due diligence (compilation) to ensure it works; otherwise it would have been including linux/ptrace.h since the beginning. It's bad practice to mess with per-arch header files for platforms that you cannot compile yourself. > Cheers Nick > > On Thu, Jul 3, 2014 at 5:57 PM, David Rientjes wrote: > > On Thu, 3 Jul 2014, Nicholas Krause wrote: > > > >> diff --git a/arch/microblaze/include/uapi/asm/sigcontext.h b/arch/microblaze/include/uapi/asm/sigcontext.h > >> index 55873c8..1180d9b 100644 > >> --- a/arch/microblaze/include/uapi/asm/sigcontext.h > >> +++ b/arch/microblaze/include/uapi/asm/sigcontext.h > >> @@ -9,8 +9,7 @@ > >> #ifndef _ASM_MICROBLAZE_SIGCONTEXT_H > >> #define _ASM_MICROBLAZE_SIGCONTEXT_H > >> > >> -/* FIXME should be linux/ptrace.h */ > >> -#include > >> +#include > >> > >> struct sigcontext { > >> struct pt_regs regs; > > > > Umm, does this even compile? How does sigcontext.h get the definition of > > struct pt_regs? Seems like it would be better to just do a forward > > declaration. >