Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6039252ybi; Wed, 29 May 2019 01:45:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqx98Fmk8hQekCypW8XOknVMXNNIvfXxpTusVi+uOFg+EQNdQcqs6K/VOx062OKCMnL0KJw8 X-Received: by 2002:a17:90a:2ec3:: with SMTP id h3mr10676276pjs.101.1559119557620; Wed, 29 May 2019 01:45:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559119557; cv=none; d=google.com; s=arc-20160816; b=CEW89Tj6DHO3KkeKiAzNRqJkcLkvsXzRJ2WUcZ6Gec6UA3B8FSW3tHqMX920hV+qhL S65axHmhpS68cvjWnw8Xk5Q0Eih/PomdNSEuv9MIrjv2ZUsZ2is5MRnQIG78NnCg9tun c7C9WuZA2YOXmKlNzAO7phTW0eR2SIXATAi0OGzXHa8wMIb9epMaJ99xwugTSlRezyD9 ksyW81vQU1YKfPm16PWIJ+RgD3QwBpeaiUKcTDkBtqcoY72SGEfaQScVewIUlwt/Ef0a y++t7xGfpfXmg0rZThMisNVNOEAgw1hlLnNAf8PDkHfUdOcShSMcUQ2mLMOlL/9r4h6I GoWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :dkim-signature; bh=wzWksusEaTyX0Xqg/yKi2uWhEhxqWz63CbuF6f9E0Qk=; b=TQNJ7sAz9GC7RsWgXGBw1555S5ik5jcJfEcEFsfb4tdw3rB+vOZSWPmPEiD1iq+xgy U2hLUH9Xjn/H0HX8glXn6557AmZzOcxyyuUY+CUWnWt7szHPel+sD9beX8PN9VE9WxIJ XKM5VjIN/t+0CK0htEsf3I81E8CbI5m5y8FNHpS0e9t5nHN490AZPnKyjboBS12hkEuX Bq2iAMiMmu4xoxr38d49SXeZcNkUDQMomr3VHy/VZgVaW2nRx43i7Pwrc88oXsaoCFUT yyZnsqF9oBHk/1kzv90I0Mg7yxXa2gJ3UpcSS+YQ9MH2ThnUVrpWzaejmciI/ki5WD3Y FxYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0818 header.b=PeclCnA6; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector2-marvell-onmicrosoft-com header.b=HQhogKUj; 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=marvell.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i33si19102536pgl.159.2019.05.29.01.45.42; Wed, 29 May 2019 01:45:57 -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=@marvell.com header.s=pfpt0818 header.b=PeclCnA6; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector2-marvell-onmicrosoft-com header.b=HQhogKUj; 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=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726341AbfE2Ioc (ORCPT + 99 others); Wed, 29 May 2019 04:44:32 -0400 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]:49482 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726162AbfE2Io3 (ORCPT ); Wed, 29 May 2019 04:44:29 -0400 Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x4T8dpBF017806; Wed, 29 May 2019 01:44:19 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=wzWksusEaTyX0Xqg/yKi2uWhEhxqWz63CbuF6f9E0Qk=; b=PeclCnA6+pFzsa+zH4bB1fGAKk5ZgZ1pWjiUaboYtN6lhmId/njb+4IA7RQS4NuSTZdh 9dFSnxK4DHxzvZ25BlKQ3D84LR1kJOdr+13YLoFjaxJK0aX1LWDqcuPDaoyUS6GlsPGY IBd9Ib077b+M5DLWbFnjK6+EifMlDMfOLQnGF1f7injmiNdWTnU463NH/a6RxCeoGwsh lAci4PpMfBCZBAE8A/tyld/DXkChgl+49KFhcyRDoHiVt4wGl1RFe3mHs7KWVZQw3YQP YLiMMrEVL8rZO5wf+rpT6DSnxZ67OOvdFVCFaTbd4I9WOGdhFrO4ssWyMrX9rs6fKBqC mw== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0b-0016f401.pphosted.com with ESMTP id 2sskp88p4b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 29 May 2019 01:44:18 -0700 Received: from SC-EXCH02.marvell.com (10.93.176.82) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 29 May 2019 01:44:17 -0700 Received: from NAM03-CO1-obe.outbound.protection.outlook.com (104.47.40.59) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Wed, 29 May 2019 01:44:17 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector2-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wzWksusEaTyX0Xqg/yKi2uWhEhxqWz63CbuF6f9E0Qk=; b=HQhogKUjY+mr+uaNLIVZ5gH1uDzxZoQCYoH0dc5L/pFC2TX1/hYgUB0gkA26ebuE3cPPzyiDmW7nYxY4KSHMNsT8OipYQMnaeFbskMsJSo2iNGSLkb5/vFApvMD7G687uQlJ6jrRw4/uR7/tfZvxD71RX3z/TxHe+n5LG461hkU= Received: from MN2PR18MB3408.namprd18.prod.outlook.com (10.255.238.217) by MN2PR18MB3437.namprd18.prod.outlook.com (10.255.239.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1922.20; Wed, 29 May 2019 08:44:15 +0000 Received: from MN2PR18MB3408.namprd18.prod.outlook.com ([fe80::7c9a:f3bf:fe2e:fe4a]) by MN2PR18MB3408.namprd18.prod.outlook.com ([fe80::7c9a:f3bf:fe2e:fe4a%4]) with mapi id 15.20.1922.021; Wed, 29 May 2019 08:44:15 +0000 From: Robert Richter To: Borislav Petkov , Tony Luck , "James Morse" , Mauro Carvalho Chehab CC: "linux-edac@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Robert Richter Subject: [PATCH 05/21] EDAC: Introduce mci_for_each_dimm() iterator Thread-Topic: [PATCH 05/21] EDAC: Introduce mci_for_each_dimm() iterator Thread-Index: AQHVFfqyZ42X6bVw40qQR+81APMGEQ== Date: Wed, 29 May 2019 08:44:15 +0000 Message-ID: <20190529084344.28562-6-rrichter@marvell.com> References: <20190529084344.28562-1-rrichter@marvell.com> In-Reply-To: <20190529084344.28562-1-rrichter@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM6PR01CA0046.eurprd01.prod.exchangelabs.com (2603:10a6:20b:e0::23) To MN2PR18MB3408.namprd18.prod.outlook.com (2603:10b6:208:16c::25) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.20.1 x-originating-ip: [78.54.13.57] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6d80d6cc-c981-41cc-d3ab-08d6e411d489 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:MN2PR18MB3437; x-ms-traffictypediagnostic: MN2PR18MB3437: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:148; x-forefront-prvs: 0052308DC6 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(346002)(396003)(376002)(39860400002)(136003)(189003)(199004)(8936002)(4326008)(53936002)(50226002)(110136005)(107886003)(68736007)(36756003)(5660300002)(54906003)(11346002)(26005)(186003)(52116002)(2906002)(2616005)(476003)(446003)(6506007)(14454004)(66476007)(25786009)(478600001)(386003)(86362001)(486006)(81166006)(81156014)(8676002)(305945005)(316002)(7736002)(14444005)(256004)(99286004)(76176011)(6512007)(6436002)(73956011)(64756008)(66446008)(66556008)(66066001)(3846002)(66946007)(1076003)(6486002)(102836004)(71190400001)(71200400001)(6116002);DIR:OUT;SFP:1101;SCL:1;SRVR:MN2PR18MB3437;H:MN2PR18MB3408.namprd18.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: YtrkEShsXDpods6VL7CkS3LZzfiT0tv7nBxNTChJTaq7LqLc4D/hSZIlLfHD4OaeBugr3kBuQitKN3eGvYC1cB30+maqYmNOJUQ0s02LhoRrcNI1IapgjZKL/KOJAI+OjAQvABdaOT84BQ2wIfQEgxeSNHCmjwJKgJBc8lZ+w3QlMqDJBD1V9cRESP0x64lw+9US8dBSTtLy/dswkp8n8B6eKGCDUOAMM/PIkTkSLKubVzEDzsv9ISzWOEHRhToLFMHgyQRXZjnDniDs8G3KG3g63vOolglB3FHknzkKU/VBuzzeIrAmJ8r+bV6bjltMOaGe1PqHHwZdVodq7F5OoX+PLDtAegYHGI9lrh/Dv7aMsUGkDobFjgd8VOMhff/0PgodBaj/hR1woRaexK0QJQc46l6JyrLgm4IaW80HCl4= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 6d80d6cc-c981-41cc-d3ab-08d6e411d489 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 May 2019 08:44:15.5446 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: rrichter@marvell.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR18MB3437 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-05-29_05:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org TWFrZSBjb2RlIG1vcmUgcmVhZGFibGUgYnkgaW50cm9kdWNpbmcgYSBtY2lfZm9yX2VhY2hfZGlt bSgpIGl0ZXJhdG9yLg0KTm93LCB3ZSBqdXN0IGdldCBhIHBvaW50ZXIgdG8gYSBzdHJ1Y3QgZGlt bV9pbmZvLiBEaXJlY3QgYXJyYXkgYWNjZXNzDQp1c2luZyBhbiBpbmRleCBpcyBubyBsb25nZXIg bmVlZGVkIHRvIGl0ZXJhdGUuDQoNClNpZ25lZC1vZmYtYnk6IFJvYmVydCBSaWNodGVyIDxycmlj aHRlckBtYXJ2ZWxsLmNvbT4NCi0tLQ0KIGRyaXZlcnMvZWRhYy9lZGFjX21jLmMgICAgICAgfCAx OCArKysrKysrKysrLS0tLS0tLS0NCiBkcml2ZXJzL2VkYWMvZWRhY19tY19zeXNmcy5jIHwgMzQg KysrKysrKysrKysrKysrLS0tL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