From: Andrew Morton <akpm@linux-foundation.org>
To: Arnd Bergmann <arnd@arndb.de>
Cc: linux-serial@vger.kernel.org, ben@codiert.org, linuxppc-dev@ozlabs.org
Subject: Re: [PATCH] Add support for the nwp serial device
Date: Fri, 21 Nov 2008 13:22:44 -0800 [thread overview]
Message-ID: <20081121132244.e9e9fd74.akpm@linux-foundation.org> (raw)
In-Reply-To: <200811201501.24000.arnd@arndb.de>
On Thu, 20 Nov 2008 15:01:23 +0100
Arnd Bergmann <arnd@arndb.de> wrote:
> This patch adds support for the nwp serial device which is connected to
> a DCR bus. It uses the of_serial device driver to determine necessary
> properties from the device tree. The supported device is added as serial
> port number 84.
checkpatch has a decent whine over this. Some of those things you
might decide to ignore, other things tell me that you never ran it
anyway...
I'd suggest that nwpserial_pops and nwpserial_reg be marked const, as
they don't need to be in read/write storage. Except that doesn't work
because the kernel isn't very const-competent. Ho hum.
(does a powerpc allmodconfig)
drivers/serial/nwpserial.c:443: warning: data definition has no type or storage class
drivers/serial/nwpserial.c:443: warning: type defaults to 'int' in declaration of 'console_initcall'
drivers/serial/nwpserial.c:443: warning: parameter names (without types) in function declaration
drivers/serial/nwpserial.c:400: warning: 'nwpserial_console_init' defined but not used
The file fails to include linux/init.h. It should do so, but that
doesn't fix the above.
Apparently it hasn't been tested as a kernel module...
WARNING: multiple messages have this Message-ID (diff)
From: Andrew Morton <akpm@linux-foundation.org>
To: Arnd Bergmann <arnd@arndb.de>
Cc: linuxppc-dev@ozlabs.org, linux-serial@vger.kernel.org
Subject: Re: [PATCH] Add support for the nwp serial device
Date: Fri, 21 Nov 2008 13:22:44 -0800 [thread overview]
Message-ID: <20081121132244.e9e9fd74.akpm@linux-foundation.org> (raw)
In-Reply-To: <200811201501.24000.arnd@arndb.de>
On Thu, 20 Nov 2008 15:01:23 +0100
Arnd Bergmann <arnd@arndb.de> wrote:
> This patch adds support for the nwp serial device which is connected to
> a DCR bus. It uses the of_serial device driver to determine necessary
> properties from the device tree. The supported device is added as serial
> port number 84.
checkpatch has a decent whine over this. Some of those things you
might decide to ignore, other things tell me that you never ran it
anyway...
I'd suggest that nwpserial_pops and nwpserial_reg be marked const, as
they don't need to be in read/write storage. Except that doesn't work
because the kernel isn't very const-competent. Ho hum.
(does a powerpc allmodconfig)
drivers/serial/nwpserial.c:443: warning: data definition has no type or storage class
drivers/serial/nwpserial.c:443: warning: type defaults to 'int' in declaration of 'console_initcall'
drivers/serial/nwpserial.c:443: warning: parameter names (without types) in function declaration
drivers/serial/nwpserial.c:400: warning: 'nwpserial_console_init' defined but not used
The file fails to include linux/init.h. It should do so, but that
doesn't fix the above.
Apparently it hasn't been tested as a kernel module...
next prev parent reply other threads:[~2008-11-21 21:22 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-20 14:01 [PATCH] Add support for the nwp serial device Arnd Bergmann
2008-11-20 14:13 ` Josh Boyer
2008-11-20 14:13 ` Josh Boyer
2008-11-20 15:20 ` Benjamin Krill
2008-11-20 15:20 ` Benjamin Krill
2008-11-20 15:40 ` Josh Boyer
2008-11-21 0:35 ` David Gibson
2008-11-21 0:35 ` David Gibson
2008-11-21 7:21 ` Benjamin Krill
2008-11-21 7:29 ` David Gibson
2008-11-21 7:29 ` David Gibson
2008-11-21 21:22 ` Andrew Morton [this message]
2008-11-21 21:22 ` Andrew Morton
2008-11-23 21:46 ` Benjamin Krill
2008-11-23 21:46 ` Benjamin Krill
2008-11-22 22:03 ` Benjamin Herrenschmidt
2008-11-22 22:03 ` Benjamin Herrenschmidt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081121132244.e9e9fd74.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=arnd@arndb.de \
--cc=ben@codiert.org \
--cc=linux-serial@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.