Delete some unused macros detected with -Wp,-Wunused-macros use

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@482 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Blue Swirl
2009-03-28 14:28:16 +00:00
parent e44d994605
commit a0c398f24b
5 changed files with 0 additions and 23 deletions

View File

@@ -34,10 +34,6 @@ do { printk("ELF - %s: " fmt, __func__ , ##args); } while (0)
#define ELF_DPRINTF(fmt, args...) do { } while (0) #define ELF_DPRINTF(fmt, args...) do { } while (0)
#endif #endif
#define NVRAM_ADDR_LO 0x74
#define NVRAM_ADDR_HI 0x75
#define NVRAM_DATA 0x77
static void static void
transfer_control_to_elf( ulong elf_entry ) transfer_control_to_elf( ulong elf_entry )
{ {

View File

@@ -23,7 +23,6 @@ static volatile unsigned char *serial_dev;
/* Conversion routines to/from brg time constants from/to bits /* Conversion routines to/from brg time constants from/to bits
* per second. * per second.
*/ */
#define BRG_TO_BPS(brg, freq) ((freq) / 2 / ((brg) + 2))
#define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2)
#ifdef CONFIG_DRIVER_ESCC_SUN #ifdef CONFIG_DRIVER_ESCC_SUN

View File

@@ -170,9 +170,6 @@ struct ext2_inode
osd2; /* OS dependent 2 */ osd2; /* OS dependent 2 */
}; };
/* linux/limits.h */
#define NAME_MAX 255 /* # chars in a file name */
/* linux/posix_type.h */ /* linux/posix_type.h */
typedef long linux_off_t; typedef long linux_off_t;
@@ -187,18 +184,6 @@ struct ext2_dir_entry
char name[EXT2_NAME_LEN]; /* File name */ char name[EXT2_NAME_LEN]; /* File name */
}; };
/* linux/ext2fs.h */
/*
* EXT2_DIR_PAD defines the directory entries boundaries
*
* NOTE: It must be a multiple of 4
*/
#define EXT2_DIR_PAD 4
#define EXT2_DIR_ROUND (EXT2_DIR_PAD - 1)
#define EXT2_DIR_REC_LEN(name_len) (((name_len) + 8 + EXT2_DIR_ROUND) & \
~EXT2_DIR_ROUND)
/* ext2/super.c */ /* ext2/super.c */
#define EXT2_SUPER_MAGIC 0xEF53 /* include/linux/ext2_fs.h */ #define EXT2_SUPER_MAGIC 0xEF53 /* include/linux/ext2_fs.h */
#define EXT2_ROOT_INO 2 /* include/linux/ext2_fs.h */ #define EXT2_ROOT_INO 2 /* include/linux/ext2_fs.h */

View File

@@ -40,7 +40,6 @@
#include "shared.h" #include "shared.h"
#include "filesys.h" #include "filesys.h"
#include "iso9660.h" #include "iso9660.h"
#define DEBUG_THIS 1
#include "debug.h" #include "debug.h"
#if defined(__sparc__) || defined(__PPC__) #if defined(__sparc__) || defined(__PPC__)

View File

@@ -18,8 +18,6 @@
#include "video_subr.h" #include "video_subr.h"
#define FONT_ADJ_HEIGHT (FONT_HEIGHT + 2) #define FONT_ADJ_HEIGHT (FONT_HEIGHT + 2)
#define NCOLS 80
#define NROWS 48
// Warning: will hang on purpose when encountering unknown codes // Warning: will hang on purpose when encountering unknown codes
//#define DEBUG_CONSOLE //#define DEBUG_CONSOLE