From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753587AbbGUJKf (ORCPT ); Tue, 21 Jul 2015 05:10:35 -0400 Received: from ssl.serverraum.org ([88.198.40.39]:36551 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752345AbbGUJKd (ORCPT ); Tue, 21 Jul 2015 05:10:33 -0400 X-Greylist: delayed 571 seconds by postgrey-1.27 at vger.kernel.org; Tue, 21 Jul 2015 05:10:32 EDT From: Michael Walle To: linux-kernel@vger.kernel.org Cc: Michael Walle , Doug Thompson , Mauro Carvalho Chehab , linux-edac@vger.kernel.org Subject: [PATCH] ppc4xx_edac: Fix kernel oops Date: Tue, 21 Jul 2015 11:00:53 +0200 Message-Id: <1437469253-8611-1-git-send-email-michael@walle.cc> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The commit de3910eb79ac8c0f29a11224661c0ebaaf813039 changed the memory allocation for the csrows member. But ppc4xx_edac was forgotten in the patch. Fix it. This is warning reported by the compiler: drivers/edac/ppc4xx_edac.c: In function 'ppc4xx_edac_init_csrows': drivers/edac/ppc4xx_edac.c:924:28: warning: initialization from incompatible pointer type [enabled by default] struct csrow_info *csi = &mci->csrows[row]; Cc: Doug Thompson Cc: Mauro Carvalho Chehab Cc: linux-edac@vger.kernel.org Signed-off-by: Michael Walle --- drivers/edac/ppc4xx_edac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/edac/ppc4xx_edac.c b/drivers/edac/ppc4xx_edac.c index 0f04d5e..4c1991d 100644 --- a/drivers/edac/ppc4xx_edac.c +++ b/drivers/edac/ppc4xx_edac.c @@ -921,7 +921,7 @@ static int ppc4xx_edac_init_csrows(struct mem_ctl_info *mci, u32 mcopt1) */ for (row = 0; row < mci->nr_csrows; row++) { - struct csrow_info *csi = &mci->csrows[row]; + struct csrow_info *csi = mci->csrows[row]; /* * Get the configuration settings for this -- 2.1.4