Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1109388rdf; Sat, 4 Nov 2023 06:57:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHV9b+QxqLNt7h32T4AyyrAJHj+YBG82Dp5stSbDxXocXOm93B943xZvsB+w61KWlPaiRY5 X-Received: by 2002:a05:6808:1815:b0:3b2:c242:aaee with SMTP id bh21-20020a056808181500b003b2c242aaeemr31113305oib.42.1699106224274; Sat, 04 Nov 2023 06:57:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699106224; cv=none; d=google.com; s=arc-20160816; b=RUg6B/3za9pxT+h0Y5PSfufaj55a8TFBnMfZ+WGXNozQi3m0yWIcVLYNnMuz1LFg/C 9xlnkqlqF25iUGiLPzMbIn9w3ZrivavZGtKRHHm/85xfOkwytzICuPycnu9++a+PkLBF uZ4b7ZdJnDRq3TM+a00o2upSgYXP6epE7sQLGYCsQZktDqcT+vzXWKCVhYIghRYtZWSl EH66kcCDwmcTe4QMjeihEwqXQOoFFsWOoYurpm1/EKlRonBjKL9dnnYfCrjOsaEKMe5w 1xd7BUeZCo2wOWDUqtc8geQoPsVdXnDdZXJQgbsbDIOBRZqATuKuyov5LQUblVDXadQ9 UWXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=uMe4NN+zlC1+qRHqdVDZQ0Q1d10kirQ6egdxKaeGLOk=; fh=fPbqnwV3FNQ6mRTQPX0SKn+LgejvbojNiDrPk6COF78=; b=aKpr1nb/7cdkQF6kk57s6wYS/mgVqp79weR1GR+CRfJSkSnpHZxNjyKYg7cwcUxbMG Wsei08wmNCzG98VyMsYhn6VyHV2i38WH/7v65LaZOcsHBKmdqXaQjQmi8E3kyhSPMvMI GZvMpXwSFi9C23efiE+E0Xw63iw4sl0CYkHPlUJnUms1md1NrJDlwrkT9vaEJqvp4CHY CvdPvtIevqsUldP0S2ocwz+VK2Y/3Ptna4uuhdWHUIsAuszlmMEb6zHgFW/zTrDN4rWG HOurL3xqfDPqBmrc06wsiOWOEhTe5285ASuu/MNQCtqxgU78v+YKim3OleRjShWl6Fee v2lw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id 78-20020a630151000000b005895c80c902si3637017pgb.438.2023.11.04.06.57.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Nov 2023 06:57:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id B04978054B6D; Sat, 4 Nov 2023 06:57:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230163AbjKDN4x (ORCPT + 99 others); Sat, 4 Nov 2023 09:56:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229783AbjKDN4w (ORCPT ); Sat, 4 Nov 2023 09:56:52 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9BCF4134 for ; Sat, 4 Nov 2023 06:56:48 -0700 (PDT) Received: (from willy@localhost) by mail.home.local (8.17.1/8.17.1/Submit) id 3A4DuYtw029688; Sat, 4 Nov 2023 14:56:34 +0100 Date: Sat, 4 Nov 2023 14:56:34 +0100 From: Willy Tarreau To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Greg Kroah-Hartman , Arnd Bergmann , linux-kernel@vger.kernel.org, Zhangjin Wu , Yuan Tan Subject: Re: [PATCH RFC] misc/pvpanic: add support for normal shutdowns Message-ID: References: <20231104-pvpanic-shutdown-v1-1-5ee7c9b3e301@weissschuh.net> <2023110407-unselect-uptight-b96d@gregkh> <365bbe1f-5ee8-40fe-bec0-53d9e7395c18@t-8ch.de> <2023110431-pacemaker-pruning-0e4c@gregkh> <59ed7f70-2953-443e-9fa5-d46c566e4a08@t-8ch.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <59ed7f70-2953-443e-9fa5-d46c566e4a08@t-8ch.de> X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sat, 04 Nov 2023 06:57:01 -0700 (PDT) On Sat, Nov 04, 2023 at 02:53:37PM +0100, Thomas Wei?schuh wrote: > > > The real reason probably doesn't matter today as the header propably > > > can't be dropped from Linux anyways for compatibility reasons. > > > > > > > And if they need to be here, why not use the proper BIT() macro for it? > > > > > > This was for uniformity with the existing code. > > > I can send a (standalone?) patch to fix it up. > > > > If we keep it, sure, that would be nice. But let's try to drop it if > > possible :) > > It will break the mentioned scripts/update-linux-headers.sh from qemu. > > > Note: > > BIT() is part of include/vdso/bits.h which is not part of the > uapi. How is it supposed to work? > Some other uapi header also use BIT() but that seems to work by accident > as the users have the macro defined themselves. Be careful here, we don't want to expose this kernel macro to userland, it would break programs that define their own (possibly different) BIT macro. BIT() is used in kernel headers but we should not presume that it is available from userland. Willy