Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp440596ybi; Fri, 26 Jul 2019 12:23:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8sqkTj930nWYy9mZClXaZeee+x8wI5N9XMGnNGM3tZYPnk2JegqllYry9lVuFUGZ995qy X-Received: by 2002:a17:90a:cb01:: with SMTP id z1mr98654538pjt.93.1564168986462; Fri, 26 Jul 2019 12:23:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564168986; cv=none; d=google.com; s=arc-20160816; b=veJar84eHlBtEamP2PglIOKn+sK3hgxAOABxUNNiAO9YzgM53sSxuegI08ZFQjE84h FM6Ts0TY2X6mWbc6rCd7VB25MD9s9+wh0/zA9Hgc83zm9bU2+D8gkl8Jo4TAe0lyPkQo IItiwIkrMi/Ip5Y2A3je/LYVbzWTf+3EZqHBx9FbjtsrQWVbrNy05pINTDDVesVxubDk EVt7MP73CmVmrL4e5JdayW2zpjbuWhS0lW4v7NnE283KtAQlnMeGZ05wEfuYcJkj09is o8RjeVHbdob+84S9SfLeMl7dD7Yq+TspGY/VcLlY6oAmPIlk/jASMskluJGqTwL3wJVS RNig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=JDoy6R2TgDis78reFXSyqJgGbu7Qu39N2uadTzyYc3M=; b=ZYiB8p18/9RZeu7HOhHCUw3NZVsj0cxFIDFgG3RcV/oFqRhTwWynV4C0mw9RaUYA51 3gzT3MEdERBs4jaAvuzzB/6HyCJp+ZciJpSk2ipgK53cCZYB6+0xzZzIlHjmOYowTPoU FXG7+AWy08/roqXvkQAjndP8RG2HoKZU/CQyIoVSrpHLUipbRNOhL/r0gkH0IaEwsR2U fOC37eSB6dwSSncYFfjiCZ4OYgZHomdk0EntKTilFi1kpDKflCPWuNonri9C5M4GmuzV 4g7RM0iP8J7prkNNAJS+aaMvflZia/ar14ahI4oQC/XvnjM4fQdeCAvKoBuuH+emln8q ulqA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t27si19311384pgk.502.2019.07.26.12.22.51; Fri, 26 Jul 2019 12:23:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727100AbfGZQNU (ORCPT + 99 others); Fri, 26 Jul 2019 12:13:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:37458 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726705AbfGZQNT (ORCPT ); Fri, 26 Jul 2019 12:13:19 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DC52D218DA; Fri, 26 Jul 2019 16:13:18 +0000 (UTC) Date: Fri, 26 Jul 2019 12:13:17 -0400 From: Steven Rostedt To: Matt Helsley Cc: LKML , Ingo Molnar , Josh Poimboeuf , Peter Zijlstra Subject: Re: [PATCH v3 08/13] recordmcount: Clarify what cleanup() does Message-ID: <20190726121317.169d3ab0@gandalf.local.home> In-Reply-To: References: X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 24 Jul 2019 14:05:02 -0700 Matt Helsley wrote: > @@ -436,10 +451,11 @@ static void MIPS64_r_info(Elf64_Rel *const rp, unsigned sym, unsigned type) > > static int do_file(char const *const fname) > { > - Elf32_Ehdr *const ehdr = mmap_file(fname); > + Elf32_Ehdr *ehdr; > unsigned int reltype = 0; > int rc = -1; > On small nit that I'm going to tweak, is the ordering of the declarations above. By removing the const and the assignment, you lost the "upside-down x-mas tree" look of the declaration. That is, we went from: static int do_file(char const *const fname) { Elf32_Ehdr *const ehdr = mmap_file(fname); unsigned int reltype = 0; int rc = -1; to: static int do_file(char const *const fname) { Elf32_Ehdr *ehdr; unsigned int reltype = 0; int rc = -1; Which, I'll change to: static int do_file(char const *const fname) { unsigned int reltype = 0; Elf32_Ehdr *ehdr; int rc = -1; -- Steve