linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
To: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: linux-mips@vger.kernel.org, philmd@linaro.org,
	sergei.shtylyov@gmail.com, aleksander.lobakin@intel.com
Subject: Re: [PATCH v2 01/12] MIPS: Move declaration of bcache ops to cache.c
Date: Fri, 24 Mar 2023 14:30:33 +0100	[thread overview]
Message-ID: <20230324133033.GA15949@alpha.franken.de> (raw)
In-Reply-To: <20230321104852.25284-2-jiaxun.yang@flygoat.com>

On Tue, Mar 21, 2023 at 10:48:41AM +0000, Jiaxun Yang wrote:
> bcache is not tied to CPU's cache interface. Just move those
> declaration to cache.c so it can be avaialble to CPU with all
> cache types.
> 
> Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
> ---
>  arch/mips/mm/c-r4k.c | 14 --------------
>  arch/mips/mm/cache.c | 17 +++++++++++++++++
>  2 files changed, 17 insertions(+), 14 deletions(-)
> 
> diff --git a/arch/mips/mm/c-r4k.c b/arch/mips/mm/c-r4k.c
> index a549fa98c2f4..fd660d5c5328 100644
> --- a/arch/mips/mm/c-r4k.c
> +++ b/arch/mips/mm/c-r4k.c
> @@ -110,20 +110,6 @@ static unsigned long dcache_size __read_mostly;
>  static unsigned long vcache_size __read_mostly;
>  static unsigned long scache_size __read_mostly;
>  
> -/*
> - * Dummy cache handling routines for machines without boardcaches
> - */
> -static void cache_noop(void) {}

/local/tbogendoerfer/korg/linux/arch/mips/mm/c-r4k.c: In function ‘r4k_blast_dcache_page_setup’:
/local/tbogendoerfer/korg/linux/arch/mips/mm/c-r4k.c:149:35: error: ‘cache_noop’ undeclared (first use in this function)
   r4k_blast_dcache_page = (void *)cache_noop;
                                   ^~~~~~~~~~

looks like you haven't compiled this for other board configs.

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]

  reply	other threads:[~2023-03-24 13:32 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-21 10:48 [PATCH v2 00/12] MIPS Virt board support Jiaxun Yang
2023-03-21 10:48 ` [PATCH v2 01/12] MIPS: Move declaration of bcache ops to cache.c Jiaxun Yang
2023-03-24 13:30   ` Thomas Bogendoerfer [this message]
2023-03-21 10:48 ` [PATCH v2 02/12] MIPS: smp-cps: Disable coherence setup for unsupported ISA Jiaxun Yang
2023-03-21 10:48 ` [PATCH v2 03/12] MIPS: mips-cm: Check availability of config registers Jiaxun Yang
2023-03-21 10:48 ` [PATCH v2 04/12] MIPS: Octeon: Opt-out 4k_cache feature Jiaxun Yang
2023-03-21 10:48 ` [PATCH v2 05/12] MIPS: cpu-features: Enable octeon_cache by cpu_type Jiaxun Yang
2023-03-21 10:48 ` [PATCH v2 06/12] MIPS: c-octeon: Provide alternative SMP cache flush function Jiaxun Yang
2023-03-24 13:31   ` Thomas Bogendoerfer
2023-03-21 10:48 ` [PATCH v2 07/12] MIPS: Octeon: Allow CVMSEG to be disabled Jiaxun Yang
2023-03-21 10:48 ` [PATCH v2 08/12] MIPS: Loongson: Move arch cflags to MIPS top level Makefile Jiaxun Yang
2023-03-21 10:48 ` [PATCH v2 09/12] MIPS: Loongson: Don't select platform features with CPU Jiaxun Yang
2023-03-21 10:48 ` [PATCH v2 10/12] MIPS: Octeon: Disable CVMSEG by default on other platforms Jiaxun Yang
2023-03-21 10:48 ` [PATCH v2 11/12] MIPS: Add board config for virt board Jiaxun Yang
2023-03-21 10:48 ` [PATCH v2 12/12] MIPS: generic: Enable all CPUs supported by virt board in Kconfig Jiaxun Yang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230324133033.GA15949@alpha.franken.de \
    --to=tsbogend@alpha.franken.de \
    --cc=aleksander.lobakin@intel.com \
    --cc=jiaxun.yang@flygoat.com \
    --cc=linux-mips@vger.kernel.org \
    --cc=philmd@linaro.org \
    --cc=sergei.shtylyov@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).