Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 294d6274 authored by Ralf Baechle's avatar Ralf Baechle
Browse files

MIPS: Delete redundant definition of SMP_CACHE_BYTES.



<linux/cache.h> already defines SMP_CACHE_BYTES as L1_CACHE_BYTES.

This change results in a build error in <asm/cpu-info.h> which directly
includes <asm/cache.h>.  Fix this by including <linux/cache.h> instead.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 4437637c
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -12,8 +12,6 @@
#define L1_CACHE_SHIFT		CONFIG_MIPS_L1_CACHE_SHIFT
#define L1_CACHE_BYTES		(1 << L1_CACHE_SHIFT)

#define SMP_CACHE_BYTES		L1_CACHE_BYTES

#define __read_mostly __attribute__((__section__(".data..read_mostly")))

#endif /* _ASM_CACHE_H */
+1 −2
Original line number Diff line number Diff line
@@ -12,10 +12,9 @@
#ifndef __ASM_CPU_INFO_H
#define __ASM_CPU_INFO_H

#include <linux/cache.h>
#include <linux/types.h>

#include <asm/cache.h>

/*
 * Descriptor for a cache
 */