diff options
Diffstat (limited to 'fs/hostfs/hostfs_user.c')
-rw-r--r-- | fs/hostfs/hostfs_user.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/hostfs/hostfs_user.c b/fs/hostfs/hostfs_user.c index b79424f93282..4b8c666ba28f 100644 --- a/fs/hostfs/hostfs_user.c +++ b/fs/hostfs/hostfs_user.c | |||
@@ -76,9 +76,9 @@ int file_type(const char *path, int *maj, int *min) | |||
76 | * about its definition. | 76 | * about its definition. |
77 | */ | 77 | */ |
78 | if (maj != NULL) | 78 | if (maj != NULL) |
79 | *maj = major(buf.st_rdev); | 79 | *maj = os_major(buf.st_rdev); |
80 | if (min != NULL) | 80 | if (min != NULL) |
81 | *min = minor(buf.st_rdev); | 81 | *min = os_minor(buf.st_rdev); |
82 | 82 | ||
83 | if (S_ISDIR(buf.st_mode)) | 83 | if (S_ISDIR(buf.st_mode)) |
84 | return OS_TYPE_DIR; | 84 | return OS_TYPE_DIR; |
@@ -361,7 +361,7 @@ int do_mknod(const char *file, int mode, unsigned int major, unsigned int minor) | |||
361 | { | 361 | { |
362 | int err; | 362 | int err; |
363 | 363 | ||
364 | err = mknod(file, mode, makedev(major, minor)); | 364 | err = mknod(file, mode, os_makedev(major, minor)); |
365 | if (err) | 365 | if (err) |
366 | return -errno; | 366 | return -errno; |
367 | return 0; | 367 | return 0; |