mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
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:
@@ -34,10 +34,6 @@ do { printk("ELF - %s: " fmt, __func__ , ##args); } while (0)
|
||||
#define ELF_DPRINTF(fmt, args...) do { } while (0)
|
||||
#endif
|
||||
|
||||
#define NVRAM_ADDR_LO 0x74
|
||||
#define NVRAM_ADDR_HI 0x75
|
||||
#define NVRAM_DATA 0x77
|
||||
|
||||
static void
|
||||
transfer_control_to_elf( ulong elf_entry )
|
||||
{
|
||||
|
||||
@@ -23,7 +23,6 @@ static volatile unsigned char *serial_dev;
|
||||
/* Conversion routines to/from brg time constants from/to bits
|
||||
* per second.
|
||||
*/
|
||||
#define BRG_TO_BPS(brg, freq) ((freq) / 2 / ((brg) + 2))
|
||||
#define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2)
|
||||
|
||||
#ifdef CONFIG_DRIVER_ESCC_SUN
|
||||
|
||||
@@ -170,9 +170,6 @@ struct ext2_inode
|
||||
osd2; /* OS dependent 2 */
|
||||
};
|
||||
|
||||
/* linux/limits.h */
|
||||
#define NAME_MAX 255 /* # chars in a file name */
|
||||
|
||||
/* linux/posix_type.h */
|
||||
typedef long linux_off_t;
|
||||
|
||||
@@ -187,18 +184,6 @@ struct ext2_dir_entry
|
||||
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 */
|
||||
#define EXT2_SUPER_MAGIC 0xEF53 /* include/linux/ext2_fs.h */
|
||||
#define EXT2_ROOT_INO 2 /* include/linux/ext2_fs.h */
|
||||
|
||||
@@ -40,7 +40,6 @@
|
||||
#include "shared.h"
|
||||
#include "filesys.h"
|
||||
#include "iso9660.h"
|
||||
#define DEBUG_THIS 1
|
||||
#include "debug.h"
|
||||
|
||||
#if defined(__sparc__) || defined(__PPC__)
|
||||
|
||||
@@ -18,8 +18,6 @@
|
||||
#include "video_subr.h"
|
||||
|
||||
#define FONT_ADJ_HEIGHT (FONT_HEIGHT + 2)
|
||||
#define NCOLS 80
|
||||
#define NROWS 48
|
||||
|
||||
// Warning: will hang on purpose when encountering unknown codes
|
||||
//#define DEBUG_CONSOLE
|
||||
|
||||
Reference in New Issue
Block a user