Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp262731pxb; Wed, 18 Nov 2020 23:56:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJx+ggkT+6P1iNacjfyNpuzguXPJaKCfQzcUh7cwvhocBuMy45XBOswuunekM1pYDA8Y//o8 X-Received: by 2002:aa7:ca41:: with SMTP id j1mr30055225edt.295.1605772588112; Wed, 18 Nov 2020 23:56:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605772588; cv=none; d=google.com; s=arc-20160816; b=FUjJWhbKFIF7HnZh1mYSHHXw4CBF7JaO9ls164+GjJNLUrLL2fEazl1n+qsxTw+RKn tV1aZ41ujKHTX1fRT9BBVUUeRT/tbVVy3rhi3xXczgIQTH31Bin+HBvwooIzO7cohEEo hPh/LAmCjOnwk8cnFSXZIGLHFqEf08HnIQJiyXG8+Bx7cgYOnUVvvQ4G/tgCYmauqZjd ZA0z44YXUbMs6O2zK01cBuDfJPOOrkCK/TCW+vk/5lmg5wGbApAEczLjaJ1OKbs/RZYa Prza9NNPNqTbhQbbuj52Zi+1GCWgDuZ2dIuZJvYZ+16eiPoi3G5IxD9UQeocI6DA29nO hVIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=3ySoeIwRWPh/JY/6ZZUFIJsdZx49m6gakNwcxVQtX88=; b=t9xoJgfkKunFsaFImn1z4pkgLJLgHphqUSXm00HybAuoVoxnWbhKWmuS+x05YdPjYl aeuUhTY1f4qcTXDRqRyPYBKsR/wgytZQwkCXkDQeV/30lrp7eghfmAzkAx3dyZQPhqc2 A8UFX+7Rr7mTzxBso3xqzr64YwBgWvJUj7y3MMG3TyxhPB9R7wLDG10RpOQPD8tzOgUY LtLqwMN+P20ROQYK/Ok83PkDiQJx/HwN1TCJ2t5Ey3j+UEDxpaigpDGHqODJtLbyCLxx k2jH2/DnFOPpexz57HSIhcLnL/VJxus1BwcPjCpZF0UysQt7tvRvWmnDGsFCf8ykUBHZ Mycg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l25si17108060ejz.442.2020.11.18.23.56.05; Wed, 18 Nov 2020 23:56:28 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726355AbgKSHxJ (ORCPT + 99 others); Thu, 19 Nov 2020 02:53:09 -0500 Received: from mail.loongson.cn ([114.242.206.163]:35082 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726039AbgKSHxJ (ORCPT ); Thu, 19 Nov 2020 02:53:09 -0500 Received: from linux.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9AxutBdJLZf7JcSAA--.29651S3; Thu, 19 Nov 2020 15:53:02 +0800 (CST) From: Tiezhu Yang To: Thomas Bogendoerfer , Huacai Chen , Jiaxun Yang Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li Subject: [PATCH 1/2] MIPS: Remove cpu_has_6k_cache and cpu_has_8k_cache in cpu_cache_init() Date: Thu, 19 Nov 2020 15:53:00 +0800 Message-Id: <1605772381-25535-2-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1605772381-25535-1-git-send-email-yangtiezhu@loongson.cn> References: <1605772381-25535-1-git-send-email-yangtiezhu@loongson.cn> X-CM-TR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I0_Jr0_Gr1lIxAIcVC2z2 80aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7VUjwL03UUUUU== X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit 02cf2119684e ("Cleanup the mess in cpu_cache_init."), cpu_has_6k_cache and cpu_has_8k_cache have no user, r6k_cache_init() and r8k_cache_init() are not defined for over 15 years, just remove them. Signed-off-by: Tiezhu Yang --- arch/mips/include/asm/cpu-features.h | 2 -- arch/mips/mm/cache.c | 10 ---------- 2 files changed, 12 deletions(-) diff --git a/arch/mips/include/asm/cpu-features.h b/arch/mips/include/asm/cpu-features.h index f2e216e..336e02b 100644 --- a/arch/mips/include/asm/cpu-features.h +++ b/arch/mips/include/asm/cpu-features.h @@ -115,8 +115,6 @@ #ifndef cpu_has_3k_cache #define cpu_has_3k_cache __isa_lt_and_opt(1, MIPS_CPU_3K_CACHE) #endif -#define cpu_has_6k_cache 0 -#define cpu_has_8k_cache 0 #ifndef cpu_has_4k_cache #define cpu_has_4k_cache __isa_ge_or_opt(1, MIPS_CPU_4K_CACHE) #endif diff --git a/arch/mips/mm/cache.c b/arch/mips/mm/cache.c index 3e81ba0..ed99cde 100644 --- a/arch/mips/mm/cache.c +++ b/arch/mips/mm/cache.c @@ -203,21 +203,11 @@ void cpu_cache_init(void) r3k_cache_init(); } - if (cpu_has_6k_cache) { - extern void __weak r6k_cache_init(void); - - r6k_cache_init(); - } if (cpu_has_4k_cache) { extern void __weak r4k_cache_init(void); r4k_cache_init(); } - if (cpu_has_8k_cache) { - extern void __weak r8k_cache_init(void); - - r8k_cache_init(); - } if (cpu_has_tx39_cache) { extern void __weak tx39_cache_init(void); -- 2.1.0