From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jani Nikula Subject: Re: [PATCH] drm/i915: Enable 5.4Ghz (HBR2) link rate for Displayport 1.2-capable devices Date: Fri, 17 Jan 2014 15:32:40 +0200 Message-ID: <878uuebuo7.fsf@intel.com> References: <1389927968-2473-1-git-send-email-tprevite@gmail.com> <20140117115521.GA20479@strange.amr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id 2AD4311D76B for ; Fri, 17 Jan 2014 05:33:06 -0800 (PST) In-Reply-To: <20140117115521.GA20479@strange.amr.corp.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: Damien Lespiau , Todd Previte Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Fri, 17 Jan 2014, Damien Lespiau wrote: > I see spaces instead of tabs. You can use the useful checkpatch.pl > script on patches to catch those pesky style issues (from within a linux > tree): > > $ ./scripts/checkpatch.pl 0001-drm-i915-Enable-5.4Ghz-HBR2-link-rate-for-Displaypor.patch > > [...] > > total: 6 errors, 9 warnings, 55 lines checked Should anyone find this useful, I have these to check branches in my local repos directly: alias checkpatch='/path/to/checkpatch.pl -q --emacs --strict' checkbranch() { local commit local range if [ -z "$1" ]; then range="origin..HEAD" elif [ -n "`echo $1 | grep '\.\.'`" ]; then range="$1" else range="$1..HEAD" fi for commit in `git rev-list --reverse $range`; do git --no-pager log --oneline -1 $commit git format-patch --stdout -1 $commit | checkpatch - done } Then I can do: Check local patches against origin: $ checkbranch Check local patches against drm-intel/drm-intel-nightly: $ checkbranch drm-intel/drm-intel-nightly Check a revision range: $ checkbranch commit1..commit2 Do note that checkpatch is not the law. But it helps you get some of the little things straight. HTH, Jani. -- Jani Nikula, Intel Open Source Technology Center