Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1196636pxv; Fri, 23 Jul 2021 02:17:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyN99Mmu8DrzIYeG+lsujbLPPHhGFuKA+hi50uGqhJBnfP6GBRVKMfrT/oSX3k9il+vBV5L X-Received: by 2002:a17:906:b796:: with SMTP id dt22mr3812794ejb.448.1627031824011; Fri, 23 Jul 2021 02:17:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627031824; cv=none; d=google.com; s=arc-20160816; b=KVOQjLlKZO6Kl3KQrzCuLbN3isjXpo8m/VknMmfT4jzUK6ITzfQOwsa/ZlFyIXCqQt weECNOIst4FTYKtUXdegf4h0ecOX30IRIYGdEE6Ze0q/HMvKC/B3Y0nFuxMswtbf8kvF UKNTdjG9Fo17Odi0G2VN527W1mILa98wdq0Hi2Rcbiy+VpZGNEVWMNURKuBhmLRWxzG3 WtaJhrQWwAdZAGnLMHqRuTnVZX4rRHU0kaM+gsQXV9iVuEnTZxhX4neAuHQf9S/rQtZz tnYTFm9cDo+f3hvuhsc6pNfU+gn7PeWF9ki1B5bfykk2tHG9XjeErweD2JKk3hcPicSy K/1g== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=WLJbKu0s49pAegBV+ky9Ma5xRSRqMAlhYecBNcJIMuQ=; b=u1GF3KgzDCrn4g3YJOAaQQbKOGgefHlqTPmucmfQrYWhcrDRgZBX9end+0v0tpTIII Y2sHvITVhpBf0VBIGQbQeEezHUhb/1HjiPeY6t0sk44PIS5nssMBnVIJM3UTamfQVgqA ld3Sf/TJ67ok/1xULGNZGwQ7HA9ibvDjZ7tDzGhpGXdINV1hiREQfSx7ClXVry7QkGAj p6I4WUzyqt4bc/nZu7fb/B2+HK1eLd7wVoX/YKk0rMrF3SUJdlUXzCsxbsCXvhKm8YcJ meSh5U78m+5XBxNQCqnv5GSMIxquyqapsCKMABGooX9mpX6tjHzQJJA344o1gTgN1H7J jecQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fzCplF2B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x2si31755309edr.188.2021.07.23.02.16.40; Fri, 23 Jul 2021 02:17:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fzCplF2B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232304AbhGWIeV (ORCPT + 99 others); Fri, 23 Jul 2021 04:34:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:53192 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231324AbhGWIeV (ORCPT ); Fri, 23 Jul 2021 04:34:21 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1977E60EE6; Fri, 23 Jul 2021 09:14:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627031695; bh=PYhOjM3U3L4syjEUWh9E0orHuZlWWi7EO4f1NsfaMUY=; h=From:To:Cc:Subject:Date:From; b=fzCplF2Bjn1zy2jXPaVFy34fo7tJvXvCmCxshY+AVvr91nVh4fU70y1jghUwxBXSC zqFRxA2z5L1i5J3OOC1LtbfSUzyLZfp7VrkKmcKDpoAqEtak6q4b3tVfYeHxZPRfvn GHWDaHJArvcojTVVcDx0V6pECRTPsYyhtvA0Nkv8NWYdQknfdzXkAwmE/jzg9ofzjK iquDyxq/yTn+jPUGrso+SRxT4YEufS2jxElASw5lf3pM6T1ygruHh94itxxS9sw3yw miD0QMFNR2vgECSQXwVcnK2D1cqpvy6cOTxazSZbMuVfkRqb1KVVF3z4yk+7Iv3ns/ 2saRI1+zWKcHQ== From: Arnd Bergmann To: Russell King , Shawn Guo , Sascha Hauer , Dong Aisheng , Yang Yingliang Cc: Arnd Bergmann , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: imx: fix imx_mmdc_probe build failure Date: Fri, 23 Jul 2021 11:14:42 +0200 Message-Id: <20210723091450.1694746-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann There are two definitions of imx_mmdc_probe(), the function just gained a third argument, but the empty macro did not get changed the same way: arch/arm/mach-imx/mmdc.c: In function 'imx_mmdc_probe': arch/arm/mach-imx/mmdc.c:575:63: error: macro "imx_mmdc_perf_init" passed 3 arguments, but takes just 2 575 | err = imx_mmdc_perf_init(pdev, mmdc_base, mmdc_ipg_clk); | ^ arch/arm/mach-imx/mmdc.c:537: note: macro "imx_mmdc_perf_init" defined here 537 | #define imx_mmdc_perf_init(pdev, mmdc_base) 0 | arch/arm/mach-imx/mmdc.c:575:15: error: 'imx_mmdc_perf_init' undeclared (first use in this function) 575 | err = imx_mmdc_perf_init(pdev, mmdc_base, mmdc_ipg_clk); | ^~~~~~~~~~~~~~~~~~ Fixes: f07ec8536580 ("ARM: imx: add missing clk_disable_unprepare()") Signed-off-by: Arnd Bergmann --- arch/arm/mach-imx/mmdc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/mmdc.c b/arch/arm/mach-imx/mmdc.c index 4a6f1359e1e9..5ee43acf3635 100644 --- a/arch/arm/mach-imx/mmdc.c +++ b/arch/arm/mach-imx/mmdc.c @@ -534,7 +534,7 @@ static int imx_mmdc_perf_init(struct platform_device *pdev, void __iomem *mmdc_b #else #define imx_mmdc_remove NULL -#define imx_mmdc_perf_init(pdev, mmdc_base) 0 +#define imx_mmdc_perf_init(pdev, mmdc_base, ipg_clk) 0 #endif static int imx_mmdc_probe(struct platform_device *pdev) -- 2.29.2