Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp473912lqc; Fri, 8 Mar 2024 03:08:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW2k9aNi7o+9WRSZoIAN83LDBO0bU6g3MK0MpBof5O1j8ePeayGD1loGbjNo5J1BOqQN8StrEoSx00QyB4pmesL8NA7FYjS8ODxgbOnnw== X-Google-Smtp-Source: AGHT+IGlp4ZzB+nduvUlVwCYaGcAs1VorGnyiU2mfrzPA+Q+6ZPu+SWIFBw3oLGZFqSxgCkxgTYz X-Received: by 2002:a05:6a21:a58f:b0:1a1:4cb5:cac1 with SMTP id gd15-20020a056a21a58f00b001a14cb5cac1mr12230017pzc.6.1709896126068; Fri, 08 Mar 2024 03:08:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709896126; cv=pass; d=google.com; s=arc-20160816; b=WhAQ+f7m/UD6+s+8m9Zo/Ug6y/YrooNIqXx+WXbACTUAPajH6yDcDKqATJe0VF2Sib tpEC1poqMi1rnnt/k31Xl5Pv9e/41taFHEardaUNnq65AZMSyG9yHpxKYooMlt+4s1G0 OFs+SRCCK1qAmSLfxuR+P5pzeJOjreEf3ZmPwrU8ipAkiA9/EEUdCB7JXvw5LlyKIOIZ +68/NXgK3c4ynUa+zB1Bpfb2p39L/+JW+c66YvGixJkVQG2QOoa53cgB/CvIHy7Q88Xk fs+2SUXa5TLmvSIYtUG3Dir5zS1iPfSM/jr+u4CRM2GutWRONXKpXUTIZjt0SoIL8WHN 13Ew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=RHOOcTFio23d7bm8Wr7cdw51uo9YXpicRkSrd+GIRrc=; fh=h2miTdfj0jDm7hnm5WnAiwBKyFscoFnztv24XY5jmxw=; b=Jhjd8jEQGys1GLPWeSm9VTCycIc6tKb0nL8PAhvOoAvOva4WyqU2NcFsAJw3QLMvwG 6zaTaZFZ3gXCfPhfnMTkI2FedmEKjSNMvU3g9P5xYvsgjmmKATM4LbN4lpKr4qU3pfO4 9OWVPWCVKJfs7nCLvUW5IgiskfXmVyt8s6B4Nd40ZoUgpaDQ+zKodOi8eozfQU/QtI9e 410rEutTcLZW+OxWHOoYR5kFiHnL5F2wMxUlBlCh+HNDH86kluheWuhhTdyJ9SPM+byb ZFyl2gmatxIafIdCorbf/3wLA2ZbhHdSeXQngJWgsgCP2Xe/V5VR8/K/2n64fKiEg+8H Vtaw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=UQkr6lrk; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-96898-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96898-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id s5-20020a63ff45000000b005dc12b1dd59si15649423pgk.128.2024.03.08.03.08.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 03:08:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96898-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=@bootlin.com header.s=gm1 header.b=UQkr6lrk; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-96898-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96898-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 CE2C2B21C17 for ; Fri, 8 Mar 2024 11:07:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CACE955E62; Fri, 8 Mar 2024 11:06:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="UQkr6lrk" Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) (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 8FE4E55794; Fri, 8 Mar 2024 11:06:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.193 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709896019; cv=none; b=YXYWT86X/2UwHCGbJ7got9JBi3nZ4NHsF6TxEPS02TUbCB67bQ9TtOUGwXGOr1Lh2fTdu4fZ2Hn1cFvT6MzT6VKzCWqIwRY9/PpZ46GfAfxUAo8S43AVIKnBZQ+BAsolyBgOsr6r2uN8ztj5eXabDel0MAQ2JHKNzpvopdZpGU8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709896019; c=relaxed/simple; bh=pc96kTjeHyJOxzJAi5zGl8BN9tRRP9Rz2uvIYxGZGKM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=D+omBaSImzTRnjpOkZQ/YxVBrRSEYzKb/OPnSE4kHUl9j1mxWTY48IgZSrfSanIbl85AH2VOr58lFPXBqHpVHhvIUppk7CLjMFWgaU3xIouVLxtkVXMDYkPa30/iiSsAi2xDwsMvtQIDaLuO4m6L31UeDLDDC1icv/Fac8s1qyo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=UQkr6lrk; arc=none smtp.client-ip=217.70.183.193 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id F2171240004; Fri, 8 Mar 2024 11:06:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1709896014; 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: in-reply-to:in-reply-to:references:references; bh=RHOOcTFio23d7bm8Wr7cdw51uo9YXpicRkSrd+GIRrc=; b=UQkr6lrko6Gm8/773ZrwzIlSqPd2WV2F4OMyqgCd1LBqwi1UgVNwbEFvp1ho+SwfIELAPj u9xSY/Uaej8yNKpfkQiqyWG2cjz6PgnIqrWM98VD167XSazSUSI1UrV3aDEZqIwZQRj+PK Jki7jc+w+kGcOdhc/vXpPQx0o5kbFa8cumucBfZGN/mCbEFyjNFpXcE7v+p4ZoNXso4ThK Th4ehp2DAOgXHddMTSiAgR4e7yMD3eb8pqkp/1G9turKImS/6bNNVvhQ3r8IAGDPw20qWD LTg514C9RoyhPAGNViJpo5jZkRhpwS4YEGPUXOqAHT//52OK55DZRrEQH5Exgw== Date: Fri, 8 Mar 2024 12:06:53 +0100 From: Alexandre Belloni To: "Rafael J. Wysocki" , Pavel Machek , Len Brown , John Stultz , Thomas Gleixner , Stephen Boyd , "Ricardo B. Marliere" Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Greg Kroah-Hartman Subject: Re: [PATCH] rtc: class: make rtc_class constant Message-ID: <170989597159.2150728.7175155089515338956.b4-ty@bootlin.com> References: <20240305-class_cleanup-abelloni-v1-1-944c026137c8@marliere.net> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240305-class_cleanup-abelloni-v1-1-944c026137c8@marliere.net> X-GND-Sasl: alexandre.belloni@bootlin.com On Tue, 05 Mar 2024 15:22:28 -0300, Ricardo B. Marliere wrote: > Since commit 43a7206b0963 ("driver core: class: make class_register() take > a const *"), the driver core allows for struct class to be in read-only > memory, so move the rtc_class structure to be declared at build time > placing it into read-only memory, instead of having to be dynamically > allocated at boot time. > > > [...] Applied, thanks! [1/1] rtc: class: make rtc_class constant https://git.kernel.org/abelloni/c/6b6ca096115e Best regards, -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com