Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2768667lqt; Tue, 23 Apr 2024 00:23:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV4YnDqX0j50SsuPiAOd6Rbh9I36hzDmK7ZPy/uqVrRnXGx2/EsXn/ad5HN07xx/wdnkEUcQpXMcWGXXgrl+rJTB3Ja7UJadEoBTmKKjA== X-Google-Smtp-Source: AGHT+IGieElhaYzfVNdND/9uDUgwB29u3YRClVTw7ndjK1dueVCMGEkbFRLymMkpFfMWJ6cBaE+y X-Received: by 2002:a05:6a20:7347:b0:1a7:7fbb:262d with SMTP id v7-20020a056a20734700b001a77fbb262dmr13450334pzc.36.1713857008495; Tue, 23 Apr 2024 00:23:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713857008; cv=pass; d=google.com; s=arc-20160816; b=ANfcrwAnegEeF3c33U2Ks1Q40u1Ax4IfgEU6Q5EGkHxHQ0sTHZtJHiRd4xfnCf2MP1 oDMXMsc1872K0iMuEGXwiIIyZT7PjZeDk+Eozu4K92rHYFQrxDwouC13lnmh0Y4l9Dq2 ViNuWv3/1ZgagM5PHONy1yR/oRMdRKQ4WRWLEtNyk1J/zrbbJHRi1Gu4BN/wHL1fFOYZ YBo/ImRFzOc9Z/Qs9C3XVXA5A3/hOoEoTQ4rhD72tdZYVKxwApQESXXlMRO7AFB/jo+u QF50uiC1IzdmjD/nvxtzueFHzp4qWrj+czBYyC6vrMbyAc1qzp6VNQfLZ6jbEnVopS8i CkDw== 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=r4/YoB5QNhMgFUUqg2UAE1DzTDTXxcFbcb2bKzJdYQE=; fh=PVdLl1tcB17FxZE4TI3O8kguwwY9n4pln9MffFdP2PQ=; b=nN7yvvaZJzbo9PWCmzcU38pHn62d1Fm2+yshvnKb10gf8SVjNDK8gS+2hOnZJDoiRy 3EEtyNfn43CYvzm8SaVKdgVnKcaON8Y4ieivKv/2Xq0j9B/d4VgdeqAcJwArHCMpi8lY glXftODKtj8ttSgh8xrCIaix7LGCGWUTxa1Qxf79+3xh4W/6akVCrn2O5/COlOiIgEZ6 Rl38Cm/XYpTQtGuSdinwj9ym8LKFZvaiYH35kEciv7EJatEWCqU4ikXEZzc4JPTFQpCz ESaiyHyr3x9UOkAP2rL9el/v/CxRHJdFhuCT8uNJ8n7za6P469iDASwxliowqt9tlFPg AsvA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pJv4Ppcc; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-154598-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154598-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id me14-20020a170902fc4e00b001e58bb476bdsi9307945plb.532.2024.04.23.00.23.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 00:23:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-154598-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pJv4Ppcc; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-154598-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154598-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 74E42B21454 for ; Tue, 23 Apr 2024 07:23:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B1D0D47F58; Tue, 23 Apr 2024 07:22:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="pJv4Ppcc" Received: from mail-oa1-f53.google.com (mail-oa1-f53.google.com [209.85.160.53]) (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 984AF45C06 for ; Tue, 23 Apr 2024 07:22:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713856945; cv=none; b=Nj7Kvo5tD/ovGRFFqwWNZmb1K6QPwSr/APWWXs1oa8oTjaPpWZQw9IQSfhaWFlVzAmxf7As95Gum/gCj9FsSGJfmeaw/hXCEOGscTLngFQpKoHTXJe04tmdWyBIixW15n5YSiICLvcbkN7VN6yT5+WxTevNFfIl1V54SSFxbV6E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713856945; c=relaxed/simple; bh=xG4JAgggbzIwtbQrgp5cQbAA+BYHCthqelpG3g6YI4s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fvB3VCryTmuFMvx+6pyzjWL6UpQQQJFwdqCUE1vW8i6HnqtizeJDkTJPybdOefVZEqaKL7ViKg7376s/Qdj3Iz+XgfNQXEtaCXwX17PtM2A9PF/8A5HuQki9LDsB8Olo8TCQpe2mvMtJ4BZhUrfhZHQN8f3EJFiZX0i8e1xw/GA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=pJv4Ppcc; arc=none smtp.client-ip=209.85.160.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-oa1-f53.google.com with SMTP id 586e51a60fabf-22ed075a629so2086879fac.3 for ; Tue, 23 Apr 2024 00:22:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713856943; x=1714461743; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=r4/YoB5QNhMgFUUqg2UAE1DzTDTXxcFbcb2bKzJdYQE=; b=pJv4PpccAbSaS76FHjEsvNWljXuintm6DSkb74PwXX62Jg4vsdBVflZ7vPsLxISNUd arZlIzX3D9EYg50Nm79Q+3AXoFB8lq3ZX/XS2XVwssOsaURuTvj8z9hLDoG6r+lMcJo0 Xob6TyW1N5hIagWgTMn2ZyTvnYXhyh4lVoPK9sEV74ZC8K9ej0jR7cB7boKkG64aAJ1l nb/11NHvjSitEq4xh85FweEcDn2t8vA7sRIL+ElBscHFiM3UVIVG8oGO3mVLcsQkIGtC YJkP3cfg9lfepZeEbEHdg+j8IGWd3BzPjqEveBMWWqlsRmnq7rWGrmjA1xLywnv2yuH2 8EYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713856943; x=1714461743; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=r4/YoB5QNhMgFUUqg2UAE1DzTDTXxcFbcb2bKzJdYQE=; b=stW7bTW19aZQr6KFqyRk6uHdFf6gpxKxeiChzfxwR2QqPuMPro5MayoEDm/jkXI56S NcBNoXRKB0dFyn2Ss2fDsHui8SoNc8kmT+zGmJriPac+f+z7IU4tT/YtSGFSSxunJNl/ NKbmDN/v7Totm75CHvtrlWW2R0z2CI/yyySdnALgGZCNFfKzUWNX3IPZYnl2alNUK5E5 /v8Vnf7M9Cwluis1von6ZkatkK0UXDRe0IfAWDSLfvuhEe+1wp0nuxrkeLE1/jtXKsN5 OQXHIBsMhQzXt8ELdLJBtVNToTCN05TiX5DqEfEVsddgZFUZthGnrYyFMr0v3tAGEJes b3RA== X-Forwarded-Encrypted: i=1; AJvYcCW9ORaU4EnPk6CMUMFNWzoU92dO092Xh73DNsAxDKU7D13bGTqDxim7TTzMukB+4TW6pdaSp1L6Dw3OkF7JPTpaA1K4a2By4lUTOBg/ X-Gm-Message-State: AOJu0YwBwLOx9pVzdExNayuSQo3D3VuQvm9su7vlBf8GPveq1dsa6bvH D5y4OcZTU1cCzXlwtOnSFvksJwv5cFvSxlQeZVsZQAOsqdRoL3sguIaxmAeBeF4= X-Received: by 2002:a05:6871:548:b0:233:378c:a06a with SMTP id t8-20020a056871054800b00233378ca06amr16184873oal.22.1713856943435; Tue, 23 Apr 2024 00:22:23 -0700 (PDT) Received: from localhost ([122.172.87.52]) by smtp.gmail.com with ESMTPSA id r84-20020a632b57000000b00601df0a973dsm1997272pgr.48.2024.04.23.00.22.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 00:22:22 -0700 (PDT) Date: Tue, 23 Apr 2024 12:52:20 +0530 From: Viresh Kumar To: Julia Lawall Cc: Shivani Gupta , "Rafael J . Wysocki" , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, skhan@linuxfoundation.org, javier.carrasco.cruz@gmail.com Subject: Re: [PATCH] cpufreq: ti: Implement scope-based cleanup in ti_cpufreq_match_node() Message-ID: <20240423072220.sx3lrvjtlirmz675@vireshk-i7> References: <20240423020727.776360-1-shivani07g@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 23-04-24, 09:11, Julia Lawall wrote: > > > On Tue, 23 Apr 2024, Shivani Gupta wrote: > > > This patch modifies the ti_cpufreq_match_node() function to utilize the > > __free() cleanup handler for automatically releasing the device > > node when it goes out of scope. > > > > By moving the declaration to the initialization, the patch ensures that > > the device node is properly managed throughout the function's scope, > > thus eliminating the need for manual invocation of of_node_put(). > > This approach reduces the potential for memory leaks. > > The code is fine. The log message is a bit verbose. Try to avoid > referring to the patch. It's obvious that you are talking about the > patch. Try to favor the imperative, so "Modify..." instead of "This patch > modifies". Fixed while applying. -- viresh