mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
unix/getroot: remove unused MAJOR definition
We use major() everywhere, these definitions just add to confusion.
This commit is contained in:
1 parent
c1fbc26203
commit
dff8d0e3f5
1 file changed
-8
@@ -45,12 +45,6 @@
|
|||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
#include <sys/ioctl.h> /* ioctl */
|
#include <sys/ioctl.h> /* ioctl */
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
#ifndef MAJOR
|
|
||||||
# ifndef MINORBITS
|
|
||||||
# define MINORBITS 8
|
|
||||||
# endif /* ! MINORBITS */
|
|
||||||
# define MAJOR(dev) ((unsigned) ((dev) >> MINORBITS))
|
|
||||||
#endif /* ! MAJOR */
|
|
||||||
#ifndef FLOPPY_MAJOR
|
#ifndef FLOPPY_MAJOR
|
||||||
# define FLOPPY_MAJOR 2
|
# define FLOPPY_MAJOR 2
|
||||||
#endif /* ! FLOPPY_MAJOR */
|
#endif /* ! FLOPPY_MAJOR */
|
||||||
@@ -73,7 +67,6 @@
|
|||||||
#include <grub/emu/getroot.h>
|
#include <grub/emu/getroot.h>
|
||||||
|
|
||||||
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
||||||
# define MAJOR(dev) major(dev)
|
|
||||||
# define FLOPPY_MAJOR 2
|
# define FLOPPY_MAJOR 2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -90,7 +83,6 @@
|
|||||||
#endif /* defined(__NetBSD__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) */
|
#endif /* defined(__NetBSD__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) */
|
||||||
|
|
||||||
#if defined(__NetBSD__) || defined(__OpenBSD__)
|
#if defined(__NetBSD__) || defined(__OpenBSD__)
|
||||||
# define MAJOR(dev) major(dev)
|
|
||||||
# ifdef HAVE_GETRAWPARTITION
|
# ifdef HAVE_GETRAWPARTITION
|
||||||
# include <util.h> /* getrawpartition */
|
# include <util.h> /* getrawpartition */
|
||||||
# endif /* HAVE_GETRAWPARTITION */
|
# endif /* HAVE_GETRAWPARTITION */
|
||||||
|
|||||||
Reference in new issue
Block a user