Skip to content

Commit

Permalink
MIPS: math-emu: Cleanup stdarg usage including apparently bogus comment.
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed May 23, 2014
1 parent 08f1faa commit 1eaf198
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
1 change: 1 addition & 0 deletions arch/mips/math-emu/ieee754.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
* ########################################################################
*/

#include <stdarg.h>
#include <linux/compiler.h>

#include "ieee754int.h"
Expand Down
9 changes: 1 addition & 8 deletions arch/mips/math-emu/ieee754.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,14 @@
#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>
#include <linux/types.h>
#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,
Expand Down
1 change: 1 addition & 0 deletions arch/mips/math-emu/ieee754dp.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* ########################################################################
*/

#include <stdarg.h>
#include <linux/compiler.h>

#include "ieee754dp.h"
Expand Down
1 change: 1 addition & 0 deletions arch/mips/math-emu/ieee754sp.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* ########################################################################
*/

#include <stdarg.h>
#include <linux/compiler.h>

#include "ieee754sp.h"
Expand Down

0 comments on commit 1eaf198

Please sign in to comment.