Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp1018037lqs; Wed, 6 Mar 2024 04:06:37 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUU6gqDwjNu/Excn8j1cuPtXGwS2Exd/8X7HhIC0ETs6n/9gc8zbiiFprchGZ4SZByujnVasix+GGuBQPpTS97Mwwl0aK1WtATzJkiYpA== X-Google-Smtp-Source: AGHT+IHZDMyeCW+SOifEmCg1/OX/xsuWAzCoef24gE/NX0/UO1uvtcV5yJeeUZ/xf3I3i7AZqzSW X-Received: by 2002:a05:620a:3844:b0:788:3f6e:3555 with SMTP id po4-20020a05620a384400b007883f6e3555mr1232540qkn.66.1709726796507; Wed, 06 Mar 2024 04:06:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709726796; cv=pass; d=google.com; s=arc-20160816; b=ifQv6ti9bmqIwtVamcyKDf/dVwN07mychLuUki/Aj5QrN5QkXlvV9WEiCPQNFDsKG5 zUIw6mwp0kvoYyMU6yXmqzySRfX/9Kvj0Q9Dhz8URgZLE0qhotSDmd4v422AoKU6g2k+ DDAAp1if5ttXoTYBZhH/Dis7h/ftmmQ6sQfXwZJKF4vbjzAwo1PC4z5NOW2lTapMxZew jP1yxT3h59dM064LrEVW61aFVPigFlUqTQw5YOUGpC+NyR1gzVeasPz00p6gZyaKaxAH mfzM9gWpl4GBMAByOQmwt25Qppthd2D/IkJxQcSg4/+vOMq0005xWehZ1qP7L2MsSVLT EYxA== 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:dkim-signature:date; bh=NCSfg79XSg8gxcqeq6qiMLqlWj175rfDfcVyginmxjA=; fh=3xsZsbzLgxjJT9irNadrW20hucDBcvNTqVRawkYQlZo=; b=QoAB5WyZm/bCTNn4w+1f50H0m9UiZgO7pAPp27vWKLc5TH7TAvJR+w9wEUzrjjSmpR jux7E2yKSyA9mCZtpo0e/yAkjG3LvWr8WO/mTaFrvLuARLj2w+rvs0ZZPACJLPXg8Ag9 VQjnouWenH01Tmpd3RbBlTJABYgzoFKP7h3WR7CZJamrj4n9OV+TLbfvpFe1zMdOCJdK P/NP7qQiUvJ4C36hTd+ZeAp+3MooQJIKjifrvEXnQ0yrSpA60DawsdONlF9KdArfPd8m 1yZY0KzG+X4MWEh2iX9Po/I5O3rOMg1u75rGH99zqIFrzgtwcmEcanFjIyb2t1SqyKG3 Jdhw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@marliere.net header.s=2024 header.b=FXBPB4TJ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=marliere.net dmarc=pass fromdomain=marliere.net); spf=pass (google.com: domain of linux-kernel+bounces-93862-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93862-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=marliere.net Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h12-20020a05620a13ec00b00788320b627esi4412134qkl.776.2024.03.06.04.06.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 04:06:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93862-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@marliere.net header.s=2024 header.b=FXBPB4TJ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=marliere.net dmarc=pass fromdomain=marliere.net); spf=pass (google.com: domain of linux-kernel+bounces-93862-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93862-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=marliere.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D6F4B1C2256C for ; Wed, 6 Mar 2024 12:00:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9F9DC7FBD5; Wed, 6 Mar 2024 12:00:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marliere.net header.i=@marliere.net header.b="FXBPB4TJ" Received: from mail-oo1-f51.google.com (mail-oo1-f51.google.com [209.85.161.51]) (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 1E1774C6E; Wed, 6 Mar 2024 12:00:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709726424; cv=none; b=TpF2l0jIgs5707BtbUxK/jmiJLm1uIESoYtnKUz3IXz6BFzlnBf7RGtda22MmCtPEW0DbuDMjeVVzdk/joGuDC7nKbL/ek5Gu79RzDOO6CoN8wtORdYTbRQiChhyRP3JjLPfXvgr3lOTserdeh+DVQUWfvSVf18c4WgKrHMB7eg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709726424; c=relaxed/simple; bh=rll++81RHnPmXCpMgw5gtpQoU4SBkDZyM2rirVvZ/08=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CMSfV5ItK2d6jAI5jPsMG0MdsyGyXIbmTGSvKZ2CcV7jcXV6dzafJZZjYJTCEoqsbVFWtEDtEoOHKzvn0brscSw4E2z4S89HuP+z3TDPwQeGgV54pdRbjtQa/yHt1VMvn4i1Lla9C+vinXk7M/EQKdv5bgKvvM2AR6vsrw8ZXfA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=marliere.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=marliere.net header.i=@marliere.net header.b=FXBPB4TJ; arc=none smtp.client-ip=209.85.161.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=marliere.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oo1-f51.google.com with SMTP id 006d021491bc7-5a1a0550015so25911eaf.0; Wed, 06 Mar 2024 04:00:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709726422; x=1710331222; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:dkim-signature:date:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=NCSfg79XSg8gxcqeq6qiMLqlWj175rfDfcVyginmxjA=; b=t4tN1K2M3OROq9xDaVMqmdX9z0wagDU+zQhYSMm5j8VVXkluU61GbkJnpj+QEj9S2/ KRTmwAZ9mqZx4Jos4KS1wqIfVlXPnYH2hFhEIpZY06OAttZnJibwYoTiHu/o34ChS9qe bmS0y81OVLOzdHerRRvOFMkLjWZg8lbHNf+w5uPNUV6aJ6+TgZbyFP2vd6+6fr35Bya2 lRtqP5cGcxD2aZ4lcA+bgA7I3T4zjUxKpTTdNb0Nii6Cc9cR69pPDs4/IxwL29TZFbCi u7x/0yy/BmepCz737qqKmgHnAeYnBI1a0N1iPo+QerrnPa9LyuWlSZXtJ1eQEJFnHjbY GL4A== X-Forwarded-Encrypted: i=1; AJvYcCWSMjqY9LGshAQwnNZyhECWnxBo1lRthra7QExr9TVtLDHkNQ+oUld4JGorEdgrjlsV5BLdtLm2UIdk1ka9aB7jB6KRvB3uGCOhtNsflDIoxoSM+M238/Iv196tSsXAQsW19vCM09zzAx2cquNuyNQQywhOUnIfOMSRGG/aTyzNqmfiiLy+eaSKjAsK9MnWFjpT0crFmt7H0r+9P1mbX/YI X-Gm-Message-State: AOJu0Yw7tfHGwOucApQD2iK2vMcGR1E7T89+r3HGUB6LdImhLr6h84M/ YTzck+TzY0kq68dln4Fxgxa91+s85clds8yaLsLS7rmseLweFKyF X-Received: by 2002:a05:6870:458e:b0:21f:f8a9:e892 with SMTP id y14-20020a056870458e00b0021ff8a9e892mr5089973oao.53.1709726422067; Wed, 06 Mar 2024 04:00:22 -0800 (PST) Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id w3-20020aa79a03000000b006e54f344e14sm10661253pfj.22.2024.03.06.04.00.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 04:00:21 -0800 (PST) Date: Wed, 6 Mar 2024 09:00:12 -0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2024; t=1709726420; 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=NCSfg79XSg8gxcqeq6qiMLqlWj175rfDfcVyginmxjA=; b=FXBPB4TJRJV0G7bT2ecrH06o/RrcdzzhrudVqUO+CsIODDh+1wGZMQH9a48CN76l6m74Pr 1WryduNUxVTTZoXakdH7219RsWARB5p4pyaZGlpkdv3h8oiu8atxqqB+gLzezexp24y7v4 T1Ks4RAOlVkQLIYFE/+0Jxl3tarNj9NUhtseqh0y+0hhPqkDYIXWE48sUhIW0RiHtMr4Wd v3CgT9eg9wSYmz9zQnRedvJpNNBOCHIcdqRt7RUfM/LWaAdZSLbRMpgRqEvghyEPkomEyC aJ8FY0YNCKp6mYlaEgWVgdOkQ9h17yKETLpAHTyLjNkVEeBB12ZUmab0a+/cOg== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net From: "Ricardo B. Marliere" To: Daniel Golle Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Ulf Hansson , Jens Axboe , Dave Chinner , Jan Kara , Thomas =?utf-8?Q?Wei=C3=9Fschuh?= , Christian Brauner , Li Lingfeng , Damien Le Moal , Min Li , Adrian Hunter , Hannes Reinecke , Christian Loehle , Avri Altman , Bean Huo , Yeqi Fu , Victor Shih , Christophe JAILLET , Greg Kroah-Hartman , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-block@vger.kernel.org, Diping Zhang , Jianhui Zhao , Jieying Zeng , Chad Monroe , Adam Fox , John Crispin Subject: Re: [RFC PATCH v2 4/8] block: implement NVMEM provider Message-ID: References: <6061aa4201030b9bb2f8d03ef32a564fdb786ed1.1709667858.git.daniel@makrotopia.org> 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: <6061aa4201030b9bb2f8d03ef32a564fdb786ed1.1709667858.git.daniel@makrotopia.org> Hi Daniel, On 5 Mar 20:23, Daniel Golle wrote: > static int __init blk_nvmem_init(void) > { > int ret; > > ret = class_interface_register(&blk_nvmem_bus_interface); > if (ret) > return ret; > > return 0; Just an idea, why not just: return class_interface_register(&blk_nvmem_bus_interface);