Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1201264rdf; Sat, 4 Nov 2023 10:07:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH67GdLSN1flBZDbWQvKAbpyxWuu1eh4mi4tvRpEo8wX6U70JGh8HvdxzvzKNHLKuooQvsR X-Received: by 2002:a05:6e02:1caf:b0:359:8ddf:5319 with SMTP id x15-20020a056e021caf00b003598ddf5319mr2486757ill.26.1699117665055; Sat, 04 Nov 2023 10:07:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699117665; cv=none; d=google.com; s=arc-20160816; b=H3t/N8N2BlKx3ZQZpXAUfEF9cAiNx+n4rSfxkMAj7vnQZeDsdffyrc6IKG7nLfQnOn O3tBhtlKYeyTgNggPuQ7Ge+GZK/+B4qjs+6kHaqGRjS7xBSerN7YFHg2oJN2Y2Io++gV e6vwz8ve9peJ3tg6QMMka5yB1OeTIcl5TUBgxKvD4eL470sdOBu7i6AY+P1LWvgqHGTu nXURtT/w5u5r3MaHbzbXJLARrZxBFH8O/pgIr/YEmKX1I7/5yhAxtnFZ67eBmonYgQNv eb3VUtP7/w01xLe02EgTEKznA5yp8ZZlt5JqJg+DOkHNuhgOtGk+pGkLFx77d+2DtFa3 GFuw== 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:dkim-signature; bh=IBHZBZgPZLkilEgHM+iLKvZuEHV8PI40cHl7yRVRxRc=; fh=Z0ZehwIR2qrEFnKJg62jRzizW+Byk8PQP+cpG2cWhBc=; b=auSYyqxldKtP8KzsY6p00qzJodaL52d9aV2sRzkuzfaodAGjO+Nuco44tBC2iz4amj /EoNUxXfn0xXAZsHRWxtenBeTBrp1PJvv7hMH1Ucmcr3uRn4XdgBZw9Y9l0BdTlnLPfG 9N9r6toQfRcU7iHzAr1XeE/pX1SuiiOblr9uYUQ7V5irLe4eTSzLipWqkhwZva2UJ74W lOPLbuMFcBoYUde0yP1G/8nhYKJQxP+MguWGd4ZVuvE7v5uqN8I1zs8Wf7xkU/Ips5TH 7Pt4/nf5rDrX1XOsPE2iHLKydCS4pr6VYyJPe/Wt3ZF2N+SdAyIFJdvm2AmF5xnLoeL8 qy9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Kd0A9owD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id a64-20020a639043000000b00577461296a9si4076493pge.338.2023.11.04.10.07.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Nov 2023 10:07:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Kd0A9owD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 7FFE0809B754; Sat, 4 Nov 2023 10:07:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231845AbjKDRHd (ORCPT + 99 others); Sat, 4 Nov 2023 13:07:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230346AbjKDRHd (ORCPT ); Sat, 4 Nov 2023 13:07:33 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00858D6 for ; Sat, 4 Nov 2023 10:07:29 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26100C433C7; Sat, 4 Nov 2023 17:07:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1699117649; bh=LJCA+OvIsfexwqTaGeqdAs8QrpD0uGcrfiZB987OFM4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Kd0A9owDY8wVZufuwy5gtqYTaM5gv7cAFOttxDjt0DEtjNERT2lrNklf2LyLuzu1F z5R7xXkvbK4a/K3bFMgpTm3HM9GtCvLBt3uyOPKeVIZYxibGQ6ktgXeb9Ck7ux+gbq mQBb4l4UYOnbjWT7pJO0QgxZC7cpscOIFfy2cnb4= Date: Sat, 4 Nov 2023 18:07:21 +0100 From: Greg Kroah-Hartman To: Willy Tarreau Cc: Thomas =?iso-8859-1?Q?Wei=DFschuh?= , Arnd Bergmann , linux-kernel@vger.kernel.org, Zhangjin Wu , Yuan Tan Subject: Re: [PATCH RFC] misc/pvpanic: add support for normal shutdowns Message-ID: <2023110418-unreached-smith-5625@gregkh> 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: X-Spam-Status: No, score=-1.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 groat.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 (groat.vger.email [0.0.0.0]); Sat, 04 Nov 2023 10:07:42 -0700 (PDT) On Sat, Nov 04, 2023 at 02:56:34PM +0100, Willy Tarreau wrote: > 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. It's already there :( I thought we had a uapi-safe version somewhere, but I can't seem to find it anymore, so I don't remember what it is called. thanks, greg k-h