diff mbox

[PULL,00/41] Chr split patches

Message ID CAJ+F1CJzchr6f9nfCsHyOUFmz-08e4R-8BLi4QWc3q0h0+9Quw@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Marc-André Lureau Jan. 31, 2017, 6:55 p.m. UTC
Hi!

On Tue, Jan 31, 2017 at 10:42 PM Peter Maydell <peter.maydell@linaro.org>
wrote:

> On 31 January 2017 at 16:20, Marc-André Lureau
> <marcandre.lureau@redhat.com> wrote:
> > The following changes since commit
> a0def594286d9110a6035e02eef558cf3cf5d847:
> >
> >   Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into
> staging (2017-01-30 10:23:20 +0000)
> >
> > are available in the git repository at:
> >
> >   https://github.com/elmarco/qemu.git tags/chr-split-pull-request
> >
> > for you to fetch changes up to 3766519be2843e0947425cafd1e7e205dd63f0fd:
> >
> >   char: headers clean-up (2017-01-31 13:03:48 +0400)
> >
> > ----------------------------------------------------------------
> >
>
> 'make check' fails on a linux-user-targets-only build:
>
> tests/test-char.o: In function `char_stdio_test_subprocess':
> /home/petmay01/linaro/qemu-for-merges/tests/test-char.c:47: undefined
> reference to `qemu_chr_new'
> /home/petmay01/linaro/qemu-for-merges/tests/test-char.c:50: undefined
> reference to `qemu_chr_fe_init'
> /home/petmay01/linaro/qemu-for-merges/tests/test-char.c:51: undefined
> reference to `qemu_chr_fe_set_open'
> /home/petmay01/linaro/qemu-for-merges/tests/test-char.c:52: undefined
> reference to `qemu_chr_fe_write'
> [etc etc etc]
>
>
Oh good catch. We want to have chardev-obj-y defined globally, but only
linked with -softmmu target.

A possible fix to squash with chardev-obj-j patch is:

Eric, do you want me to resend the patch for review or is that enough for
you to ack?

Comments

Eric Blake Jan. 31, 2017, 7 p.m. UTC | #1
On 01/31/2017 12:55 PM, Marc-André Lureau wrote:

>> 'make check' fails on a linux-user-targets-only build:
>>
>> tests/test-char.o: In function `char_stdio_test_subprocess':
>> /home/petmay01/linaro/qemu-for-merges/tests/test-char.c:47: undefined
>> reference to `qemu_chr_new'
>> /home/petmay01/linaro/qemu-for-merges/tests/test-char.c:50: undefined
>> reference to `qemu_chr_fe_init'
>> /home/petmay01/linaro/qemu-for-merges/tests/test-char.c:51: undefined
>> reference to `qemu_chr_fe_set_open'
>> /home/petmay01/linaro/qemu-for-merges/tests/test-char.c:52: undefined
>> reference to `qemu_chr_fe_write'
>> [etc etc etc]
>>
>>
> Oh good catch. We want to have chardev-obj-y defined globally, but only
> linked with -softmmu target.
> 
> A possible fix to squash with chardev-obj-j patch is:
> 
> Eric, do you want me to resend the patch for review or is that enough for
> you to ack?
> 

I'm okay ack'ing the interdiff (that is, squash this in, and you can
keep the R-b you already have).

> diff --git a/Makefile.objs b/Makefile.objs
> index 91a4794f28..b09a9588fc 100644
> --- a/Makefile.objs
> +++ b/Makefile.objs
> @@ -4,6 +4,8 @@ stub-obj-y = stubs/ crypto/
>  util-obj-y = util/ qobject/ qapi/
>  util-obj-y += qmp-introspect.o qapi-types.o qapi-visit.o qapi-event.o
> 
> +chardev-obj-y = chardev/
> +
>  #######################################################################
>  # block-obj-y is code used by both qemu system emulation and qemu-img
> 
> @@ -78,8 +80,6 @@ common-obj-$(CONFIG_SECCOMP) += qemu-seccomp.o
> 
>  common-obj-$(CONFIG_FDT) += device_tree.o
> 
> -chardev-obj-y = chardev/
> -
>  ######################################################################
>  # qapi
> 
> diff --git a/Makefile.target b/Makefile.target
> index 5a487b5187..054db85e9e 100644
> --- a/Makefile.target
> +++ b/Makefile.target
> @@ -188,10 +188,9 @@ dummy := $(call unnest-vars,.., \
>                 common-obj-m)
>  target-obj-y := $(target-obj-y-save)
>  all-obj-y += $(common-obj-y)
> -all-obj-y += $(chardev-obj-y)
>  all-obj-y += $(target-obj-y)
>  all-obj-y += $(qom-obj-y)
> -all-obj-$(CONFIG_SOFTMMU) += $(block-obj-y)
> +all-obj-$(CONFIG_SOFTMMU) += $(block-obj-y) $(chardev-obj-y)
>  all-obj-$(CONFIG_USER_ONLY) += $(crypto-aes-obj-y)
>  all-obj-$(CONFIG_SOFTMMU) += $(crypto-obj-y)
>  all-obj-$(CONFIG_SOFTMMU) += $(io-obj-y)
>
Marc-André Lureau Jan. 31, 2017, 7:37 p.m. UTC | #2
Hi

On Tue, Jan 31, 2017 at 11:00 PM Eric Blake <eblake@redhat.com> wrote:

> On 01/31/2017 12:55 PM, Marc-André Lureau wrote:
>
> >> 'make check' fails on a linux-user-targets-only build:
> >>
> >> tests/test-char.o: In function `char_stdio_test_subprocess':
> >> /home/petmay01/linaro/qemu-for-merges/tests/test-char.c:47: undefined
> >> reference to `qemu_chr_new'
> >> /home/petmay01/linaro/qemu-for-merges/tests/test-char.c:50: undefined
> >> reference to `qemu_chr_fe_init'
> >> /home/petmay01/linaro/qemu-for-merges/tests/test-char.c:51: undefined
> >> reference to `qemu_chr_fe_set_open'
> >> /home/petmay01/linaro/qemu-for-merges/tests/test-char.c:52: undefined
> >> reference to `qemu_chr_fe_write'
> >> [etc etc etc]
> >>
> >>
> > Oh good catch. We want to have chardev-obj-y defined globally, but only
> > linked with -softmmu target.
> >
> > A possible fix to squash with chardev-obj-j patch is:
> >
> > Eric, do you want me to resend the patch for review or is that enough for
> > you to ack?
> >
>
> I'm okay ack'ing the interdiff (that is, squash this in, and you can
> keep the R-b you already have).
>
>
Thanks, patch updated, tag updated.

Peter, let me know if you want me to resend the pull request.
Peter Maydell Jan. 31, 2017, 8:02 p.m. UTC | #3
On 31 January 2017 at 19:37, Marc-André Lureau
<marcandre.lureau@gmail.com> wrote:
> Thanks, patch updated, tag updated.
>
> Peter, let me know if you want me to resend the pull request.

I'll put it back on my list. NB that the guaranteed reliable way
for me to spot that you want me to reprocess a respin is to
send a new cover letter email (you need not resend all the
individual patch mails if they're basically the same). That
will cause my filters to spot the cover letter email and
put it back in the folder of things to process. Doing anything
else is relying on my happening to read your email informally
asking for a re-run, which in this case I did but if you're
unlucky I might miss it.

TLDR: resending the cover letter entrusts your fate to the hands
of an infallible unsleeping robot; informal requests leave you
reliant on a careless human. The robot is your friend.

thanks
-- PMM
Peter Maydell Feb. 2, 2017, 11:03 a.m. UTC | #4
On 31 January 2017 at 19:37, Marc-André Lureau
<marcandre.lureau@gmail.com> wrote:
> Hi
>
> On Tue, Jan 31, 2017 at 11:00 PM Eric Blake <eblake@redhat.com> wrote:
>>
>> On 01/31/2017 12:55 PM, Marc-André Lureau wrote:
>>
>> >> 'make check' fails on a linux-user-targets-only build:
>> >>
>> >> tests/test-char.o: In function `char_stdio_test_subprocess':
>> >> /home/petmay01/linaro/qemu-for-merges/tests/test-char.c:47: undefined
>> >> reference to `qemu_chr_new'
>> >> /home/petmay01/linaro/qemu-for-merges/tests/test-char.c:50: undefined
>> >> reference to `qemu_chr_fe_init'
>> >> /home/petmay01/linaro/qemu-for-merges/tests/test-char.c:51: undefined
>> >> reference to `qemu_chr_fe_set_open'
>> >> /home/petmay01/linaro/qemu-for-merges/tests/test-char.c:52: undefined
>> >> reference to `qemu_chr_fe_write'
>> >> [etc etc etc]
>> >>
>> >>
>> > Oh good catch. We want to have chardev-obj-y defined globally, but only
>> > linked with -softmmu target.
>> >
>> > A possible fix to squash with chardev-obj-j patch is:
>> >
>> > Eric, do you want me to resend the patch for review or is that enough
>> > for
>> > you to ack?
>> >
>>
>> I'm okay ack'ing the interdiff (that is, squash this in, and you can
>> keep the R-b you already have).
>>
>
> Thanks, patch updated, tag updated.
>
> Peter, let me know if you want me to resend the pull request.

Now applied, thanks.

-- PMM
diff mbox

Patch

diff --git a/Makefile.objs b/Makefile.objs
index 91a4794f28..b09a9588fc 100644
--- a/Makefile.objs
+++ b/Makefile.objs
@@ -4,6 +4,8 @@  stub-obj-y = stubs/ crypto/
 util-obj-y = util/ qobject/ qapi/
 util-obj-y += qmp-introspect.o qapi-types.o qapi-visit.o qapi-event.o

+chardev-obj-y = chardev/
+
 #######################################################################
 # block-obj-y is code used by both qemu system emulation and qemu-img

@@ -78,8 +80,6 @@  common-obj-$(CONFIG_SECCOMP) += qemu-seccomp.o

 common-obj-$(CONFIG_FDT) += device_tree.o

-chardev-obj-y = chardev/
-
 ######################################################################
 # qapi

diff --git a/Makefile.target b/Makefile.target
index 5a487b5187..054db85e9e 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -188,10 +188,9 @@  dummy := $(call unnest-vars,.., \
                common-obj-m)
 target-obj-y := $(target-obj-y-save)
 all-obj-y += $(common-obj-y)
-all-obj-y += $(chardev-obj-y)
 all-obj-y += $(target-obj-y)
 all-obj-y += $(qom-obj-y)
-all-obj-$(CONFIG_SOFTMMU) += $(block-obj-y)
+all-obj-$(CONFIG_SOFTMMU) += $(block-obj-y) $(chardev-obj-y)
 all-obj-$(CONFIG_USER_ONLY) += $(crypto-aes-obj-y)
 all-obj-$(CONFIG_SOFTMMU) += $(crypto-obj-y)
 all-obj-$(CONFIG_SOFTMMU) += $(io-obj-y)