From: Masahiro Yamada <yamada.m@jp.panasonic.com>
To: Michal Marek <mmarek@suse.cz>
Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] kbuild: merge bounds.h and asm-offsets.h rules
Date: Mon, 05 Jan 2015 15:58:46 +0900 [thread overview]
Message-ID: <20150105155846.B978.AA925319@jp.panasonic.com> (raw)
In-Reply-To: <54A6C19A.3080001@suse.cz>
Hi Michal,
On Fri, 02 Jan 2015 17:04:42 +0100
Michal Marek <mmarek@suse.cz> wrote:
> >
> > -quiet_cmd_bounds = GEN $@
> > -define cmd_bounds
> > +quiet_cmd_offsets = GEN $@
> > +define cmd_offsets
> > (set -e; \
> > - echo "#ifndef __LINUX_BOUNDS_H__"; \
> > - echo "#define __LINUX_BOUNDS_H__"; \
> > + INCLUDE_GUARD=$$(echo __$(notdir $@)__ | tr '[a-z].-' '[A-Z]__'); \
> > + echo "#ifndef $$INCLUDE_GUARD"; \
> > + echo "#define $$INCLUDE_GUARD"; \
>
> I think it would be more readable to write it as
>
> echo "#ifndef $(2)"; \
> ...
>
> and pass the include guard name as an argument to cmd_offsets.
>
> Otherwise it's a great cleanup.
>
> Michal
OK. I have posted v2.
Best Regards
Masahiro Yamada
next prev parent reply other threads:[~2015-01-05 6:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-24 6:49 [PATCH 0/2] kbuild: Refactor ./Kbuild Masahiro Yamada
2014-12-24 6:49 ` [PATCH 1/2] kbuild: merge bounds.h and asm-offsets.h rules Masahiro Yamada
2015-01-02 16:04 ` Michal Marek
2015-01-05 6:58 ` Masahiro Yamada [this message]
2014-12-24 6:49 ` [PATCH 2/2] kbuild: remove redundant line from bounds.h/asm-offsets.h Masahiro Yamada
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=20150105155846.B978.AA925319@jp.panasonic.com \
--to=yamada.m@jp.panasonic.com \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mmarek@suse.cz \
/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