DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=WBH6+JuF6fTEaF0bwagSj3jygQHZT7qzDsIFicHmeqo=; b=Fja+8q1iPAZHBcH7GopLl8ZvhddglYH1cU6Bwl/583Gsb8GNpJ0ww5MxUfSMa8XDDn mCJCrLkN6DwONjWlqG7m/3GLjoMSwGDelk7+0eQzG0v+IIA3zJCLik3/1cx5QMfG1Ego jyJkJxX7eXyawxJA1WW36b1oLBvfu1asRuB32L1YeQAW/vyt9pz4olLfhhixZvwkcMF1 j5P5ljCnwCAgULqwIv2TgB/xJ5FSl7BnbaceMEwdjLRISPJirBBJ3BRMkhBlOaG411tG iVmEMA5b+vmpGmmo38Rle4dg5KwPT/qcpxpeoC9dbkpi6PqszuQE8fSDuzt8Zx5cEl6k IiVQ== References: <20210428144813.417170-1-philmd@redhat.com> <20210428144813.417170-3-philmd@redhat.com> From: Richard Henderson Message-ID: Date: Wed, 28 Apr 2021 09:38:57 -0700 MIME-Version: 1.0 In-Reply-To: <20210428144813.417170-3-philmd@redhat.com> Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [Virtio-fs] [PATCH 2/2] util/meson: Build iov/hexdump/buffer_is_zero with virtiofsd List-Id: Development discussions about virtio-fs List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , qemu-devel@nongnu.org Cc: Thomas Huth , "Daniel P . Berrange" , virtio-fs@redhat.com, Mahmoud Mandour On 4/28/21 7:48 AM, Philippe Mathieu-Daudé wrote: > diff --git a/util/meson.build b/util/meson.build > index 510765cde46..c2eda2d1374 100644 > --- a/util/meson.build > +++ b/util/meson.build > @@ -59,12 +59,10 @@ > util_ss.add(files('aiocb.c', 'async.c', 'aio-wait.c')) > util_ss.add(files('base64.c')) > util_ss.add(files('buffer.c')) > - util_ss.add(files('bufferiszero.c')) > util_ss.add(files('coroutine-@0@.c'.format(config_host['CONFIG_COROUTINE_BACKEND']))) > util_ss.add(files('hbitmap.c')) > - util_ss.add(files('hexdump.c')) > util_ss.add(files('iova-tree.c')) > - util_ss.add(files('iov.c', 'qemu-sockets.c', 'uri.c')) > + util_ss.add(files('qemu-sockets.c', 'uri.c')) > util_ss.add(files('lockcnt.c')) > util_ss.add(files('main-loop.c')) > util_ss.add(files('nvdimm-utils.c')) > @@ -83,3 +81,9 @@ > if_false: files('filemonitor-stub.c')) > util_ss.add(when: 'CONFIG_LINUX', if_true: files('vfio-helpers.c')) > endif > + > +if have_block or config_host.has_key('CONFIG_VHOST_USER_FS') > + util_ss.add(files('hexdump.c')) > + util_ss.add(files('bufferiszero.c')) > + util_ss.add(files('iov.c')) > +endif Isn't util a static library, built once? Why are we avoiding building these unconditionally? Surely symbols will be included in any linked binaries only as needed. r~