From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754089AbcIJF4Z (ORCPT ); Sat, 10 Sep 2016 01:56:25 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:50709 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751464AbcIJF4Y (ORCPT ); Sat, 10 Sep 2016 01:56:24 -0400 Date: Sat, 10 Sep 2016 07:53:42 +0200 (CEST) From: Thomas Gleixner To: Ingo Molnar cc: Masahiro Yamada , x86@kernel.org, Ingo Molnar , Toshi Kani , Denys Vlasenko , Borislav Petkov , Paul Gortmaker , "H. Peter Anvin" , Nathan Zimmer , linux-kernel@vger.kernel.org, Mike Travis , Daniel J Blueman , Dimitri Sivanich , Matt Fleming , Hedi Berriche , Steffen Persvold , Alex Thorlton , Wei Jiangang Subject: Re: [PATCH] x86: squash lines for simple wrapper functions In-Reply-To: <20160910043533.GB6061@gmail.com> Message-ID: References: <1473161053-10068-1-git-send-email-yamada.masahiro@socionext.com> <20160908063359.GB24253@gmail.com> <20160910043533.GB6061@gmail.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 10 Sep 2016, Ingo Molnar wrote: > * Thomas Gleixner wrote: > > > On Thu, 8 Sep 2016, Ingo Molnar wrote: > > > * Masahiro Yamada wrote: > > > > static unsigned long set_apic_id(unsigned int id) > > > > { > > > > - unsigned long x; > > > > - > > > > /* maskout x2apic_extra_bits ? */ > > > > - x = id; > > > > - return x; > > > > + return id; > > > > } > > > > > > This was clearly left there to document a quirk and as a placeholder for future > > > changes. > > > > Keeping the comment and rewording it to: > > > > /* CHECKME: Do we need to mask out the xapic extra bits */ > > > > should be good enough. The variable dance is not really giving any value. > > Yeah, sure - my point was that the mindless removal is wrong. He kept the comment. The rewording is a bonus.