Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp489411lqh; Sat, 4 May 2024 09:02:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWUorpfT0I0KC4J0yAeM3PqSJ93xsGK8E932c0+H1XYjm/dN412FzrMIRVnL+KcfyGvVJiCayUatPjbOh969QJGiy7XBck5S1a0xwVJLQ== X-Google-Smtp-Source: AGHT+IHDF1Mohay+Iaclpjg52uyfo3YeZmN2Gt38jg0P8Q0oIC9nfy28s+jpKj+vHNh96NFxuNwi X-Received: by 2002:a05:6a21:6d99:b0:1a7:a72c:6f4 with SMTP id wl25-20020a056a216d9900b001a7a72c06f4mr7041832pzb.41.1714838550716; Sat, 04 May 2024 09:02:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714838550; cv=pass; d=google.com; s=arc-20160816; b=m5niaxBOUjQ8dGmoJWvUpHqTF9KDnJKkGpuPFOhs7oj8aht+mi0+nJEdFMSsc5/Vi6 rzkC/FxetJptnlq7ZHfktzJ3UIl+opiHxqovgHQ73V9mt/ztquQ/e4HDPQDwjEZRL0tA yJkTgC9yb4E1hQNuWlBVvuejLZR4prUG92cE4/q2b086reXFYngY4Hfwm1MJ4HlGk0H0 wXrnggtORWXtedLh4qh+XhzVeo4b6oqtcP5EbbTUT2b/ItMUjLzS9wIJ7VXGb0OifZ37 bHnD5eQHTU1HpkwUSVCCFG40KI5J6vYS16qguJ6JRuMi3jNO2eJ4g7uemfSU1BzK5JSH s/LA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GBNUdy07LKJTNaavA3HCBc0ehqUr/r3fOi1u2kRBntc=; fh=NCP4WqW4doDpJomYLhFhbmWZYAwWO1exiv9qza3giZs=; b=eyRAIFjjTy7Qr/pACN2GUEFk4+thQf4V/KSS9G8iy5e77+4VRA+GYtM6ns42HktAbO eSpdsxfnrjK/umWCfc7qPiE5NcVqJkCEZhlOuMG1+MZ3o86ljPHpjQPMJNAxyiP4mzHj heFl7bRddkRLnC9CdI2oLUNjU5csoLAFGeOsRMXInM+h9UWyanwNyAMe37ElLMyqhlK/ w9XTAGBYpmjqbMWMvDU7JSOOMpCHnj9hTiXSNYEZ/IR5abAw5PG7liqcyxVDIz37XMlF ThdjmHnlhtzSaev7VrOuf9Giv6yBZmdRb9eYJ2DhdzRZVAgGglfgfBdBD0a3xShtpKZP U0Pg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2gGDGeCa; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-168739-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168739-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 w15-20020a17090aaf8f00b002a4aba1542asi7475487pjq.79.2024.05.04.09.02.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 09:02:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168739-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=2gGDGeCa; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-168739-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168739-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 473CC2826F4 for ; Sat, 4 May 2024 16:02:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C35815103D; Sat, 4 May 2024 16:02:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="2gGDGeCa" 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 E227E225D0; Sat, 4 May 2024 16:02:23 +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=1714838544; cv=none; b=p1FUgLFjsU8M/KJBiieD+Wpk3u/hZ9Zr9XlFkkfRZ0XUYj2Mb/hiyUckZ3089vGTWB0NS7eNowoGiaeJR4wdUKcNF7FffzWVTif6OeD0DgtpnBp6h65wQCPC1XcFXx8a+1Opd9uTYwbjRoP/t8t1tVLb3r7G8hQrn/0hXjkuyzM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714838544; c=relaxed/simple; bh=l7/qBYhv4Nz9jrr8QvXGoWwXYXcm+LgU7yb+s1r64Bw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RQTGm2qtvd5uVsI4mYtITrYcZe1QIbbjnKfEnFcDZH0BSdzYpYN8FVIuoi/xTyowNWi1QyYnKvJZOkaunBgM4P+HRKUuS8Oz+FNsfEIJxKtsy0b11FuAgXQFwfmADmitKMGufUSbVMgWdidAUsVPMANCbhCpBWHGjFVD+yaXGkU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2gGDGeCa; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2895CC4AF14; Sat, 4 May 2024 16:02:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714838543; bh=l7/qBYhv4Nz9jrr8QvXGoWwXYXcm+LgU7yb+s1r64Bw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=2gGDGeCaVqyP2Oh2hdh3p0Zvc19udosCcLAX3iyJTslqHZmBZWaDpf85AoCdyUKWW eiXIDiCBuMO+KQjL7dx9ql1vU77tsVgdBUTOUoCiKGCojSa7/05pDw0HnMAvfFKDZU ubYtJ3lDX+LGfAn9VRtAbZKTz03yG1eRNPtKiYjk= Date: Sat, 4 May 2024 18:02:20 +0200 From: Greg KH To: Shresth Prasad Cc: Ilpo =?iso-8859-1?Q?J=E4rvinen?= , davem@davemloft.net, jirislaby@kernel.org, sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, javier.carrasco.cruz@gmail.com, skhan@linuxfoundation.org, Julia Lawall Subject: Re: [PATCH v2][next] tty: sunsu: Simplify device_node cleanup by using __free Message-ID: <2024050402-eraser-stimulate-3908@gregkh> References: <20240501084110.4165-2-shresthprasad7@gmail.com> <2024050357-shading-fedora-2d4f@gregkh> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Fri, May 03, 2024 at 02:31:22PM +0530, Shresth Prasad wrote: > On Fri, May 3, 2024 at 11:04 AM Greg KH wrote: > > > > On Thu, May 02, 2024 at 10:21:16PM +0530, Shresth Prasad wrote: > > > On Thu, May 2, 2024 at 9:35 PM Ilpo Järvinen > > > wrote: > > > > > > > > On Wed, 1 May 2024, Shresth Prasad wrote: > > > > > > > > > Add `__free` function attribute to `ap` and `match` pointer > > > > > initialisations which ensure that the pointers are freed as soon as they > > > > > go out of scope, thus removing the need to manually free them using > > > > > `of_node_put`. > > > > > > > > > > This also removes the need for the `goto` statement and the `rc` > > > > > variable. > > > > > > > > > > Tested using a qemu x86_64 virtual machine. > > > > > > > > Eh, how can you test this with an x86_64 VM ??? > > > > > > > > config SERIAL_SUNSU > > > > tristate "Sun SU serial support" > > > > depends on SPARC && PCI > > > > > > > > > > By that, I mean that I compiled the kernel and ran the produced bzImage > > > on a x86_64 qemu machine. > > > > But you didn't include the driver you were testing :( > > > > > I unfortunately don't have the hardware to test it on, but I don't > > > think the change is complex enough to require testing on real hardware > > > (unless I'm assuming incorrectly). > > > > That's why I asked if you had tested this or not... > > > > Really sorry about that, I thought compiling and booting would qualify > as testing. What should I be doing then? Compiling and booting the code you change would be a good start :) thanks, greg k-h