From: Michal Marek <mmarek@suse.cz>
To: rob@landley.net
Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org
Subject: Re: [PATCH 3/3] convert headers_install.pl->headers_install.sh
Date: Sun, 24 Feb 2013 21:42:56 +0100 [thread overview]
Message-ID: <20130224204256.GK12402@pobox.suse.cz> (raw)
In-Reply-To: <50cfc313.6831b60a.0bc4.0604@mx.google.com>
On Mon, Dec 17, 2012 at 05:12:51PM -0800, rob@landley.net wrote:
> From: Rob Landley <rob@landley.net>
>
> Remove perl from make headers_install by replacing a perl script (doing
> a simple regex search and replace) with a smaller, faster, simpler,
> POSIX-2008 shell script implementation. The new shell script is a single
> for loop calling sed and piping its output through unifdef to produce the
> target file.
>
> Signed-off-by: Rob Landley <rob@landley.net>
> ---
>
> scripts/Makefile.headersinst | 4 +-
> scripts/headers_install.pl | 63 ---------------------------------
> scripts/headers_install.sh | 43 ++++++++++++++++++++++
> 3 files changed, 45 insertions(+), 65 deletions(-)
Hi Rob,
sorry for the long delay. In general, the patch looks OK, I only have
two remarks:
> + -e 's/(^|[ \t])(inline|asm|volatile)([ \t(]|$)/\1__\2__\3/g' \
This regexp does not match the 'volatile' in
#define XVMCLOCKPTR(saPriv,lockNo) \
((volatile struct drm_hw_lock *)(((((unsigned long) (saPriv)->XvMCLockArea) + \
(VIA_MAX_CACHELINE_SIZE - 1)) & \
~(VIA_MAX_CACHELINE_SIZE - 1)) + \
VIA_MAX_CACHELINE_SIZE*(lockNo)))
in include/uapi/drm/via_drm.h.
> --- a/scripts/headers_install.pl
> +++ /dev/null
> @@ -1,63 +0,0 @@
> -#!/usr/bin/perl -w
> -#
> -# headers_install prepare the listed header files for use in
> -# user space and copy the files to their destination.
> -#
> -# Usage: headers_install.pl readdir installdir arch [files...]
> -# installdir: dir to install the files to
> -# arch: current architecture
> -# arch is used to force a reinstallation when the arch
> -# changes because kbuild then detect a command line change.
You are not passing $(SRCARCH) to the shell script. This seems OK, as
the list of files changes if needed, but the change should be mentioned
in the changelog.
Thanks,
Michal
next prev parent reply other threads:[~2013-02-24 20:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-18 1:12 rob
2013-02-15 9:29 ` Sam Ravnborg
2013-02-24 20:42 ` Michal Marek [this message]
2013-02-26 15:25 ` Rob Landley
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=20130224204256.GK12402@pobox.suse.cz \
--to=mmarek@suse.cz \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rob@landley.net \
/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
all inboxes | Powered by JetHome®