|
|
a5bd9f6 |
From d99417e57a1c5fb1628cc7010a9deabf41786a18 Mon Sep 17 00:00:00 2001
|
|
|
a5bd9f6 |
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
|
|
|
a5bd9f6 |
Date: Sun, 10 Mar 2013 14:27:04 +0100
|
|
|
a5bd9f6 |
Subject: [PATCH 199/364] * grub-core/fs/fshelp.c
|
|
|
a5bd9f6 |
(grub_fshelp_log2blksize): Remove now unused function.
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
---
|
|
|
a5bd9f6 |
ChangeLog | 5 +++++
|
|
|
a5bd9f6 |
grub-core/fs/fshelp.c | 21 ---------------------
|
|
|
a5bd9f6 |
include/grub/fshelp.h | 4 ----
|
|
|
a5bd9f6 |
3 files changed, 5 insertions(+), 25 deletions(-)
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
diff --git a/ChangeLog b/ChangeLog
|
|
|
a5bd9f6 |
index 3b4b3b4..c604d8d 100644
|
|
|
a5bd9f6 |
--- a/ChangeLog
|
|
|
a5bd9f6 |
+++ b/ChangeLog
|
|
|
a5bd9f6 |
@@ -1,3 +1,8 @@
|
|
|
a5bd9f6 |
+2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
a5bd9f6 |
+
|
|
|
a5bd9f6 |
+ * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
|
|
|
a5bd9f6 |
+ function.
|
|
|
a5bd9f6 |
+
|
|
|
a5bd9f6 |
2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
* grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
|
|
|
a5bd9f6 |
diff --git a/grub-core/fs/fshelp.c b/grub-core/fs/fshelp.c
|
|
|
a5bd9f6 |
index d56e63f..6d6e71e 100644
|
|
|
a5bd9f6 |
--- a/grub-core/fs/fshelp.c
|
|
|
a5bd9f6 |
+++ b/grub-core/fs/fshelp.c
|
|
|
a5bd9f6 |
@@ -322,24 +322,3 @@ grub_fshelp_read_file (grub_disk_t disk, grub_fshelp_node_t node,
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
return len;
|
|
|
a5bd9f6 |
}
|
|
|
a5bd9f6 |
-
|
|
|
a5bd9f6 |
-unsigned int
|
|
|
a5bd9f6 |
-grub_fshelp_log2blksize (unsigned int blksize, unsigned int *pow)
|
|
|
a5bd9f6 |
-{
|
|
|
a5bd9f6 |
- int mod;
|
|
|
a5bd9f6 |
-
|
|
|
a5bd9f6 |
- *pow = 0;
|
|
|
a5bd9f6 |
- while (blksize > 1)
|
|
|
a5bd9f6 |
- {
|
|
|
a5bd9f6 |
- mod = blksize - ((blksize >> 1) << 1);
|
|
|
a5bd9f6 |
- blksize >>= 1;
|
|
|
a5bd9f6 |
-
|
|
|
a5bd9f6 |
- /* Check if it really is a power of two. */
|
|
|
a5bd9f6 |
- if (mod)
|
|
|
a5bd9f6 |
- return grub_error (GRUB_ERR_BAD_NUMBER,
|
|
|
a5bd9f6 |
- "the blocksize is not a power of two");
|
|
|
a5bd9f6 |
- (*pow)++;
|
|
|
a5bd9f6 |
- }
|
|
|
a5bd9f6 |
-
|
|
|
a5bd9f6 |
- return GRUB_ERR_NONE;
|
|
|
a5bd9f6 |
-}
|
|
|
a5bd9f6 |
diff --git a/include/grub/fshelp.h b/include/grub/fshelp.h
|
|
|
a5bd9f6 |
index 5c57236..3892304 100644
|
|
|
a5bd9f6 |
--- a/include/grub/fshelp.h
|
|
|
a5bd9f6 |
+++ b/include/grub/fshelp.h
|
|
|
a5bd9f6 |
@@ -77,8 +77,4 @@ EXPORT_FUNC(grub_fshelp_read_file) (grub_disk_t disk, grub_fshelp_node_t node,
|
|
|
a5bd9f6 |
grub_off_t filesize, int log2blocksize,
|
|
|
a5bd9f6 |
grub_disk_addr_t blocks_start);
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
-unsigned int
|
|
|
a5bd9f6 |
-EXPORT_FUNC(grub_fshelp_log2blksize) (unsigned int blksize,
|
|
|
a5bd9f6 |
- unsigned int *pow);
|
|
|
a5bd9f6 |
-
|
|
|
a5bd9f6 |
#endif /* ! GRUB_FSHELP_HEADER */
|
|
|
a5bd9f6 |
--
|
|
|
a5bd9f6 |
1.8.1.4
|
|
|
a5bd9f6 |
|