diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2010-06-08 12:58:09 -0400 |
---|---|---|
committer | Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com> | 2010-06-08 12:58:23 -0400 |
commit | c2f0e8c803ceba530060ec9bb9c74a06c2c3d833 (patch) | |
tree | 96ca1f44045c313c3c05d07df1bd9df2e6861554 /arch/s390 | |
parent | 3975d16760d4be7402d1067c548c30c427971331 (diff) |
[S390] appldata/extmem/kvm: add missing GFP_KERNEL flag
Add missing GFP flag to memory allocations. The part in cio only
changes a comment.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/appldata/appldata_os.c | 2 | ||||
-rw-r--r-- | arch/s390/kvm/kvm-s390.c | 2 | ||||
-rw-r--r-- | arch/s390/mm/extmem.c | 19 |
3 files changed, 12 insertions, 11 deletions
diff --git a/arch/s390/appldata/appldata_os.c b/arch/s390/appldata/appldata_os.c index 55c80ffd42b9..92f1cb745d69 100644 --- a/arch/s390/appldata/appldata_os.c +++ b/arch/s390/appldata/appldata_os.c | |||
@@ -181,7 +181,7 @@ static int __init appldata_os_init(void) | |||
181 | goto out; | 181 | goto out; |
182 | } | 182 | } |
183 | 183 | ||
184 | appldata_os_data = kzalloc(max_size, GFP_DMA); | 184 | appldata_os_data = kzalloc(max_size, GFP_KERNEL | GFP_DMA); |
185 | if (appldata_os_data == NULL) { | 185 | if (appldata_os_data == NULL) { |
186 | rc = -ENOMEM; | 186 | rc = -ENOMEM; |
187 | goto out; | 187 | goto out; |
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index 8093e6f47f49..ae3705816878 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c | |||
@@ -761,7 +761,7 @@ static int __init kvm_s390_init(void) | |||
761 | * to hold the maximum amount of facilites. On the other hand, we | 761 | * to hold the maximum amount of facilites. On the other hand, we |
762 | * only set facilities that are known to work in KVM. | 762 | * only set facilities that are known to work in KVM. |
763 | */ | 763 | */ |
764 | facilities = (unsigned long long *) get_zeroed_page(GFP_DMA); | 764 | facilities = (unsigned long long *) get_zeroed_page(GFP_KERNEL|GFP_DMA); |
765 | if (!facilities) { | 765 | if (!facilities) { |
766 | kvm_exit(); | 766 | kvm_exit(); |
767 | return -ENOMEM; | 767 | return -ENOMEM; |
diff --git a/arch/s390/mm/extmem.c b/arch/s390/mm/extmem.c index 6409fd57eb04..3cc95dd0a3a6 100644 --- a/arch/s390/mm/extmem.c +++ b/arch/s390/mm/extmem.c | |||
@@ -105,7 +105,7 @@ static int | |||
105 | dcss_set_subcodes(void) | 105 | dcss_set_subcodes(void) |
106 | { | 106 | { |
107 | #ifdef CONFIG_64BIT | 107 | #ifdef CONFIG_64BIT |
108 | char *name = kmalloc(8 * sizeof(char), GFP_DMA); | 108 | char *name = kmalloc(8 * sizeof(char), GFP_KERNEL | GFP_DMA); |
109 | unsigned long rx, ry; | 109 | unsigned long rx, ry; |
110 | int rc; | 110 | int rc; |
111 | 111 | ||
@@ -252,12 +252,13 @@ dcss_diag_translate_rc (int vm_rc) { | |||
252 | static int | 252 | static int |
253 | query_segment_type (struct dcss_segment *seg) | 253 | query_segment_type (struct dcss_segment *seg) |
254 | { | 254 | { |
255 | struct qin64 *qin = kmalloc (sizeof(struct qin64), GFP_DMA); | ||
256 | struct qout64 *qout = kmalloc (sizeof(struct qout64), GFP_DMA); | ||
257 | |||
258 | int diag_cc, rc, i; | ||
259 | unsigned long dummy, vmrc; | 255 | unsigned long dummy, vmrc; |
256 | int diag_cc, rc, i; | ||
257 | struct qout64 *qout; | ||
258 | struct qin64 *qin; | ||
260 | 259 | ||
260 | qin = kmalloc(sizeof(*qin), GFP_KERNEL | GFP_DMA); | ||
261 | qout = kmalloc(sizeof(*qout), GFP_KERNEL | GFP_DMA); | ||
261 | if ((qin == NULL) || (qout == NULL)) { | 262 | if ((qin == NULL) || (qout == NULL)) { |
262 | rc = -ENOMEM; | 263 | rc = -ENOMEM; |
263 | goto out_free; | 264 | goto out_free; |
@@ -286,7 +287,7 @@ query_segment_type (struct dcss_segment *seg) | |||
286 | copy data for the new format. */ | 287 | copy data for the new format. */ |
287 | if (segext_scode == DCSS_SEGEXT) { | 288 | if (segext_scode == DCSS_SEGEXT) { |
288 | struct qout64_old *qout_old; | 289 | struct qout64_old *qout_old; |
289 | qout_old = kzalloc(sizeof(struct qout64_old), GFP_DMA); | 290 | qout_old = kzalloc(sizeof(*qout_old), GFP_KERNEL | GFP_DMA); |
290 | if (qout_old == NULL) { | 291 | if (qout_old == NULL) { |
291 | rc = -ENOMEM; | 292 | rc = -ENOMEM; |
292 | goto out_free; | 293 | goto out_free; |
@@ -407,11 +408,11 @@ segment_overlaps_others (struct dcss_segment *seg) | |||
407 | static int | 408 | static int |
408 | __segment_load (char *name, int do_nonshared, unsigned long *addr, unsigned long *end) | 409 | __segment_load (char *name, int do_nonshared, unsigned long *addr, unsigned long *end) |
409 | { | 410 | { |
410 | struct dcss_segment *seg = kmalloc(sizeof(struct dcss_segment), | ||
411 | GFP_DMA); | ||
412 | int rc, diag_cc; | ||
413 | unsigned long start_addr, end_addr, dummy; | 411 | unsigned long start_addr, end_addr, dummy; |
412 | struct dcss_segment *seg; | ||
413 | int rc, diag_cc; | ||
414 | 414 | ||
415 | seg = kmalloc(sizeof(*seg), GFP_KERNEL | GFP_DMA); | ||
415 | if (seg == NULL) { | 416 | if (seg == NULL) { |
416 | rc = -ENOMEM; | 417 | rc = -ENOMEM; |
417 | goto out; | 418 | goto out; |