diff options
| author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2007-07-10 05:24:17 -0400 |
|---|---|---|
| committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2007-07-10 05:24:50 -0400 |
| commit | 3d62149f025134cd69c2fef2a2ccfac3c3c2054f (patch) | |
| tree | 3c70a6e10171f817790c1b3783e791342fb6e659 | |
| parent | 048d5ce6828b9071e241254c7dba13d67bfef2c3 (diff) | |
[S390] dasd: Avoid compile warnings on !CONFIG_DASD_PROFILE
drivers/s390/block/dasd_proc.c:33:
warning: 'dasd_get_user_string' defined but not used
drivers/s390/block/dasd_proc.c:172:
warning: 'dasd_statistics_array' defined but not used
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
| -rw-r--r-- | drivers/s390/block/dasd_proc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/s390/block/dasd_proc.c b/drivers/s390/block/dasd_proc.c index 8b3b0f4a157c..ac7e8ef504cb 100644 --- a/drivers/s390/block/dasd_proc.c +++ b/drivers/s390/block/dasd_proc.c | |||
| @@ -28,6 +28,7 @@ static struct proc_dir_entry *dasd_proc_root_entry = NULL; | |||
| 28 | static struct proc_dir_entry *dasd_devices_entry = NULL; | 28 | static struct proc_dir_entry *dasd_devices_entry = NULL; |
| 29 | static struct proc_dir_entry *dasd_statistics_entry = NULL; | 29 | static struct proc_dir_entry *dasd_statistics_entry = NULL; |
| 30 | 30 | ||
| 31 | #ifdef CONFIG_DASD_PROFILE | ||
| 31 | static char * | 32 | static char * |
| 32 | dasd_get_user_string(const char __user *user_buf, size_t user_len) | 33 | dasd_get_user_string(const char __user *user_buf, size_t user_len) |
| 33 | { | 34 | { |
| @@ -47,6 +48,7 @@ dasd_get_user_string(const char __user *user_buf, size_t user_len) | |||
| 47 | buffer[user_len] = 0; | 48 | buffer[user_len] = 0; |
| 48 | return buffer; | 49 | return buffer; |
| 49 | } | 50 | } |
| 51 | #endif /* CONFIG_DASD_PROFILE */ | ||
| 50 | 52 | ||
| 51 | static int | 53 | static int |
| 52 | dasd_devices_show(struct seq_file *m, void *v) | 54 | dasd_devices_show(struct seq_file *m, void *v) |
| @@ -167,6 +169,7 @@ dasd_calc_metrics(char *page, char **start, off_t off, | |||
| 167 | return len; | 169 | return len; |
| 168 | } | 170 | } |
| 169 | 171 | ||
| 172 | #ifdef CONFIG_DASD_PROFILE | ||
| 170 | static char * | 173 | static char * |
| 171 | dasd_statistics_array(char *str, unsigned int *array, int shift) | 174 | dasd_statistics_array(char *str, unsigned int *array, int shift) |
| 172 | { | 175 | { |
| @@ -180,6 +183,7 @@ dasd_statistics_array(char *str, unsigned int *array, int shift) | |||
| 180 | str += sprintf(str,"\n"); | 183 | str += sprintf(str,"\n"); |
| 181 | return str; | 184 | return str; |
| 182 | } | 185 | } |
| 186 | #endif /* CONFIG_DASD_PROFILE */ | ||
| 183 | 187 | ||
| 184 | static int | 188 | static int |
| 185 | dasd_statistics_read(char *page, char **start, off_t off, | 189 | dasd_statistics_read(char *page, char **start, off_t off, |
