From: Quentin Monnet Subject: Re: [PATCH bpf-next 2/3] bpf: fix formatting for bpf_get_stack() helper doc Date: Mon, 30 Apr 2018 16:16:34 +0100 Message-ID: <88682469-61e8-bb26-9f93-8a939c250f0e@netronome.com> References: <20180430103905.12863-1-quentin.monnet@netronome.com> <20180430103905.12863-3-quentin.monnet@netronome.com> <20180430150833.gt2di56f4jembb2f@ast-mbp.dhcp.thefacebook.com> <5cc7a2d9-2a76-c323-e607-2b0400758297@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: daniel@iogearbox.net, ast@kernel.org, netdev@vger.kernel.org, oss-drivers@netronome.com, Yonghong Song To: David Ahern , Alexei Starovoitov Return-path: Received: from mail-wm0-f65.google.com ([74.125.82.65]:37864 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752534AbeD3PQi (ORCPT ); Mon, 30 Apr 2018 11:16:38 -0400 Received: by mail-wm0-f65.google.com with SMTP id l1so14869318wmb.2 for ; Mon, 30 Apr 2018 08:16:37 -0700 (PDT) In-Reply-To: <5cc7a2d9-2a76-c323-e607-2b0400758297@gmail.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: 2018-04-30 09:12 UTC-0600 ~ David Ahern > On 4/30/18 9:08 AM, Alexei Starovoitov wrote: >>> diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h >>> index 530ff6588d8f..8daef7326bb7 100644 >>> --- a/include/uapi/linux/bpf.h >>> +++ b/include/uapi/linux/bpf.h >>> @@ -1770,33 +1770,33 @@ union bpf_attr { >>> * >>> * int bpf_get_stack(struct pt_regs *regs, void *buf, u32 size, u64 = flags) >>> * Description >>> - * Return a user or a kernel stack in bpf program provided buffer. >>> - * To achieve this, the helper needs *ctx*, which is a pointer >>> + * Return a user or a kernel stack in bpf program provided buffer.= >>> + * To achieve this, the helper needs *ctx*, which is a pointer >> I still don't quite get the difference. >> It's replacing 2 tabs in above with 1 space + 2 tabs ? Yes, exactly (Plus in this case, the "::" a few line below has a missing tab). >> Can you please teach the python script to accept both? >> I bet that will be recurring mistake and it's impossible to spot in co= de review. > And checkpatch throws an error on the 1 space + 2 tabs so it gets > confusing on which format should be used. Sorry about that :/. I will send a patch to make the script more flexible= =2E Quentin