Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp148783rdg; Tue, 10 Oct 2023 06:46:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGC7UICADMvJ/CXqGixfZXZ1gGGgE+vXey4RDIUHS16gJFP+Xb/DAwCnnnkSZkMidIkbquw X-Received: by 2002:a05:6830:18f8:b0:6c4:e81f:59b8 with SMTP id d24-20020a05683018f800b006c4e81f59b8mr18010285otf.22.1696945582217; Tue, 10 Oct 2023 06:46:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696945582; cv=none; d=google.com; s=arc-20160816; b=lZPuihclI4rEDu47kdsfdTOSnOLe4x+N08eU5bpbSzYmP7A2LWMS5KJV1T6rX5WTvD jsoTYVWm+4zEuki1a/AqQfgkRie5hM7M5wIPX6HXfHB/uPGvDGvReahl1j/RPiCGB/eV oaBM97zRDlvE/Z8BGsBYrjojfln8rCEYhGYFbYdKhRmE9fOK0GZcw8t98KI2GD2vlLW6 LhXI5ttl4QnyFOLTpIJ+eUl2453qptCi1bKzOQ3L2u+OViK2NBMh44lCKl4SPm0Xz36H SZVHySxA4fFr5S/lBwzqpqC+XjOAjcsr4vy9qmsSywExtT7dS/E6RR3SAc3hnecSV2W4 ZxKw== 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=ueK8SG+a7FTCY6O4EvQZ3DF32rOrkudVS05yOM+rm8Q=; fh=Hwp4KLY9DkEJ1SlzqXXv3K/RTOqKE+x3Llh+5sKkJeA=; b=GTEi0q0UPfeW+BRBMUJbnolzCzlbZ7qN8eguQo2yR2o+Bedm2iJsGbPhdVlcK0I7aM 6nVQBi82/u4YeZL11z+t7aWZCFd7hu4zYZncOLZQIymduoMDgvAf1fKrUC/VEA3wDgER mcLVmd2LztupdM4g8cj4tIHIbrOEBPqeRj5flnZS+CWvQy9U6E1/uLoiJLAVuVm9w84t 3kapGiIEnr08tVmP4uJ8gRG/Lz5LGbHr8HAeYhOZ1Hs6nbu9iiqGs9YxAWKAjuuCRh1w A/ROfELNdd9dfLl5c1flIdy0+ToSdePGpyHRkAPLdtfqb8CokTeaYvE+5H02ujlKea2x A6SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pALrOtvU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id z11-20020a6552cb000000b00565e509dc75si11386446pgp.359.2023.10.10.06.46.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 06:46:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pALrOtvU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 059058072A0F; Tue, 10 Oct 2023 06:46:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232958AbjJJNoa (ORCPT + 99 others); Tue, 10 Oct 2023 09:44:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233537AbjJJNoO (ORCPT ); Tue, 10 Oct 2023 09:44:14 -0400 Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D296271E for ; Tue, 10 Oct 2023 06:41:24 -0700 (PDT) Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-59f4f80d084so67991827b3.1 for ; Tue, 10 Oct 2023 06:41:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696945283; x=1697550083; 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=ueK8SG+a7FTCY6O4EvQZ3DF32rOrkudVS05yOM+rm8Q=; b=pALrOtvUiukdglMyGsRr3uThX2dEh2snupInYNwlD2ewY0tTT6GLziyOUhO5/1Hrc6 tgsfPxT0bLxpEDNMH9EshqkjJ9VweTRXAryRym748OFx8h0B3AL+QrCmw+7I0O7CQU2K isPz561MXCyShw1qOqdKMXZ1VkFz3j+lUFlbXJuKt8W6AAJYUAEMo/qjCkJv50/51AzR TentqMIUEmo+biSZQUUd3E/EZs8u/MO0Y1hgOMQ89+RbFbyIDhuVIugeCidfI2Eblq+i YPBICmDq0qqd8xzwU0vBnwxcNrguXMJuj/ruoGPhlDm0/5wC8xfZBkUL04F0nY1AdpuY VE3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696945283; x=1697550083; 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=ueK8SG+a7FTCY6O4EvQZ3DF32rOrkudVS05yOM+rm8Q=; b=fw5H41dP989H0iVTOYzM5fOt+RatgBZVlf3Ua2aeE6UkZpM8wA05xabBfYPBwsFBMd loae00fQhlwOHMO+huWcvfmV0hVkClKKLs6NtRlXAybbps4SJaNeW+7SOq0J6ETyX61W H5rrkd77FXEfro2idOT4TdPb978WqoiHOlILmyzDuqXNgSR/OgT3hEsHu5hoHfs+z+Jz AgWcdB4NKCUXmrwBVjsbxpe9/9Ns35qt+xQZvUxDOI3tt8Ygqjdffq5WuFiBiGzdyuZB Vz4zyhibBGw1cW1TiO5ZgStj/nWPCOKZzadRLmrUm19GqoilYtwjMWoWHU+0/wCvAZG9 XrUQ== X-Gm-Message-State: AOJu0Yz+Xq2wC4/OVEKbd2E8takyIep8y3TWq0kWncqIfm+zjBoPZ9VC Mm5NKMw2IZyADN6Ot3A3sFb7uB/vchePAHRmccHZLQ== X-Received: by 2002:a81:a0d2:0:b0:59f:6cbf:8902 with SMTP id x201-20020a81a0d2000000b0059f6cbf8902mr18245533ywg.33.1696945283469; Tue, 10 Oct 2023 06:41:23 -0700 (PDT) MIME-Version: 1.0 References: <20231009083856.222030-1-u.kleine-koenig@pengutronix.de> <20231009083856.222030-13-u.kleine-koenig@pengutronix.de> In-Reply-To: <20231009083856.222030-13-u.kleine-koenig@pengutronix.de> From: Linus Walleij Date: Tue, 10 Oct 2023 15:41:12 +0200 Message-ID: Subject: Re: [PATCH 12/20] pinctrl: single: Convert to platform remove callback returning void To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Cc: Tony Lindgren , Haojian Zhuang , linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 (groat.vger.email [0.0.0.0]); Tue, 10 Oct 2023 06:46:02 -0700 (PDT) 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-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email On Mon, Oct 9, 2023 at 11:23=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