From patchwork Tue Aug 5 14:27:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 4679281 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 59C719F375 for ; Tue, 5 Aug 2014 14:29:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DB7312018B for ; Tue, 5 Aug 2014 14:29:34 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 59EC020160 for ; Tue, 5 Aug 2014 14:29:31 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XEfiB-0005qf-TF; Tue, 05 Aug 2014 14:27:35 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XEfi8-0005ha-Ma for linux-arm-kernel@lists.infradead.org; Tue, 05 Aug 2014 14:27:33 +0000 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N9U00IX5859XE40@mailout4.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 05 Aug 2014 23:27:09 +0900 (KST) X-AuditID: cbfee61b-f79f86d00000144c-c7-53e0e9bde667 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 52.68.05196.DB9E0E35; Tue, 05 Aug 2014 23:27:09 +0900 (KST) Received: from amdc1032.localnet ([106.116.147.136]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N9U0029Q857U310@mmp2.samsung.com>; Tue, 05 Aug 2014 23:27:09 +0900 (KST) From: Bartlomiej Zolnierkiewicz To: Russell King Subject: [PATCH] ARM: remove unused/deprecated read_cpuid_part_number() Date: Tue, 05 Aug 2014 16:27:06 +0200 Message-id: <2694769.svrdKA2rqt@amdc1032> User-Agent: KMail/4.8.4 (Linux/3.2.0-54-generic-pae; KDE/4.8.5; i686; ; ) MIME-version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrPLMWRmVeSWpSXmKPExsVy+t9jQd29Lx8EG7y+L2ex6fE1VovLu+aw WUw/9pfNYvOHl2wOLB4tzT1sHneu7WHz2Lyk3uPzJrkAligum5TUnMyy1CJ9uwSujJvTJ7EX NPFWXFq3gbmBsZm7i5GTQ0LAROLs+olMELaYxIV769m6GLk4hASmM0pMnnmXEcJpYZJYdOgM O0gVm4CVxMT2VYwgtoiAnkTzxZlsIDazQKbEkqXPweLCAu4Sb79/B4uzCKhK9D1aDBbnFdCU 6Dl5HcwWFfCU2LF9JRtEXFDix+R7LBBz5CX27Z/KCmFrSazfeZxpAiPfLCRls5CUzUJStoCR eRWjaGpBckFxUnqukV5xYm5xaV66XnJ+7iZGcDA+k97BuKrB4hCjAAejEg+vgNr9YCHWxLLi ytxDjBIczEoivOy3HwQL8aYkVlalFuXHF5XmpBYfYpTmYFES5z3Yah0oJJCeWJKanZpakFoE k2Xi4JRqYDQTN9wnXnrkjXne1tYZx7I6VY6FV62WZtpd+yKER2ml8rY6D0+HWXu97v77ZfPQ 9k/XlO7zt97Kf9gWtnsh57+wvz1tTiVT9KTEes5bRkvWHfhSpl9dXxvEql+9Tnf3BoWlaj3H uZiT0p4JL7294UPltqg5fz6dDYkRYlZ+r+sS8evH5J3z9imxFGckGmoxFxUnAgD5ox+0QgIA AA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140805_072732_886960_5DE82D3E X-CRM114-Status: GOOD ( 11.33 ) X-Spam-Score: -5.7 (-----) Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Nicolas Pitre X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Commit af040ffc9ba1 ("ARM: make it easier to check the CPU part number correctly") has left (now unused in the upstream tree and marked as deprecated) read_cpuid_part_number() while changing the way it works (using the old function with the definitions will now always evaluate as false). This causes problems with porting older code to new kernels as the code compiles (with warnings but they are very easy to miss) but it can fail silently or work just fine depending on the used hardware. Remove unused/deprecated read_cpuid_part_number() so developers have to update their code during build time instead of running into tricky runtime problems later. Please see the commit af040ffc9ba1 for details on how to convert your old out-of-tree code to use read_cpuid_part() instead of read_cpuid_part_number(). Cc: Nicolas Pitre Signed-off-by: Bartlomiej Zolnierkiewicz Acked-by: Nicolas Pitre --- arch/arm/include/asm/cputype.h | 5 ----- 1 file changed, 5 deletions(-) Index: b/arch/arm/include/asm/cputype.h =================================================================== --- a/arch/arm/include/asm/cputype.h 2014-08-04 15:09:30.166988335 +0200 +++ b/arch/arm/include/asm/cputype.h 2014-08-05 15:40:03.793317783 +0200 @@ -182,11 +182,6 @@ static inline unsigned int __attribute_c return read_cpuid_id() & 0xff00fff0; } -static inline unsigned int __attribute_const__ __deprecated read_cpuid_part_number(void) -{ - return read_cpuid_id() & 0xFFF0; -} - static inline unsigned int __attribute_const__ xscale_cpu_arch_version(void) { return read_cpuid_id() & ARM_CPU_XSCALE_ARCH_MASK;