Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1779560rdb; Mon, 9 Oct 2023 02:39:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEd0lQ7VxJT+vYVOZCbex4voZdKiYL23colPHO99imwyJSV0nZNg3deFgfzjHJJyPCsIFA2 X-Received: by 2002:a9d:7d98:0:b0:6bc:de95:a639 with SMTP id j24-20020a9d7d98000000b006bcde95a639mr16389333otn.16.1696844371077; Mon, 09 Oct 2023 02:39:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696844371; cv=none; d=google.com; s=arc-20160816; b=r5ls8Mvxl31sLjowO9cPB3oL+cKgnUttSrgPNYMFAdsPiAHIC8grlT0fNS+y7Rctbn Oq0xSSAjwOusxTTB6Hf/lC6JY+hE0MjbCvVMFJ9iTJpEVy9kNRZ6X6FnnqWow1keseVi /WheGsO9mYMfaNyYn1GXFvyDobj/eVOuM16Nvp6uCP80iNaVjTFH3tDRzR1dRsqDtAZi B2A1E8wz3UcTAMELMOrkZYGJjd5zyHszsaq1wVjWOxKyNjh7FQz0KezP+WFdZa5/afJI rFlQo3dY8h6L2hKZJuU+AIhVJgVfvLmeVtFGybLaU+KtBik49p4TvzL5eMqnqmNyqZ+h jCXw== 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; bh=sVxo6oeYZUHCX+RK1K3eoO27MrqQTj0g7qoFE/Z8wLw=; fh=+y7YRXAv4UmDe+Ca8U9/aZIqPTr4C/S+E3H6ch5ciLU=; b=pUBwUuq8sCTy7uiy7xASqGV0EBbPqEvUSOzc6PvM2Yq2Sz/bZaAq+p4VrQcmEsnYRO p5gW1Pt0YHn2lEOmShzzAJ1JuPnQE5BWE4ET45r0j2egRSaZZWDQa1YLY2lDObKIEIwK IjTT27NcnSCDxz9psSXXb7XPDrXhA+mOaCVnyRETXBpEkwOVr4CfwnUxzAoBDCe1RXBl j8J+ogWhBo1Yoygl1uQ6N1HZuikZYlascTcH4YOJlpelNINuTongWDetHN/A0lf1937W J0Jx+pnHKK1DmD3F/WQLjFtUqz56xdTkaCZdzuga87ynT6OViegUcb2yIzzBysAhhziO S13A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id r23-20020a632b17000000b00578afd566cesi8855127pgr.594.2023.10.09.02.39.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 02:39:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 38F638042857; Mon, 9 Oct 2023 02:39:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345943AbjJIJjR convert rfc822-to-8bit (ORCPT + 99 others); Mon, 9 Oct 2023 05:39:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345928AbjJIJjQ (ORCPT ); Mon, 9 Oct 2023 05:39:16 -0400 Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com [209.85.219.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE4CF8E; Mon, 9 Oct 2023 02:39:14 -0700 (PDT) Received: by mail-yb1-f172.google.com with SMTP id 3f1490d57ef6-d849df4f1ffso4446662276.0; Mon, 09 Oct 2023 02:39:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696844354; x=1697449154; 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=j3YmCgHn7tXgi9jtCY7MITJAzGPAZOtwu79OddVQcyc=; b=QSGUTKoAa/Yf3qZ1vevaCmfLQ9lK0VhQy/uUlqUCQxfS9/HjZcDyt6+tw52pmH/4Pr BkRho7Ody4tklARULl6gdK2cEAuD6hBOC+SLFlt1WT7joRsf+zFgRqzLohSrxQgUTWGd RgvtVHPsVlkqFd0lfugQapHXl6T2/uAd4Pb/TD1RBIAgXNugb2oV0YPCGC4Cz0AVDDwX 3mgidFgcJ/m5OdDLLOdMJcVPbweojWp10RAJJIjT1Htdv+OjV47Ym3kmspF5FSVyz0OE YpLnuCwHgKfc/dHW/3sV1we5lCPlquvIaMIVgMGDK3FB5hS4hi9zT68vbUzHUHHslK28 Zt0g== X-Gm-Message-State: AOJu0Yxkd6mrzLHlJ66maCP7nqW2dENY16kRi/O+KlM74Bm6UTHbYLhI 5T2f5ChS9cKhEDr8EnZXYntoKd6GsF9sdg== X-Received: by 2002:a25:684a:0:b0:d19:40c2:eb03 with SMTP id d71-20020a25684a000000b00d1940c2eb03mr14191237ybc.54.1696844353805; Mon, 09 Oct 2023 02:39:13 -0700 (PDT) Received: from mail-yw1-f181.google.com (mail-yw1-f181.google.com. [209.85.128.181]) by smtp.gmail.com with ESMTPSA id v138-20020a25c590000000b00d911680fd10sm3010680ybe.50.2023.10.09.02.39.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 Oct 2023 02:39:13 -0700 (PDT) Received: by mail-yw1-f181.google.com with SMTP id 00721157ae682-5a7a77e736dso1001577b3.1; Mon, 09 Oct 2023 02:39:13 -0700 (PDT) X-Received: by 2002:a81:4314:0:b0:5a7:aa54:42b1 with SMTP id q20-20020a814314000000b005a7aa5442b1mr85835ywa.28.1696844353244; Mon, 09 Oct 2023 02:39:13 -0700 (PDT) MIME-Version: 1.0 References: <20231009083856.222030-1-u.kleine-koenig@pengutronix.de> <20231009083856.222030-20-u.kleine-koenig@pengutronix.de> In-Reply-To: <20231009083856.222030-20-u.kleine-koenig@pengutronix.de> From: Geert Uytterhoeven Date: Mon, 9 Oct 2023 11:39:00 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 19/20] pinctrl: renesas: rzn1: Convert to platform remove callback returning void To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Linus Walleij Cc: linux-renesas-soc@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=2.8 required=5.0 tests=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 howler.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 (howler.vger.email [0.0.0.0]); Mon, 09 Oct 2023 02:39:27 -0700 (PDT) X-Spam-Level: ** On Mon, Oct 9, 2023 at 11:22 AM 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 Reviewed-by: Geert Uytterhoeven Linus: do you plan to take this whole series directly? If yes: Acked-by: Geert Uytterhoeven Otherwise, I can queue it in renesas-pinctrl-for-v6.7 for my second PR for v6.7 this Friday. Thanks! Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds