mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] s390: fix invalid kmalloc flags
@ 2005-08-06  0:26 benoit.boissinot
  2005-08-06  0:36 ` Andrew Morton
  0 siblings, 1 reply; 5+ messages in thread
From: benoit.boissinot @ 2005-08-06  0:26 UTC (permalink / raw)
  To: schwidefsky; +Cc: Andrew Morton, linux-kernel

The following patch fixes the compilation (defconfig) of s390:

arch/s390/mm/built-in.o(.text+0x152c): In function `query_segment_type':
extmem.c: undefined reference to `__your_kmalloc_flags_are_not_valid'
arch/s390/mm/built-in.o(.text+0x19ec): In function `segment_load':
: undefined reference to `__your_kmalloc_flags_are_not_valid'


Signed-off-by: Benoit Boissinot <benoit.boissinot@ens-lyon.org>

--- a/arch/s390/mm/extmem.c	2005-08-06 01:32:56.000000000 +0200
+++ b/arch/s390/mm/extmem.c	2005-07-31 17:46:36.000000000 +0200
@@ -172,8 +172,8 @@ dcss_diag_translate_rc (int vm_rc) {
 static int
 query_segment_type (struct dcss_segment *seg)
 {
-	struct qin64  *qin = kmalloc (sizeof(struct qin64), GFP_DMA);
-	struct qout64 *qout = kmalloc (sizeof(struct qout64), GFP_DMA);
+	struct qin64  *qin = kmalloc (sizeof(struct qin64), GFP_DMA|GFP_KERNEL);
+	struct qout64 *qout = kmalloc (sizeof(struct qout64), GFP_DMA|GFP_KERNEL);
 
 	int diag_cc, rc, i;
 	unsigned long dummy, vmrc;
@@ -332,7 +332,7 @@ static int
 __segment_load (char *name, int do_nonshared, unsigned long *addr, unsigned long *end)
 {
 	struct dcss_segment *seg = kmalloc(sizeof(struct dcss_segment),
-			GFP_DMA);
+			GFP_DMA|GFP_KERNEL);
 	int dcss_command, rc, diag_cc;
 
 	if (seg == NULL) {

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-08-06  9:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-06  0:26 [PATCH] s390: fix invalid kmalloc flags benoit.boissinot
2005-08-06  0:36 ` Andrew Morton
2005-08-06  2:00   ` Benjamin LaHaise
2005-08-06  2:05     ` Andrew Morton
2005-08-06  9:15       ` [PATCH] fix invalid kmalloc flags (GFP_DMA alone) Benoit Boissinot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®