From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: Amit Shah <amit.shah-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: [PATCH] KVM external module: Fix 'make sync'
Date: Fri, 30 Nov 2007 09:32:13 +0200 [thread overview]
Message-ID: <474FBC7D.4000604@qumranet.com> (raw)
In-Reply-To: <200711290313.33433.amit.shah-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
Amit Shah wrote:
> From a60dc9bddf8741743077db07f87dd1cec51bccb5 Mon Sep 17 00:00:00 2001
> From: Amit Shah <amit.shah-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
> Date: Thu, 29 Nov 2007 03:11:15 +0530
> Subject: [PATCH] KVM external module: Fix 'make sync'
>
> bash syntax didn't work for me (3.2.25 on Kubuntu)
>
>
Ah, bash isn't the default shell there.
> ic/g' > $1 && rm $1.orig
>
> unifdef = mv $1 $1.orig && \
> - unifdef -DCONFIG_X86 $1.orig > $1; (( $$? <= 1 )) && rm $1.orig
> + unifdef -DCONFIG_X86 $1.orig > $1; \
> + if [ $$? -lt 2 ]; then rm $1.orig; fi;
>
>
The intent of the original code was to fail unifdef was not present, not
to conditionalize removal (unifdef returns 1 on no change, so we need to
test the error code explicitly).
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
prev parent reply other threads:[~2007-11-30 7:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-28 21:43 [PATCH] KVM external module: Fix 'make sync' Amit Shah
[not found] ` <200711290313.33433.amit.shah-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-11-30 7:32 ` Avi Kivity [this message]
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=474FBC7D.4000604@qumranet.com \
--to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
--cc=amit.shah-atKUWr5tajBWk0Htik3J/w@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.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.