Received: from list by lists.gnu.org with archive (Exim 4.71) id 1hNyvK-0006sA-9t for mharc-qemu-trivial@gnu.org; Tue, 07 May 2019 08:10:18 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48059) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNyvI-0006qN-6l for qemu-trivial@nongnu.org; Tue, 07 May 2019 08:10:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hNyvG-0001fm-D9 for qemu-trivial@nongnu.org; Tue, 07 May 2019 08:10:16 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:43397) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hNyvE-0001eP-La for qemu-trivial@nongnu.org; Tue, 07 May 2019 08:10:14 -0400 Received: by mail-wr1-f66.google.com with SMTP id r4so6701658wro.10 for ; Tue, 07 May 2019 05:10:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=MfpSg9Q3f8tq5p+FYBjTg6g9hpkhoHZte1EMwPUTVxI=; b=HtXCoryWVkcNUgQCTwHt4E8qfXiZ66j/HXdpxu1IcbouNKoiMWDXVapQgtWgXEt0f6 w9xeB3veC7tTIoiu+X9uDkhOtliMOlb6rFjI/I5wHyu1ODHKks2qia8b0fqRA51VM2cC 8ml2YNJ436lEJLXOfG6+skEjrVXaZF6ygDscPtnWRoYWBKtpr3JoSFUxUrL0WHwZPoRh BKtaJB3kyT6vU3UICXyNnYtBmsGYT64xQ3srUGXIdRY+Pd8DY3cTm2F6nGPxBk169mWJ xchM0NLhDH8GDg8m09Mvqu/zwElav138ctBlklIFoUqXPvntD2OM05PPd8/BGXsSAxzk bZzA== X-Gm-Message-State: APjAAAWoYBXm91fJhOtJAiShwBqK1WThvM9F53uC/MEC2xWF0HBWZUgN 1iSnyclwf1/qmnB3+3t/SIZDTf+59PE= X-Google-Smtp-Source: APXvYqxCA4nIW3QqYvO5acqx3YKTazfjN3MPB0fBgWs6UAwT/3SK8ZVkMzjelUqB4r2LuciWdeUnWQ== X-Received: by 2002:adf:db0b:: with SMTP id s11mr15384061wri.180.1557231010789; Tue, 07 May 2019 05:10:10 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:f572:d55d:64bb:59f8? ([2001:b07:6468:f312:f572:d55d:64bb:59f8]) by smtp.gmail.com with ESMTPSA id b184sm19309123wmh.17.2019.05.07.05.10.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 May 2019 05:10:10 -0700 (PDT) To: Thomas Huth , qemu-devel@nongnu.org Cc: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , Markus Armbruster , qemu-trivial@nongnu.org References: <20190506051810.16493-1-thuth@redhat.com> From: Paolo Bonzini Message-ID: Date: Tue, 7 May 2019 14:10:09 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190506051810.16493-1-thuth@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.221.66 Subject: Re: [Qemu-trivial] [PATCH] tests/Makefile: Remove unused test-obj-y variable X-BeenThere: qemu-trivial@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 May 2019 12:10:17 -0000 On 06/05/19 00:18, Thomas Huth wrote: > I recently noticed that test-obj-y contains a file called > tests/check-block-qtest.o which simply does not belong to any .c > file and thus wondered why this is not causing any trouble. > Well, if I get the Makefile magic right, test-obj-y is not really > used for anything - and "make check" still works fine if we simply > remove it. > > Signed-off-by: Thomas Huth It is used to add -Itests to the command line (which refers to the build directory). However, it is not needed because "-iquote $(@D)" already sets this up in rules.mak. Paolo > --- > tests/Makefile.include | 19 ------------------- > 1 file changed, 19 deletions(-) > > diff --git a/tests/Makefile.include b/tests/Makefile.include > index 7c8b9c84b2..dfc4b7746f 100644 > --- a/tests/Makefile.include > +++ b/tests/Makefile.include > @@ -482,25 +482,6 @@ GENERATED_FILES += tests/test-qapi-types.h \ > tests/test-qapi-events-sub-sub-module.h \ > tests/test-qapi-introspect.h > > -test-obj-y = tests/check-qnum.o tests/check-qstring.o tests/check-qdict.o \ > - tests/check-qlist.o tests/check-qnull.o tests/check-qobject.o \ > - tests/check-qjson.o tests/check-qlit.o \ > - tests/check-block-qtest.o \ > - tests/test-coroutine.o tests/test-string-output-visitor.o \ > - tests/test-string-input-visitor.o tests/test-qobject-output-visitor.o \ > - tests/test-clone-visitor.o \ > - tests/test-qobject-input-visitor.o \ > - tests/test-qmp-cmds.o tests/test-visitor-serialization.o \ > - tests/test-x86-cpuid.o tests/test-mul64.o tests/test-int128.o \ > - tests/test-opts-visitor.o tests/test-qmp-event.o \ > - tests/rcutorture.o tests/test-rcu-list.o \ > - tests/test-rcu-simpleq.o \ > - tests/test-rcu-tailq.o \ > - tests/test-qdist.o tests/test-shift128.o \ > - tests/test-qht.o tests/qht-bench.o tests/test-qht-par.o \ > - tests/atomic_add-bench.o tests/atomic64-bench.o > - > -$(test-obj-y): QEMU_INCLUDES += -Itests > QEMU_CFLAGS += -I$(SRC_PATH)/tests > > >