Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1715361
| From | Ard Biesheuvel <ard.biesheuvel@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 5/5] kernel: tracepoints: add support for relative references |
| Date | 2017-08-18 20:20 +0200 |
| Message-ID | <ufU2e-7lN-9@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <uelge-389-25@gated-at.bofh.it> <ufKPg-VO-27@gated-at.bofh.it> <ufKYW-Zv-15@gated-at.bofh.it> <ufLLk-1yQ-15@gated-at.bofh.it> <ufTIR-6Yr-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 18 August 2017 at 18:58, Ingo Molnar <mingo@kernel.org> wrote:
>
> * Ard Biesheuvel <ard.biesheuvel@linaro.org> wrote:
>
>> On 18 August 2017 at 09:36, Ard Biesheuvel <ard.biesheuvel@linaro.org> wrote:
>> > On 18 August 2017 at 09:26, Ingo Molnar <mingo@kernel.org> wrote:
>> >>
>> >> * Ard Biesheuvel <ard.biesheuvel@linaro.org> wrote:
>> >>
>> >>> -static void for_each_tracepoint_range(struct tracepoint * const *begin,
>> >>> - struct tracepoint * const *end,
>> >>> +static void for_each_tracepoint_range(const void *begin, const void *end,
>> >>> void (*fct)(struct tracepoint *tp, void *priv),
>> >>> void *priv)
>> >>> {
>> >>> +#ifdef CONFIG_HAVE_ARCH_PREL32_RELOCATIONS
>> >>> + const signed int *iter;
>> >>> +
>> >>> + if (!begin)
>> >>> + return;
>> >>> + for (iter = begin; iter < (signed int *)end; iter++) {
>> >>> + fct((struct tracepoint *)((unsigned long)iter + *iter), priv);
>> >>> + }
>> >>
>> >> I think checkpatch is correct here to complain about the unnecessary curly braces
>> >> here.
>> >>
>> >
>> > Fair enough. I will clean up to the extent feasible.
>> >
>>
>> OK, in an honest attempt to at least remove as many of the checkpatch
>> errors as I can, [...]
>
> Note that I actually agreed with your list of checkpatch bogosities - the one I
> commented on was the only thing that needed fixing, IMHO.
>
Ah ok. Well, I think the code has improved slightly in some ways as a
result, so I will just back out the bogus changes for v3.
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 5/5] kernel: tracepoints: add support for relative references Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2017-08-14 13:00 +0200
Re: [PATCH 5/5] kernel: tracepoints: add support for relative references Steven Rostedt <rostedt@goodmis.org> - 2017-08-14 17:30 +0200
Re: [PATCH 5/5] kernel: tracepoints: add support for relative references Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2017-08-14 17:30 +0200
Re: [PATCH 5/5] kernel: tracepoints: add support for relative references Ingo Molnar <mingo@kernel.org> - 2017-08-18 10:30 +0200
Re: [PATCH 5/5] kernel: tracepoints: add support for relative references Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2017-08-18 10:40 +0200
Re: [PATCH 5/5] kernel: tracepoints: add support for relative references Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2017-08-18 11:30 +0200
Re: [PATCH 5/5] kernel: tracepoints: add support for relative references Ingo Molnar <mingo@kernel.org> - 2017-08-18 20:00 +0200
Re: [PATCH 5/5] kernel: tracepoints: add support for relative references Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2017-08-18 20:20 +0200
csiph-web