Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp147301rdg; Tue, 10 Oct 2023 06:44:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG6VeDRTXE6Te2WbkE+vUL4fEPIxg7f8LeJDZd5Ys6mLXqyc877immIaMC3AXWJI5GytMY2 X-Received: by 2002:a17:903:1d0:b0:1bc:844:5831 with SMTP id e16-20020a17090301d000b001bc08445831mr19016805plh.57.1696945446209; Tue, 10 Oct 2023 06:44:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696945446; cv=none; d=google.com; s=arc-20160816; b=D6uSGbYh8kITqLP5ctkpY7gVER+D+9vsQmnZLY3GoA/Bda3mfPcRWGYLOgaHD2cGop a2Qs8iCh3ot+rPpxodEJhxT6k2vahYNKhvrDV1cmm65i6IaRkycd2430hX/vPPp7bV2b 7LsJ+N5JEK+7BkxX6O4uliW7smPBWesbnxD8yXgiCXxUAjHRjGMnCYRLiGtbizAMpyyX hv+8YPHVmAU508dM6J4RUBGOY/uYYZNBXuQwkt2kJCbEB+9dm7nQTR6+/X/ooRvAg/TV xjE15/G23ZYwBHzkYW9kgk2UIyrc58azoWN8CDLMnOE+tNGJNqMOLQfUQPD/uo1RSP2Q u1Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=NHv90yeM59s0sxqLXofNmRkQi512BP/YIHCc5n2XRV8=; fh=dFJgYHdUMwRiHpU15oViYE4RbFBbO8eFKJhHdWhHggM=; b=ooVR678qDgma5AuApdhrOyFb5uiBukES/JR1bwf05gxNNNygl/pQrrV6tMqqxPvnWL +gypzjWIFmoqwAd3Tg2le+AFp6H3F0j0d5Z2OZ6KWCUqhHDA+5M68tpyG1CsSwwYiX+w F2OHzD282TyY1oHABlPOVkPplULA9tUu5V2t4SIQLQO0Cnd9zBLIx/5tcl36prGtLPHm WQsdODw9FXWFtru2xmDlbg4G8Tl49lOBv7lM9N700lLiWmViXK5+KdTNHrNC8W2eVKFZ EcucZTl4HEMuyRakAalfJrDEWpYW7L+a4qvhioyQb+adUKzxqFPDe9VlDDZZ0s4kibSb xnYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Rb1RgGDQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id d2-20020a170902654200b001c9af77fc54si1846204pln.649.2023.10.10.06.44.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 06:44:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Rb1RgGDQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 169CD8021596; Tue, 10 Oct 2023 06:43:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232498AbjJJNl6 (ORCPT + 99 others); Tue, 10 Oct 2023 09:41:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232727AbjJJNky (ORCPT ); Tue, 10 Oct 2023 09:40:54 -0400 Received: from mail-yw1-x1136.google.com (mail-yw1-x1136.google.com [IPv6:2607:f8b0:4864:20::1136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0161110C0 for ; Tue, 10 Oct 2023 06:39:40 -0700 (PDT) Received: by mail-yw1-x1136.google.com with SMTP id 00721157ae682-5a7aaa73d55so17416957b3.0 for ; Tue, 10 Oct 2023 06:39:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696945180; x=1697549980; 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=NHv90yeM59s0sxqLXofNmRkQi512BP/YIHCc5n2XRV8=; b=Rb1RgGDQAYR3GfGAUgAovrKgkXvgkCeBS1fAjNWrmTzUD008LnCuAFfvX+s9kuBJm4 7O/VtlC7W9+MKbu9CsksumqAfYZDSha6ouzq51v1ib5Jf3g+P+LtA36YDr+DihIOQyNp hGQuaPM71ImbTUOZHis8HaCcQWHm5g2WERrvYwH0nqvK20FNUjZIMxAQ0iqEiS/rDnsK wxfCzdQcloAacOc0tHG2bfBd+NqYDV0awsbiMaWvSHhCXG25mznE7Iaka5dk7mz3UIYR Ubnv9gwrVlSCPuBjMrgy9mlpTzGxt7Efn8Tum2zS7zP/12mZjK+ps4X9ixUiH1BJm7wi Pzow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696945180; x=1697549980; 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=NHv90yeM59s0sxqLXofNmRkQi512BP/YIHCc5n2XRV8=; b=CIPwqNY40bf4+j5TYWcHuTz37F7t0/Y9+L7pO8YaBK6xlYNToFx2kL4tos40XO5kPH qYrH3d6Cc50oTFSrpPhxR7LzMWjVnfoCxLh0D4y4nd+GSh3QVyHoYlsQ4Pg+yW5ZLhtt zgYx7VCvdt/q4LMlOJX+BFWux2uRASkz2gDzr9uLwxUDTjIAma9Y6F+enIfhTzCWru2L 3nKZvp2Ih0cLInKOzn/aSoQ4roPyf9i0dq2wGn9EtyVgugeEaOYANtv4exSSEv5YWjFr azH0epIBBPPrufyA78m3ICyd64u9ebw0lcnsA+KsduB5lymMXWiEH/Zq2isrlzrob4Hj 6kjw== X-Gm-Message-State: AOJu0YzJkj0d1YFBHv+OrD//D9/xJW73TfEFBgpCdFiKv0mcv2ljZvEa EtM+Ors/zMpdj6wEJv1DsPMTiKXCoo3kFUPzI5SqkoX+tN0wVGkblpU= X-Received: by 2002:a81:ae13:0:b0:5a7:b036:360c with SMTP id m19-20020a81ae13000000b005a7b036360cmr3010246ywh.23.1696945180141; Tue, 10 Oct 2023 06:39:40 -0700 (PDT) MIME-Version: 1.0 References: <20231009083856.222030-1-u.kleine-koenig@pengutronix.de> <20231009083856.222030-10-u.kleine-koenig@pengutronix.de> In-Reply-To: <20231009083856.222030-10-u.kleine-koenig@pengutronix.de> From: Linus Walleij Date: Tue, 10 Oct 2023 15:39:29 +0200 Message-ID: Subject: Re: [PATCH 09/20] pinctrl: artpec6: Convert to platform remove callback returning void To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Cc: Jesper Nilsson , Lars Persson , linux-arm-kernel@axis.com, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 10 Oct 2023 06:43:44 -0700 (PDT) X-Spam-Level: ** On Mon, Oct 9, 2023 at 11:22=E2=80=AFAM Uwe Kleine-K=C3=B6nig 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=C3=B6nig Patch applied. Yours, Linus Walleij