mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
[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>
This commit is contained in:
parent
925afbd6cb
commit
23c100d99c
@ -403,7 +403,8 @@ static void *diag204_get_buffer(enum diag204_format fmt, int *pages)
|
|||||||
*pages = 1;
|
*pages = 1;
|
||||||
return diag204_alloc_rbuf();
|
return diag204_alloc_rbuf();
|
||||||
} else {/* INFO_EXT */
|
} else {/* INFO_EXT */
|
||||||
*pages = diag204(SUBC_RSI | INFO_EXT, 0, NULL);
|
*pages = diag204((unsigned long)SUBC_RSI |
|
||||||
|
(unsigned long)INFO_EXT, 0, NULL);
|
||||||
if (*pages <= 0)
|
if (*pages <= 0)
|
||||||
return ERR_PTR(-ENOSYS);
|
return ERR_PTR(-ENOSYS);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user