[OpenBIOS] r482 - in trunk/openbios-devel: arch/ppc/qemu drivers fs/grubfs modules

svn at openbios.org svn at openbios.org
Sat Mar 28 15:28:17 CET 2009


Author: blueswirl
Date: 2009-03-28 15:28:16 +0100 (Sat, 28 Mar 2009)
New Revision: 482

Modified:
   trunk/openbios-devel/arch/ppc/qemu/main.c
   trunk/openbios-devel/drivers/escc.c
   trunk/openbios-devel/fs/grubfs/fsys_ext2fs.c
   trunk/openbios-devel/fs/grubfs/fsys_iso9660.c
   trunk/openbios-devel/modules/console_common.c
Log:
Delete some unused macros detected with -Wp,-Wunused-macros use

Modified: trunk/openbios-devel/arch/ppc/qemu/main.c
===================================================================
--- trunk/openbios-devel/arch/ppc/qemu/main.c	2009-03-22 16:49:34 UTC (rev 481)
+++ trunk/openbios-devel/arch/ppc/qemu/main.c	2009-03-28 14:28:16 UTC (rev 482)
@@ -34,10 +34,6 @@
 #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 )
 {

Modified: trunk/openbios-devel/drivers/escc.c
===================================================================
--- trunk/openbios-devel/drivers/escc.c	2009-03-22 16:49:34 UTC (rev 481)
+++ trunk/openbios-devel/drivers/escc.c	2009-03-28 14:28:16 UTC (rev 482)
@@ -23,7 +23,6 @@
 /* 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

Modified: trunk/openbios-devel/fs/grubfs/fsys_ext2fs.c
===================================================================
--- trunk/openbios-devel/fs/grubfs/fsys_ext2fs.c	2009-03-22 16:49:34 UTC (rev 481)
+++ trunk/openbios-devel/fs/grubfs/fsys_ext2fs.c	2009-03-28 14:28:16 UTC (rev 482)
@@ -170,9 +170,6 @@
     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 @@
     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 */

Modified: trunk/openbios-devel/fs/grubfs/fsys_iso9660.c
===================================================================
--- trunk/openbios-devel/fs/grubfs/fsys_iso9660.c	2009-03-22 16:49:34 UTC (rev 481)
+++ trunk/openbios-devel/fs/grubfs/fsys_iso9660.c	2009-03-28 14:28:16 UTC (rev 482)
@@ -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__)

Modified: trunk/openbios-devel/modules/console_common.c
===================================================================
--- trunk/openbios-devel/modules/console_common.c	2009-03-22 16:49:34 UTC (rev 481)
+++ trunk/openbios-devel/modules/console_common.c	2009-03-28 14:28:16 UTC (rev 482)
@@ -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




More information about the OpenBIOS mailing list