From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: linux-next@vger.kernel.org, Chris Metcalf <cmetcalf@tilera.com>,
linux-kernel@vger.kernel.org
Subject: Re: [linux-next] "edac: Remove the legacy EDAC ABI"
Date: Fri, 18 May 2012 14:40:17 -0300 [thread overview]
Message-ID: <4FB68981.7060408@redhat.com> (raw)
In-Reply-To: <20120518162216.GB15256@windriver.com>
Em 18-05-2012 13:22, Paul Gortmaker escreveu:
> Hi Guys,
>
> This commit:
>
> -----------
> commit 90b40d5cadba20d7fe2fce12d61f97e0870c1ba6
> Author: Mauro Carvalho Chehab <mchehab@redhat.com>
> Date: Wed May 2 14:37:00 2012 -0300
>
> edac: Remove the legacy EDAC ABI
>
> Now that all drivers got converted to use the new ABI, we can
> drop the old one.
> ----------
>
> breaks linux-next i386 allmodconfig:
>
> drivers/edac/amd76x_edac.c:254:25: error: too few arguments to function
> 'edac_mc_alloc'
> make[3]: *** [drivers/edac/amd76x_edac.o] Error 1
> drivers/edac/i82875p_edac.c:424:3: error: label 'fail0' used but not
> defined
> drivers/edac/i82875p_edac.c:427:2: error: expected identifier or '('
> before 'do'
>
> http://kisskb.ellerman.id.au/kisskb/buildresult/6341714/
>
> Please have a look.
Thanks for it! This was due to a rebase, where one of the arguments for
edac_mc_alloc() got removed.
The enclosed patch should fix it.
I'll merge the fix with the affected patches.
-
edac: Fix compilation breakage on amd76x_edac and i82875p
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
diff --git a/drivers/edac/amd76x_edac.c b/drivers/edac/amd76x_edac.c
index c974da7..a015fba 100644
--- a/drivers/edac/amd76x_edac.c
+++ b/drivers/edac/amd76x_edac.c
@@ -251,7 +251,7 @@ static int amd76x_probe1(struct pci_dev *pdev, int dev_idx)
layers[1].type = EDAC_MC_LAYER_CHANNEL;
layers[1].size = 1;
layers[1].is_virt_csrow = false;
- mci = edac_mc_alloc(0, ARRAY_SIZE(layers), 0);
+ mci = edac_mc_alloc(0, ARRAY_SIZE(layers), layers, 0);
if (mci == NULL)
return -ENOMEM;
diff --git a/drivers/edac/i82875p_edac.c b/drivers/edac/i82875p_edac.c
index ae15359..db64bd7 100644
--- a/drivers/edac/i82875p_edac.c
+++ b/drivers/edac/i82875p_edac.c
@@ -420,6 +420,7 @@ static int i82875p_probe1(struct pci_dev *pdev, int dev_idx)
layers[1].size = nr_chans;
layers[1].is_virt_csrow = false;
mci = edac_mc_alloc(0, ARRAY_SIZE(layers), layers, sizeof(*pvt));
+ if (!mci) {
rc = -ENOMEM;
goto fail0;
}
prev parent reply other threads:[~2012-05-18 17:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-18 16:22 "edac: Remove the legacy EDAC ABI" Paul Gortmaker
2012-05-18 17:40 ` Mauro Carvalho Chehab [this message]
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=4FB68981.7060408@redhat.com \
--to=mchehab@redhat.com \
--cc=cmetcalf@tilera.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=paul.gortmaker@windriver.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;
as well as URLs for NNTP newsgroup(s).