Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp499665lqm; Wed, 1 May 2024 07:14:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWKJrvBXEMMK+RayVrq+ez22hNIu4huZ4iyIP3IrzzRh1FSNhcw6nJVDeyAuBImOOgI6PuYiHRzRaNnS2+jME9ML0a7OC8vGlX8JaMQAQ== X-Google-Smtp-Source: AGHT+IECjendOKmEdBiOvFpNIxtgmHXqkU+0MdM6BH10S7bxHbq8OBgxf0QECeGa58hTey5e+3rd X-Received: by 2002:a05:6a20:a11d:b0:1a7:4967:d93f with SMTP id q29-20020a056a20a11d00b001a74967d93fmr9383717pzk.14.1714572851285; Wed, 01 May 2024 07:14:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714572851; cv=pass; d=google.com; s=arc-20160816; b=jXSaASfhjMAfpFRt0ygNlcIvqcGnFhdsw2T2tBMlN+OvEz9vHZ/BEFX5so0ftSafm2 DmYNGuMMQqrkk5+1bcHzvRjv7JRXfmXGHT7NAm8dyX1XWqzfA6kYvDDtU9az/pcCzsrh 7iM+QQ0NRJtSM/GXMbgIPZ/fnEheFd4RQfoqKwB53CDpLiJCUqoUXFxIKpZlbfsPBTP6 VMFBQT/hzlJKyw5XpWb51eCTs/BGyp6kaaFoQ6Trz7lDbgZJ7iNa+eGYRdHVAB3E///0 DKONcgsuSfSGqS6TIDt9XLSKghRd5fporjbBUVKL9Plh8GdYkC9yZXAvceWfhoWdvCku jUtg== 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=yQvMcAw25m3CVCUgNdYWAZxmqnZngq1WldWBMBVL3eo=; fh=McLheiSYlu7SAO+XgFD3WqHsX6ghSG93Hg3wfnUbJEY=; b=fFcXKIr+FGZi6oRpBx4tPDvrb75Xe9yxZ/R/aNSsibVzQ25tlYILxj4oylQkU6p0Xh Q6yKP3ZdQ6xnVbgdGXK3Oc2XidXGmuUoLqB10HTF2vobV6ngo6QY+ezUCG32+eCnMgfk 2S9i0KlF+QHgVqg6wzQ0v7uRjY4FCyw4H5QwTNBVE6DXHP9rtBFVzxfdUGBTbK41i6zl g5VjAfAlKAf997LhGqUt5xogC4TvW+TnkP3+0L/8gnxRzm3u2bVcCOlJcFSNAjL/xArK btGCSkLrhc5W+wYPd0K2njqofldJBxOPMZpXFG/L3iwkpHPT0OCiZOtEKspGoHru3BIF uwaw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TSUOSfvb; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-165359-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165359-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l5-20020a63da45000000b005d4cd6a0aaesi23674474pgj.398.2024.05.01.07.14.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 07:14:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165359-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=@linuxfoundation.org header.s=korg header.b=TSUOSfvb; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-165359-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165359-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C2CB5284373 for ; Wed, 1 May 2024 14:14:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 77ABA12F364; Wed, 1 May 2024 14:14:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="TSUOSfvb" 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 9AEA412E1E0; Wed, 1 May 2024 14:14:04 +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=1714572844; cv=none; b=tkJLwsrFK8g0fKtwM+0gZie/pqUQ94ghuBzPmjlaL93BAXojhBU5V1xEHy9lqAXAipj9PSDcXRuT2YxuP1XQXYkQRiyxvk7muouVpZJkkaFRO/BeNQ3jIkiorZQpCyFAYVkMnWkC0yE0WqsHn1h89QLwJTv6ObjFL3Q8wv/BgLI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714572844; c=relaxed/simple; bh=6OXPCkzN/zHDiCjzDlCgu+l7lTQF3AP9altTiQ3IE9k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eLiPh+YvQcuK8Uonp/AfmApI2RGVCNWlrXQ4puWZbNr2uTLgzsxcU7pg7Z+euIAZSWwM/Nypp8U/A4IA/RKoffB78zZukPt+L0e3bVsLoJkNbuXRBUWxhYFx3XFcZfcMrtXIg+TkAE6OTAF2hnW52AHe15N2lUVjJXlrm6I8V90= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TSUOSfvb; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC4DFC072AA; Wed, 1 May 2024 14:14:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714572844; bh=6OXPCkzN/zHDiCjzDlCgu+l7lTQF3AP9altTiQ3IE9k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TSUOSfvbMvt/DMmrDdhA5xPkX+OTAJnABIBIOiVM6d0kBCVGb50NMRiqGYqT7phuM 3vfGEYZ0XmLlgMWw/k5d7z8UuB0IShuOSmwojgJ5Zbj5XVKn9jcQyi8yTQeAHBG/e4 o8q9nZy6fIqORMHOKfE0i60tuVbAjXCx0eDu6rCA= Date: Wed, 1 May 2024 16:14:00 +0200 From: Greg KH To: Dan Carpenter Cc: Shahar Avidar , hverkuil-cisco@xs4all.nl, andriy.shevchenko@linux.intel.com, robh@kernel.org, felixkimbu1@gmail.com, 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: <2024050158-mutilated-zero-13b0@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: On Wed, May 01, 2024 at 05:00:44PM +0300, Dan Carpenter wrote: > On Wed, May 01, 2024 at 08:58:19AM +0300, Shahar Avidar wrote: > > Make use of a higher level API. > > Reduce global memory allocation from struct class to pointer size. > > Doesn't this move the memory in the opposite direction from what we > want? Originally, it's static const. Isn't that the simplest best > kind of memory? Our reviews just crossed... This is just a revert (in 2 steps oddly), of a previous commit that changed this api call, and for that reason alone we can't take it :) thanks, greg k-h