From: Andrew Morton <akpm@linux-foundation.org>
To: Doug Thompson <norsk5@yahoo.com>
Cc: linux-kernel@vger.kernel.org, Alan Cox <alan@lxorguk.ukuu.org.uk>,
Andy Whitcroft <apw@shadowen.org>
Subject: Re: [PATCH 9/36] drivers edac new intel 5000X mc driver
Date: Thu, 7 Jun 2007 14:38:40 -0700 [thread overview]
Message-ID: <20070607143840.d259a4c1.akpm@linux-foundation.org> (raw)
In-Reply-To: <404349.85191.qm@web50103.mail.re2.yahoo.com>
On Sun, 3 Jun 2007 07:40:26 -0700 (PDT)
Doug Thompson <norsk5@yahoo.com> wrote:
> From: Eric Wollesen <ericw@xmtp.net>
>
> Eric Wollesen ported the Bluesmoke Memory Controller driver (written by
> Doug Thompson) for the Intel 5000X/V/P (Blackford/Greencreek)
> chipset to the in kernel EDAC model.
>
> This patch incorporates the module for the 5000X/V/P chipset family
>
> ...
>
> +static void i5000_get_error_info(struct mem_ctl_info *mci,
> + struct i5000_error_info * info)
> +{
> + struct i5000_pvt *pvt;
> + u32 value;
> +
> + pvt = (struct i5000_pvt *)mci->pvt_info;
pvt_info is (correctly) void *, so this cast is unneeded
> +static void i5000_process_fatal_error_info(struct mem_ctl_info *mci,
> + struct i5000_error_info * info,
s/* /*/
> + * i5000_process_fatal_error_info(struct mem_ctl_info *mci,
> + * struct i5000_error_info *info,
> + * int handle_errors);
> + *
> + * handle the Intel NON-FATAL errors, if any
> + */
> +static void i5000_process_nonfatal_error_info(struct mem_ctl_info
> *mci,
> + struct i5000_error_info * info,
ditto (please check whole patch)
(I thought checkpatch.pl would catch this, but it doesn't?)
> +
> +/******************************************************************************
The zillion-asterisks can be removed from all these comments.
> + * i5000_put_devices 'put' all the devices that we have
> + * reserved via 'get'
> + */
> +static void i5000_put_devices(struct mem_ctl_info *mci)
> +{
> + struct i5000_pvt *pvt;
> +
> + pvt = (struct i5000_pvt *)mci->pvt_info;
Unneeded cast.
> + pci_dev_put(pvt->branchmap_werrors); /* FUNC 1 */
> + pci_dev_put(pvt->fsb_error_regs); /* FUNC 2 */
> + pci_dev_put(pvt->branch_0); /* DEV 21 */
> +
> + /* Only if more than 2 channels do we release the second branch */
> + if (pvt->maxch >= CHANNELS_PER_BRANCH) {
> + pci_dev_put(pvt->branch_1); /* DEV 22 */
> + }
Unneeded braces.
next prev parent reply other threads:[~2007-06-07 21:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-03 14:40 [PATCH 9/36] drivers edac new intel 5000X mc driver Doug Thompson
2007-06-07 21:38 ` Andrew Morton [this message]
2007-06-07 22:10 ` Randy Dunlap
2007-06-08 8:39 ` Andy Whitcroft
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=20070607143840.d259a4c1.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=apw@shadowen.org \
--cc=linux-kernel@vger.kernel.org \
--cc=norsk5@yahoo.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox