From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751954AbdHRR6r (ORCPT ); Fri, 18 Aug 2017 13:58:47 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:34203 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750971AbdHRR6p (ORCPT ); Fri, 18 Aug 2017 13:58:45 -0400 Date: Fri, 18 Aug 2017 19:58:40 +0200 From: Ingo Molnar To: Ard Biesheuvel Cc: "linux-kernel@vger.kernel.org" , "linux-arch@vger.kernel.org" , "H. Peter Anvin" , Arnd Bergmann , Heiko Carstens , Kees Cook , Will Deacon , Michael Ellerman , Thomas Garnier , Thomas Gleixner , "Serge E. Hallyn" , Bjorn Helgaas , Benjamin Herrenschmidt , Paul Mackerras , Catalin Marinas , Petr Mladek , Ingo Molnar , James Morris , Andrew Morton , Nicolas Pitre , Steven Rostedt , Martin Schwidefsky , Sergey Senozhatsky , Jessica Yu Subject: Re: [PATCH 5/5] kernel: tracepoints: add support for relative references Message-ID: <20170818175840.outgxwdf7t5xjnyk@gmail.com> References: <20170814105231.14608-1-ard.biesheuvel@linaro.org> <20170814105231.14608-6-ard.biesheuvel@linaro.org> <20170818082616.vyk5z5s2kicc66ip@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Ard Biesheuvel wrote: > On 18 August 2017 at 09:36, Ard Biesheuvel wrote: > > On 18 August 2017 at 09:26, Ingo Molnar wrote: > >> > >> * Ard Biesheuvel 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. Thanks, Ingo