From patchwork Wed Sep 20 19:10:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Serge Semin X-Patchwork-Id: 142644 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp4487063vqi; Wed, 20 Sep 2023 16:14:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHgmPNZ1X2qCjwKuyI60/MTFpjdw8gAUb8vlAr2jjZZK104C8xFUcx+Sa8surr+jydM+gB9 X-Received: by 2002:a05:6870:ec92:b0:1d5:a6ac:ac92 with SMTP id eo18-20020a056870ec9200b001d5a6acac92mr4486501oab.38.1695251683670; Wed, 20 Sep 2023 16:14:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695251683; cv=none; d=google.com; s=arc-20160816; b=QK+kUyjAUEMjCqlYU3v4NMGOkmm1AgK1x6rOqFas94f7stX6K5aBtN05BM5AzebyKy OoGNL7/rN4pEsx7bjIPxzNpow1eW86bkuy8pK0H4NLo6lzT6+1aroWjSnk9MVB9mB7FK xTqj4aMoUov0M61s6J2hktDIaVw1Jvg1Q2mzEHcrEq/BNWnCKApDhoiU9PdAt0t6g4No xQ3lyf3w7iKKep8LdqsZxIu87J4nXCmAoBMvuVASKkuOCDodpeFH7okJUlGea2swsI8U hqrgbFoOmLu90XMsa2d8TZGSJsMsuybMlsxV87Evj996/RXop+dlPx/5jp01s94wBbB8 SxeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=yHRQdHA2TrKcClwyZPJGHcHGoAWxrLE4S/rv0kc+7Gc=; fh=Dnqcu1G7YxMiPJ+rEGjOOR/MtvfjezykDSRJXQQtmAE=; b=G0HKuGLVggi8v5WjT5X70aXsJylVsG612mTX0RJpLgS5zWxafTEYAmZeAK3D7LQBVW N+YbC0teUpekMFjU+7pSMs4Hn4xd0iJmiWlYm8jiINRew/2GYifzSKBtOMcIeVvsbATB xvRCgAhBYpeT75DNzOWlb+tZx8IsxyG9+SnG9+1F5HmgiqyW3KhtfjdJWk/dFkqF5di5 0VzPKJfaUV6WaVKs0gzDZPBzt0TDzfwR2OzTFykEEuDK+/wuvY3hWVnoyAtBPoWAGqHV oTC/WULGyWVYi1tzSeK15r0aUbonjxNkm3a64gmaiYA42CacC/QtfyREE9ysZpm9XZHg 9PNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RFN2Ovla; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id w20-20020a63fb54000000b00557447d5721si86233pgj.768.2023.09.20.16.14.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 16:14:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RFN2Ovla; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id E981A8113EFB; Wed, 20 Sep 2023 12:12:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229966AbjITTMR (ORCPT + 27 others); Wed, 20 Sep 2023 15:12:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229909AbjITTMD (ORCPT ); Wed, 20 Sep 2023 15:12:03 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA5F6D6; Wed, 20 Sep 2023 12:11:46 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2c129cb7770so1103581fa.1; Wed, 20 Sep 2023 12:11:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695237105; x=1695841905; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=yHRQdHA2TrKcClwyZPJGHcHGoAWxrLE4S/rv0kc+7Gc=; b=RFN2OvlaiiPt0VMSzMfmqRTrF0/bTErVljiwg6yiYeB16mH4sjofHncyGdk+Eel8Du s6uonOBrlVeyxpexgXPdyR+Nf6hUUTuM9yYWiL1o/+S4L2Y7xsMCYcrn0Y2NNRy4q5E5 pxKw0I0D94UxqzMoKR4HlZJ12Vh3Ye2lU23K+34IwryhJXSViqc4zL77Hj50ftkLEVw/ iYZ2CM17gY5dNW3BuC1Cbfg6gscp+w94QyAZWfSCPKFWNp4F05KT8BM36Z8pIe4wd13w 8CKyAcEVDYfRGcBXv8SnwbFMXQD8PUFVpWhIh9DPRldQaquUCr3XqXr6E4fS+odkY7gk +h+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695237105; x=1695841905; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yHRQdHA2TrKcClwyZPJGHcHGoAWxrLE4S/rv0kc+7Gc=; b=Ne4aOICLAOXNjO45E4tC+uan+82xn9HTMbn/FqAXCHxgHk9H0b/zYWQLCTMKuYP1r3 JJV/W0IWM8e5/GVOvfgpjNF+55+DZDgARC4mpjdi6R171knTuYXaxQbtxmAb0XuH+SnR PvY2+6IjGWQtVyuMyHVNOP2GBkM3I3GPUhGK4wkOcMUsFeNv0i+bmO6wWdDPDBe9mYdt r8YSM72WutdRXSFhOiWn3Y7EJXEykQuZIPubHG/KG+cOuKiuM7AYRMiVWAu3NvsZozfY G3bAYerWheuzfpw3othAwH7ZgjXXZIkkPdhtR29pD5XwIrbe6u2lUAIrmLQK4ZNdxBau Q6Vg== X-Gm-Message-State: AOJu0YxO6vKOEdPMIXoM+IFCOYGiaNpSQidkVbYee8gHq054nLsIwus1 fFhlfBRObspDWY1eYRP7PZLvhh432ec= X-Received: by 2002:a2e:b5b7:0:b0:2c0:1ce3:c20c with SMTP id f23-20020a2eb5b7000000b002c01ce3c20cmr2389071ljn.3.1695237104782; Wed, 20 Sep 2023 12:11:44 -0700 (PDT) Received: from localhost ([178.176.81.97]) by smtp.gmail.com with ESMTPSA id s22-20020a2e81d6000000b002b9b90474c7sm79123ljg.129.2023.09.20.12.11.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 12:11:44 -0700 (PDT) From: Serge Semin To: Michal Simek , Alexander Stein , Borislav Petkov , Tony Luck , James Morse , Mauro Carvalho Chehab , Robert Richter Cc: Serge Semin , Punnaiah Choudary Kalluri , Dinh Nguyen , Arnd Bergmann , Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 09/20] EDAC/synopsys: Drop local to_mci() macro definition Date: Wed, 20 Sep 2023 22:10:33 +0300 Message-ID: <20230920191059.28395-10-fancer.lancer@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230920191059.28395-1-fancer.lancer@gmail.com> References: <20230920191059.28395-1-fancer.lancer@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 20 Sep 2023 12:12:29 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777600229594065266 X-GMAIL-MSGID: 1777600229594065266 The to_mci() macro was added in commit 1a81361f75d8 ("EDAC, synopsys: Add Error Injection support for ZynqMP DDR controller") together with the errors injection debug feature. It turns out the absolutely the same macro-function has already been defined in the edac_mc.h (former edac_core.h) header file. No idea why it was needed to have a local version of the macro, but there is no point in it now. Drop the local macro-function definition for good. Signed-off-by: Serge Semin --- drivers/edac/synopsys_edac.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/edac/synopsys_edac.c b/drivers/edac/synopsys_edac.c index c2ac2eb64642..0c6441719215 100644 --- a/drivers/edac/synopsys_edac.c +++ b/drivers/edac/synopsys_edac.c @@ -941,7 +941,6 @@ static const struct of_device_id synps_edac_match[] = { MODULE_DEVICE_TABLE(of, synps_edac_match); #ifdef CONFIG_EDAC_DEBUG -#define to_mci(k) container_of(k, struct mem_ctl_info, dev) /** * ddr_poison_setup - Update poison registers.