Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp482467lqs; Thu, 13 Jun 2024 16:53:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVMPonwnfjoayE51t0cK65NGhLOx6AXLmTWjAsmkF6NZCifB/Ad9tSUaPKsZoOkNdD4gbVhuJTF62ExooHSRUIPIn3/1g/8zLP8lMRPKA== X-Google-Smtp-Source: AGHT+IEX+aYR5SFuj0wFLRLRV1fN+L7z9sJcAHfWbBT4ZYMJOf9CFD1Nmqq2qJl5EuwEVVporAsl X-Received: by 2002:a05:6808:219d:b0:3d2:28a9:4750 with SMTP id 5614622812f47-3d24e90781amr1330725b6e.32.1718322817773; Thu, 13 Jun 2024 16:53:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718322817; cv=pass; d=google.com; s=arc-20160816; b=yIXLCYw7h87sPkoC1Nsf2Qbxb6lwVIOovTwiNQDtrdVhgZeZ9NXjsbvGsxFnW9JFOe b720PSC/YUgntkeQJelW0nPjr96A5aS1SCyCNtb+MZguYK126hIsRQ6uRa+2R167FRci 7qi3qo87dMOgUGIoydPff+3XzaZrRq9M750KXPwU1OoGD4peSBXK5Rg+6ivj5qR0+MJ3 ZKq7Fq6IBFYMFbFUd2jRwLkfoEmCnLEI0XSjtvoXVBjZTt8xMOIYjgYpWddn70htBvhz qrUMgW84EN1LTpY5LwmX1FsXYOODJOOceEbiC22aQDZ5VDOvOHHxnGwEP2T2HG7XEebC knFg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :sender:dkim-signature; bh=qkDkDIDkN3xTeib040OIbK3jTwp5fGnKqHN2gH6EvT0=; fh=B+XdjC4RMas7BjIKNPLkHIVzmI72npJyBKWSdj+OZM8=; b=IPexQRL9KcruZ+00RClDKLtGHZswpY4D4QET3ZZw6jKah+dKzcOtWegLy69uH/PVr+ O5mqj60ZoK4U9Br6HcApirRsKNS4OlPXnyqxrIOy26PAuAtgAuo8jV6Blcqv3i0Zjecq /8l6B5wogBA+ocfxk/b9gscly9EOvFm7WNbtXsEhPwI0Xvcdx5632JgAYiDijIckS37K WXSehcQYCZ4SO3ngnVrlfz7/LRWhxysLqw3UHiT+eCPYpusPsxrORt6LAzc5xAYARSbH TcwzUi14vk6tCA4wm9Agse1RG7gzKeAQvbQ8XttCE76/FSH+wqoNjYmE7dkOyL/GhmuW T22Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FHiE1+GI; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-214125-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214125-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 41be03b00d2f7-6fee558b812si2239365a12.632.2024.06.13.16.53.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 16:53:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214125-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=@gmail.com header.s=20230601 header.b=FHiE1+GI; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-214125-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214125-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 C84A52885B8 for ; Thu, 13 Jun 2024 23:46:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD5EE15625D; Thu, 13 Jun 2024 23:46:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FHiE1+GI" Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.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 549A013B596; Thu, 13 Jun 2024 23:46:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718322368; cv=none; b=eYTXZ/xRr0DO5yYEZlRUhld4xknimIstxKskkrfkHJdrsipYiA9WDP8BsW2m29PwrW0JJ9q0MEpk/H4EYhzQBCix1lEUhoCtDy5und3FJL4eqHEMnmFJC/FY4SkewOy1R0uI+PzTbrJpQI11or1xi6C2i28evK2eiPZvCk+8O1s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718322368; c=relaxed/simple; bh=PStYmvdM/XSUUo2Msyg1N0cpTanC5gs1isVxkFD9t3k=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=NzmDE7qsMWHu+DDvaF/g3rFPU5rva/8wxh0OoT8WP2TwQA+R4QE3PTamMjqMIl3qJ2giE7jDPlkbjpGN7LtSlRe6a794ypvTaDYdAplvYNd0oM0oC0Q8fC4V14SF+jLoMBCCkctPmnTllvw9AoAhmQEk5WWq5todOJxZuQ0x/1k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=FHiE1+GI; arc=none smtp.client-ip=209.85.210.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-7041e39a5beso1275420b3a.3; Thu, 13 Jun 2024 16:46:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718322366; x=1718927166; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=qkDkDIDkN3xTeib040OIbK3jTwp5fGnKqHN2gH6EvT0=; b=FHiE1+GITWjVvNGX61yxXw62IUGj2uha0tGvO/lUM2VoUkl3B2p/YwrvkhiSwYZtPP kp6Iu2YiI+268+EVw9kBUuSA9lCDNqS3gsgg+MuQUIMplo5HlrYSNPs+m+zSg7Vfy/3B b9HJxS6lKQU6qCUmntEN4ezNudbMG64Iu8c7jd+a1+YI7H+mCUvQk6G5uhrKq5n3htuV bs0GOcWKhGAEXauHmdVblcbkNvC4NUVJk2YNM5S2KL7xV2/RN76NlGwTEnlSdLtEstE0 RkY/xsbHQiLpdQDNpXPZpGFccf1vzdSosgtRh29lE9Z0lQll+gVDFxY9tBpCPlBVkyuR mN2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718322366; x=1718927166; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=qkDkDIDkN3xTeib040OIbK3jTwp5fGnKqHN2gH6EvT0=; b=M/tCUJBzLMSrIEThPQd8/lmYZGsfvODNbDbuRRy/tXokiFiQMudK3Pr0S7HUahxRzA rxPKFTkhJVCpnpY2XZGlrP2rachbRXMHle7ZI1DVJfr+KxUNaMpLzigqn3JIqhTWKIMR T3uIOBp6kfO5SOjXqRM7MTMGP17Y1MacgXa2dlqKm3+9WHH2T0rYtXyBI7zzrhHGkZes lp5h6Q4rtN9EImVFBIkxrp6Ok4fxLioU3lNddQ/oaHJz2HB5VHGQO80lyRe/Ycj8KEtR q2o/Wx+miVTHE3YjBfY5IuFImgVwXVXNAg/S+FERb4cL2rHmcbcLPAtjao+zJwG2v1U7 cjlw== X-Forwarded-Encrypted: i=1; AJvYcCVHW/bQqnWe7OhMADYTfaY7yU3SJAeVEGSBgEfEOTakk+h9QlMeJ9jm4EVCxv+Ebrn39RRIFE/35XWoL5T09mPoHRJbfbqAyaUcmkOk X-Gm-Message-State: AOJu0YxHiiXltVvqBaeTlx8aFxRySCpm+FBpos2v9CZCLEOK/x5EXp4c 68d1YBOjuJxiKeSp4YbByu2G0dc12GGbLEY1kOh3DXcrsdyua5T4VyDjiw== X-Received: by 2002:a05:6a20:3caa:b0:1b2:b2b:5698 with SMTP id adf61e73a8af0-1bae8243b5fmr1419140637.33.1718322366421; Thu, 13 Jun 2024 16:46:06 -0700 (PDT) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c4a76ab127sm4691525a91.50.2024.06.13.16.46.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Jun 2024 16:46:05 -0700 (PDT) Sender: Guenter Roeck Message-ID: <8ec87c4a-40c4-4edd-966d-1dc2a0a3574d@roeck-us.net> Date: Thu, 13 Jun 2024 16:46:04 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] watchdog: Make watchdog_class const To: =?UTF-8?Q?Thomas_Wei=C3=9Fschuh?= , Wim Van Sebroeck Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240614-class-const-wdt-v1-1-f9a4e2b1ba76@weissschuh.net> Content-Language: en-US From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGMNJ3MwXlrEFPXaYJgibcg6brM6wGfX/LBvc/haWw4yO24lT5eitm4UBdIy9pKkKmHHh7s jfZJkB5fWKVdoCv/omy6UyH6ykLOPFugl+hVL2Prf8xrXuZe1CMS7ID9Lc8FaL1ROIN/W8Vk BIsJMaWOhks//7d92Uf3EArDlDShwR2+D+AMon8NULuLBHiEUQARAQABzTJHdWVudGVyIFJv ZWNrIChMaW51eCBhY2NvdW50KSA8bGludXhAcm9lY2stdXMubmV0PsLBgQQTAQIAKwIbAwYL CQgHAwIGFQgCC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UWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= In-Reply-To: <20240614-class-const-wdt-v1-1-f9a4e2b1ba76@weissschuh.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 6/13/24 15:57, Thomas Weißschuh wrote: > 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 Reviewed-by: Guenter Roeck > --- > 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,