Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp460553lqs; Thu, 13 Jun 2024 15:57:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWFTuXkSZ2RPDgSbYk1zScArfASXU+AJM7uczci8+LwASBg0Zh6vxrABwYIb5Ii6aqgJvutihMfi/4rWZgkRDTQUB+HrefKOrdQBTVZhw== X-Google-Smtp-Source: AGHT+IFbl3hY/ToLKWd2RwptmwJ7sCVdbyk51gG9ysYpWJ9NNrET4aEMShrrh54CFNA6QaIzGJ1s X-Received: by 2002:a17:903:2448:b0:1f7:eea:ebd9 with SMTP id d9443c01a7336-1f8627cc01amr12404615ad.37.1718319465976; Thu, 13 Jun 2024 15:57:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718319465; cv=pass; d=google.com; s=arc-20160816; b=gfx/Qq+6qYuzegSMOFZff6g5/sPPo/K+O8YOwCkoqbXGpW4ppltH6DopK1sH3hEbBb E6/cwPAk+oCbPLi5p25OGwmE0YnC/UrvVOOYoPjZJqarcKvIpqsWtpSGqjvUVrpamSQf ZX4Y3swJniUuWb9U2kmkldqA7tNBDdBnWJTYlavegwiq6DKAWlFaC1owamMk9kNFFzky NWckUGyRw/kB4biuI3pSsGfCj6ts8/ZYjEd6qvq/ZtJkqYrqp5GKSHBxRlo7LWd+iOkc Bhoi25CxKzr9K8kwUgMnnr5P//cbxpjSAJs+V2QKb2QlrfrMstrCEssizf8gg5OYUpV9 Dwlw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=aotzTTxV7q6NiyDFBJhs8Y5CPSzZiXf4ZTPLnF+Xcvk=; fh=DCJc+xS/SOyZ6HnXb3vKwxnUql80O/JGCuKAltcQ3lI=; b=BkCxystdxIhXmmG21k6kM3fHoOQokUn6/wJabxX6XbLoV+sonQe1u22gFp7RC9kW+v /cN6uvXdcuoctfheYDk9RPUZyVy1Aj1nin5Sal17gmmgkS2QNN9dDA627dBvlk4fhAoG E3WpGpDj4o5OIJn5PlKA+3gOVSbBO4JPI3aL8KGVdEhqrMn0EwLLmlE9KcgitNgJd2Wq THaFVaEPwz0im6T7O3bx0LkYdbscbcaTFjkA0uwoHuo2gu4exBb1u+Mb3cviAh/80WH5 gTC4g0DsWlc+0NpGr350jGIYlYhQC+3VOBE7uOU+F8fP0+qa0HQFzL4f0JSPjeMfYyE/ A7cw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=tkCPtIW+; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net dmarc=pass fromdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-214076-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214076-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=weissschuh.net Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f855efdbdfsi21547045ad.452.2024.06.13.15.57.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 15:57:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214076-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=tkCPtIW+; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net dmarc=pass fromdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-214076-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214076-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=weissschuh.net 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 23B5AB23B79 for ; Thu, 13 Jun 2024 22:57:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BDB6A14D6ED; Thu, 13 Jun 2024 22:57:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="tkCPtIW+" 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 80EF9137923; Thu, 13 Jun 2024 22:57:29 +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=1718319453; cv=none; b=URzgGCWYtNM7ISeuFYFNACK5LLq0XaMQrG+PfmujK8ezl0a/mCoajhNVVa9M9x/5Xz3s5dtLayQSTUtrntCXYvaIhfjw61Ph5AJpF0lGwQ5fMoj3T1dCaBHjthu5f8pEe5yC0zBxMi0mRQDhpduuoO1ZZLhqF4wtMKlGSXziXp0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718319453; c=relaxed/simple; bh=TAWAlunhRer9pK1oqHFQnam5cbE0MFiar34KznrUQj8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=p0OpAZByCkfclX7mVZ/n8OQn6AXtOvefr4oAUNs/3eUkDr1i6Zkgl5G+O5RHbFupWXaRLc9EiyKpHFCHwYQSeV3yFApO/IitvRA/rEujEdnaVqBtpQL+0JBXgDr9s5q4kVVsNHcyTLQa6kRTl+e5tKP37BT6px2R+oaB3cLywD8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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=tkCPtIW+; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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=1718319447; bh=TAWAlunhRer9pK1oqHFQnam5cbE0MFiar34KznrUQj8=; h=From:Date:Subject:To:Cc:From; b=tkCPtIW+eXi1ELdwlWOXKVbhnigmAl76r12QbK6gdMiEZg61+mbLvk0HQzuRB/6Pm vyFji9suCGoYylSHBIqBpUkWAMrwhb21sQj61ovIDvO+S0FfEvgt5BBqfN/PhZuci5 MxOpDojVU0Z1oJYx8dqY4NNkuVTYyuQ9MetSiAzY= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Fri, 14 Jun 2024 00:57:22 +0200 Subject: [PATCH] watchdog: Make watchdog_class const 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: <20240614-class-const-wdt-v1-1-f9a4e2b1ba76@weissschuh.net> X-B4-Tracking: v=1; b=H4sIAFF5a2YC/x3MQQqAIBBA0avErBvQlKCuEi1EpxoIDScqkO6et HyL/wsIZSaBsSmQ6WLhFCt024DfXFwJOVRDpzqrem3R704EfYpy4h1ONL0dgnLBW6OhVkemhZ/ /OM3v+wF/Jgj1YQAAAA== To: Wim Van Sebroeck , Guenter Roeck Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1718319446; l=889; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=TAWAlunhRer9pK1oqHFQnam5cbE0MFiar34KznrUQj8=; b=V9+f1ZCVwSkLyW0PeDbUT86IWAb+pZNwY3XkQNYs5IMIS0Pf/i3CdtV3dkzMd6AGbLbhT3RpJ rZx308ywsofD3mrdE18CCQCw+SHGG3hNuEtp1z6MZxr+u/SrSm4a5O8 X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= Now that the driver core allows for struct class to be in read-only memory, mark watchdog_class as const. Signed-off-by: Thomas Weißschuh --- drivers/watchdog/watchdog_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/watchdog_dev.c b/drivers/watchdog/watchdog_dev.c index e2bd266b1b5b..4190cb800cc4 100644 --- a/drivers/watchdog/watchdog_dev.c +++ b/drivers/watchdog/watchdog_dev.c @@ -1004,7 +1004,7 @@ static struct miscdevice watchdog_miscdev = { .fops = &watchdog_fops, }; -static struct class watchdog_class = { +static const struct class watchdog_class = { .name = "watchdog", .dev_groups = wdt_groups, }; --- base-commit: d20f6b3d747c36889b7ce75ee369182af3decb6b change-id: 20240614-class-const-wdt-3649d0adc431 Best regards, -- Thomas Weißschuh