All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] MIPS: Fix a longstanding error in div64.h
@ 2021-04-06 11:24 Huacai Chen
  2021-04-06 12:42 ` H. Nikolaus Schaller
  2021-04-06 13:06 ` Thomas Bogendoerfer
  0 siblings, 2 replies; 10+ messages in thread
From: Huacai Chen @ 2021-04-06 11:24 UTC (permalink / raw)
  To: Thomas Bogendoerfer; +Cc: linux-mips, Jiaxun Yang, Huacai Chen, stable

Only 32bit kernel need __div64_32(), but commit c21004cd5b4cb7d479514d4
("MIPS: Rewrite <asm/div64.h> to work with gcc 4.4.0.") makes it depend
on 64bit kernel by mistake. This patch fix this longstanding error.

Fixes: c21004cd5b4cb7d479514d4 ("MIPS: Rewrite <asm/div64.h> to work with gcc 4.4.0.")
Cc: stable@vger.kernel.org
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
---
 arch/mips/include/asm/div64.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/include/asm/div64.h b/arch/mips/include/asm/div64.h
index dc5ea5736440..d199fe36eb46 100644
--- a/arch/mips/include/asm/div64.h
+++ b/arch/mips/include/asm/div64.h
@@ -11,7 +11,7 @@
 
 #include <asm-generic/div64.h>
 
-#if BITS_PER_LONG == 64
+#if BITS_PER_LONG == 32
 
 #include <linux/types.h>
 
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-04-09  7:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-06 11:24 [PATCH] MIPS: Fix a longstanding error in div64.h Huacai Chen
2021-04-06 12:42 ` H. Nikolaus Schaller
2021-04-06 14:49   ` Zhou Yanjie
2021-04-06 22:22     ` Maciej W. Rozycki
2021-04-07  1:27       ` Huacai Chen
2021-04-07 13:38         ` Maciej W. Rozycki
2021-04-08  4:56           ` Huacai Chen
2021-04-09  7:17             ` YunQiang Su
2021-04-06 13:06 ` Thomas Bogendoerfer
2021-04-07  0:40   ` Huacai Chen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.