From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH v3 5/5] tty/serial: Add Spreadtrum sc9836-uart driver support Date: Wed, 03 Dec 2014 10:50:17 +0100 Message-ID: <3212776.kDbe7yX4eX@wuerfel> References: <1416917818-10506-1-git-send-email-chunyan.zhang@spreadtrum.com> <54761BFC.4020705@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Lyra Zhang Cc: Murali Karicheri , Chunyan Zhang , Grant Likely , "robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org" , Catalin Marinas , "gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org" , "ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org" , "jslaby-AlSwsSmVLrQ@public.gmane.org" , Kumar Gala , Mark Brown , Mark Rutland , Pawel Moll , Ramkumar Ramachandra , "rrichter-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org" , Will Deacon , "gnomes-qBU/x9rampVanCEyBjwyrvXRex20P6io@public.gmane.org" , Jonathan Corbet , "jason-NLaQJdtUoK4Be96aLqz0jA@public.gmane.org" , Mark Brown , Heiko =?ISO-8859-1?Q?St=FCbner?= , shawn.guo@freescal List-Id: linux-api@vger.kernel.org On Wednesday 03 December 2014 17:17:13 Lyra Zhang wrote: > 2014-11-27 2:29 GMT+08:00 Murali Karicheri : > > How about sorting this includes? asm/irq.h go first followed linux/= in alphabatical order? > > There are a few compile warnings if I moved asm/irq.h to the top of > all included files. The order that Murali meant is - first all linux/*.h headers, sorted alphabetically - then all asm/*.h headers, again sorted alphabetically This is the recommended style in general. > Warning details are below: >=20 > In file included from drivers/tty/serial/sprd_serial.c:14:0: > ./arch/arm64/include/asm/irq.h:6:39: warning: =E2=80=98struct pt_regs= =E2=80=99 > declared inside parameter list [enabled by default] > extern void (*handle_arch_irq)(struct pt_regs *); > ^ > ./arch/arm64/include/asm/irq.h:6:39: warning: its scope is only this > definition or declaration, which is probably not what you want > [enabled by default] > ./arch/arm64/include/asm/irq.h:8:54: warning: =E2=80=98struct pt_regs= =E2=80=99 > declared inside parameter list [enabled by default] > extern void set_handle_irq(void (*handle_irq)(struct pt_regs *)); >=20 I would consider this a (minor) bug in asm/irq.h. If you don't mind, please submit a patch to add a line with 'struct pt_regs;' to asm/irq.h. Arnd