Re: [PATCH bpf-next 3/3] bpftool: add gen subcommand manpage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 17, 2019 at 1:27 PM Yonghong Song <yhs@xxxxxx> wrote:
>
>
>
> On 12/16/19 9:36 PM, Andrii Nakryiko wrote:
> > Add bpftool-gen.rst describing skeleton on the high level. Also include
> > a small, but complete, example BPF app (BPF side, userspace side, generated
> > skeleton) in example section to demonstrate skeleton API and its usage.
> >
> > Signed-off-by: Andrii Nakryiko <andriin@xxxxxx>
>
> When applying the patch locally (git apply <>), I see below:
> -bash-4.4$ git apply ~/p3.txt
> /home/yhs/p3.txt:183: trailing whitespace.
>
> /home/yhs/p3.txt:187: trailing whitespace.
>
> /home/yhs/p3.txt:189: space before tab in indent.
>          __uint(type, BPF_MAP_TYPE_HASH);
> /home/yhs/p3.txt:190: space before tab in indent.
>          __uint(max_entries, 128);
> /home/yhs/p3.txt:191: space before tab in indent.
>          __type(key, int);
> warning: squelched 77 whitespace errors
> warning: 82 lines add whitespace errors.
> -bash-4.4$
>
> space before tab might be fine since it is an code in the example file.
> But tailing whitespaces probably should be fixed.

I assumed that indentation in ReST's literal block has to be specified
for all lines, including the empty ones. But seems like
bpftool-btf.rst doesn't do that, and playing with some online editors
indicates it's not necessary to indent empty lines to preserve all the
code as single code block, so I'm going to remove them.

>
> With the above in mind,
>
> Acked-by: Yonghong Song <yhs@xxxxxx>



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux