Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1746891ybg; Sat, 19 Oct 2019 01:37:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqzdmhJm4ECyKh2wGLjOM1QjsvsbSqvjalW+DauAsu/FaJwtWO+RIGWjS3yQXzGQUPD4ma31 X-Received: by 2002:a17:906:3797:: with SMTP id n23mr12443914ejc.284.1571474237405; Sat, 19 Oct 2019 01:37:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571474237; cv=none; d=google.com; s=arc-20160816; b=jRxztqei/wdTDqSolkO8jpBadJ3DDMGmB0ZHYDIgbhKfytFOFxUgaO9BKU5BnlD5uJ nGqHVDCGrnCWmAjXhCuK093qZTmhdN9/FKo8BpkZQk1AKnggyO2yFTOls5CCB98Y6OLu 6liHwDe1d1+S99hyPFRaFaQTV8ynIFHDZMKx8tfWocAKT+se4VYAgHDMuyDqco+XYwfT /0DhEvXaVGHDck6CHDacNFCY3Ta8CEcVNJKy6Z+FdItXeL8CfYmmcpdNqi0f5JeX9tJe 2iqs7XWZyHOa5w0QYYEgt7jwusFHXXAdYSHFRBK+Gl1N+symsg8W1LDNDgI7QcKj1/oL o13g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=7esAuS9B1CeiJHISC1IOGl3q5mWPrAP/1VkJSK7gZ00=; b=YaKZhOMPTNKqOq78tXD7UczWmNByZGiZkMJVS6a56w8DjPzpzRzj8Hd73vYkNkmKhN dEAcQe30WshHNXT8fAPTcxBiO1u9oq1BTHez38krwzkLPCE1g/etgGP3w5Ny+o3FwMny kLSxcuoGqE0Z/nEdWJxGMWTaV0bi/W3uIG4xp+2HPeWJYqiDAalIqbXZUFXOGQeLwXgZ NKlgiVuIaXSyohIQYkXvsZ2lD8k86BDKLM9qhLYgjR4hrumZ4lf9Artm5sKZsmvKBMmR bvQljGu+epe/V0mEMostYQ60KnQGN0DJKRMnl91t2ssbvsgbpVcISDo3T1SXg8lYTH10 nd4Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b47si5770771edc.45.2019.10.19.01.36.54; Sat, 19 Oct 2019 01:37:17 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408808AbfJRPmY (ORCPT + 99 others); Fri, 18 Oct 2019 11:42:24 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:55249 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728464AbfJRPmX (ORCPT ); Fri, 18 Oct 2019 11:42:23 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPA (Nemesis) id 1MMGVE-1iefOy3vpW-00JN2x; Fri, 18 Oct 2019 17:42:15 +0200 From: Arnd Bergmann To: Daniel Mack , Haojian Zhuang , Robert Jarzmik Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Linus Walleij , Arnd Bergmann Subject: [PATCH 01/46] ARM: pxa: split mach/generic.h Date: Fri, 18 Oct 2019 17:41:16 +0200 Message-Id: <20191018154201.1276638-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20191018154052.1276506-1-arnd@arndb.de> References: <20191018154052.1276506-1-arnd@arndb.de> M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k iXuMvRUEQWgcI/3gT54guvIEuitSDyehDWK8KwzHQApnkVzUZ3+7Bk7RiVdIo5+nbAtyviXKg tDd30zvyCrWdDSoLe8op6L0RmbI5nySrkijI9JvuFREP81peEn3MoVcf/mfB027BdZBk1QpYk nNMQ503PoGBx79gW3/zQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Only one declaration from this header is actually used in drivers, so move that one into the global location and leave everything else private. Signed-off-by: Arnd Bergmann --- arch/arm/mach-pxa/generic.h | 6 +----- arch/arm/mach-pxa/include/mach/generic.h | 6 +++++- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-pxa/generic.h b/arch/arm/mach-pxa/generic.h index 3b7873f8e1f8..67925d3ea026 100644 --- a/arch/arm/mach-pxa/generic.h +++ b/arch/arm/mach-pxa/generic.h @@ -7,6 +7,7 @@ */ #include +#include struct irq_data; @@ -71,8 +72,3 @@ extern unsigned pxa25x_get_clk_frequency_khz(int); #define pxa27x_get_clk_frequency_khz(x) (0) #endif -#ifdef CONFIG_PXA3xx -extern unsigned pxa3xx_get_clk_frequency_khz(int); -#else -#define pxa3xx_get_clk_frequency_khz(x) (0) -#endif diff --git a/arch/arm/mach-pxa/include/mach/generic.h b/arch/arm/mach-pxa/include/mach/generic.h index 665542e0c9e2..613f6a299d0d 100644 --- a/arch/arm/mach-pxa/include/mach/generic.h +++ b/arch/arm/mach-pxa/include/mach/generic.h @@ -1 +1,5 @@ -#include "../../generic.h" +#ifdef CONFIG_PXA3xx +extern unsigned pxa3xx_get_clk_frequency_khz(int); +#else +#define pxa3xx_get_clk_frequency_khz(x) (0) +#endif -- 2.20.0