Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp934298lqm; Wed, 1 May 2024 23:20:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUCkjngdUVy35U6poJ2NcqHolME0+2wOMpGFj6N7dqYC+NUebhGKyDppt56m+XSarzABeSrjxJAQjjlRag8lDGQ6K4847XYQx23ZgkDJw== X-Google-Smtp-Source: AGHT+IFDZevoFCt5yV9Tpwj20Q8WUylaAQ651G7gi7cVHFXvHCHVj9VsrwKJBam8+FZy0Qm9dvpF X-Received: by 2002:a05:6a00:13a3:b0:6ea:b9ef:f482 with SMTP id t35-20020a056a0013a300b006eab9eff482mr5976262pfg.24.1714630815661; Wed, 01 May 2024 23:20:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714630815; cv=pass; d=google.com; s=arc-20160816; b=tolNnz4VyHBfL/7F4EeXKs2K3txyXJLc1r3KiLHkty2TfAAsv4XTPfLEIUPTGPCjPa WWaV6PIr46tMFUGVBcV0MVPlXGTp9HrhdiTL/AI2rHz5JukplksWBpbhpVnJrXBShOUX LDOUVhrNlGdyZ+uzZzJgUtaoRTnLCJhaAQRNdAsfLcj0vMPdhzb2YF76qV1x1RcSsxxi jbDERljpgFEDdtDUMMSwmrWwWMBWfehb7jDpAaX31LKm7R4T929H6RZWZLipXTMkbZD+ pHNXHmi+SkQzlwww7ncM0+oaRvLmzp8aidJdk58uBnuvuze7zeTsUSCwG8WTVeMyJTLp 7Dxw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=dgakmapef0h80N+jtF51dv68wB35uuo/PTTHrmoZruM=; fh=d/4rjjUw0hfL1CX/BFe7Ox+guurKxCeGQbW8oZUDoPw=; b=Rhqeo8X04v3/JeG8dK1H2viYQHDBMdom3H0vEQXMTwgasgoDFfpIEn8O0cvXpDhD2Q 3/iuujAkn2c7SBUE70alFx1+Dxx0pGbbPfe2zpKk7uPFprfpTNYdM4mPUIV+WjFsxJqf LcebukHMlT9fhJbKN+OFzNU+4x0BQ3+Z+IY471A+bo4Av+qfVFJPfTPcd/e1A5e+wPUh SCqL6mPesXBhj3qK6SaYeWZ5TIbV4YrbGx3VFhKPXE0emDHtgMtEPv0MwXvCEoJrYEBP LO6rT5+xwz4KlwwHuQmHNylEX7RiCXKd7JIGl9pAFrYFki3tQzBblNszxDrpJmZZwq2q kBrw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BqTVVEol; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-166003-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166003-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x12-20020a056a00270c00b006ead793ff20si432530pfv.167.2024.05.01.23.20.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 23:20:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166003-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BqTVVEol; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-166003-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166003-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8E5DB283215 for ; Thu, 2 May 2024 06:20:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3403321A06; Thu, 2 May 2024 06:20:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BqTVVEol" Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) (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 EE646200C1; Thu, 2 May 2024 06:20:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714630808; cv=none; b=uzq1uY47CbC6uLvwJdEM23KvLvqMNZDkA1YT5fcn6yqhK9EvY5FiOaXpdDA/nXaSTmjBz9r9vyGOuZGgKVCR3sVS7tbB3K/EOMxcBUKcl5qBNfA5eDKG9nMMCquIXO9AlinDQsKn9QaZJNP8QkOXz/U6XQZGSqol1X9eLrDn78A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714630808; c=relaxed/simple; bh=VyEoVuiaYCnu0a/sKyNsC18VH2c5Qw5Z3+UdTP90Fug=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=N93pCgH+jB1PNkl5krLSbN2d/nEes3dYtd0115xLnPLz1oDDCh/lauGRgjKsRq0/rd/cy6hm2dp3Zx3w9feiRb1vv9Q/FmTWzBs6aRCB6gcEo/4rDt5/6AN0F//VEGxKfS7guNnpd9XVEC+cptBMA3y+zgJT6mUV7MH+G4/EYqE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=BqTVVEol; arc=none smtp.client-ip=209.85.210.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-6edb76d83d0so6554148b3a.0; Wed, 01 May 2024 23:20:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714630806; x=1715235606; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=dgakmapef0h80N+jtF51dv68wB35uuo/PTTHrmoZruM=; b=BqTVVEolUJyh/CheLOOPtRpcxVOz9v4F/x4ahStM3onwr9515GZigWIGOedg46Nr7z /CWCbSn58xmjgTiGRnayFpXEdr0zDCnEjAqzfEYhc16UwQX7HOv+wq0xnqxTJoAQE0d+ 9I9ngQodH6sxLpi6gQU1U9pE8Ha+2xW+2w67DfxXTjFzxwuY8z1WE+Q07INSEkJ7Jpb9 kCfKuBdSn8IarYGXAxu7qmqZJfiDCUZOYTgI2YBhp/YWA36UiAHJjbFTpBAwFORcaOGY /jnW9yL6pD4kj01Pmbw8xi4WPgrMtZ/8EjZsHRtf/k2DCG689QohuZQ6PNl0qG9kj9Ia eEYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714630806; x=1715235606; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dgakmapef0h80N+jtF51dv68wB35uuo/PTTHrmoZruM=; b=fAGId7FQR6CYotcwNgRa63PJv7AiQmBKNWqNfqB/C9EQVzkm9vfYDMd45xSyFTTlG9 zRvZUfpNoywzX/9oRMvJZrGhci5tyK4Hm2rBF4i4K4P0MQzVftb+1amhfsrO92UBZ9/k LtRRvmtSO6PxOXnGYQ1tY8v/Hq9/AgUq3aMREWKzW74pmN/r0A6rU9VY9p4yBJLrDF0V jkynA5O8xHPhra31Nm0ORhjD4r4+bfrds88mooJ92itQh3nHACcggd0Fx32xpADkh3Ja VrfFwBBzxyVnuSUBpsLIiOWkoxGKdYCgGY4a8AGqTrV1VcnxtxEnaN0yEv+KXEX94r7f xa9A== X-Forwarded-Encrypted: i=1; AJvYcCWr+AOYa9glw7JPZX1j7VriXbqkYERYM2lsOv0pFHJNmoFglT1zOjlKb9Qhkb5fPZlJeM2x6F7v8w/AQVmxmwDAzYl64G68lozC/iUhxHvW6rwM8Y+TRPibSirkHUt0GVQaRsp+ViI1wKk= X-Gm-Message-State: AOJu0YxhdY2rasp0pnEYzA7hODiJ0wOa0tJvpXVDi7eKhmhZP6j2tpRR MGOE6U7tLj2+0dGBQCnUiJYviOavGu95iMFGBX4P7erW03ddBWzyDKYGMOIB3xzWf9DcvJ1E4WV r/m4w4E02K9Z0wUBSvSa225PcAq4= X-Received: by 2002:a05:6a21:6d8b:b0:1a3:ae75:d6f5 with SMTP id wl11-20020a056a216d8b00b001a3ae75d6f5mr6426998pzb.20.1714630806165; Wed, 01 May 2024 23:20:06 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240501125146.33648-1-prosunofficial@gmail.com> <20240501140144.GA10180@aspen.lan> In-Reply-To: From: Shresth Prasad Date: Thu, 2 May 2024 11:49:54 +0530 Message-ID: Subject: Re: [PATCH] backlight: sky81452-backlight: replace of_node_put with __free To: Julia Lawall Cc: Daniel Thompson , R Sundar , Lee Jones , Jingoo Han , Helge Deller , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, skhan@linuxfoundation.org, javier.carrasco.cruz@gmail.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I'll remove the unnecessary braces and resend the patch. Regards, Shresth On Wed, May 1, 2024 at 7:49=E2=80=AFPM Julia Lawall = wrote: > > > > On Wed, 1 May 2024, Daniel Thompson wrote: > > > On Wed, May 01, 2024 at 06:21:46PM +0530, R Sundar wrote: > > > Use the new cleanup magic to replace of_node_put() with > > > __free(device_node) marking to auto release when they get out of scop= e. > > > > > > Suggested-by: Julia Lawall > > > Signed-off-by: R Sundar > > > > Thanks for the patch but I think this one is a more appropriate > > solution to this issue: > > https://lore.kernel.org/all/20240421104916.312588-2-shresthprasad7@gmai= l.com/ > > Maybe neither one is perfect? The one I see at that link has: > > if (!pdata) { > - of_node_put(np); > return ERR_PTR(-ENOMEM); > } > > which has unneeded {} > > julia > > > > > > > > Daniel. > >