From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753531Ab3H0NI6 (ORCPT ); Tue, 27 Aug 2013 09:08:58 -0400 Received: from multi.imgtec.com ([194.200.65.239]:14700 "EHLO multi.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753028Ab3H0NI5 (ORCPT ); Tue, 27 Aug 2013 09:08:57 -0400 Message-ID: <521CA4DC.6010506@imgtec.com> Date: Tue, 27 Aug 2013 14:08:44 +0100 From: James Hogan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Rasmus Villemoes CC: Arnd Bergmann , Roland McGrath , "Oleg Nesterov" , , Subject: Re: [PATCH 3/4] asm-generic: Add missing include guards References: <1375996022-8298-1-git-send-email-linux@rasmusvillemoes.dk> <1375996022-8298-4-git-send-email-linux@rasmusvillemoes.dk> In-Reply-To: <1375996022-8298-4-git-send-email-linux@rasmusvillemoes.dk> X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.154.65] X-SEF-Processed: 7_3_0_01192__2013_08_27_14_08_46 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/08/13 22:07, Rasmus Villemoes wrote: > Add include guards to include/asm-generic/{ide_iops,unistd,xor}.h. > > Signed-off-by: Rasmus Villemoes > --- > include/asm-generic/ide_iops.h | 4 ++++ > include/asm-generic/unistd.h | 5 +++++ > include/asm-generic/xor.h | 4 ++++ > 3 files changed, 13 insertions(+) > > diff --git a/include/asm-generic/unistd.h b/include/asm-generic/unistd.h > index cccc86e..0cff2e9 100644 > --- a/include/asm-generic/unistd.h > +++ b/include/asm-generic/unistd.h > @@ -1,3 +1,6 @@ > +#ifndef _ASM_GENERIC_UNISTD_H > +#define _ASM_GENERIC_UNISTD_H > + > #include > #include > > @@ -10,3 +13,5 @@ > #define __ARCH_WANT_STAT64 > #define __ARCH_WANT_SYS_LLSEEK > #endif > + > +#endif /* _ASM_GENERIC_UNISTD_H */ I think the lack of include guards in unistd.h is intentional. See for example the very end of arch/metag/kernel/sys_metag.c. Cheers James