Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp968463ybl; Thu, 23 Jan 2020 11:03:23 -0800 (PST) X-Google-Smtp-Source: APXvYqxUIX8Mh2lUBmSgqFOPfDOnOu1NFEUQYFvxTb+fPXbdiOoJ1t0sUsYe6zu8Q9cPSFFt3mMx X-Received: by 2002:a05:6808:315:: with SMTP id i21mr11244130oie.139.1579806203503; Thu, 23 Jan 2020 11:03:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579806203; cv=none; d=google.com; s=arc-20160816; b=pw33HSnxEVnfKlobyc2h1m7oFSBnLe6g3iWUeg7HAkY5ev8NtACL7Dr+IE5iTzG42a ZvVkYAjhPicnS9J1nmmaUGUeBH2psM3G6FMNQO92hdN3DWvKHyG/R7XcoBeLt0Z6MiI1 gCfSD+A0pND7d+hWCKsNmIkN6kTVLPtzeBfaltZTrmRdX6SCuNVbEGbNXr3NqnzMXqQW baeOdmPr0pIeNoLKXP/RDSPUVbswoQljrChUgVYXwZSP6/ZWaeks+cXPgDp8LNCFBiNO bekBRQMaKh5X4qxt1gBPFHu3mx/Jt6c7W1fZ3reKoHL2S86l1+wR0Da6oMKwSjDJH/+N fsVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Nt//M5q2Q9TWsxmhNw8UKzCOzlThTZ5i017m2qqmo7g=; b=I/ai/E+B2TfO0Yl6tW1KvzRgg5cAisFv+vBb7fyiXOlWhczKsjr/EoE2LX05Rj96Ym upcNkOlChRKCkm1LUFdSUO6+YafHHMxLbc2mKpZDJIlhAUckiP3pWiAd+zbEkmo3xsNe PMR9BozS+5ChaQBmNvvm8598VQG1ALuoNSJJmcc6tnZv46TmnO4B3agY3mF2wPhno99d /HeKevEJUpTdN0/DjryUK9a8DYDfjF7A1Y5MTWfjxiLMqFlA+Url48x8mrORMvw2dbT4 /lMkP1j9hyPObL1kOr4K6p33E3XJLqDcUpegHW4SzUv7ipgGlz3CU1ndvZIcxw6+UYTH Gjpg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j18si1607241otq.275.2020.01.23.11.03.11; Thu, 23 Jan 2020 11:03:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729049AbgAWTCF (ORCPT + 99 others); Thu, 23 Jan 2020 14:02:05 -0500 Received: from mx2.suse.de ([195.135.220.15]:49418 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727022AbgAWTCF (ORCPT ); Thu, 23 Jan 2020 14:02:05 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 01FE2ABF6; Thu, 23 Jan 2020 19:02:02 +0000 (UTC) Subject: Re: [PATCH v3 02/10] EDAC/mc: Reorder functions edac_mc_alloc*() To: Robert Richter , Borislav Petkov , Mauro Carvalho Chehab , Tony Luck Cc: James Morse , Aristeu Rozanski , "linux-edac@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Mauro Carvalho Chehab References: <20200123090210.26933-1-rrichter@marvell.com> <20200123090210.26933-3-rrichter@marvell.com> From: Matthias Brugger Message-ID: <45ce6d35-6e07-8ff4-5f67-84adfcb44f14@suse.com> Date: Thu, 23 Jan 2020 20:02:00 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200123090210.26933-3-rrichter@marvell.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23/01/2020 10:02, Robert Richter wrote: > Reorder the new created functions edac_mc_alloc_csrows() and > edac_mc_alloc_dimms() and move them before edac_mc_alloc(). No further > code changes. > > Signed-off-by: Robert Richter > Reviewed-by: Mauro Carvalho Chehab > Acked-by: Aristeu Rozanski > --- > drivers/edac/edac_mc.c | 209 ++++++++++++++++++++--------------------- > 1 file changed, 103 insertions(+), 106 deletions(-) > > diff --git a/drivers/edac/edac_mc.c b/drivers/edac/edac_mc.c > index d71006a4f07b..1e227e69e216 100644 > --- a/drivers/edac/edac_mc.c > +++ b/drivers/edac/edac_mc.c > @@ -311,112 +311,6 @@ static void mci_release(struct device *dev) > kfree(mci); > } > > -static int edac_mc_alloc_csrows(struct mem_ctl_info *mci); > -static int edac_mc_alloc_dimms(struct mem_ctl_info *mci); > - > -struct mem_ctl_info *edac_mc_alloc(unsigned int mc_num, > - unsigned int n_layers, > - struct edac_mc_layer *layers, > - unsigned int sz_pvt) > -{ [...] > - edac_dbg(1, "allocating %u bytes for mci data (%d %s, %d csrows/channels)\n", > - size, > - tot_dimms, > - per_rank ? "ranks" : "dimms", > - tot_csrows * tot_channels); > - > - mci = kzalloc(size, GFP_KERNEL); > - if (mci == NULL) > - return NULL; > - > - mci->dev.release = mci_release; > - device_initialize(&mci->dev); Seems like some leftovers in your working tree. Are you sure you created the patches against a clean upstream tree? Regards, Matthias