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

Re: [PATCH] x86/mem: Make mem_hotadd_check() more legible


  • To: Alejandro Vallejo <alejandro.vallejo@xxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 19 Jul 2023 15:16:07 +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=3Bgp+g3AwElj32ctIFKNakFeu2sQhvPuC+/HCzNco4Y=; b=V+GZcKW5aZTttr48TA0angjOZZf7FOpw81QGqFP9QBNwKKPSXmWuysrLN77GCfzxhEIG98zkO/6Gds3pPhSolNbgsRz1vczIunPE02OMVV/g7seeCI5ebBfHvGtN4Hvv/WcA744WUYX3Cw1WQ/nIh9xjbVDQ8rAcuf2f9z+FVtgIvouACGNoQ81eGx5lkVPLhhc8SnKdVIt+ljPw6bC4vADlBVuCh7xBr3S6mKt6KEnLfBe+wQBhAQ9gE0ba1pccry0H72drHw8WqXHnd60vyNFDWlv+BjwjkjnVBajn+jhe1XW8yCFdJsKTO8ymtlBWG06iyY6yqizPGejxVFPLDw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q2m7Xic/2FVUsF3wd6n6/qI2h8dmPm4GALTHZOFkmF67rf0q+YHUxfLEPGxuUYgpoY626D4kmFcmldUzQDSf9ygVURVo+JE3cBshZBmLQqOMM43Gv572C3d2CUd1JBMf/XLd5HqSZaO2Vn/U6yZr6Ns4e87wRfKxl3vxmq82BHgN+mLiuZdkryYwzc73uP2fsaW7HeLflot5KIsd2Tf7qpE5Q3M0rUMvJmcwYsIx30xogPIRiTqsSL3h/4z5Twik5qAKu5G6U+wgcioXJeOJutoiW4K14YSsOSGnZzbXpqCP7/YQvxKpExk5by8dr9ysWy3UMQxvg4gquMs8LzNXjA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Wed, 19 Jul 2023 13:16:38 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 19.07.2023 14:54, Alejandro Vallejo wrote:
> On Wed, Jul 19, 2023 at 02:09:55PM +0200, Jan Beulich wrote:
>>> [1] The hand-crafted alignment there is going to collide with the efforts
>>> to integrate automatic style checkers. It's also not conveying critical
>>> information, so I'd argue for its removal in the spirit of making future
>>> diffs less intrusive.
>>
>> ... I don't agree here. First of all I don't see why this should
>> make style checking harder. There's nothing written anywhere that
>> such alignment padding isn't allowed in our code, so any checker
>> we want to use would need to tolerate it. Plus while such padding
>> doesn't convey critical information, it still helps readability.
>>
> Considering the last Xen Summit sessions I think it's reasonable to assume
> we do want automatic style checking to become a reality.

Oh, just to avoid potential misunderstanding: I certainly agree here.
Just that, like in many other cases where computers (or automation in
more general terms) are involved I think that ...

> If we want an
> automatic style checker to be eventually introduced I think we should be
> mindful of style changes unlikely to be captured by _any_ policy we may end
> up having. In particular, alignment of arguments across different
> statements on different functions/macros is unsupported on (most?) major
> style checkers, and that's highly unlikely to ever change.

... the goal wants to be that computers (or alike) adapt to their
users, not the other way around. Sadly we're still extremely far from
that ...

Jan



 


Rackspace

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