Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp498793lqm; Wed, 1 May 2024 07:13:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVilKlzXF+xA+CTJTqIaN4fFctcIKnC24tFcNZ547hgWolvvtIohIjdRmxY5oNvpNt0z2IDdSHbUHLIICYBPl1e4AN48Icdk8sUEqYgUQ== X-Google-Smtp-Source: AGHT+IG76QXwbhW79c8rw5sS5ZQI0oM4srQLsb6Do8rLAGbHpSrE1229Kxi1ssdOjIcUyCXIlYQo X-Received: by 2002:ac2:5151:0:b0:51c:f4e9:5b65 with SMTP id q17-20020ac25151000000b0051cf4e95b65mr1424571lfd.62.1714572779918; Wed, 01 May 2024 07:12:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714572779; cv=pass; d=google.com; s=arc-20160816; b=LxIGfLDDGC1/2Vd1yAQLRETxwqB2XnERrLKd4llp9GH2riYI4PX5ZntuIX55DWTKE8 wnSeQKzWrJYIl9ZLX0NKkY6HDXno2IKtDWUv2hbWKqSyIGmlNNMkGjHaVOYDkivrzvtk tBh9B/wPB8Y5Gf8k2NG3ZpRz2UOr5SVIB/nJSwR80mk5WXW04FgNJsqLgVxAzHJauWar 46SGAfWDPxdv7KUXvXba/rw5lkSVEQQeViem3/JHTWXp3H852TJU21d5t0CGzJEGC9Jr y/kavJeNws6EugkY0igwTChLz8qTxBvKdqdUzlP8EZJ2+TE8OwPWHdEcreRzTKAoTvJa lWeA== 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=uynfP5vaeTGAv/9S+JORuQXz77biGZOAZPzt+hqTYsc=; fh=hltHXmFG9Ppz5tGr3rC23q0S2dVaVyGj7IWauicLxeI=; b=LI91veGXmWEuzpaoOKpojS1EVcqw/uhHzwJ7+TfgyJnjFlwE9Z272Da2Y6Y6CeGsXp mnVR1UDyfyiI56qbCxNQ3X3qWko6vmstHt6ZmSW096lR8JDSjrLulb8/jt7QG2Qf2jsC NKkYanFkrJiAQDRH8dBG2BWVrei1uzF5+ftfEU7Z28AmcTQcDwSTxAyPO139j1NySpHL s93WGlWl1+gp2tu52EgX5q7rPx4x9V+syz5LICSRD6Hc/5tgjfgPAAU2NcLzGT942SEX VRjTtCKeb3xsowcd1bfOY6/0vz28dPDAkjLpCbOslf5Z7M8LQAiWVCHCCVGjemGUvezb +Gsg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RKl9atsn; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-165358-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165358-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v1-20020aa7d9c1000000b00572a7ef05ddsi1113737eds.231.2024.05.01.07.12.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 07:12:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165358-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RKl9atsn; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-165358-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165358-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9E90E1F21F00 for ; Wed, 1 May 2024 14:12:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0078812F360; Wed, 1 May 2024 14:12:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="RKl9atsn" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 CB9AB12DDBD; Wed, 1 May 2024 14:12:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714572773; cv=none; b=OsKviZjqeaMNZ746rxWLewVi2Bg2CnLLTcV3zrQkKSI2tuQfK6lc+NONrrCFWswM3FizDOpDnkXr/DqNxCplO6D0HzGlK+o0UndfZu+ec24UPIILStuafltnLC3IRbclwi/hztRhxWw024rGorzECPJpUUpsPqor045/OomUZBk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714572773; c=relaxed/simple; bh=fgxzKQGhIkjktiZA/KPlfV5pis6w6LQ3+OD0G47qTM8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tXXSAQJ9w3Kyx88+0Pr0sKcbOq5BLYmfkWPUVYy+eIT88+2t6NTbGWJdx9Gr68dsq2+cKWS3jx+AdttPQm4fjb85Ao3TxCwDezVQSWON2/4DOmV3V7XW1WTELn5GLzoDkyIqX+7NpgFenRa68zPlbNFpQIcCHoFeEIUufQXzK9c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RKl9atsn; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5A70C072AA; Wed, 1 May 2024 14:12:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714572772; bh=fgxzKQGhIkjktiZA/KPlfV5pis6w6LQ3+OD0G47qTM8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RKl9atsnOsj/xFo+DR7RMrKYnOWbBnzRDKp6oK1U+t6NqGKRkLuug33aByA2jT4gR ovHyPx0RlPkGeR3/rDqKcUCWxldy0UcgxvizOpXphb3AY+YGKF1ztUjQa7/RRlKqXV iX/gvR2yPIlNov6CiBEa1ILMo1E8Np6KCJ3pdYRw= Date: Wed, 1 May 2024 16:12:48 +0200 From: Greg KH To: Shahar Avidar Cc: hverkuil-cisco@xs4all.nl, andriy.shevchenko@linux.intel.com, robh@kernel.org, felixkimbu1@gmail.com, dan.carpenter@linaro.org, krzysztof.kozlowski@linaro.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] staging: pi433: Use class_create instead of class_register. Message-ID: <2024050109-reward-vision-58e9@gregkh> References: <20240501055820.603272-1-ikobh7@gmail.com> <20240501055820.603272-2-ikobh7@gmail.com> 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: <20240501055820.603272-2-ikobh7@gmail.com> On Wed, May 01, 2024 at 08:58:19AM +0300, Shahar Avidar wrote: > Make use of a higher level API. What does this mean? > Reduce global memory allocation from struct class to pointer size. No, you increased memory allocation here, why do you think you reduced it? Also, this looks like a revert of commit f267da65bb6b ("staging: pi433: make pi433_class constant"), accepted a few months ago, why not just call it out as an explicit revert if that's what you want to do? class_create is going away "soon", why add this back when people are working so hard to remove its usage? What tutorial did you read that made you want to make this change? thanks, greg k-h