Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp145387rdg; Tue, 10 Oct 2023 06:40:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHPYwzUl2mdEQehEduSep6DAFARQhcqOPr873i8Qu78+7CWgHaNWAQNiQAbDX59yvoKp0b6 X-Received: by 2002:a05:6a20:8e25:b0:163:11b2:1068 with SMTP id y37-20020a056a208e2500b0016311b21068mr18860577pzj.42.1696945255838; Tue, 10 Oct 2023 06:40:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696945255; cv=none; d=google.com; s=arc-20160816; b=Q59y63ENhCzh9fk3xuHie2zQjdFA46DiEMEHNmHh/k29FGqPXWC2XhaU2CyFeAl9kA 3dqWWQCoFS8aQpIoe4Tmj0LTjSU5o2gcgZAWpK970QgnLdTGsfrAvsyu7GEZcDR+1Eyr inMUILPb7UboGfjjZccPJth6YQCeGxDLc+3Lk2+ArH8p44nekNX3GTGStaVdpXVVXTp4 1gS9Xut3rfiU5RplhC/7HICx++N9u4zzRLU8dop9svz6mVwmJnRNULhVTBO8+CGqjIc/ SXBTG1aSD3GUBzNw+8vtMsto5KKRG3PEzoMkh4OWrn9UeT9ZP4QHPvqHRrxZTiQJwV63 NvtA== 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=2BcYWTkK3Zq4RaJ6QSiIWDLjJKh5RkW4qWVPOlMXZYQ=; fh=kH/ym+9lsbmUpRQ43cseuIv0H5e46L+oV70dMPDo7z4=; b=0ybc9bq71Aj+ngyKCnYebjnWxOMVeQgI9yLl1hYmiYggI0xrTRHpGv509RNivWVikD XBHQR2deEGI6w84POYiNHwVq+VUlfp7LzHOAlXnVRTfaTmvujUOGvNdxOeboS1cBNrP4 lu1MUcKRnuWNy11w/THRDK6m0u2Do8ps+A0DqITIbV/wBquD+3+xTjZ9lUdH6fcONvI/ G+xktJqR+s+Auc+J3BKxk2eFt54sB6rUqNeixYWeWego71j8aaA4wLd4OQ9TIWOCt5rU dFjo9RTNzmcViXYAZNPhXwcO0da3V3FrS74hDGaOCDH0snBFYgplGdNrJhoc7cWeHGCQ LYCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tuM0G+Y2; 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 k15-20020a056a00134f00b0068e4704fd5bsi10089781pfu.346.2023.10.10.06.40.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 06:40:55 -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=tuM0G+Y2; 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 133E1803ACA7; Tue, 10 Oct 2023 06:40:32 -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 S232667AbjJJNjk (ORCPT + 99 others); Tue, 10 Oct 2023 09:39:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232503AbjJJNjX (ORCPT ); Tue, 10 Oct 2023 09:39:23 -0400 Received: from mail-yw1-x1132.google.com (mail-yw1-x1132.google.com [IPv6:2607:f8b0:4864:20::1132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB708DE for ; Tue, 10 Oct 2023 06:39:09 -0700 (PDT) Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-5a7b92cd0ccso13000477b3.1 for ; Tue, 10 Oct 2023 06:39:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696945147; x=1697549947; 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=2BcYWTkK3Zq4RaJ6QSiIWDLjJKh5RkW4qWVPOlMXZYQ=; b=tuM0G+Y2xZWQOLfe9pEIr7l163zWvyvrumrsCY6fRcmDB+q2TOXKHrkcdzcw/ugp2G zBvyBW83OE0VD7mbbqnMba1kzP4afiHyqn4pbLliSD+gtY5/muZuihMh7xRJ7yEmblp1 2a7kx0JdWNlVDtlGXYYO/9BtIk4ErD2zxjMs9z7RlivGaOiVtTrDRAM6qvG3bHpEHx9m ebk0ysY7ZdQCHc+N/HP1zw6eQD08dV+F0jcqFW86xxBQDmdxfRT51AOtuWe+MH50+F/Z ix/bnEk/phpFSnDrCAhozXvqGaVe3MbB5Pgmxr+tcafQqnrcGIZxPovz9ddKlI5KWNQ9 WxuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696945147; x=1697549947; 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=2BcYWTkK3Zq4RaJ6QSiIWDLjJKh5RkW4qWVPOlMXZYQ=; b=daG++3g9S5YuoKyacxu//8GdtjaQfoxMN6GfVrtViwOKyO8rZ4e5SUxkotTOpEsrhn kD+s+lk4cg1VPyBUvAlWFB97S5Y320THjx7qBxbRcNfBDV+P9usTRznlVJ9350uctsm3 KEKcKY2GtBhCtMWal+x4QzAwiaNzCNxze4WpSbsX8tet4WZQt8vceSdpqBX58YNSLsqL A1LSnvPp7rpxpvtEEq/mRSMUo5tjB0wkvvvPVWnyLdOAARtbCsjPdNXhUT3sVSHF20s/ SiGqZ/ICT/gj++RWjKX8coOCQw39F/DI3846IyBJD1BRejgD2Gg2s27dWKTo5ZEJ60rm BZ4w== X-Gm-Message-State: AOJu0Yz8+x/bkK0VTHGkpElD9E/8U3G+xeEZ96Okeod1bG0U9qeKkyuU kcdZE1600iQcafJ1gxBrFwDnjLt7fiwh34X7EaVVRQ== X-Received: by 2002:a81:49d0:0:b0:59b:e855:1f57 with SMTP id w199-20020a8149d0000000b0059be8551f57mr19935171ywa.36.1696945147650; Tue, 10 Oct 2023 06:39:07 -0700 (PDT) MIME-Version: 1.0 References: <20231009083856.222030-1-u.kleine-koenig@pengutronix.de> <20231009083856.222030-9-u.kleine-koenig@pengutronix.de> In-Reply-To: <20231009083856.222030-9-u.kleine-koenig@pengutronix.de> From: Linus Walleij Date: Tue, 10 Oct 2023 15:38:56 +0200 Message-ID: Subject: Re: [PATCH 08/20] pinctrl: amd: Convert to platform remove callback returning void To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Cc: Basavaraj Natikar , Shyam Sundar S K , 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 groat.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 (groat.vger.email [0.0.0.0]); Tue, 10 Oct 2023 06:40:32 -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