From: Leon Romanovsky <leon@kernel.org>
To: Doug Ledford <dledford@redhat.com>
Cc: Jason Gunthorpe <jgg@ziepe.ca>,
Bart Van Assche <Bart.VanAssche@wdc.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>
Subject: Re: [PATCH] rdma: Add Jason as a co-maintainer
Date: Sat, 18 Nov 2017 09:26:25 +0200 [thread overview]
Message-ID: <20171118072625.GQ18825@mtr-leonro.local> (raw)
In-Reply-To: <1510969467.3973.83.camel@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1895 bytes --]
On Fri, Nov 17, 2017 at 08:44:27PM -0500, Doug Ledford wrote:
>
> If you split step 5 above into 5a) Push from local work repo to local
> prep repo and 5b) Do full kernel build in prep repo to test that all
> code needed to compile is tracked by git, it would catch that mistake
> before it makes it outside the firewall. That's a change I may make
> just to be on the safe side in the future.
I'm using git worktree command [1] for that.
If it helps, this is snippet from my scripts:
-----------------------------------------
REPORT_FILE=$(mktemp)
function do_one {
SHA1=$1
REPORT_FILE=$2
PDIR=$(mktemp -d)
git worktree add $PDIR $SHA1
echo "Redirecting the output to $REPORT_FILE"
pushd $PDIR &>> $REPORT_FILE
x checkpatch HEAD $PDIR &>> $REPORT_FILE
cp $KCONFIG . &>> $REPORT_FILE
make olddefconfig &>> $REPORT_FILE
echo "===== FULL COMPILE =========" &>> $REPORT_FILE
make -s -j 4 &>> $REPORT_FILE
echo "===== SUB COMPILE =========" &>> $REPORT_FILE
make -s -j 4 W=1 drivers/infiniband/ drivers/net/ethernet/mellanox/ &>> $REPORT_FILE
echo "===== SMATCH =========" &>> $REPORT_FILE
make CHECK="$SMATCH -p=kernel" C=1 drivers/infiniband/ drivers/net/ethernet/mellanox/ -s -j 4 &>> $REPORT_FILE
echo "===== SPARSE =========" &>> $REPORT_FILE
make CHECK="$SPARSE" C=2 drivers/infiniband/ drivers/net/ethernet/mellanox/ -s -j 4 &>> $REPORT_FILE
popd &>> $REPORT_FILE
rm -rf $PDIR
git worktree prune
# TODO: separate checkpatch errors, sparse, smatch
NUMB_OF_ERRORS=$(awk -F": " '{print $1}' $REPORT_FILE | grep ":" | sort | uniq |wc -l)
echo "There are $NUMB_OF_ERRORS errors/warnings"
}
do_one $SHA1 $REPORT_FILE
------------------------------------------
Thanks
[1] https://git-scm.com/docs/git-worktree
>
> --
> Doug Ledford <dledford@redhat.com>
> GPG KeyID: B826A3330E572FDD
> Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2017-11-18 7:26 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-16 20:44 [PATCH] rdma: Add Jason as a co-maintainer Jason Gunthorpe
2017-11-17 5:00 ` Leon Romanovsky
[not found] ` <20171116204400.GA28216-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2017-11-17 17:54 ` Bart Van Assche
[not found] ` <1510941272.2846.46.camel-Sjgp3cTcYWE@public.gmane.org>
2017-11-17 18:14 ` Jason Gunthorpe
[not found] ` <20171117181410.GL4276-uk2M96/98Pc@public.gmane.org>
2017-11-17 19:45 ` Doug Ledford
[not found] ` <1510947901.3973.26.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-11-17 21:32 ` Jason Gunthorpe
[not found] ` <20171117213227.GQ4276-uk2M96/98Pc@public.gmane.org>
2017-11-18 1:44 ` Doug Ledford
2017-11-18 7:26 ` Leon Romanovsky [this message]
2017-11-19 8:33 ` Amrani, Ram
2017-11-20 16:10 ` Leon Romanovsky
2017-11-20 18:06 ` Jason Gunthorpe
[not found] ` <20171120180631.GE626-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2017-11-21 5:04 ` Leon Romanovsky
[not found] ` <20171121050456.GM18825-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-11-21 6:37 ` Leon Romanovsky
2017-11-20 12:45 ` Sagi Grimberg
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=20171118072625.GQ18825@mtr-leonro.local \
--to=leon@kernel.org \
--cc=Bart.VanAssche@wdc.com \
--cc=dledford@redhat.com \
--cc=jgg@ziepe.ca \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
/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