Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp981241lqo; Thu, 9 May 2024 00:45:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXo4JV29C6XfPfc6cNzn5zyHNnzAUOIuxqpS7+zYgpwPyL+pzadswQKq1PewOLzHgEdHjIo6ez9D9gKzdvIChtnLq0ogCU+/pedIZjhow== X-Google-Smtp-Source: AGHT+IGYlFwu9vw4FSjrWgOgXLqPGEemLDyWOkh5bTA2YcX5paPBHOaDwl6ogLM9O3jbQxK1Bvbm X-Received: by 2002:a17:906:3b0d:b0:a52:6fe5:938b with SMTP id a640c23a62f3a-a5a11845848mr149146666b.26.1715240708603; Thu, 09 May 2024 00:45:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715240708; cv=pass; d=google.com; s=arc-20160816; b=E7CdkDxwqsJBoen3vv0T5IoWGb68PGWnxVt1snyPwDENckfyAI7NDJXT7IkheDbYpU wi2v/sVINyhxyMpSXW0ejIQ04oQIA0UE/GtxYS1+HnqLwl1tw6OruVMzKtfTZ1x2Oa72 t9EPfDmz6ljLKEFlEJTMYnoFQC108OaoVLMMZP68r8Igi7MsWsWj2fko3rYys6NSX73T ZUJFdmCbLpzekOyD7Uy9FgW3t99z92em3GknR6uiHRrMMi9KUzpSWr2Vrc8ShftAN2NU 4ZP0HVluF8RYyWwS302F6j7/HK5pMUJsqS2s31Xnnuo1F5e0LcdnT0YKRMSeRapxiRQd MD9Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=4wLKNtUc3zBciJuBp1amkE/lRLsaDPeLTziwC4c/fdY=; fh=iO9LXKal2kdHokumgdLdoqIM1Nk8hj/F34/4bvOGFr0=; b=lLN9j/aTwo9Qf4UvlT+ekByT7qVqeqAMNG5c385QmF7d5FhjcdjiXzRA6mqNnkmA6d lTMAnDw2tWotFjEySmYMArCQ3OVtpLsibgYqLjwFGOUwLUaIjptDtipNxXYGAkGMpsd3 tSOq0NXzvTHUUMeD3eY2W4OpATJhgZzF8PFC8eKUb6SjO5MC71Li2B0qmsJgIS7MYjGZ ylTIAAs5F7us0VyvgPljmIqAV4b+WdoR0pub1vHQkhaPp6P3fa+SvornEYnN0Jy5Mcwv u8oCdwi9fuomEeinjh5Bk3qcPeI5rUMm4zwA5pgc1RU4OpQ0PBpdiInjJ5rkN2gcya7G pHWg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@aruba.it header.s=a1 header.b="eE3M+19/"; arc=pass (i=1 spf=pass spfdomain=enneenne.com dkim=pass dkdomain=aruba.it dmarc=pass fromdomain=enneenne.com); spf=pass (google.com: domain of linux-kernel+bounces-174246-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174246-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=enneenne.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a179461b4si52948866b.123.2024.05.09.00.45.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 00:45:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174246-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@aruba.it header.s=a1 header.b="eE3M+19/"; arc=pass (i=1 spf=pass spfdomain=enneenne.com dkim=pass dkdomain=aruba.it dmarc=pass fromdomain=enneenne.com); spf=pass (google.com: domain of linux-kernel+bounces-174246-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174246-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=enneenne.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 569181F22B42 for ; Thu, 9 May 2024 07:45:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 456E31494DC; Thu, 9 May 2024 07:45:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=aruba.it header.i=@aruba.it header.b="eE3M+19/" Received: from smtpcmd04132.aruba.it (smtpcmd04132.aruba.it [62.149.158.132]) (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 2F53C624 for ; Thu, 9 May 2024 07:44:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.149.158.132 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715240701; cv=none; b=I23GTZRO0CrPYBYRd7RiscG4QyP3xSxVucny1HuHXvPqGypUuNMT3W4WAqSIABO8+20+neK36M8jxY24Uv1b/ZY8a1IPo76DpZqsny2mYkkiBHEBGqrU8TYfbUUuDiNV0VVl4hTiV6wNQaKorEeopU2jM2CHEAt+W04rKkAynZM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715240701; c=relaxed/simple; bh=ThdJPds+LGQXbpgqD3ptkuRAzIs3behnp7rruMXvtaY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=M7T5sQIYFTqcjWDbG1YLHM0WTa4EsoMQF99Y4Q/nmVelmvDEKqjpdloKcNpYNMgBjWeLnWG8ToP7V5vyWIjlX5tGbKBpf1XtLAg3Z2gIhsTuKzSc7ggAcCuCGiR5JdeIgXDLP/kPIphNZhD3EiJDFKDVZgavZtWzwh1yetbeUvw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=enneenne.com; spf=pass smtp.mailfrom=enneenne.com; dkim=pass (2048-bit key) header.d=aruba.it header.i=@aruba.it header.b=eE3M+19/; arc=none smtp.client-ip=62.149.158.132 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=enneenne.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=enneenne.com Received: from [192.168.1.59] ([79.0.204.227]) by Aruba Outgoing Smtp with ESMTPSA id 4yPTs3d6JF8HI4yPTs9FrL; Thu, 09 May 2024 09:41:47 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1715240507; bh=ThdJPds+LGQXbpgqD3ptkuRAzIs3behnp7rruMXvtaY=; h=Date:MIME-Version:Subject:To:From:Content-Type; b=eE3M+19/MwvIfRLw8ifNyYfLh0dTkxp0706Ni9gKt+SpFxZVDxsbP3lXsq9WGt/BJ g4UfW4nY477LorhI9Ts7QahrAxO0XxqAkTTEoBnHViK1YP7qLgOfP+tVLA63DhgQRf sHaShD1NK6TmszN+e+KBvXs02NkBGdB6QC3ZKkXbpjEGQDLRLdSqesyFEJ1vGFTgVu FwX+M7/+zAp+SEQHuiPWmhfst/1j39+n8/SmTbgMgiS/j391Kkg20eFUh1uRBwz7t2 Fs8ZLxO2EUoo/x2qGE3X+iwZ47VnmUNBfHXeMSS4I/vUaV9j7I47MjatRXs/wOmrbq 1/b4/j99XM7Tg== Message-ID: Date: Thu, 9 May 2024 09:41:45 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] pps: clients: gpio: Convert to platform remove callback returning void To: =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= Cc: linux-kernel@vger.kernel.org, kernel@pengutronix.de References: <6d73b0a4-34e6-44ce-8757-4f4931c3da85@enneenne.com> <4iii7uxyfovs6ntm7hs2w546k3upbhkepgzxarjk4wnlqmeern@sh6gkyuiqpjs> From: Rodolfo Giometti Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfFjOI/fdUmqGp2cAhacTpHu609kgQxiNzVpfZWqAH4XJ/MMIhvXD3+YHLx+DGn4zSE9nMrNvwkIy22WcwC7puXayUOSq0mOc8+tpb5fu0V3XnpyiNT0F wWF4riGXs9D+f2kifMQcOq2CIA699qlXT6a+fAkkh/Q5aUEzsPyJctkwrf2pQrzMFoOX0uvEUtvLpg4BiPbLG3gMxXnSku+wWIELxhBvQiMf9cuBNXa547cD UqMXZ97b3bTGN9XO6UdroVyoEHGmsT+VrJ2ido279Rc= On 08/05/24 15:57, Uwe Kleine-König wrote: > On Fri, Apr 12, 2024 at 02:26:48PM +0200, Uwe Kleine-König wrote: >> [Cc: += linuxpps@ml.enneenne.com] >> >> On Fri, Mar 08, 2024 at 09:57:29AM +0100, Rodolfo Giometti wrote: >>> On 08/03/24 09:51, Uwe Kleine-König wrote: >>>> The .remove() callback for a platform driver returns an int which makes >>>> many driver authors wrongly assume it's possible to do error handling by >>>> returning an error code. However the value returned is ignored (apart >>>> from emitting a warning) and this typically results in resource leaks. >>>> >>>> To improve here there is a quest to make the remove callback return >>>> void. In the first step of this quest all drivers are converted to >>>> .remove_new(), which already returns void. Eventually after all drivers >>>> are converted, .remove_new() will be renamed to .remove(). >>>> >>>> Trivially convert this driver from always returning zero in the remove >>>> callback to the void returning variant. >>>> >>>> Signed-off-by: Uwe Kleine-König >>> >>> Acked-by: Rodolfo Giometti >> >> The MAINTAINERS entry for drivers/pps lists you as single maintainer. >> Who is expected to pick up this patch given that you "only" send an ack >> but didn't pick up the patch? (Or only picked it up in a tree not >> included in next.) > > In the meantime you sent an Ack to my patch. Does that mean I can/should > include this patch in the series changing struct platform_driver that I > intend to send to Greg after the upcoming merge window closes? Yes. Rodolfo -- GNU/Linux Solutions e-mail: giometti@enneenne.com Linux Device Driver giometti@linux.it Embedded Systems phone: +39 349 2432127 UNIX programming