From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752599AbbIHTjQ (ORCPT ); Tue, 8 Sep 2015 15:39:16 -0400 Received: from lists.s-osg.org ([54.187.51.154]:34978 "EHLO lists.s-osg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751355AbbIHTjO (ORCPT ); Tue, 8 Sep 2015 15:39:14 -0400 Subject: Re: [PATCH v2] Cleanup: membarrier selftest To: Mathieu Desnoyers , Andrew Morton References: <1441740119-24233-1-git-send-email-mathieu.desnoyers@efficios.com> Cc: linux-kernel@vger.kernel.org, Michael Ellerman , linux-api@vger.kernel.org, Pranith Kumar , Shuah Khan From: Shuah Khan Organization: Samsung Open Source Group Message-ID: <55EF395F.3060302@osg.samsung.com> Date: Tue, 8 Sep 2015 13:39:11 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <1441740119-24233-1-git-send-email-mathieu.desnoyers@efficios.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/08/2015 01:21 PM, Mathieu Desnoyers wrote: > As per Michael Ellerman's comments, we don't need to specify the rule > in the Makefile, the implicit one will do the same. Also, the > "__EXPORTED_HEADERS__" include is not needed, because we build the > test against the installed kernel headers, not the kernel headers. > Include rather than the rather specific > (the former header is located in a standard > location and includes the latter). > > My own cleanups: re-use "$(TEST_PROGS)" in the clean target rather than > spelling the executable twice. Include rather than > (the former header is located in a standard location > and includes the latter). Please refine this changelog. Reference to comments belongs in the Changes since section. Please rephrase to not include reference to comments. Please do the same for "My own cleanups:". Get rid of it. thanks, -- Shuah > > Signed-off-by: Mathieu Desnoyers > CC: Michael Ellerman > CC: Andrew Morton > CC: linux-api@vger.kernel.org > CC: Pranith Kumar > CC: Shuah Khan > -- > Changes since v1: > - Add Changelog. > --- > tools/testing/selftests/membarrier/Makefile | 7 +++---- > tools/testing/selftests/membarrier/membarrier_test.c | 5 +---- > 2 files changed, 4 insertions(+), 8 deletions(-) > > diff --git a/tools/testing/selftests/membarrier/Makefile b/tools/testing/selftests/membarrier/Makefile > index 877a503..a1a9708 100644 > --- a/tools/testing/selftests/membarrier/Makefile > +++ b/tools/testing/selftests/membarrier/Makefile > @@ -1,11 +1,10 @@ > CFLAGS += -g -I../../../../usr/include/ > > -all: > - $(CC) $(CFLAGS) membarrier_test.c -o membarrier_test > - > TEST_PROGS := membarrier_test > > +all: $(TEST_PROGS) > + > include ../lib.mk > > clean: > - $(RM) membarrier_test > + $(RM) $(TEST_PROGS) > diff --git a/tools/testing/selftests/membarrier/membarrier_test.c b/tools/testing/selftests/membarrier/membarrier_test.c > index dde3125..535f0fe 100644 > --- a/tools/testing/selftests/membarrier/membarrier_test.c > +++ b/tools/testing/selftests/membarrier/membarrier_test.c > @@ -1,9 +1,6 @@ > #define _GNU_SOURCE > -#define __EXPORTED_HEADERS__ > - > #include > -#include > -#include > +#include > #include > #include > #include > -- Shuah Khan Sr. Linux Kernel Developer Open Source Innovation Group Samsung Research America (Silicon Valley) shuahkh@osg.samsung.com | (970) 217-8978