[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [XEN PATCH v3] xen/spinlock: mechanically rename parameter name 'debug'


  • To: Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 28 Jul 2023 08:03:51 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=y30qDAn36TIcQrYPU2uY4PmbPUt5j2OKG/yfJlDDEbc=; b=mnwvbdlHXsFi3L7/AvQuFiDDbJLKojzV01ig7onqvFOMqdFhQNYHyp+q95OPTwPjNMcxBBnXxwXuWQ8KNAYt+biitQAcfVefSrPckuAt5oBIRIPWZ6C9dw9jDqyiJt54/RYRkOehU+YdCsY/srBGgnjNdUh87g46a2E4P2s7fxYDchyMasEdVyjPeaRMBboqxIa0TfmbbGz0aXlzTaVpTJW/I1ihORVoLRG1ZiIsmjVZNxQM6uXJ4rVs2Y8Cjvdye1uy0kCOZoz2N4ByY4rc9Fj7BU01H+FXS1BwVh1kDlOr6tlVrTCOV4Pl361IVXLSw7RsLRZpX1Yu/cDJok7jvA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BXR83kIDWg79YjN2+R8sQeBivMlIspA8nX35hc2n/xusXW5j1ZcH122isX7qr116kbbsBDVoTt2qLthcxY13VNExkKyiAlVIHJzH3DBqK+ZXesOyGx4GjcI4mEzoZ5y/Rkg/0PRe4RK4uUTj5ReKTp5ZYE3gFsOhImMfwemcLErNuvuk0FCqc9QnX9aLI9Nmv6L6v7KjTN1Sa8di2mR4Ni4TBu/bPpey5XaY6eI+x/YrGwAIK15+mYNNkI9WOTApDWR6eZQik/47mudeC0YTNMeJtKYHWO2QVLrYTmGd0M7b9pzISqYa0m6duP4jS+KFrxVZYM3jGLUvfHV5UMxGnQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx>, michal.orzel@xxxxxxx, xenia.ragiadakou@xxxxxxx, ayan.kumar.halder@xxxxxxx, consulting@xxxxxxxxxxx, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Fri, 28 Jul 2023 06:04:16 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 27.07.2023 21:35, Stefano Stabellini wrote:
> On Thu, 27 Jul 2023, Jan Beulich wrote:
>> On 26.07.2023 23:49, Stefano Stabellini wrote:
>>> On Wed, 26 Jul 2023, Jan Beulich wrote:
>>>> On 26.07.2023 08:42, Nicola Vetrini wrote:
>>>>> On 26/07/23 08:34, Jan Beulich wrote:
>>>>>> On 25.07.2023 22:45, Nicola Vetrini wrote:
>>>>>>> Rule 5.3 has the following headline:
>>>>>>> "An identifier declared in an inner scope shall not hide an
>>>>>>> identifier declared in an outer scope"
>>>>>>>
>>>>>>> To avoid any confusion resulting from the parameter 'debug'
>>>>>>> hiding the homonymous function declared at
>>>>>>> 'xen/arch/x86/include/asm/processor.h:428'
>>>>>>> the rename of parameters s/debug/lkdbg/ is performed.
>>>>>>>
>>>>>>> Signed-off-by: Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx>
>>>>>>> ---
>>>>>>> Changes in v2:
>>>>>>> - s/dbg/lkdbg/
>>>>>>> Changes in v3:
>>>>>>> - Added missing renames for consistency
>>>>>>
>>>>>> Hmm, you asked whether to send v3, but then you didn't wait for an
>>>>>> answer. So to repeat what I said there: I'd prefer if we could first
>>>>>> settle whether to rename the conflicting x86 symbol.
>>>>>>
>>>>>
>>>>> Stefano replied asking for a v3 [1] before I had a chance to read your 
>>>>> message this morning.
>>>>
>>>> Right, sorry, I spotted his reply only after seeing the v3.
>>>
>>> For what is worth I prefer the current implementation compared to
>>> renaming debug()
>>
>> I don't. My replacement name suggestions were only "just in case"; I
>> don't really like them.
> 
> Understood :-)
> 
> How would you like to proceed?
> 
> 1. we commit this patch as is
> 2. we wait for a third opinion from another maintainer
> 3. we find a new name for the variable
> 4. we change debug() instead

4 is planned already anyway; actually a patch doing that (and quite a
few more things) was posted by Andrew a while back. We "just" need to
settle on the few open items there.

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.