Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4738imm; Thu, 30 Aug 2018 12:47:18 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdad0wMCxBrEHM2bnGtNN34xiTTyJhmvQJmzyB53HVCQVN74uf6TClJEzhEkGr9LaY5EWdap X-Received: by 2002:a62:9f4c:: with SMTP id g73-v6mr11992936pfe.142.1535658438181; Thu, 30 Aug 2018 12:47:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535658438; cv=none; d=google.com; s=arc-20160816; b=WgkAbMlhkNinjHtPIrZh/4G8umUkTIleLrVZ9kOGK1+5KO4pbdafyM4Vsp1dPoGkwp MJbeB5icO7dgmm8Ma4V5sw0aORmGYhGxz9SDeT8V2NRDV2wEahHD0k3HC7CaxtSkBzKq /a+bpTkV4BbjzjgUfG4Td7EvDhDy7s8py3n7pFROAkc+09gjc5UqrhpAplVUqvwp6lRs 868ngYzQ0VyjBKQ/4Kte37s5anAxY9KV/8/+oEVQz/At2jMI2SbL/v1MHUVN4bdnZgbY noPpEENRwXipp/sVxjtO/NMABl51Gwt5xmDuFLaMjveVFZbEMpqTYRu+XX4pWaGfHlfH 1PeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language:thread-index :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:dmarc-filter:dkim-signature :dkim-signature:arc-authentication-results; bh=1znNGIoBntWZ9TkBlDiF7yMYChqHk56ZcBbrD7hZm4A=; b=gim+P0kw75LSAz8eDIuMS8i90PA5VeLZT9vjp6paSSAFZRiplQgRGA5t/mi0/Y6KSX XB+cmXW/CZzpyuyqgio8CsW9F73M+ZukoTComitbwHMiGGC/AF9yOnA1ZEbnIEemkgGR v6ACOB9YWZnoskjgj8EMbmigVCcwiX04RoKAhbNptq2gqdF8Va/F6szROPys2xufUpzZ 4zmS6qAQ7E86ONm+uwP9EqaCYGKXQy0Hz8XLIPqht26dM4nmnvy9LUQSiOR/tjzVSZer 3T0AzQx9dK8STUvfzJFfPIjfi8m9C7yHdWErCOp+ZMBC/Br/6LWW7an+f4V4sY6wY1si OEHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Wa94dHJj; dkim=pass header.i=@codeaurora.org header.s=default header.b=Wa94dHJj; 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 93-v6si7424005plf.113.2018.08.30.12.47.02; Thu, 30 Aug 2018 12:47:18 -0700 (PDT) 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; dkim=pass header.i=@codeaurora.org header.s=default header.b=Wa94dHJj; dkim=pass header.i=@codeaurora.org header.s=default header.b=Wa94dHJj; 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 S1727482AbeH3XtI (ORCPT + 99 others); Thu, 30 Aug 2018 19:49:08 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:50100 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726959AbeH3XtI (ORCPT ); Thu, 30 Aug 2018 19:49:08 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 9B6CA60452; Thu, 30 Aug 2018 19:45:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1535658321; bh=Wf4WdTJf/AbQ5wx2UAHEmxf7/DU6zsY6AJUxWManmZw=; h=From:To:Cc:References:In-Reply-To:Subject:Date:From; b=Wa94dHJjfp1+qpIzWqVlCOCTGxJg2QC1P02n8JCVRjUTIs72ebJC1Xzx0DWCIETwm ijiH/kqQuqcFxF1cYsV9FJjONSZZxHmriuObV+hlX4XGKpfce6tSkls5xCHC/5mhiZ IqoQ0DDhlYt62F/y302tr52DS/24ixKxuGf8j0yo= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from WUFANW10 (c-71-205-14-210.hsd1.co.comcast.net [71.205.14.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: wufan@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 88C866037C; Thu, 30 Aug 2018 19:45:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1535658321; bh=Wf4WdTJf/AbQ5wx2UAHEmxf7/DU6zsY6AJUxWManmZw=; h=From:To:Cc:References:In-Reply-To:Subject:Date:From; b=Wa94dHJjfp1+qpIzWqVlCOCTGxJg2QC1P02n8JCVRjUTIs72ebJC1Xzx0DWCIETwm ijiH/kqQuqcFxF1cYsV9FJjONSZZxHmriuObV+hlX4XGKpfce6tSkls5xCHC/5mhiZ IqoQ0DDhlYt62F/y302tr52DS/24ixKxuGf8j0yo= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 88C866037C Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=wufan@codeaurora.org From: "wufan" To: "'Tyler Baicar'" Cc: , "'Borislav Petkov'" , "'James Morse'" , , "'Linux Kernel Mailing List'" , "'arm-mail-list'" , , References: <1535654266-40053-1-git-send-email-wufan@codeaurora.org> In-Reply-To: Subject: RE: [PATCH v2] EDAC, ghes: use CPER module handles to locate DIMMs Date: Thu, 30 Aug 2018 13:45:19 -0600 Message-ID: <001901d44099$fc8d7550$f5a85ff0$@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQIwN43o3rGm5KlibLHCDVEy4C+DsgF7LWjApBTrNgA= Content-Language: en-us Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tyler, > > +static int get_dimm_smbios_index(u16 handle) { > > + struct mem_ctl_info *mci; > > + int i; > > + > > + mci = ghes_pvt->mci; > > + > > Minor nit: you could define and set mci in the same line to save some space > here. > > Otherwise this patch looks good to me. Good catch Tyler! I'll fix it. Thanks, Fan > Reviewed-by: Tyler Baicar