From patchwork Sat Feb 3 18:53:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ricardo B. Marliere" X-Patchwork-Id: 196352 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp38761dyb; Sat, 3 Feb 2024 10:53:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IHXmM8uVI4Hd/x2iXaa4/hJd/Qu6qAjZiGsgipgCfUtEPmlzXTbCT+g1smLm9YxDNdTZaeV X-Received: by 2002:ad4:5b8f:0:b0:68c:8772:7dee with SMTP id 15-20020ad45b8f000000b0068c87727deemr2102092qvp.43.1706986421886; Sat, 03 Feb 2024 10:53:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706986421; cv=pass; d=google.com; s=arc-20160816; b=MTW89NfiXQxvGCfOWcCXa9ICzcx7xjX0BQl+jOjY3l4Umqbrn2pcKik6zDjYH2KPtq ubP7axZwZ1+TElkq05GVsPu1GBW1/zv6uxPe6A+QNd4N+wxHLil2PWE3v472TMhVxXWa Z1bKLbjlUwjHqZ9cdQLDCtPsb720Pmm5SCdcHQN6FB5/7JbqWOm4usZ6Zk3LHh0pHx4G 4VFyAoQYWi/uFsIrrhOZRk4VdcJ1tq/VgV8d4FgefTDnylkOux0xT/2Kh963LBpkn9XS /RhiQtmdtZ4mgduMp/w1jvbt2Y3Yab1dDil2QAVpML7UjHef62emWgYWNhvBXzZzMu3o 9etg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:dkim-signature:from; bh=xhpVXJ+IMs5n5HNm3DBIJeHeLpAjHMNMhg7tgPyvFRk=; fh=FgY4aqrR0saG8e2si2/iLDDEChD1nbTMuiHOSVpctM8=; b=EolMbLab0+B9v1L/mIxWGBy3vFiXY7neb61qGgof1/a6JXlLfQISAizCOYrm0UAljV gstKQ5BYPWAgjGa3xf9yDfJyfK2zlsqmnZpkWdokcAgqoKU8dtCqrOT/uWBAC2RgAiNG DrjcFS14G6GQuC9AJyASlqjmfa+Ln7UPaSSFtCBDHOTGtVGFideSrbLIuu9dvgQugsxF Q9AWYb8JlptLZIHXiyjHInMHR5RPSBm2WGicC2mlwVNkm1pHvWy2BG8gc6TTvuktTZp0 lXKHqPiCvLPenc9dm3yiglrLBjSiRiCdSzV2mR/kXLAl//E4vy/ewAzkbv6mUvLtsHYh BnYg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=temperror (no key for signature) header.i=@marliere.net header.s=2023 header.b=HgpwLjLE; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51247-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51247-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCV8VFBl069zel18IhbmPG1k+nqezBxkFRzBe4ZN8+zTQnkx4V/CgLVIojDw9FOF0qWDlYmGc+CN5lklCzSBLmxGXbQAOg== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id et8-20020a056214176800b00680f70d3983si4967104qvb.117.2024.02.03.10.53.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 10:53:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51247-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@marliere.net header.s=2023 header.b=HgpwLjLE; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51247-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51247-ouuuleilei=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id AAF1C1C21FBA for ; Sat, 3 Feb 2024 18:53:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5B67F5FF0C; Sat, 3 Feb 2024 18:53:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=marliere.net header.i=@marliere.net header.b="HgpwLjLE" Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B638138DD4 for ; Sat, 3 Feb 2024 18:53:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706986396; cv=none; b=JbN/6U2mdviIEm5p97ZejolMsGUiQdwnhadulk9F38WG+Gom0jHnMujrgBAqsuOwObkJOZYfgu1daOxFRQm7ctKGtZl15lwPSSjCzrgV7qgVlHu08O2UxV1kPffYU0ls6eO8DMi5OWaUycLjhDelfYJ4dsQGCgncJCVhL1rwVlE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706986396; c=relaxed/simple; bh=uVbAr2jHnQr3MqspyOfEzRc9k0HTklRcQDcrLwrPX2E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SqLxx4cG8Tj+yJUIGbuw4Rqndr+zXBmGDVIA/D/yyRxIWcw+i8ZE8fF6Ib+lC0tyyZvAVVbnxiD8yuZq+mLJQY4L2MIi9OwlbQJ2iBShd2XlfkK+PbPGkVxHUBXow0JkK1QP78woKi+kHvJNNd21H6jCNaYjY8OMD7whX/LlVks= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=marliere.net; spf=pass smtp.mailfrom=gmail.com; dkim=fail (0-bit key) header.d=marliere.net header.i=@marliere.net header.b=HgpwLjLE reason="key not found in DNS"; arc=none smtp.client-ip=209.85.216.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=marliere.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-f50.google.com with SMTP id 98e67ed59e1d1-2966f32dbd2so122108a91.3 for ; Sat, 03 Feb 2024 10:53:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706986394; x=1707591194; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:dkim-signature:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=xhpVXJ+IMs5n5HNm3DBIJeHeLpAjHMNMhg7tgPyvFRk=; b=klmOzQwAaZ2MnX/0DWq92Rpba/Ei8p44LXif0cCZgLkSS+n4LrYse3B/BJsBm8weh6 2WUUE7NXIssF33hyfhWQB2Z2U6wqvqu5WkfsD2pHWWaPHzcCk8Iy4sOx+9rlHyNKb1QK +kr33Tz35WAz88NVNGUHE40hGpZHiZ4rTTLq1EiAMo8eaV2al60prnPEHJUBFI8n/CQS 2mDnxCQf80PgBHRAma2InN7SdWxr4TuCXa2qNF9RsrdmFA8Gg1i8aroT2tLBRZo/WfWr AnIS51FrqvG9ZjEv+eQs6GmxAKLaNC0rKr78wb+Oz721AcnMUnStsBvN0vXNosWaVzQq vJmQ== X-Gm-Message-State: AOJu0YxpdkHyIaLIdvIlmcaf6iMDy4W6fJl+a6+rWZCv6+/NbBh+wfmk H9B4r2LmGHr5wLWx0ClaRSlvGX6FaWqq4VrC8KbkfUlRui0y9ShN X-Received: by 2002:a17:90a:fd84:b0:295:ab00:e9b9 with SMTP id cx4-20020a17090afd8400b00295ab00e9b9mr8137370pjb.5.1706986393946; Sat, 03 Feb 2024 10:53:13 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCXU3F//e13WRqDNIvePL9ElC+L1hOrpM9eXVNU4WUyGNILtV/P/hwWPIxHcY/Hvjec4tjvqzgBxTPCeEAppBqwINIMrDzRToVZ0tb5Z/wj6qHZyi4NVR1xqob4Xsz+T70MOVp0cAogc/podyejn4uFBRbE4r4EOOtlGtaKY7e2jZh8oi3f3/uNG4PgqC+bs/xyOW6UAaWOlg2fGjiWqRkI= Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id s15-20020a17090ad48f00b0029636e02c83sm2143181pju.35.2024.02.03.10.53.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 10:53:13 -0800 (PST) From: "Ricardo B. Marliere" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2023; t=1706986392; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xhpVXJ+IMs5n5HNm3DBIJeHeLpAjHMNMhg7tgPyvFRk=; b=HgpwLjLE+5IojjaDPw5lVDBUECMPSExHUMPhE++AL5xcGmYR3TeDz16MbH7zvVuZcuV5RZ 4CNrmHvySWMapk0sZFaMJeQB6tvCEaW0NIrF7d4w6ZrmiMrby4BgZAvN9+tjz2G++u4r4w g1WohaDiXSkJ1PbbGFjguIfXcDkazNeuHAmnsCs4+TAQfGKlZ7bW55I1mz//fZzFDUowaB tk1ydtFuveiyVSiNX44BG98XUe9QjlUuP2GlA8LuzUTVUjJx+In/cmZUhiecYr1pC45nAL G5A49wyLaW2gu6Xab/A/hPxI/xxjRRLzA32U6yU+UZiHTQntU4nRd9xKIoQPuQ== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Date: Sat, 03 Feb 2024 15:53:37 -0300 Subject: [PATCH 1/2] xen: pcpu: make xen_pcpu_subsys const Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240203-bus_cleanup-xen-v1-1-c2f5fe89ed95@marliere.net> References: <20240203-bus_cleanup-xen-v1-0-c2f5fe89ed95@marliere.net> In-Reply-To: <20240203-bus_cleanup-xen-v1-0-c2f5fe89ed95@marliere.net> To: Juergen Gross , Stefano Stabellini , Oleksandr Tyshchenko Cc: xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "Ricardo B. Marliere" X-Developer-Signature: v=1; a=openpgp-sha256; l=846; i=ricardo@marliere.net; h=from:subject:message-id; bh=uVbAr2jHnQr3MqspyOfEzRc9k0HTklRcQDcrLwrPX2E=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBlvouxTV6WmgHhD2cBPYK/XUfsjwDH4uwBWaCje UD7Ddr2uBiJAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZb6LsQAKCRDJC4p8Y4ZY pqGCEACkMVwx/dvxAGqkTeMv3vt97i5rt0L9zEHqvNbgGvxqXH7vIcUCDiuX+ziP0EpEUVdYV7k lpXpbodhjS9FFsFGFz+otupP0ETTWlykpYf/fV0R6CVcDHTGeh0KsvlBE7wUod6gN+x3+70cpxV EUX/Gy7KTHd/1RUYtnvcWjdNXky9qsWIHZ2gUY29UljGu+pWgXXM0y6N0bWUdI8jOVr/O08mscj NWZMFj6l0KmP/xmu/YZtnsvmmG59BTE+1TDPZMwWv8Bc0NBN/Crf+cdpOUHf4Ttp8Pm2kGuarNT epDpJ5MtH4kwMI2VrQfnzo7rBSHjPn0o2n1LofwAcPMkcJ8dP6YA9/p3MC+hfScuRVo3pmo44En zjZwz2RoD2zzRhDoj1uJqjWwVl6bsxnTOgHp+FRHWnCzFb5QBWGpGYD6RskC7YyrywFqE5cr7cW pU4zo1L7Cx+k2hvWPt20+Q6fuF4zike1ItHUAfV1yGVnk5vMDQYUMgYzaDanTJInoosriAsw0mi OpefvNjEidNZXxXHfsem3ZpKpUonrVqErVqmKcEgeaT2BKa4DoqQMwyubVpOD8pSA2KOMZyWWpQ IBegfAdUOBd2Jv+Tf2UkaszcT1FEawY0F5HjWONwE5U2joStmRWirRS/yA3lTCeB2laJlFHBY9L waKgnT3rwMWDgAg== X-Developer-Key: i=ricardo@marliere.net; a=openpgp; fpr=030A8E9E424EE3C0655787E1C90B8A7C638658A6 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789904994271223599 X-GMAIL-MSGID: 1789904994271223599 Now that the driver core can properly handle constant struct bus_type, move the xen_pcpu_subsys variable to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. Cc: Greg Kroah-Hartman Suggested-by: Greg Kroah-Hartman Signed-off-by: Ricardo B. Marliere --- drivers/xen/pcpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/xen/pcpu.c b/drivers/xen/pcpu.c index 508655273145..c63f317e3df3 100644 --- a/drivers/xen/pcpu.c +++ b/drivers/xen/pcpu.c @@ -65,7 +65,7 @@ struct pcpu { uint32_t flags; }; -static struct bus_type xen_pcpu_subsys = { +static const struct bus_type xen_pcpu_subsys = { .name = "xen_cpu", .dev_name = "xen_cpu", }; From patchwork Sat Feb 3 18:53:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ricardo B. Marliere" X-Patchwork-Id: 196353 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp38809dyb; Sat, 3 Feb 2024 10:53:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IHf3WEbobQKIRUdEG4Gd92kobOiHWzLughZhPoAlZOlnPfYOGX8BwTehWQMn2+Zpp7T8QKW X-Received: by 2002:a17:906:f9d6:b0:a37:7782:7582 with SMTP id lj22-20020a170906f9d600b00a3777827582mr404048ejb.0.1706986436269; Sat, 03 Feb 2024 10:53:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706986436; cv=pass; d=google.com; s=arc-20160816; b=YvE5apM/Rpifmbz1unBzoqDWYNfz8zJtfu7FZyBbgQn2f6xttFjKO5TytIEEX2e5Sf KkuBrXtklNi5jQSk4Hw6JFBs7jz6oJFQpVV+/VOEOyaICCKFVDQvSDakjtsKQMcDQzmF MFmF31H6qwr+4zgsr7nCF4Nt6zL1gX0+DW7BBBddxBm/fEivpkof5dBhqM+C5OKgRKLS AbfYW4PGYiUnD/ThTLEfxnRc4h0cDasAMQ0mPWN9CguKoNcOYIG00mONNakks1a6irAZ Wcid+Y0BsCAEhTSrAgdbWOLJU2srXNxf+OeIxpt6IvsQCrBZiW3c/wYVsYqogr91dRT/ F+pw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:dkim-signature:from; bh=UMK6uKXfNz/nsGcon/C8VrTPd2Ab3T3BTLt2EsWBnyE=; fh=msK4oJNjBCJFf8z2m/2eNhiJF9l4Xz+m67n/xxcVpjI=; b=0U0nErub034G3yipC3DmIx6OZGF1rLJlzQjNpse9hOTu9O8t2DW2oh8yPdc4gC9zo5 w8xjy9y4bpQLSE3r/1tqreAHouPdn2TAzhA+/1qdQAgRy3H9cbNCtp+qc8yIT0Utw48u snyEdmfXKDSXl+GRkwp8prX8XNSlMAOhap6XhPehe/C2k6lrQETlkTmgnp+JLMu0eI3f CJGljA20k3kHwGKwoSwbW4pUOxnG3vt5LyOeCP0W3B19YL0A1/GG/mkgCIENCpoFclJw dABqsOXz9wb6BMECf8Bwn5K9YXygT2ddq4BdF5yT8LxOW3B4lglPIgZnxuSaL5qHZxlC oDgA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=temperror (no key for signature) header.i=@marliere.net header.s=2023 header.b="d/b91IH7"; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51248-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51248-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCX5rMSlxguhvly2v/NtbnJMkK8jUuHaqNEqPRR9wmtQupKzMM+o7EkHKWHFOVIB82JPX3cGl2mnAgjpn/JIxhbZL5ym1w== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id cf21-20020a170906b2d500b00a371defbd27si1598831ejb.369.2024.02.03.10.53.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 10:53:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51248-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@marliere.net header.s=2023 header.b="d/b91IH7"; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51248-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51248-ouuuleilei=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 am.mirrors.kernel.org (Postfix) with ESMTPS id DBF611F22545 for ; Sat, 3 Feb 2024 18:53:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F6C160256; Sat, 3 Feb 2024 18:53:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=marliere.net header.i=@marliere.net header.b="d/b91IH7" Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 204C85FEEA for ; Sat, 3 Feb 2024 18:53:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706986399; cv=none; b=jsLpaTB0aDMEhf0F7UHnalNa93DCoZZp/ZCFhSOatXU+ATMeJS6q4GuWN/V5Ztzrj25EhXuhvxSo4Bbk7oB30kOf8OHjNpLy9Jay+VF+2EZKQMspgGDstd+ajUlLOxD3kR4qHF8odCAQ9+felFYh5Uxml9y33vxSuVsiU5IZ08c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706986399; c=relaxed/simple; bh=a15mtQr01yfWQWLF5/5WsbY/2R7o79ghPTBzDCe5X0Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Y3VzXgojSGa5jO3tFCGUbX94j+6cOw+ur3VcWCAjbyzfHROsvXMm1wvHyxfjpPqr45M2+Msyw2IyTH53q8iegDp4iN4IE23G4XgkO89OsAWWc/uX/stgKon1tN/wKQ2vUA7wdjdjbVtX5RXs9e4WdkjuGcFhrnoQ1x4H6YK3iVA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=marliere.net; spf=pass smtp.mailfrom=gmail.com; dkim=fail (0-bit key) header.d=marliere.net header.i=@marliere.net header.b=d/b91IH7 reason="key not found in DNS"; arc=none smtp.client-ip=209.85.214.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=marliere.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1d780a392fdso26681135ad.3 for ; Sat, 03 Feb 2024 10:53:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706986397; x=1707591197; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:dkim-signature:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=UMK6uKXfNz/nsGcon/C8VrTPd2Ab3T3BTLt2EsWBnyE=; b=tUnUPgihrqycHBW6f5uNaTiKCbJU9w+kOi6Lq82foCQ1RJ0e3f1OQKwnQlMrf++RXC On//SH2x0g9pZBJzJ1ZCvM1HLXQvShQUdRhHcBm3ZWmuGqpzvnMv5QsDCX9N7MZwI4xo jFIFlf3cI5iZB+GKpuBotFGn12DdXvxEzS50vjwQbGAVTGnGGRQ3Zaf6Es6R4kNNdhUd 28lsjQROs0WtN12yVdO4mEqrgo9fJ45LLu/iBve0D6I/4c9CTXeqdLvbsyVGpIG6U4xd n5JbLH0CyloyPgg2rdvrrCsVCuyYknf4AL0ByJgkl7oMXreTwHgMGECfHnaGaPChjQtP gOhg== X-Gm-Message-State: AOJu0YzyLCABMO+gpVVOiKXI62s9n88kITt9NapnJ5rZWTI2hBByX2QO 8MXz6frRe3IBwhIa2k04AX9DrkbLiouOBxSD1DtIQl978kMc3m+r X-Received: by 2002:a17:903:249:b0:1d4:e208:9b0 with SMTP id j9-20020a170903024900b001d4e20809b0mr11130471plh.44.1706986397240; Sat, 03 Feb 2024 10:53:17 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCW2Fadp/SGhL3HK6yTH0lKP3rfGEbv8/GAi3tzKf8/aeB0by5STQsj+r3op+wDEmYIuRn3Y/pBERUwnHxVAj4AYKwjYXs2RMwgg8oZjWyGFLFfGNnYidF/TBcQMLaYr33BdKR1jQVFG4GsnUWg1Hw7QkEcXLBHAY2zOJza4ElNmpOGKSOReeWllojdyhoXBArdQTvK9HvU0OGd8+ruzpG4= Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id l5-20020a170902e2c500b001d974ffa1fcsm3058420plc.173.2024.02.03.10.53.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 10:53:16 -0800 (PST) From: "Ricardo B. Marliere" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2023; t=1706986395; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UMK6uKXfNz/nsGcon/C8VrTPd2Ab3T3BTLt2EsWBnyE=; b=d/b91IH79JyEKl4lTtvPDJZkgOP3vWmmAkRT4CCuLWZ0q0cM4YSYxO5x90ynhmRNqoGAb2 MX5rNMnI6UgqZnWkeyWxjhJFxu6toynOA6u1Xf39buDCaFsawntbhwVEJp4N+4J3Ac2VGr 5JhntPbRQe4HHwF5nDA3tPxH7mRIfY9eC35llsvDKa1lKbPx5tocjZGIlRdh4fmxIRP4dz lDNqKI/O8JqdQhhFkkGn7Ql88HC6qMjbRvdMxfjHIwzMEgQ1Pv8KMtRVhdEHMuj4oHrKqI 4GnnRAarZ2sl5RD64TTF9uXul3GTgCxT+M5jvICQ2/zjXOW1oyqh6CeYlAXRYw== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Date: Sat, 03 Feb 2024 15:53:38 -0300 Subject: [PATCH 2/2] xen: balloon: make balloon_subsys const Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240203-bus_cleanup-xen-v1-2-c2f5fe89ed95@marliere.net> References: <20240203-bus_cleanup-xen-v1-0-c2f5fe89ed95@marliere.net> In-Reply-To: <20240203-bus_cleanup-xen-v1-0-c2f5fe89ed95@marliere.net> To: Juergen Gross , Stefano Stabellini , Oleksandr Tyshchenko Cc: xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "Ricardo B. Marliere" X-Developer-Signature: v=1; a=openpgp-sha256; l=931; i=ricardo@marliere.net; h=from:subject:message-id; bh=a15mtQr01yfWQWLF5/5WsbY/2R7o79ghPTBzDCe5X0Y=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBlvouxq6eiZcwBEfL0eKDgR/Tsw3cuRwc1xJx6s WHMrCFJCRGJAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZb6LsQAKCRDJC4p8Y4ZY poA/EACY3HzoQHClLbpnthOER522MUTZO2lQJLXt+WNqaobWySLeseiDeex2CGxWdeGsn4gzV3s SCD7J00yLWCX29j3M/BvDTPmePA+mavHsyQ8rQielbuNnr3B5iXLYmHFaBEHd4D2+LC7NolXmwA XDAa2sLewEnr7rvIk2PMjlmcHa/KIOh6G7Ls/12Q95339qmdPhDIbZk4NjH2KY8Pr8OAzRw4DpW UptByEzu3k1kS59uBT7FfrjvIU4fWmEmlJAWU/LoXKt+AlkbrOoNcKRsXX0Z174cxZlT6u3EHeA I2zaEzpITAelotRc53pJpVw4pzdKJoodaRIIF0+Tnolc3K2iclnHCHLVP4ZzSdP4cuSd5yaD/Me yyS84r5wQksXW4aqTvmhHDVz/YVK/N2O9wGRo/hQiDzT5LZKnBuXJWYc0zDIrLdI/Bint4kKJDm ygxa+XRL8U7KhpMsuSe2vrNMlvt5+r6SVeqQ+3PyxjSEIHm5A6Tlq87EC3InHuN7v+bv6ciEkb6 WMn5YKTe/VR9rmjUqqIs9KaSOzg5EBPrU5KJAi+EPyEBuUOOYUoNxAaea7dJMRdHqRIhcyvb40J khD83wKupnXtMRyuSG2iGRp64bsE1ep9J/UU27/ZdmANXs+kxoaU0PnFf1APqUm18cS3GHxwLRs PWecp9qGUFo1M6g== X-Developer-Key: i=ricardo@marliere.net; a=openpgp; fpr=030A8E9E424EE3C0655787E1C90B8A7C638658A6 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789905009641547382 X-GMAIL-MSGID: 1789905009641547382 Now that the driver core can properly handle constant struct bus_type, move the balloon_subsys variable to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. Cc: Greg Kroah-Hartman Suggested-by: Greg Kroah-Hartman Signed-off-by: Ricardo B. Marliere --- drivers/xen/xen-balloon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/xen/xen-balloon.c b/drivers/xen/xen-balloon.c index 8cd583db20b1..b293d7652f15 100644 --- a/drivers/xen/xen-balloon.c +++ b/drivers/xen/xen-balloon.c @@ -237,7 +237,7 @@ static const struct attribute_group *balloon_groups[] = { NULL }; -static struct bus_type balloon_subsys = { +static const struct bus_type balloon_subsys = { .name = BALLOON_CLASS_NAME, .dev_name = BALLOON_CLASS_NAME, };