Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1928701lql; Wed, 13 Mar 2024 12:07:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVIsXjo8pNwK58C+BOcBwJzh4SG/qFsQNUHNed1QApIiMcGC/bla5ZNpVnvdWpp+nHLH0/VxIPV6+pf0Feniyw41dunKZvw69dSBPaOAg== X-Google-Smtp-Source: AGHT+IESJddJ3s+hdDDOAkAzWA/da/onUoSGsdW4XKgrTA1CBLanuSP49I79o4XM2RPhN8eXU8D4 X-Received: by 2002:a17:903:2292:b0:1dd:96dc:dbad with SMTP id b18-20020a170903229200b001dd96dcdbadmr12166433plh.22.1710356829030; Wed, 13 Mar 2024 12:07:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710356829; cv=pass; d=google.com; s=arc-20160816; b=m+pwI+pSGqqdHOsAUGTeaxbGVTQbBjFDlUg98fQOEDLiKyAyjVXlNxMU712mvXM5TB J+IN+HAAeCZ9nE0NX/K7t+72t5a5zus+gf0vUhk1YdcRn9aORTiGZ3CkAzAprOqfeCgY Kv1DVY5tjUKOB7v0ri4KpMd3CrFsts6ztquE1QOU9ihBQq4oJQilsG75loLUHIc42gcn 7NjoZ9xXz91jlsunlZh4w5h/D6ljZ9A1yU94H9AYGauIHNV9vY65b544JOIfO5It0KNg qRF3mah0e4QSJb+P05G0HNBmlltSqUSwririijoVGcRHQGkTeum9I3ewArBpjpU1XOj3 aCNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=m6TIIWo6IIeemn4fLFrwhQ97wXAkxSa0M1TWvSkUCZQ=; fh=NFA59gvWGDAG9m/z6rMVTCYCao2v9J9udH5UIainMT4=; b=AQqY/0mLQuX1tcKOEoT04SS0cnbhJXsU5TStjohcY/SG0knRjFzSWUFOxKCLD2zXZX ZCmywtMq6EBdLxjG1Ac7Bn+nTAh3XgRMR20BDxmBYEn1fspXVo0/VQOl5jpW55Wmgwfj EHbarDe8LfrFeAhmzwZ7A8lo7GKV/Q43H3r/00ZkIECcEsCLwJrEn24sFsbd3+hzaUqS kZBwcGWAROcOObLnOAFK9CvFvFeH39yzWJKEHT4J9gzP+J0MsJ9mV/wzfMzkSBnoGnG4 YN5JBon8Jyxwd4mEAPfLz19t/okYeeUQqLKM4YATbGRitDiahoAYE1/mS9Cesllu4gv0 Gq1g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=eJQ4wG9F; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-102348-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102348-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s5-20020a170902ea0500b001dc679303a6si9890782plg.71.2024.03.13.12.07.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 12:07:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102348-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=eJQ4wG9F; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-102348-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102348-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4F315293A29 for ; Wed, 13 Mar 2024 19:06:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 75AF860EC7; Wed, 13 Mar 2024 18:19:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="eJQ4wG9F" Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DBCCE60DEC for ; Wed, 13 Mar 2024 18:19:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710353993; cv=none; b=LWMLl1ldE0FkV7N/lb6D4pnFoi7ifMXPoEuqBZi79sZAK3jlVsSav4AWaSClRqtO5l1+8cZGwm8LsHptpGLznmD+I82lkIxtz+ZNCS0C7jPjG31+hfVr3I2IxTcJx5pW0+RqFm9VsAraen0orZuDFWOXtMBW9lhn0Zw9lShtX+8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710353993; c=relaxed/simple; bh=KCFc7PDUBA25mdcJlQ6DeNsE8GXrWSpFQMSgo+06cRY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To; b=AETkikd7SwcJXhPd6PGr6tkW3SencthFaihPq2EUgoxHt+Rz13nEToesktZeWDD/L1O6tRJLKGTM/kdzQ3VxRPtNPR4R9ibgiv9ieb0fQk75dmzXmg9foHHlm6Lhlfa0+I/FR9eSFJPvb8z2b3Al47w8MBi8pXAJXX/zh2c8+24= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=eJQ4wG9F; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1710353981; bh=KCFc7PDUBA25mdcJlQ6DeNsE8GXrWSpFQMSgo+06cRY=; h=From:Date:Subject:References:In-Reply-To:To:From; b=eJQ4wG9FQAFO6D1MQG0303ZbPcTX4fcJL+NfI8N8fUaxkVAMFBShC4nfXfWy2nHiT QGXJ4+eXdSVUtCzAT7PeK79AZvvWUpCStS8cIi5FIwV0fCdyC4v0Go8+Xvy5k5XjBC +htt077M+2cGaUmslhVxxD7ycMUJipvf2D3fyOeg= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Wed, 13 Mar 2024 19:19:30 +0100 Subject: [PATCH 1/2] misc/pvpanic: use bit macros Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240313-pvpanic-shutdown-header-v1-1-7f1970d66366@weissschuh.net> References: <20240313-pvpanic-shutdown-header-v1-0-7f1970d66366@weissschuh.net> In-Reply-To: <20240313-pvpanic-shutdown-header-v1-0-7f1970d66366@weissschuh.net> To: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Arnd Bergmann , "Michael S. Tsirkin" , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1710353980; l=811; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=KCFc7PDUBA25mdcJlQ6DeNsE8GXrWSpFQMSgo+06cRY=; b=duUiqTbuq/rfxkKHUsvdoNJfjH5RaaDlXZN4w7gL9ddd+7g1LWuBq2xUVJ2/R7umzZimZhy7P 8OxPKw47nuNA3nIYB76zmoy4sU7qdm45KqlYbKxTmnD5UdyHlz/F2rD X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= The macros are easier to read. Suggested-by: Greg Kroah-Hartman Link: https://lore.kernel.org/lkml/2023110407-unselect-uptight-b96d@gregkh/ Signed-off-by: Thomas Weißschuh --- include/uapi/misc/pvpanic.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/uapi/misc/pvpanic.h b/include/uapi/misc/pvpanic.h index 54b7485390d3..9ea6a965ca7a 100644 --- a/include/uapi/misc/pvpanic.h +++ b/include/uapi/misc/pvpanic.h @@ -3,7 +3,9 @@ #ifndef __PVPANIC_H__ #define __PVPANIC_H__ -#define PVPANIC_PANICKED (1 << 0) -#define PVPANIC_CRASH_LOADED (1 << 1) +#include + +#define PVPANIC_PANICKED _BITUL(0) +#define PVPANIC_CRASH_LOADED _BITUL(1) #endif /* __PVPANIC_H__ */ -- 2.44.0