diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2010-06-15 07:21:11 -0400 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2010-08-07 12:15:32 -0400 |
commit | be7a12bb1a7dc185d5143e3ae434f8a855f66a31 (patch) | |
tree | 55dfe676befac46dad8f5c49157661ee48794733 /drivers/block/floppy.c | |
parent | 285203c8ff541a775f27148c06c58b96822d8b68 (diff) |
floppy: remove unnecessary inlines
These routines are all big enough that is better to let the compiler
decide to inline or not.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'drivers/block/floppy.c')
-rw-r--r-- | drivers/block/floppy.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c index 0cb24f00c920..7ba239e8f0dc 100644 --- a/drivers/block/floppy.c +++ b/drivers/block/floppy.c | |||
@@ -899,7 +899,7 @@ static int _lock_fdc(int drive, bool interruptible, int line) | |||
899 | _lock_fdc(drive, interruptible, __LINE__) | 899 | _lock_fdc(drive, interruptible, __LINE__) |
900 | 900 | ||
901 | /* unlocks the driver */ | 901 | /* unlocks the driver */ |
902 | static inline void unlock_fdc(void) | 902 | static void unlock_fdc(void) |
903 | { | 903 | { |
904 | unsigned long flags; | 904 | unsigned long flags; |
905 | 905 | ||
@@ -1224,7 +1224,7 @@ static int need_more_output(void) | |||
1224 | /* Set perpendicular mode as required, based on data rate, if supported. | 1224 | /* Set perpendicular mode as required, based on data rate, if supported. |
1225 | * 82077 Now tested. 1Mbps data rate only possible with 82077-1. | 1225 | * 82077 Now tested. 1Mbps data rate only possible with 82077-1. |
1226 | */ | 1226 | */ |
1227 | static inline void perpendicular_mode(void) | 1227 | static void perpendicular_mode(void) |
1228 | { | 1228 | { |
1229 | unsigned char perp_mode; | 1229 | unsigned char perp_mode; |
1230 | 1230 | ||
@@ -3033,7 +3033,7 @@ static inline int fd_copyin(void __user *param, void *address, | |||
3033 | return copy_from_user(address, param, size) ? -EFAULT : 0; | 3033 | return copy_from_user(address, param, size) ? -EFAULT : 0; |
3034 | } | 3034 | } |
3035 | 3035 | ||
3036 | static inline const char *drive_name(int type, int drive) | 3036 | static const char *drive_name(int type, int drive) |
3037 | { | 3037 | { |
3038 | struct floppy_struct *floppy; | 3038 | struct floppy_struct *floppy; |
3039 | 3039 | ||
@@ -3103,7 +3103,7 @@ static struct cont_t raw_cmd_cont = { | |||
3103 | .done = raw_cmd_done | 3103 | .done = raw_cmd_done |
3104 | }; | 3104 | }; |
3105 | 3105 | ||
3106 | static inline int raw_cmd_copyout(int cmd, void __user *param, | 3106 | static int raw_cmd_copyout(int cmd, void __user *param, |
3107 | struct floppy_raw_cmd *ptr) | 3107 | struct floppy_raw_cmd *ptr) |
3108 | { | 3108 | { |
3109 | int ret; | 3109 | int ret; |
@@ -3148,7 +3148,7 @@ static void raw_cmd_free(struct floppy_raw_cmd **ptr) | |||
3148 | } | 3148 | } |
3149 | } | 3149 | } |
3150 | 3150 | ||
3151 | static inline int raw_cmd_copyin(int cmd, void __user *param, | 3151 | static int raw_cmd_copyin(int cmd, void __user *param, |
3152 | struct floppy_raw_cmd **rcmd) | 3152 | struct floppy_raw_cmd **rcmd) |
3153 | { | 3153 | { |
3154 | struct floppy_raw_cmd *ptr; | 3154 | struct floppy_raw_cmd *ptr; |
@@ -3266,7 +3266,7 @@ static int invalidate_drive(struct block_device *bdev) | |||
3266 | return 0; | 3266 | return 0; |
3267 | } | 3267 | } |
3268 | 3268 | ||
3269 | static inline int set_geometry(unsigned int cmd, struct floppy_struct *g, | 3269 | static int set_geometry(unsigned int cmd, struct floppy_struct *g, |
3270 | int drive, int type, struct block_device *bdev) | 3270 | int drive, int type, struct block_device *bdev) |
3271 | { | 3271 | { |
3272 | int cnt; | 3272 | int cnt; |
@@ -3365,7 +3365,7 @@ static int ioctl_table[] = { | |||
3365 | FDTWADDLE | 3365 | FDTWADDLE |
3366 | }; | 3366 | }; |
3367 | 3367 | ||
3368 | static inline int normalize_ioctl(int *cmd, int *size) | 3368 | static int normalize_ioctl(int *cmd, int *size) |
3369 | { | 3369 | { |
3370 | int i; | 3370 | int i; |
3371 | 3371 | ||