From patchwork Thu Jun 27 17:32:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Serge Semin X-Patchwork-Id: 13714940 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D4381C2BD09 for ; Thu, 27 Jun 2024 17:34:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=F+Uw3IgAb9IVTJOJNh2JjGljnjQMbkdW8wc0NmcHbiU=; b=2nLd//z+eQ2WDJzbJZzMguxiEE wQln05reCi7uCt/zeME4QahGWz9CHbhnQAiy4rzUUFHzgy6nkEoLOLVL4Nz7inWOZ/GQcHH7rRrsr 3KVh++Xf9S7VPzD/9M7dp1Ephsdhi9loFQescy7AkgQiGhq0M6VKEBNedkGCXQ1PBUayYGCVmVeAK f1bl/BfUyRIBobZeM8nQEeCKT3SNpDi9etsJpT8s2UIh4W+UsSr3j7YiPwp7jiGe7q3EUh3d/Nnmm +M/WcWUDj8v9kPeEIHVICbDizu9HXgafv6rjgH4//RhdG55f+7+J4vuQ6llfS1jZddew0mkwMf+P0 wKN2hrUA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMt0h-0000000BE5C-0TuN; Thu, 27 Jun 2024 17:34:15 +0000 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMszj-0000000BDSS-0NWf for linux-arm-kernel@lists.infradead.org; Thu, 27 Jun 2024 17:33:16 +0000 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2ee4ab4076bso7748171fa.0 for ; Thu, 27 Jun 2024 10:33:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719509593; x=1720114393; darn=lists.infradead.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=F+Uw3IgAb9IVTJOJNh2JjGljnjQMbkdW8wc0NmcHbiU=; b=ZvtwWpnZ3fWiL5TpWHzWzeippDwZ4fYJyO1gaMIX1jwQ1iu7thLrGrvLuNcpfftQQ5 bhtpYXqB7O8htl0CzFcahh6C3/63M8usy9MLzjQ77ReKADW7ZlTDGrdfqgUGL0/1YB6A xsjGnIHdCJHAvCpU+Z0FRwVqIigvakkFOp3RL8hxXtJedZDlSu75k/QjyNVW1bYXmqpJ PaOx+RiBgyQ/WsGpU0Ib/mrfJIVGGWL98jiYR9Vm35x6mtTTNrJ1IjV1Wha0+UyO1cAI BpMPNEOnvm4R7BkQBrZuzebkTYOUa6Vbo1c1wrgSlX3+XU/Wk12cAm+YxTOy6O2lXy8O NsNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719509593; x=1720114393; 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=F+Uw3IgAb9IVTJOJNh2JjGljnjQMbkdW8wc0NmcHbiU=; b=MMGhHdFsYv4i7Nwrl/ujto3VM3r98k35V25qUWwi3DkQOAhoVP4P6Ewm4g5SHTFhxv tv3xIPXMclj/aluVMRCe5Yx7hWgD3RaTU4ysKGU3fmuU/bujLh2KGXRrFNL09SrZhCO6 kv/mbYM1ebkT1qUomZ1Y+0fpmE1FCVJPd0CWvPgQfnRgyERnYTnI1Na/YXyxnVmyiCI0 Ks9XWJivD2LWeiccriQPzp5AS4UrNXEUxhBnxgwFGNmUMw51IGrnJK1HPpJfX6JXam+c k2natRGj3BqGCNKhRCl2ZC9BPdH6D6txencvuuuNDcWfm7UbotblkAFf8p4Ee1dfRn8t sG1w== X-Forwarded-Encrypted: i=1; AJvYcCWxEoBmTjpphAJ11OrJsCwCKHHVl2U5OhMHFbWXEPeJ7k22kJCECVMZO8WSLVJfaJvU6muC2XixSHncrRELiVFZipBquDRbxmxaXrJ8PL3ebkzORsU= X-Gm-Message-State: AOJu0YwkbwD/mOMNGbQSWw5E4p0EzEluuKSSVR3RihrVW29zE6hmxXnk RYOsO24YstaMKQHLYaeD52go/C9VUGVEJnB7fcLvu4uOLlkw0h9f X-Google-Smtp-Source: AGHT+IF1Fx4EAdZ921plT84eKS9IyWWDzNEDRNmYtPMmeAdtKnurY/J4deXF23iDXxe5jAvFtEVn6A== X-Received: by 2002:a2e:2e09:0:b0:2ec:51b2:2cba with SMTP id 38308e7fff4ca-2ee47dca15bmr10671811fa.0.1719509593114; Thu, 27 Jun 2024 10:33:13 -0700 (PDT) Received: from localhost ([213.79.110.82]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2ee4a34f66fsm3217771fa.30.2024.06.27.10.33.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jun 2024 10:33:12 -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 , Shubhrajyoti Datta , Arnd Bergmann , Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, Shubhrajyoti Datta Subject: [PATCH RESEND v6 07/18] EDAC/synopsys: Drop local to_mci() macro definition Date: Thu, 27 Jun 2024 20:32:14 +0300 Message-ID: <20240627173251.25718-8-fancer.lancer@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240627173251.25718-1-fancer.lancer@gmail.com> References: <20240627173251.25718-1-fancer.lancer@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240627_103315_243629_8962311E X-CRM114-Status: GOOD ( 12.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 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 Reviewed-by: Shubhrajyoti Datta --- 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 07aaf4562847..230818a3969e 100644 --- a/drivers/edac/synopsys_edac.c +++ b/drivers/edac/synopsys_edac.c @@ -940,7 +940,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.