Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp147189rdg; Tue, 10 Oct 2023 06:43:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEsZmgqB5+lglkskePHRdWbYFIhv0Zm9zsLM19YiKeOVcmzE5f3WBhuw3R9W3xgK85tEDWf X-Received: by 2002:a17:90b:4c07:b0:262:d661:2963 with SMTP id na7-20020a17090b4c0700b00262d6612963mr14804810pjb.39.1696945435249; Tue, 10 Oct 2023 06:43:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696945435; cv=none; d=google.com; s=arc-20160816; b=sPocF/J3inceq9t1HiH8aQkiEw3LW26Xz7hN6hYiXaSQ55MEroRKOCw2DzBsSncB81 N4GMC8sBp3eVG4sGY0xAf47/V/dsPZypt50QrvyZezqrt9itL2vxG9YeODZIMamPTXbq Vi4ZKrPwvuhUflS/YO32n0ja3IBCY12rrN0d5idc+K/tvEAhO97qKaPCb8KKad0tsAj/ WzEVpBAqNClm+Ngd16/RU/KQJasio/21I/hVIKF/ggx+n38fayy3rVr0utXiMUTvKjHM ZsLfPps+W1f2JNtt0puqtgBEiQ7QDmWuQ/Uj+q4ZEywEUA8qfYTLhtgzLOhspxiooT1x QhAQ== 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=hYDodd67gVdbQMAsAsGfantIyuPZpZT1xy27pO6axjY=; b=vD3gsLIgWvA4XVTeXqgeAxb/BVN0atsE9zRWadfWZJBilaIQiN7pkEZ44IXSQdZrOZ 4KDKi9ZBr7E5M1B3mjnqob8k/j1Ssijcu4Rtdn5ggiQyuiF5Brkx/Ezmc58EozHBy5Db 9oUbPqfDgyKPmr/wq6ycc88o5cmGKl62Kv/mDCDbNThew4WrgMJAHfZHxaN9UyHNL/Ga DXg32R5VpWULokkCJUqb6nKbmpnS3imrKC1ahm9iq622zY8Wo6pT4g2GB6va1lccd4wj Q0Dt6RFSNsWkw6NIhpvK1K9urqXie1Rvjqd+kjd/6zpb4EFp84IPG5GekxXR9P48A3GA qc0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=m0xySG7c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id u14-20020a17090a2b8e00b0026800178358si12156232pjd.144.2023.10.10.06.43.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 06:43:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=m0xySG7c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id DC2DA806E568; Tue, 10 Oct 2023 06:43:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232987AbjJJNnc (ORCPT + 99 others); Tue, 10 Oct 2023 09:43:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232734AbjJJNnG (ORCPT ); Tue, 10 Oct 2023 09:43:06 -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 A0FC6F1 for ; Tue, 10 Oct 2023 06:40:52 -0700 (PDT) Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-59f6441215dso69756167b3.2 for ; Tue, 10 Oct 2023 06:40:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696945251; x=1697550051; 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=m0xySG7cQ/UKqNsOr45kUMewc/zoR4WRkWdxwuihmzfvKSXLR2dD85VRmfa/7G0sci e1xuuDBTsDcd9dzMd5AoJkFtS5cfJiplKj7WkivEq0gNOWdAWrAbok2eLVXUxxA4N6oS mb0l2L3BVzcPz9xM50M0ETWmlNzbkXhWx6rZPJssHPWOnkJgeo4XXppyQlo2gy4exZBy El7h9YvZyBr3uWO+wovWTmbrlyCDMH/ldF1kIOcrXH/Hcs73GTjmZV7HBbniFPVhxwg7 mJPxlkKB7iMBB+N7T86HyiJra3KcLBmq6pXK8ZSx/5lgZYIDVSu4pM2ITr9LuQVIqTd6 nBug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696945251; x=1697550051; 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=dlhCeA3RJW0rVVUBmjrLCPdXX7VzowML29SZfB7XoHhChPv/kAwIuvNWXHYTqo7vhf QqQO/BmSGC/ZeOs7NcmDRWuJ8vL46386ua8o2SCvNKwgCa5VUIkPcU9GMW8bnY3yNRnm nzXAykrvrBWGE9eCS2xnNAg8onfAL8h+O1ZNRlJWz6FIlG1IEbFJKMocZya/i4JAKK/H f+tE6uuKNGxfiZEXumu6H5OzRZzgV0CQWMnktk6Y2gHk9urxCimS7e+Y6H96GVmUOJxd P2Z4DRQjlTOUrTBYbAU8GcKRwOwlSDNMxXwRFTiyBnS+hwHaMpZnPz89IOV9Te8gCgYZ 5zeg== X-Gm-Message-State: AOJu0YzW7QsS0dmbA85oAHlZm7F2zMHhsw+eaGDUzIayFj7enjCaj50i w9orERKsZmRQfieoeGhF837q9vpSsvimWK1IFSQGtNW7a+H14dyYWJY= X-Received: by 2002:a81:7c04:0:b0:583:d9dd:37fd with SMTP id x4-20020a817c04000000b00583d9dd37fdmr17710832ywc.31.1696945251491; Tue, 10 Oct 2023 06:40:51 -0700 (PDT) MIME-Version: 1.0 References: <20231009083856.222030-1-u.kleine-koenig@pengutronix.de> <20231009083856.222030-12-u.kleine-koenig@pengutronix.de> In-Reply-To: <20231009083856.222030-12-u.kleine-koenig@pengutronix.de> From: Linus Walleij Date: Tue, 10 Oct 2023 15:40:39 +0200 Message-ID: Subject: Re: [PATCH 11/20] pinctrl: rockchip: Convert to platform remove callback returning void To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Cc: Heiko Stuebner , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.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 autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Tue, 10 Oct 2023 06:43:51 -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