Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp922427lqs; Wed, 6 Mar 2024 00:19:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUQeRpvaouFIH8vX8g+XS3BisPpl7FUs/xcX2gYKvQxo2Jy0+idT2hUbkPGduf1064Ua9xbUrgTPr8ISrCfpKJs8BA7zKNb0AIXAX7k8g== X-Google-Smtp-Source: AGHT+IGMda/tbrRaQ33gNap98+FoQeCyqBzC5Mx7n4dl7nEjyhILYRLW/FcQlFRlBFuaqbJK1S5G X-Received: by 2002:ad4:4a04:0:b0:68f:a253:844f with SMTP id m4-20020ad44a04000000b0068fa253844fmr4251499qvz.19.1709713140325; Wed, 06 Mar 2024 00:19:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709713140; cv=pass; d=google.com; s=arc-20160816; b=jkfxMCt12xpn41SQ3bkWVg6Jc48szNY5UiOrMVkhe64rr5rq8rug3uftpmDpR3CD1O SVe5yMR6tHltyCk9zBEZd/mQRkqiONzuEz3ncbI97eIvQVqr8kXfWLzv3kn+n2woXC5A xx7Z2x76n6RWuBzpQrvBr0QePd0O1vIfzNGx0mWGcfAr95dZQY1nNE+uPZQtTBVEyouZ AmNWI7lR94st9JsUNfzaJvln2n62BWcnbdCPryCTVNkUCF6QPWYr/SLMetbkf5TgMQmp n5Q4d1D3pLEbN7WWfrnIPfdkkM6yUKoqSK9ABZXuJIa20pnJ0SeKXs3SvPc3443VJG02 d2FA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=h8XXqk5f2pfXsGsB1q/7dSgEGxtkFADaEPnlSDZcT8k=; fh=BjPtQsBD/1OHA3NctiwM7p4T6rD4GeFVa+CN5NxbDuY=; b=gJaYci81hicfaLedcwW98G4h0PtCnuTjByLpo5r9YYhQH7uWPZ8GFWtRe0f+Sf2rxs JtiieXzHLxqkZYLMrTmYsgPDAxgCNHfWJssCH+7cMT3Js1j2aoFnSE8LZYx4myMNqUhg k3cSQDnQXEZjFOBiVR6JG784vgInxU5412/vF6Qr9YqC4D/6ZdJ9lCwIM/Fy58TqXi/R U26hP4cKUcapk0jJFh4PMGT3YdexVq439OSzr3ZZkxwbub+p5OI7CAVkQKqvUOE0dKFn 63ts7P8Y2nDkJW0a7HlO7bLOQz9QsibGy0pSunP4i5fWjF1hBn5G9923AfrYBG5LRUUg jWsA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=ZZtNRngS; 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-93486-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93486-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c7-20020a056214224700b0068edf63cf49si14905001qvc.35.2024.03.06.00.19.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 00:19:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93486-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=ZZtNRngS; 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-93486-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93486-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 10FDD1C20AB7 for ; Wed, 6 Mar 2024 08:19:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A112D5D48E; Wed, 6 Mar 2024 08:18:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="ZZtNRngS" Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (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 87B1A5D47A for ; Wed, 6 Mar 2024 08:18:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709713114; cv=none; b=Yz6RHzyJkQJKelk5jApJcXfzIPYSLSouMEx0R7H0Iqcdk+W9j5BQKru7pCwuvAbFdYrB9E6KiAJOA4sW8fe8MmRLTUXYlsbEyf/WM2rWD2j663wu9r+eystGEhnqovs7gJ/j7CPQ1Ku2VOMKhGPrXEEuU0w5PQy2e173Yht4fEA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709713114; c=relaxed/simple; bh=h8XXqk5f2pfXsGsB1q/7dSgEGxtkFADaEPnlSDZcT8k=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=BR0gdb9WMjA9F7E32cmJrO/mgE6HT1ALKPVH2XaKWDX9mfwklODSOff0HZINdPIPPt3Q0VNn00+Kq11UZGLaeWCBiMnFU3YSOZZ+e8/EZ1wfIdFvLWbyDQNgsyDUv8qQdR8xU0JlNcBGT24gx7Plh1Q/7ol6ZglAmDUs4GphNBQ= 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=ZZtNRngS; arc=none smtp.client-ip=217.70.183.194 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 84FD140004; Wed, 6 Mar 2024 08:18:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1709713110; 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=h8XXqk5f2pfXsGsB1q/7dSgEGxtkFADaEPnlSDZcT8k=; b=ZZtNRngSLTZ7iLkt8KhZOOWvfrzABaMm7oCChRAMU9i2c6I20DiH8SOKfXynxy8tGNOj+c UuEMY8EHwr6baHhTOt/oKz1Bhb7FxwlvaPdxoaN5401jjJOFHtS0pak5olY+CpV3DK1Tlu Tude/i9e6vYCFIrO1PBOLMy3A+J5/9qZ4AIa246Cn+Ev69FrlEA4Sn2ggs7yU9GCJDJO8Z +IYujJBcHKhykoj068hyRf7aUX7ScvjEzK0uhetUZschha5FyXBdOSIR7xfTeNQAauiA+t TqeYJP8phPra2c7T8gOwG5V1wLPoXHsJcSZ4xswL84yZbZdaB9m2ECcUu4Kv/A== Date: Wed, 6 Mar 2024 09:18:28 +0100 From: Miquel Raynal To: "Ricardo B. Marliere" Cc: Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman Subject: Re: [PATCH] mtd: ubi: make ubi_class constant Message-ID: <20240306091828.04cf4d1e@xps-13> In-Reply-To: <20240305-class_cleanup-mtd-v1-1-7861914e2218@marliere.net> References: <20240305-class_cleanup-mtd-v1-1-7861914e2218@marliere.net> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) 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: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com Hi Ricardo, ricardo@marliere.net wrote on Tue, 05 Mar 2024 16:35:38 -0300: > 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 ubi_class structure to be declared at build time > placing it into read-only memory, instead of having to be dynamically > allocated at boot time. >=20 > Cc: Greg Kroah-Hartman > Suggested-by: Greg Kroah-Hartman > Signed-off-by: Ricardo B. Marliere Reviewed-by: Miquel Raynal Thanks, Miqu=C3=A8l