From patchwork Sun Feb 4 13:40:15 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: 196498 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp356029dyb; Sun, 4 Feb 2024 05:40:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IFCmgG9QSqoL+x5y6pviLP61mwjGHOUlg7IOFisxwKydzSK5zkTmAeD6MkNzOeDVLF1e94B X-Received: by 2002:a17:906:11c4:b0:a35:8419:4bba with SMTP id o4-20020a17090611c400b00a3584194bbamr8708966eja.7.1707054028185; Sun, 04 Feb 2024 05:40:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707054028; cv=pass; d=google.com; s=arc-20160816; b=p4Daohg7wRiNB5f1wakljyx8Tq9O78m3QM5MjvBlMPBI6tlRcYmue9huuLfolalsqU hPaeRdZLl1rK85pcefeR2TBLcA/xS5KC1VS4D4f37PDLgVfemNVwX795TNAV65/S+h71 CNak22zaHEjVnQjhh+lajXA8cpYOndzwX0SrdomzF/62R/B4eSaJ03HXcabqyBCKsJ19 1DICdJkNh+cZrgb0GcPUu+gWvz+WfV6rqfp4Ez/2vWEmQNGfsy4P+wS6r4mf8kuxARop oZaqNoJs2UiatBuzJuhPHkd717ZJpS3tylK8+oe7pRHG5/Si+PhwmJ9ZIeXoygjMW/OY sdtw== 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=tBaWTmQT6utCl+qyfDPwlUojo2+y3dxVpluj0lh3JPk=; fh=bgK0t64dCqtlPsUtzwkOGv34b/y3IKbiM0wVjwayXgM=; b=PGTd+mZ7iy0RgiwvJv8A8hF5Pp6gKGlJrLwALh6R8ziN446re+bFVQuZgGs7pi4lWA tQ6kgFMhCon9Qem4OAWVKt0Vwf5thxTkWpOqSx7JW5fFuGFGB+JbYz8L4VKiOksNw2IW 9SmoGPv78L+YFwaX7WxNOJ4FlUlWJHCkaWLFqzuP5dZh5OezEmhmffK4RYYp4l+ek+ZV hEkbKwd5xo9f8kUHeyUo+KQoNZDbF8McAa88EYJj+Y5eXOVfcRNrKjtcQQ2sdqtxupQR HwhjwROwjVM7cTMvRnpNvgHlB85mBfMrF1scl0a67S3D7oypXYYfEIu3Ti/W827Dxhmx cInA==; 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=NeLnchlO; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51672-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51672-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCUXReet+qVY7FPxEE3FgyYe8ej3WGrOP1enD5gI3KHe30Y0IFfOgMqiiVue8AO9PxxdA6m8sqH8wgWm/PEIYv3boYISXw== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id hg9-20020a170906f34900b00a365ef1de5csi2948582ejb.35.2024.02.04.05.40.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 05:40:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51672-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=NeLnchlO; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51672-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51672-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 366481F2247E for ; Sun, 4 Feb 2024 13:40:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4D90222630; Sun, 4 Feb 2024 13:39:56 +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="NeLnchlO" Received: from mail-il1-f173.google.com (mail-il1-f173.google.com [209.85.166.173]) (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 EF022224FD for ; Sun, 4 Feb 2024 13:39:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707053993; cv=none; b=QKX897OCZyJoyOp2P7QOufeVFQxIaU/3ifeQSc2i1mJmx64TL7qAY9ZZQR4gBb4tZbeDfknFw5ETDhOYBuRQAFZSRq735mBb4/15YUPMkAW5NczX/Iy/xtVDWWHayEpYPMGic24wkIwB4bwtYHSaAPw7Gmxj4y9Ttsb6nqcqSBA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707053993; c=relaxed/simple; bh=+WR2aLBDrX923dRpLBj8hKxMgbXa5Qh6b11Waw3A9sY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rZnlAnxZzW3XbJcnUtFCPmC/woBnDO2tQW8BXmn/UqqPPWgcahYUxAlA+p9BtR6X0Lcuvq/yi2R6Ck+r2w1XlqM3HSkl34jOcDkpoNlSOgDP1kGijBJDHDFuiVfRJ3lMsrVRopmGRAgGrbi6YalLjCBYz1LnU+bqZXKyMhRgscE= 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=NeLnchlO reason="key not found in DNS"; arc=none smtp.client-ip=209.85.166.173 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-il1-f173.google.com with SMTP id e9e14a558f8ab-363b2cc93a8so8994985ab.3 for ; Sun, 04 Feb 2024 05:39:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707053991; x=1707658791; 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=tBaWTmQT6utCl+qyfDPwlUojo2+y3dxVpluj0lh3JPk=; b=sC5HkKyLOmrn5Ag/yPCWn4akcLBYjJeIppf+mA8iNE0MyFYUwHRy57mFDCBV3GDEeN nbElJIQ/35rllwP0C0XHz24asF4OpUwlWgw0p6WzJh0MJyxdaQutkMZJ+gsr2qpslhx9 TJkKbQqrzYAQubbqAQREQ0csqcJ88DAZtUJ5Qz5PDAIb5aiZu7Dk+JtUYPWrDQUffkVG QjPNPK1DpD3lcitaHv3g7Jz1XX0HcVMYFy0Lbq1IC3VMZJIYRUb4jDkBPDinTtYLFqIF 0p02qRlrcC7qoMVyD1Tc8gnxXSgkPZdsCJmRHWk1+X6e5riosQBbzBMsdj+ThKbQmtsl 4hFQ== X-Gm-Message-State: AOJu0Yyh3AbJmknvfN2wr5KoEFYCpZshfhiwKAl7p817a6RsrIq92ofh x2QRRZtDi5Dkwu94VQ2PHoU/GSGhBRitidnqD4LgO1JNatCRHVMU X-Received: by 2002:a92:d188:0:b0:363:c181:ab8b with SMTP id z8-20020a92d188000000b00363c181ab8bmr3742708ilz.5.1707053990981; Sun, 04 Feb 2024 05:39:50 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVhEQTvz2DXUOVSlsvZ0mOWRZRqn8zbc1Pg7VcRoFiX1jR41UmIonHa2D9DNfVLttY8wK+i7OU/aEZ55xp06utK79Y+f5bz4Ly34Pb10GT3y+iAAWr+BGKHlJZSSh03wa9u0P5EEA1E+S/Eb3/kOKm6 Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id q11-20020a63e94b000000b005d6a0b2efb3sm5074616pgj.21.2024.02.04.05.39.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 05:39:50 -0800 (PST) From: "Ricardo B. Marliere" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2023; t=1707053989; 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=tBaWTmQT6utCl+qyfDPwlUojo2+y3dxVpluj0lh3JPk=; b=NeLnchlOY5Kg3xaeHUaIhAFKi5/1OT9/M3DdsMKgqaH3Bnd6MQdddQ3MEWVUXJDTVK7e/B 5oFUa8Es5BETzUv++GudqmFwpQMyxU9ShFAluLhq0x1JhzwidNWgOfvY4QtcFztIRL80jg r5phw35oeEbVUUx0uJg+sEvTzXO+NU93Qic49JZ+UaXbgA7dD707BA+El6kHKnAw+3JGHG XM/NqQjr7KFur10GrLVAvDiJ2bMGW5ULLZFFLc4gMOz+YcVRFIFTTFJm2x0poC2IPu4tA2 1Mcundn5emozUCXrJTSi26znhuFEJs8YqC/EtorYh4dSvQkUTOl+48/CpCshFA== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Date: Sun, 04 Feb 2024 10:40:15 -0300 Subject: [PATCH 1/2] clocksource: make clocksource_subsys const Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240204-bus_cleanup-time-v1-1-207ec18e24b8@marliere.net> References: <20240204-bus_cleanup-time-v1-0-207ec18e24b8@marliere.net> In-Reply-To: <20240204-bus_cleanup-time-v1-0-207ec18e24b8@marliere.net> To: John Stultz , Thomas Gleixner , Stephen Boyd Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "Ricardo B. Marliere" X-Developer-Signature: v=1; a=openpgp-sha256; l=951; i=ricardo@marliere.net; h=from:subject:message-id; bh=+WR2aLBDrX923dRpLBj8hKxMgbXa5Qh6b11Waw3A9sY=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBlv5PAyyq7rL/0v/yA9uoYHTejqK9ixlamJtLb6 Br9xryZRCiJAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZb+TwAAKCRDJC4p8Y4ZY pv6aD/90O6IXNFwqE1Ogx9ecJqB+bZGfxISNExVbkN9DMry1YBmGc+DSU0Xha1ebTTcP9vrsE1s Y0t04e2fXlqWpJhJWRgg73KbQqM0zfYAyCke0/F2OCLki8zNdei8SMWMJvGOF2nz7bJpTK2MlQG PqAD0F9e5rRYVeogLhU0XmBFHVcMn1lhSVJVyd+7F2NvKdy/nHAkDYQbSIihZSxFzg1rvFYxIie h0MDXYQCBjeh8ZHQgF/fK6vSwFWgZjpP8otc/fR0k/BDWbDMUdbLyTLt/fX2ADAvpqI1MzbWqfb Lvbm3b6HBQQP62uPae+I8JsMZVw5/sDhdoutSehLIioBfFk40B48Y4BDRPa+hq+OJT3HTKpPcPh 3ia1dzfC2y7BXd3few84K6yHjeGqSDIPpMY+s8VeiQuKez364TCIeLeGfiC3UfSbIHV3gyZJ9wm JZGsDWDQOyKbhptImoxcfdUsnh7tkjg43z5qAm9dEuKMyLZf/gVz1YZ/B7w53XsX869Vg5tEeqj 5ecuQ4jiwpA+G8k3eXTyCZosU1NCga6VjBcyuMuEiDSxJXksVcvAd956kcTBTbQOAdrZGI7p3o7 Hyl1KZ3nK4l9197ufv3tcmFsMwAghDt90yirA5I2vMzDbG2EOR6iutORWK5tcUT5ocAGzvq3MX5 lMp1EuY0SahRsQA== X-Developer-Key: i=ricardo@marliere.net; a=openpgp; fpr=030A8E9E424EE3C0655787E1C90B8A7C638658A6 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789975884296852700 X-GMAIL-MSGID: 1789975884296852700 Now that the driver core can properly handle constant struct bus_type, move the clocksource_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 Acked-by: John Stultz --- kernel/time/clocksource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c index c108ed8a9804..4f0932f0a0f6 100644 --- a/kernel/time/clocksource.c +++ b/kernel/time/clocksource.c @@ -1445,7 +1445,7 @@ static struct attribute *clocksource_attrs[] = { }; ATTRIBUTE_GROUPS(clocksource); -static struct bus_type clocksource_subsys = { +static const struct bus_type clocksource_subsys = { .name = "clocksource", .dev_name = "clocksource", }; From patchwork Sun Feb 4 13:40:16 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: 196499 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp356164dyb; Sun, 4 Feb 2024 05:40:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IGty2cQ/wRLIc0Ak1MeN+QfkBuYElGKbZgqLINbCvlZsud+ZVJ5x1UkaEc983wt5ULK4i6o X-Received: by 2002:a17:906:7146:b0:a36:8a7d:d901 with SMTP id z6-20020a170906714600b00a368a7dd901mr7418586ejj.32.1707054045566; Sun, 04 Feb 2024 05:40:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707054045; cv=pass; d=google.com; s=arc-20160816; b=0smRn3RpQTTGGvk/32F01xC3dcAK2cy4OIV2O5JlWfikSqqnT3vau1DjWyJ993mGaz CxhTs//36BMR1+lQ9TC3PT3BfZbksf2ci9sS7imhjW/Z0qv8pEdiadtpQv9iv5++tOX8 VsgGftk9Qh7X/cgsihF7bUF0lbEx6CyoRIt6BzZqtJwB4PiT/qMm2pXYhmyEQL8qoyqL HWi68brZRUqccPTLzX8la/KpA+B6OQD6YdZ7Rfu/IJ+VSRfSxxnkvMJYXSPxE48G0sRJ r+tFrGX4Ne40svDMuTyRqLdUXi8+Ck3/D5v47DKRSirmOU4wCyu+S/OILFxSQ9VpyWvX OLlg== 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=UZR0Vx+PAXq3U7uwJOXiA9Qb+UCDSL9VfDx1t5c/o6c=; fh=KLPDRYdWuClHHm+7s4mUYfJW8KgNvpxDf7NyZVGFH+U=; b=u1LuFVrA840zlgeHzIRRSle5XfhvHB7wwyrj7SGNoyVGUsFWBp1qbcoaDkW8miFkja F2bDyBiY+JRhUDwO/dC5BD6bfnncWYUnhzoFNBO0kpI1JDMQeNv3bCJz5dl4fzUVZhY9 NyoPye5hJt7kzZqCgwVc4K1uh7kmDb7YjrTX5pOR7TYRqx1SELR0yYLwzM5TWFVDMqUq aW9tcEpohW38oz+NgXYT6lmqG+e/GbRg9p/rKNmFSHJiep7Vd6CsXRy/tXIg3PWrKsDu nRr+rKdYSPt+9Ecb/jvYtH16HyiQwrrn95mLi+pfOdo6Jotzyw7J2GKy8ROQtQ/u1QtW 6B0A==; 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="oJ/WjPrq"; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51673-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51673-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCWdXqjR2TV9EI108t7fPvf1V5IEj36swl5kXMYr7O/i3c4AOF5dIBQaM3TxN4pboCmCjYU54cgxyvGU542DQ27VCa+ESw== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id o17-20020a1709062e9100b00a379b7a00ddsi470639eji.406.2024.02.04.05.40.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 05:40:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51673-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="oJ/WjPrq"; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51673-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51673-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 0AD9B1F223B8 for ; Sun, 4 Feb 2024 13:40:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1BF8322EF0; Sun, 4 Feb 2024 13:39:59 +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="oJ/WjPrq" Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) (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 D9F7E2260C for ; Sun, 4 Feb 2024 13:39:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707053996; cv=none; b=SwiOWsBOBsbO8TbtP6Ai1ryrt5jPXGoLqlEKOsU9nlO8cZcNB8TvRSJpgVLiho1zuXMz8CyM0e/qkNDyzuKLkt4eLLGiRtUGl5Mbpu2uJ3PAmgF3ge2aKy96DrSKMcIENGls+FlN39LNwJb7mfMqC3YDayT/UPEqwHZVmmwPlMQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707053996; c=relaxed/simple; bh=JSbhb9OPyI48ywBtCJEfyrdloBMHffBsAxBgZQ83mds=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=RwWIT1Ev/0wC3DBOmaKQNAznieiKSfQtWn/5zPrGVfq2/6XhZKE/xch3OAd3mLOdpWhVFIznCBn3MtsfcfWT5o70KfP6eU1Q7LFm9JY10nMe0hWfn5Wup4e5DUc3hu7fNnOEJnw5RFvqNdOlEJ8I2N08Z+OqZsGyxuDQWwRrun8= 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=oJ/WjPrq reason="key not found in DNS"; arc=none smtp.client-ip=209.85.215.175 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-pg1-f175.google.com with SMTP id 41be03b00d2f7-5d8df2edd29so2837090a12.2 for ; Sun, 04 Feb 2024 05:39:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707053994; x=1707658794; 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=UZR0Vx+PAXq3U7uwJOXiA9Qb+UCDSL9VfDx1t5c/o6c=; b=uT1tOosbJ5B7QijwHYPC/uRLv7ZuIwQ2KhNqAX71cFyyupzxZ7zSl+Y7l1jmuMZGKl cMK14AXlO4ogzbLRc7DqQE+lFu0tC1UBLnFhm7XDs5BwFtEIb8GnaRjsC8i3x3psqwkr wKt1sR8jewrbt/CepCzVu//L4HYOHIROIP8BSAjmAhuP+7vslL2Z9YXvJhGvPorGY+Wg TqYaIlfcRhBgvVToMqKcb3SsKhMVpdjfkIPBRoGyaC+bzIoDKRRidSU1TcVENaw+gVBr Am42Oj9ip/DCJo+Q4WNTYooImV5ngZMErcPNob91ER/jhBUzxM+z8gm//W/Cqy+Malbp nt6Q== X-Gm-Message-State: AOJu0YyOgnAly3VLXfxKCR/quwmZ2iDpKB76Qkb0dljM+gmtO4lUTQqN Uw9pQTwYJyok3m1j+Cmm3FY32Au04qx49WXEKPCOSlgcNBwMjKkT X-Received: by 2002:a05:6a21:195:b0:19e:3161:2c97 with SMTP id le21-20020a056a21019500b0019e31612c97mr11191065pzb.10.1707053994240; Sun, 04 Feb 2024 05:39:54 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCU6rNZj5DBexTnI2kyR6nl49hctl+6aD6brK1V+0x7whIpF6VZ7AdnpL1iCHLjm2sn4LuglKbvOjIqk2VzVmqAVtZDzi0+PtDZc1MWNhOmzO+hbMvTjFrY9V4ETfUDNeTdORR3cakEvU7ADnp1HKR1K Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id jx15-20020a17090b46cf00b00296540086a5sm3264279pjb.23.2024.02.04.05.39.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 05:39:53 -0800 (PST) From: "Ricardo B. Marliere" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2023; t=1707053992; 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=UZR0Vx+PAXq3U7uwJOXiA9Qb+UCDSL9VfDx1t5c/o6c=; b=oJ/WjPrqlZbSFfgdUREtxd7yqLtiGcqvQeaOo6ywOGZYv5Bpg/DEDsCFdWuCTKP5VyXuKY a2MxTQ21QD55FksYRl4ZZlkI6OYjtOZghWKafyScTuUOKDGfSuCTMxcIuzU1IWr2IAVZru TWv8ELluyeYHLZITbccwfc6lFXoeifCvanz6RjdaBe57FAbc6OedRx2Dc8jRHSBf/jedxf MizjDBWxCQnrFEVdRKTR7Ugt5zunS9l1Mkvw30Rf7y6xKdx8C5lkX05wV/0QJy9V59zBvL fPC9pYVr5NitAXnzAC/kTKnpYZKFUBYAccL7gSEAHwyRi1sTcXqptDuJ86aaTw== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Date: Sun, 04 Feb 2024 10:40:16 -0300 Subject: [PATCH 2/2] clockevents: make clockevents_subsys const Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240204-bus_cleanup-time-v1-2-207ec18e24b8@marliere.net> References: <20240204-bus_cleanup-time-v1-0-207ec18e24b8@marliere.net> In-Reply-To: <20240204-bus_cleanup-time-v1-0-207ec18e24b8@marliere.net> To: John Stultz , Thomas Gleixner , Stephen Boyd Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "Ricardo B. Marliere" X-Developer-Signature: v=1; a=openpgp-sha256; l=935; i=ricardo@marliere.net; h=from:subject:message-id; bh=JSbhb9OPyI48ywBtCJEfyrdloBMHffBsAxBgZQ83mds=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBlv5PAmPK0eaNvEQ6Gq5VNauK53Q+pIf9QXFuYK Llut2IznuaJAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZb+TwAAKCRDJC4p8Y4ZY poHzD/4y8lerTf4BThaSvJWZp+BVzoKUJt1ZGCL5a6Jrn/Lcj5+r7t+zhGnfFuFpNGvxBKHiqEH mWXOjKz9jXS7fZspMpnE/4x96Q+TnY2SPZYFcYlf5FxiLSeKbrHKGw95Yy9K3kkm+pqS+5/k9Pa Nxlah8NH/Gyvis1eWM4gSrIery0yUdwVlgI8j0zrjnfiO1+FEgbf21woe6XD+5f/fTOB1BJtvWk lNymcR/UO4zXWFcnccT/tGNIBcY8WV81krYfBRzyt7Z7DxkITuBDbXYYYC1XZ9iP246PwI7Cs1k yuW2uA2LtqDrXSF5PdKTJnQ2Pfy6ESbiUgeVLgI2hrdMtkIVK/SmG/1+Yr/zQW5au6d0OVgrNWd PECUT/HY5Z28bg0Aw59Zbib+tQop0NcANx2G31Y24UtWrAKvVwzSjEzJHzULino81vHziOYlWKf t7YWrgZqQp8qo5nh90TEW4ayak5HrXgby41CMfPogNFwtFMz2Jx8QjLSrLs5w+5bOYBxcS+XE/1 ZH5HqMhofU5TgI00QewXa12vdQbhIwBuf75Iz9v14MOAIKO6iOL1ITlyYvcYgKJBIJFZy3IrGQZ d++n+BUWHDsCCNFVgSHDfOr75ttTgCv4UnufxI0cbi6Yim900T3tyn6fhWdVqqs5urBGfQTrsnT gW/5nFFQRTJG1ww== X-Developer-Key: i=ricardo@marliere.net; a=openpgp; fpr=030A8E9E424EE3C0655787E1C90B8A7C638658A6 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789975902674495353 X-GMAIL-MSGID: 1789975902674495353 Now that the driver core can properly handle constant struct bus_type, move the clockevents_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 --- kernel/time/clockevents.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/clockevents.c b/kernel/time/clockevents.c index 960143b183cd..a7ca458cdd9c 100644 --- a/kernel/time/clockevents.c +++ b/kernel/time/clockevents.c @@ -659,7 +659,7 @@ void tick_cleanup_dead_cpu(int cpu) #endif #ifdef CONFIG_SYSFS -static struct bus_type clockevents_subsys = { +static const struct bus_type clockevents_subsys = { .name = "clockevents", .dev_name = "clockevent", };