浏览代码

MIPS: math-emu: Cleanup stdarg usage including apparently bogus comment.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle 11 年之前
父节点
当前提交
1eaf198d3a
共有 4 个文件被更改,包括 4 次插入8 次删除
  1. 1 0
      arch/mips/math-emu/ieee754.c
  2. 1 8
      arch/mips/math-emu/ieee754.h
  3. 1 0
      arch/mips/math-emu/ieee754dp.c
  4. 1 0
      arch/mips/math-emu/ieee754sp.c

+ 1 - 0
arch/mips/math-emu/ieee754.c

@@ -28,6 +28,7 @@
  * ########################################################################
  */
 
+#include <stdarg.h>
 #include <linux/compiler.h>
 
 #include "ieee754int.h"

+ 1 - 8
arch/mips/math-emu/ieee754.h

@@ -24,6 +24,7 @@
 #ifndef __ARCH_MIPS_MATH_EMU_IEEE754_H
 #define __ARCH_MIPS_MATH_EMU_IEEE754_H
 
+#include <stdarg.h>
 #include <linux/compiler.h>
 #include <asm/byteorder.h>
 #include <linux/kernel.h>
@@ -31,14 +32,6 @@
 #include <linux/sched.h>
 #include <asm/bitfield.h>
 
-/*
- * Not very pretty, but the Linux kernel's normal va_list definition
- * does not allow it to be used as a structure element, as it is here.
- */
-#ifndef _STDARG_H
-#include <stdarg.h>
-#endif
-
 struct ieee754dp_const {
 	__BITFIELD_FIELD(unsigned sign:1,
 	__BITFIELD_FIELD(unsigned bexp:11,

+ 1 - 0
arch/mips/math-emu/ieee754dp.c

@@ -23,6 +23,7 @@
  * ########################################################################
  */
 
+#include <stdarg.h>
 #include <linux/compiler.h>
 
 #include "ieee754dp.h"

+ 1 - 0
arch/mips/math-emu/ieee754sp.c

@@ -23,6 +23,7 @@
  * ########################################################################
  */
 
+#include <stdarg.h>
 #include <linux/compiler.h>
 
 #include "ieee754sp.h"