Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2924085ybz; Mon, 27 Apr 2020 07:03:44 -0700 (PDT) X-Google-Smtp-Source: APiQypLrM+8VfrATm8Q25TA4pBU4G6LQVmqJWro9vcX/SLIr/YjsUvg6ZQZbIkoZ6vHD2Bbag35n X-Received: by 2002:aa7:cdce:: with SMTP id h14mr18274531edw.51.1587996224062; Mon, 27 Apr 2020 07:03:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587996224; cv=none; d=google.com; s=arc-20160816; b=hYZYulLCJ+TT17Fmg8J5YG6SFkelXwAEvNXv8yQpM6S8XJHtcmAseWiYQP31VUwhzm DAeD6WIJiFWGZwuniF+c7YqOJ1KA6qmpzV1fkzo2VDpkEc2xoYHB1ozuxLpZKh7YVdK+ HjMsnv2LInHVwRhD/vkx1E7o22VrxEePEkdxVinBTU4n50kQhRQTcuiWAoHcg/DDFEkh o7UjFAYjRnD5yExHdAzt91NtUDSfM1edkvhAovcIecfKum/k/4iEZ0OZhyitH1Q3uG0F Y/i+UC/hW8G41l3n73rwRHJXhzN8GPllypjikQgloD5vpZme9uyIuh5LtXO8ZtwuFLrk Gr/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=gQyJ11P5tivvLKUDiEhjBf0KP30jTDiuWezjtD55r5k=; b=WyJvkPFE7fIQ0I7W8FazEmDNC0p0Ibht+f0kSWmo+jaU+1c/tZq6t3riFa3fHy0KXT E/mRJWs65v67lTfcJqpmiPB3dFo/tdnzCtVZiEsOW8u4Y1cA6SpkBeVzfV/3o/Eq+Wdl RFPkxAOy+q0Ro97o2WS1I0eMFSSbNdAv+oFDtX50u7kjHO4nXWb2k6/nXGrDQGk4XGqV 3yJ/8hFmbzQUZCtg6hwCuH/Z2k2uC8W3r0+DW9zMF6H+PjJUoVSjV7t/8t3varlbmOds bV0QpmpBe4C5LczMfWaxQ1J10JhjE9m+CyCX0cs55btdwZYLfXQbdfNnpKaWpYbJn/Fe mZKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=o5I+3Fo2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z1si8125933edp.481.2020.04.27.07.02.55; Mon, 27 Apr 2020 07:03:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=o5I+3Fo2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727980AbgD0OBB (ORCPT + 99 others); Mon, 27 Apr 2020 10:01:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727933AbgD0OAw (ORCPT ); Mon, 27 Apr 2020 10:00:52 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADB8AC0610D5; Mon, 27 Apr 2020 07:00:51 -0700 (PDT) Received: from zn.tnic (p200300EC2F05F000ACB29DFFDE7AC3C9.dip0.t-ipconnect.de [IPv6:2003:ec:2f05:f000:acb2:9dff:de7a:c3c9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 051BC1EC0D21; Mon, 27 Apr 2020 16:00:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1587996050; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=gQyJ11P5tivvLKUDiEhjBf0KP30jTDiuWezjtD55r5k=; b=o5I+3Fo2V/A1ngZQovDfjFGfYcSHt3DEtamirS28hpdqSZcbVvoee+Wfc78mxWcFySh7p2 ckyceC3H4UoG0f1kaKF65y/TnkYlKxIrnv+AV7lXlC6YQDsU8tEBcJq54+EdP7ewHsiFyk QsP0skNBlv4+k5e8A8bD8K3fnhNZQxg= Date: Mon, 27 Apr 2020 16:00:43 +0200 From: Borislav Petkov To: Robert Richter Cc: Mauro Carvalho Chehab , Tony Luck , James Morse , Aristeu Rozanski , Matthias Brugger , linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 07/10] EDAC/ghes: Cleanup struct ghes_edac_dimm_fill, rename it to ghes_dimm_fill Message-ID: <20200427135923.GF11036@zn.tnic> References: <20200422115814.22205-1-rrichter@marvell.com> <20200422115814.22205-8-rrichter@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200422115814.22205-8-rrichter@marvell.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 22, 2020 at 01:58:11PM +0200, Robert Richter wrote: > The struct is used to store temporary data for the dmidecode callback. > Clean this up a bit: > > 1) Rename member count to index since this is what it is used for. > > 2) Move code close to ghes_edac_dmidecode() where it is used. > > 3) While at it, use edac_get_dimm_by_index(). > > Signed-off-by: Robert Richter > --- > drivers/edac/ghes_edac.c | 24 ++++++++++++------------ > 1 file changed, 12 insertions(+), 12 deletions(-) Ok except the commit title is wrong. And yes, pls keep it "dimm_fill" - short and sweet and without yet another "ghes" in the name. :) Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette