Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp4926594ybx; Sun, 10 Nov 2019 03:41:34 -0800 (PST) X-Google-Smtp-Source: APXvYqzITAYC5SEFRIv+nTKLrfzr4l0h818Zy1L4sPzvTULlyTdhcdCfpK3jtRtEcVGtWaShKLOY X-Received: by 2002:a17:906:7e41:: with SMTP id z1mr17409883ejr.63.1573386094118; Sun, 10 Nov 2019 03:41:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573386094; cv=none; d=google.com; s=arc-20160816; b=dISXfNn6F+/PurLSQYio15UOvyvh8wfxYa6x/DetmB6OTOK+ONk1qXZAfn7yO6xQOL 4S7aF9508Dn0HlmWU7UI1UWa6AbC0aji7gLM6HUjbsWBqq+5ZbkBKqChWN8/qOnhg/9y HUK6DZiPvrYdLbAX1Uzm8OnXwbIgqStggxLBl+G5rUHlp7CIbFzCU7XRVxcIOOllC8Oc Ye9CPYzYYu22POE2fsZVI95aH7Fx/no5uDru0VQcmVJ8sCO7jvk92i2K/xs8IWXIai4v ytUpXyWZljaXrp7GB9qML9OjiFlGvbGgm6lnK7/VCrfwo4xtvSo4Zep5vmf/3trPNRXv o6xg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=q8TAlmP8ZTd6fsyEb4l2OyXP0kwpjVffA/Tm1c3pVpU=; b=KB5Ei+yDgO1YGprDArUqQ9Rl4F7mXuZeyvRNMWRMmD8jE3qXG1vHn22tHORjk9jPvs 0VDuyz5BL1IDziNEc+wU61HrtBsFk22GRUTbOLytuFp0zUIqgDj/j4uVy71WxhAdrLFZ l3d4UyBgzNIxOkGiLsgyI1SIYNv+VePC1H8wy/ol1jq1gbo3jhvTWfq+Qz4dh3xtaL23 t9dI4emn8tnvLArEZdjL1wg4AEyhFEMQrjPBoQlc/cUM0KIE6eavaPwYh9Dzoxjweh6s 2eaQNZZP6dv0YGLuTeQl6wP4ToVU26I7FOgt5wWFkOa9Fpn8eaAquHIS/kXAW/EY9C6B XjoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=m398mtAE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j5si8768891edc.195.2019.11.10.03.41.11; Sun, 10 Nov 2019 03:41:34 -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; dkim=pass header.i=@alien8.de header.s=dkim header.b=m398mtAE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726789AbfKJLhW (ORCPT + 99 others); Sun, 10 Nov 2019 06:37:22 -0500 Received: from mail.skyhub.de ([5.9.137.197]:56682 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726684AbfKJLhW (ORCPT ); Sun, 10 Nov 2019 06:37:22 -0500 Received: from zn.tnic (p200300EC2F26BB00DC95C53DC58BD1F9.dip0.t-ipconnect.de [IPv6:2003:ec:2f26:bb00:dc95:c53d:c58b:d1f9]) (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 813B81EC095C; Sun, 10 Nov 2019 12:37:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1573385836; 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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=q8TAlmP8ZTd6fsyEb4l2OyXP0kwpjVffA/Tm1c3pVpU=; b=m398mtAEp0tj6XvjqLKKkTzJeQbFbvELvW+eztEthlDbWg1egvCL85MpLbIQs/cvyoGx/v 2T7I9mpj8WjNyT5cV8nk1SEdryDkl7SUkfVotdxFbuUFC+UFZravZUUwhwJ4+eOuylaOI6 S1+PVuhWtneDpi7o4R8A1boamU8ak9g= Date: Sun, 10 Nov 2019 12:37:12 +0100 From: Borislav Petkov To: Robert Richter Cc: Mauro Carvalho Chehab , Tony Luck , James Morse , "linux-edac@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Mauro Carvalho Chehab Subject: Re: [PATCH v2 03/20] EDAC: Introduce mci_for_each_dimm() iterator Message-ID: <20191110113712.GA12627@zn.tnic> References: <20191106093239.25517-1-rrichter@marvell.com> <20191106093239.25517-4-rrichter@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191106093239.25517-4-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, Nov 06, 2019 at 09:33:07AM +0000, Robert Richter wrote: > @@ -702,6 +705,7 @@ EXPORT_SYMBOL_GPL(edac_get_owner); > int edac_mc_add_mc_with_groups(struct mem_ctl_info *mci, > const struct attribute_group **groups) > { > + struct dimm_info *dimm; > int ret = -EINVAL; > edac_dbg(0, "\n"); > drivers/edac/edac_mc.c: In function ‘edac_mc_add_mc_with_groups’: drivers/edac/edac_mc.c:711:20: warning: unused variable ‘dimm’ [-Wunused-variable] struct dimm_info *dimm; ^~~~ Pushing the declaration into the #ifdef CONFIG_EDAC_DEBUG block. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette