mirror of
https://github.com/torvalds/linux.git
synced 2024-09-21 15:33:19 +00:00
[S390] hypfs compiler warnings.
Add casts to avoid compiler warnings. Signed-off-by: Michael Holzheu <holzheu@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
f19bfb2c9b
commit
331c982d4a
|
@ -432,12 +432,14 @@ static int diag204_probe(void)
|
||||||
|
|
||||||
buf = diag204_get_buffer(INFO_EXT, &pages);
|
buf = diag204_get_buffer(INFO_EXT, &pages);
|
||||||
if (!IS_ERR(buf)) {
|
if (!IS_ERR(buf)) {
|
||||||
if (diag204(SUBC_STIB7 | INFO_EXT, pages, buf) >= 0) {
|
if (diag204((unsigned long)SUBC_STIB7 |
|
||||||
|
(unsigned long)INFO_EXT, pages, buf) >= 0) {
|
||||||
diag204_store_sc = SUBC_STIB7;
|
diag204_store_sc = SUBC_STIB7;
|
||||||
diag204_info_type = INFO_EXT;
|
diag204_info_type = INFO_EXT;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
if (diag204(SUBC_STIB6 | INFO_EXT, pages, buf) >= 0) {
|
if (diag204((unsigned long)SUBC_STIB6 |
|
||||||
|
(unsigned long)INFO_EXT, pages, buf) >= 0) {
|
||||||
diag204_store_sc = SUBC_STIB7;
|
diag204_store_sc = SUBC_STIB7;
|
||||||
diag204_info_type = INFO_EXT;
|
diag204_info_type = INFO_EXT;
|
||||||
goto out;
|
goto out;
|
||||||
|
@ -452,7 +454,8 @@ static int diag204_probe(void)
|
||||||
rc = PTR_ERR(buf);
|
rc = PTR_ERR(buf);
|
||||||
goto fail_alloc;
|
goto fail_alloc;
|
||||||
}
|
}
|
||||||
if (diag204(SUBC_STIB4 | INFO_SIMPLE, pages, buf) >= 0) {
|
if (diag204((unsigned long)SUBC_STIB4 |
|
||||||
|
(unsigned long)INFO_SIMPLE, pages, buf) >= 0) {
|
||||||
diag204_store_sc = SUBC_STIB4;
|
diag204_store_sc = SUBC_STIB4;
|
||||||
diag204_info_type = INFO_SIMPLE;
|
diag204_info_type = INFO_SIMPLE;
|
||||||
goto out;
|
goto out;
|
||||||
|
@ -476,7 +479,8 @@ static void *diag204_store(void)
|
||||||
buf = diag204_get_buffer(diag204_info_type, &pages);
|
buf = diag204_get_buffer(diag204_info_type, &pages);
|
||||||
if (IS_ERR(buf))
|
if (IS_ERR(buf))
|
||||||
goto out;
|
goto out;
|
||||||
if (diag204(diag204_store_sc | diag204_info_type, pages, buf) < 0)
|
if (diag204((unsigned long)diag204_store_sc |
|
||||||
|
(unsigned long)diag204_info_type, pages, buf) < 0)
|
||||||
return ERR_PTR(-ENOSYS);
|
return ERR_PTR(-ENOSYS);
|
||||||
out:
|
out:
|
||||||
return buf;
|
return buf;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user