From: Andrew Morton <akpm@osdl.org>
To: benoit.boissinot@ens-lyon.fr
Cc: schwidefsky@de.ibm.com, linux-kernel@vger.kernel.org,
Benjamin LaHaise <bcrl@kvack.org>
Subject: Re: [PATCH] s390: fix invalid kmalloc flags
Date: Fri, 5 Aug 2005 17:36:29 -0700 [thread overview]
Message-ID: <20050805173629.78f3a0e6.akpm@osdl.org> (raw)
In-Reply-To: <20050806002603.GA29515@ens-lyon.fr>
benoit.boissinot@ens-lyon.fr wrote:
>
> 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);
No, GFP_DMA should work OK. Except GFP_DMA doesn't have __GFP_VALID set.
It's strange that this didn't get noticed earlier.
Ben, was there a reason for not giving GFP_DMA the treatment?
next prev parent reply other threads:[~2005-08-06 0:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-06 0:26 benoit.boissinot
2005-08-06 0:36 ` Andrew Morton [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050805173629.78f3a0e6.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=bcrl@kvack.org \
--cc=benoit.boissinot@ens-lyon.fr \
--cc=linux-kernel@vger.kernel.org \
--cc=schwidefsky@de.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®