aboutsummaryrefslogtreecommitdiff
path: root/util-linux/volume_id/volume_id.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/volume_id/volume_id.c')
-rw-r--r--util-linux/volume_id/volume_id.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/util-linux/volume_id/volume_id.c b/util-linux/volume_id/volume_id.c
index 590f51da9..4826c2e65 100644
--- a/util-linux/volume_id/volume_id.c
+++ b/util-linux/volume_id/volume_id.c
@@ -45,8 +45,8 @@
45#define ENABLE_FEATURE_VOLUMEID_UFS 0 45#define ENABLE_FEATURE_VOLUMEID_UFS 0
46 46
47 47
48typedef int (*raid_probe_fptr)(struct volume_id *id, /*uint64_t off,*/ uint64_t size); 48typedef int FAST_FUNC (*raid_probe_fptr)(struct volume_id *id, /*uint64_t off,*/ uint64_t size);
49typedef int (*probe_fptr)(struct volume_id *id /*, uint64_t off*/); 49typedef int FAST_FUNC (*probe_fptr)(struct volume_id *id /*, uint64_t off*/);
50 50
51static const raid_probe_fptr raid1[] = { 51static const raid_probe_fptr raid1[] = {
52#if ENABLE_FEATURE_VOLUMEID_LINUXRAID 52#if ENABLE_FEATURE_VOLUMEID_LINUXRAID
@@ -153,7 +153,7 @@ static const probe_fptr fs2[] = {
153#endif 153#endif
154}; 154};
155 155
156int volume_id_probe_all(struct volume_id *id, /*uint64_t off,*/ uint64_t size) 156int FAST_FUNC volume_id_probe_all(struct volume_id *id, /*uint64_t off,*/ uint64_t size)
157{ 157{
158 unsigned i; 158 unsigned i;
159 159
@@ -199,7 +199,7 @@ int volume_id_probe_all(struct volume_id *id, /*uint64_t off,*/ uint64_t size)
199} 199}
200 200
201/* open volume by device node */ 201/* open volume by device node */
202struct volume_id *volume_id_open_node(int fd) 202struct volume_id* FAST_FUNC volume_id_open_node(int fd)
203{ 203{
204 struct volume_id *id; 204 struct volume_id *id;
205 205
@@ -212,7 +212,7 @@ struct volume_id *volume_id_open_node(int fd)
212 212
213#ifdef UNUSED 213#ifdef UNUSED
214/* open volume by major/minor */ 214/* open volume by major/minor */
215struct volume_id *volume_id_open_dev_t(dev_t devt) 215struct volume_id* FAST_FUNC volume_id_open_dev_t(dev_t devt)
216{ 216{
217 struct volume_id *id; 217 struct volume_id *id;
218 char *tmp_node[VOLUME_ID_PATH_MAX]; 218 char *tmp_node[VOLUME_ID_PATH_MAX];
@@ -232,7 +232,7 @@ struct volume_id *volume_id_open_dev_t(dev_t devt)
232} 232}
233#endif 233#endif
234 234
235void free_volume_id(struct volume_id *id) 235void FAST_FUNC free_volume_id(struct volume_id *id)
236{ 236{
237 if (id == NULL) 237 if (id == NULL)
238 return; 238 return;