diff options
author | Michael Holzheu <holzheu@de.ibm.com> | 2006-09-28 10:55:28 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2006-09-28 10:55:28 -0400 |
commit | 23c100d99c1dfd0bba49a63fb02a8f8fddad607b (patch) | |
tree | c937d041eea37d24997e0bcc0b385c07d8d541d5 /arch/s390/hypfs | |
parent | 925afbd6cbc0d5154710f00dc186518f396e04ec (diff) |
[S390] hypfs sparse warnings.
sparse complains, if we use bitwise operations on enums. Cast enum to
long in order to fix that problem!
Signed-off-by: Michael Holzheu <holzheu@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/hypfs')
-rw-r--r-- | arch/s390/hypfs/hypfs_diag.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/s390/hypfs/hypfs_diag.c b/arch/s390/hypfs/hypfs_diag.c index 75144efbb92b..684384f2b364 100644 --- a/arch/s390/hypfs/hypfs_diag.c +++ b/arch/s390/hypfs/hypfs_diag.c | |||
@@ -403,7 +403,8 @@ static void *diag204_get_buffer(enum diag204_format fmt, int *pages) | |||
403 | *pages = 1; | 403 | *pages = 1; |
404 | return diag204_alloc_rbuf(); | 404 | return diag204_alloc_rbuf(); |
405 | } else {/* INFO_EXT */ | 405 | } else {/* INFO_EXT */ |
406 | *pages = diag204(SUBC_RSI | INFO_EXT, 0, NULL); | 406 | *pages = diag204((unsigned long)SUBC_RSI | |
407 | (unsigned long)INFO_EXT, 0, NULL); | ||
407 | if (*pages <= 0) | 408 | if (*pages <= 0) |
408 | return ERR_PTR(-ENOSYS); | 409 | return ERR_PTR(-ENOSYS); |
409 | else | 410 | else |