From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753379AbcIIOng (ORCPT ); Fri, 9 Sep 2016 10:43:36 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:49102 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750768AbcIIOnc (ORCPT ); Fri, 9 Sep 2016 10:43:32 -0400 Date: Fri, 9 Sep 2016 16:40:44 +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: <20160908063359.GB24253@gmail.com> Message-ID: References: <1473161053-10068-1-git-send-email-yamada.masahiro@socionext.com> <20160908063359.GB24253@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 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. Thanks, tglx