Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp153107rdg; Tue, 10 Oct 2023 06:53:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEQKIMKm3ByFh4XgI/xOi8aKmuEQvUzsZv1/4YCV3TfSQKlTufY2YRdPDE5Q8QveqznCnvl X-Received: by 2002:a05:6358:885:b0:143:91a2:8e0a with SMTP id m5-20020a056358088500b0014391a28e0amr20576251rwj.4.1696946002119; Tue, 10 Oct 2023 06:53:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696946002; cv=none; d=google.com; s=arc-20160816; b=1FeorkBkp8shM97415THPTr+dtW0HLH+7jcyxI0+jM92oN6V9qWXGcBMXLRwDHnYZP LudZjXRIBKr1qvEkwahr+jOn4slkPVihJt8JuW+oRDTkKhLhdCa6ehRUL7+Lcrpmz/lh 9RCNB7YUmotgwt+zTaErRGvQgLeZwWjX83fv9J/fv+YnhyMKvJrKeLAyoUPk6fuW9Q+v UAjYFK5QZRFk2Tn6H5Tm7Ned0KgZj7aunmGD/Ezk2YaAY0EuRhoWZWOPUnzf7d9WOjsp lrYE7YLZm1NDRmv2vAucrxOupHGvksHIDyEQGPe+gHjTIfGfuv9qZYZJVMwdE9wRc2gI JqFg== 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=z3yIbHqlXrK7ICNZ2LrrZM1zm3kjyXmlizl38wTJng0=; b=ytsQLobSGMBW1CBFtFpgXzsnEP23fSMrPeVksfhwr3WL7NztGb7S3NW2pHBKHTjiUB tyhCx3ccL7fQJjWfwtRDg2e9R4z9ch2fKA1n0Vjg8c+Y7uGh4vtyNcm9SkczngNkcjMT 9MLByCR17zPXBcUobdk8SftF4P32VnvB2yQYE+sfaROt2qKE4eqQnvhf4PLec+u3xwpH mQ5l2MdJBfA9AxU+bfLD9deKL2+m7KHEygh9EgQDIKhTvcKbl86O7z0fsHzYXevarakc jbFxseDoVChav41yyBxwlfB/yBOhg/6/sfqYcPGkvavCCDPcUKkF/y10dztM/b40A3UF MyyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aSDiETKK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id lx14-20020a17090b4b0e00b0027383ac5ebcsi8754886pjb.130.2023.10.10.06.53.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 06:53:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aSDiETKK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 9E0B2805B2F1; Tue, 10 Oct 2023 06:53:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232968AbjJJNxN (ORCPT + 99 others); Tue, 10 Oct 2023 09:53:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232905AbjJJNwv (ORCPT ); Tue, 10 Oct 2023 09:52:51 -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 525BF3260 for ; Tue, 10 Oct 2023 06:42:05 -0700 (PDT) Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-5a7c011e113so7945437b3.1 for ; Tue, 10 Oct 2023 06:42:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696945324; x=1697550124; 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=aSDiETKKlnt9oniV0fqiqS+VxAj46+QIh94yR6gXoDoGzOui/Hw2UkCUoa1+5BWJX3 GCo+JKtsIvyalVhoY+Cb68vN8ZrPe4rcTCaD6D01AgF9ckI0AMrBI+Pw0cIUoPN1orlZ eETbpdK/uDuDBa7MDNV+czzk6Lsp7kWYrFLOXuPuWayKWajS2aCIAs2ubebSz2K+jczx u+ng4qboUPMiAYG9TBBWL5QKAIlRAXAVDYXMXIhxeKDcc/S0LvVuCs+1CmSUI3CQ3QNj WYWVP29XB7Nmq8Vx7wrfGx3Yt+3lVvpOs+ZjRQ3XVLhcwi9D6nAupNoaXgs2u/nmoHdN 4hng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696945324; x=1697550124; 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=XPEdLSnrONGYkhz3UESksb7m0U4O59jcUm/due41E2szee/63TOdkXxaAC6wrhHXNS Ofdt0BswHrgWu5J8d9hW7n1Ax/PhXESN2WGv+AfcROyTDJpIGDf84LACBSEqtfJAYHEV eZ1DCBhEMJFE1dL81lYx68jOVmiC3z2eQn6sQ2+VCIjcyQaOJemP0aFvyunfRdPYfaTm LBC6ScHcbkL8Ya6A+kn2Rdr8g/hCb33izXWMIiUboENG7E2wBdMYCXJ42XZseANb4MPh KAuxtbloRtaF34p6Is/tb+CLUqJNxHJkqGgSqPU787rm7uA2g7ReCwSMT3ehZuvxuuG0 1oPQ== X-Gm-Message-State: AOJu0YxhRx/bosUDPOj1YLo+2GoyRM/2beoOwJoplUJr1mRH86R585yd 21hebhgPf3KgrKrlQrg/lTxe4Y/MrNCRhL/8FHWzHA== X-Received: by 2002:a0d:d9d6:0:b0:589:fc81:952e with SMTP id b205-20020a0dd9d6000000b00589fc81952emr18207196ywe.7.1696945324216; Tue, 10 Oct 2023 06:42:04 -0700 (PDT) MIME-Version: 1.0 References: <20231009083856.222030-1-u.kleine-koenig@pengutronix.de> <20231009083856.222030-14-u.kleine-koenig@pengutronix.de> In-Reply-To: <20231009083856.222030-14-u.kleine-koenig@pengutronix.de> From: Linus Walleij Date: Tue, 10 Oct 2023 15:41:52 +0200 Message-ID: Subject: Re: [PATCH 13/20] pinctrl: stmfx: Convert to platform remove callback returning void To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Cc: Maxime Coquelin , Alexandre Torgue , linux-gpio@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Tue, 10 Oct 2023 06:53:19 -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