From: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
To: kvm-ppc@vger.kernel.org
Subject: Re: [PATCH] kvm: external module: fix unifdef problem
Date: Mon, 27 Oct 2008 16:07:05 +0000 [thread overview]
Message-ID: <4905E729.1020301@linux.vnet.ibm.com> (raw)
In-Reply-To: <1224871854.9634.50.camel@localhost.localdomain>
Hi Avi,
Hollis and I discussed how to continue on that.
Atm the upstream code is broken for powerpc and your response is too
vague for me to extend our patch in some way.
So which way should we go? Will you apply (or should I resubmit ?)
Hollis patch for now to fix upstream for powerpc. And we/you extend it
later or what else would you prefer?
Avi Kivity wrote:
> Hollis Blanchard wrote:
>> Guys, I don't mind if you add new things that aren't enabled for other
>> architectures, but please try to be a little more careful about breaking
>> us.
>>
>> This patch results in the following on PowerPC:
>> mv $i $i.orig && unifdef -DCONFIG_POWERPC -UCONFIG_X86 IA64
>> $i.orig > $i; [ $? -le 2 ] && rm $i.orig; done
>> unifdef: can only do one file
>>
>>
>
> Aw.
>
>> Here's my proposed fix:
>>
>> kvm: external module: Treat NONARCH_CONFIG as a list, not a single item.
>>
>> Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
>>
>> diff --git a/kernel/Makefile b/kernel/Makefile
>> --- a/kernel/Makefile
>> +++ b/kernel/Makefile
>> @@ -25,8 +25,9 @@ _hack = mv $1 $1.orig && \
>> gawk -v version=$(version) -f $(ARCH_DIR)/hack-module.awk $1.orig \
>> | sed '/\#include/! s/\blapic\b/l_apic/g' > $1 && rm $1.orig
>>
>> +unifdef_uflags = $(foreach arch, $(NONARCH_CONFIG), -UCONFIG_$(arch))
>>
>
> $(patsubst ...), or even $(NONARCH_CONFIG:%=-UCONFIG_%)
>
> But I think NONARCH_CONFIG needs to be adjusted as well.
>
--
Grüsse / regards,
Christian Ehrhardt
IBM Linux Technology Center, Open Virtualization
next prev parent reply other threads:[~2008-10-27 16:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-24 18:10 [PATCH] kvm: external module: fix unifdef problem Hollis Blanchard
2008-10-26 12:38 ` Avi Kivity
2008-10-27 0:58 ` Sheng Yang
2008-10-27 16:07 ` Christian Ehrhardt [this message]
2008-10-27 16:29 ` Avi Kivity
2008-10-28 1:02 ` Zhang, Xiantao
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=4905E729.1020301@linux.vnet.ibm.com \
--to=ehrhardt@linux.vnet.ibm.com \
--cc=kvm-ppc@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.