From: Cornelia Huck <cohuck@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: Peter Maydell <peter.maydell@linaro.org>,
"Michael S. Tsirkin" <mst@redhat.com>,
QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] include: update Linux headers to 4.21/5.0
Date: Fri, 4 Jan 2019 09:38:50 +0100 [thread overview]
Message-ID: <20190104093850.043738c7.cohuck@redhat.com> (raw)
In-Reply-To: <714a115f-835b-0041-426b-d16f9439ebc1@redhat.com>
On Fri, 4 Jan 2019 09:07:23 +0100
Paolo Bonzini <pbonzini@redhat.com> wrote:
> On 03/01/19 20:26, Peter Maydell wrote:
> > On Thu, 3 Jan 2019 at 18:19, Michael S. Tsirkin <mst@redhat.com> wrote:
> >> I'd prefer the shell script part and the new vhost_types header which
> >> are actually reviewable to be split out to a separate patch.
> >
> > I agree that shell script changes should be their own patch.
> > My view is that a header-update commit should be entirely
> > and nothing but the automatically generated results of
> > running scripts/update-linux-headers.sh, with a commit
> > message that says "Generated by running update-linux-headers.sh
> > on upstream kernel commit xxxx".
>
> The problem with this approach is that the old script does not work with
> the new commit and the new script does not work with the old commit.
> Doing the update in the same commit as the script update means that it's
> clear from the commit message on which Linux commit you should run it
> (though in this case I should have specified 4.21-rc1 or 5.0-rc1).
In this case, just note that in the change log? I'd prefer to do it in
a single commit if there are dependencies.
> Another way would be to make Linux a submodule. Then you'd upgrade the
> submodule and the script in one commit, and then generate the headers at
> compile-time or release-time. This however wouldn't be as nice for
> users of the git repo. That's the reason why I went for the single
> commit, but of course I can split it and will in v2.
TBH: Just say no to that submodule idea :)
The need to adapt the script is rare enough for a simple note in the
change log to be sufficient if the change can't be split out.
next prev parent reply other threads:[~2019-01-04 8:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-03 17:51 [Qemu-devel] [PATCH] include: update Linux headers to 4.21/5.0 Paolo Bonzini
2019-01-03 18:18 ` Michael S. Tsirkin
2019-01-03 19:26 ` Peter Maydell
2019-01-04 8:07 ` Paolo Bonzini
2019-01-04 8:38 ` Cornelia Huck [this message]
2019-01-04 15:17 ` Michael S. Tsirkin
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=20190104093850.043738c7.cohuck@redhat.com \
--to=cohuck@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).