Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2738746rwb; Sat, 29 Jul 2023 12:56:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlGo0xQwNxxSi83T44RoIeiCryErakKdH1Po/mKvu65hyyAMwSRA2pdLD2fb0QAhsI9drC9P X-Received: by 2002:a17:902:e88c:b0:1bb:9357:8b76 with SMTP id w12-20020a170902e88c00b001bb93578b76mr6762442plg.50.1690660600157; Sat, 29 Jul 2023 12:56:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690660600; cv=none; d=google.com; s=arc-20160816; b=zmaTSKRS1ZRN2I/6koO7q6RRWzyIwEXJ/fJJHIuTufh6ZSSsjhgLwS9qqiVnQvQVC9 kAAlSb0FmNLKCk5BckDFNC+TDJp1nR6OpDNW1Ux+ZV2tD/md9G4qFTbscU/bTeP7/LRb 051qjC0z8k+c8W8o4Vk1oLrYbpgvCJEdVwfasiQQjVxyNe6DprMDsE0ZXx2MxBkPTeni DRdfie/M5cuJpFsTB0xpu0IIzj7fbUoVDfAhtBwrq3cUrKNMUjCgfqiU9fI79893HQ9f ySAThexQwahSuCwGlsPl+E0vLhcJHJzVB8ezNsxtXORuXZyAfDJFthgJTOrxgtQzrl4v AHNw== 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=JewjP4gzG3wPRwk+PPYrVv5BM6h635y61OQNgYt1XdI=; fh=+IsvcrNjlq0Ty2ioyS5rc1At/CbiyCY/8w2BkEBbrrw=; b=067FN5Mqi6O5/anBvZjnbrBHbcL7RqLybEoKNnMB/3dN5V9P3696IlR4a/ZhLWcwHP lcPfehNrX5tll9KCZYAHVFU+ToxnDV0UQLhHTAGiQy2nwYkCV1NMld5rKsLj+gyR6M0o GJ2NVF2pWqDf+JyhH+pcbj1+rCmyWyHZKUNOoh0hewiEJ/gKxwJpKFFo9hEdaI90QxkO nwMb6WZ1kl0sUgmRaSTu4/hgUveVXkMObKjoiVib7aiVdV0zGgHvE2vxIgsqwtx01UMm LwVl6pickbrolkaNDAQkMeX8LEou4ShmsdUumWjhigAKAYJolu9JczI2q/QQjrCeaWZo 4MmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20221208 header.b=nVdFgNkc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c6-20020a170902d48600b001b88ff529cfsi5125707plg.619.2023.07.29.12.56.28; Sat, 29 Jul 2023 12:56:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@googlemail.com header.s=20221208 header.b=nVdFgNkc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229554AbjG2TCA (ORCPT + 99 others); Sat, 29 Jul 2023 15:02:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbjG2TB6 (ORCPT ); Sat, 29 Jul 2023 15:01:58 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B590E7D; Sat, 29 Jul 2023 12:01:57 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-52227884855so4769392a12.1; Sat, 29 Jul 2023 12:01:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20221208; t=1690657316; x=1691262116; 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=JewjP4gzG3wPRwk+PPYrVv5BM6h635y61OQNgYt1XdI=; b=nVdFgNkc3aXFNGd0myraj19Xcf0QZrKaVxz6cZ82aeOXKko/LDNNJQrs/W/Q1Rbv/s 0ja+W6xk6g8p+Yft/PAQ299/y16MC/HpA57dH0uJFC+SvLAL7MVyP2N17YYXrcwFMWFu ZblCZLAlevbNmxt5VrxIbSvVdQkoYQI3eEFIexKNJNPEi/Xd9aIakMLqNY8Jxy8dlKAK eWf4QW4RwkkQkXGmxND9pn3ZB4VXaaMiTaY+T5RU8eWBwqeuYybV8kp5ND8soSkOO4u8 5Dxqxeh3yl9e64lH2QvCed5RE+ohp8C08cw2G5+n++P1zVThOVbqrg9wLrBFGRce/wq0 gkYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690657316; x=1691262116; 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=JewjP4gzG3wPRwk+PPYrVv5BM6h635y61OQNgYt1XdI=; b=CPtU/c41tjmhjUQ9jA9sIyedTEQeyf7OrdixRY95dT5DOupqDxtS4S98p9f6Rr/Ncr hB1D5Fa0V8MOOAn3YVTTkQgr6s/Azwh665dC7NmsCcXKWGbbvzDi2H1LcbB1Q/u4gJ7+ 6GHAK3ENr31GkM0toOsPVK5VnJYoPpNRqOYgj4JzVT8g0gUovNetNP5OY8WhflK98yoj ROn71LeopThM6BOOK4+dPquCZ2tOmWnWFAVItQxH/KWI4lYn+X25SwJfxIAzX4qommUM DplHUr/TeIV4K65VqyFob9QVNOM7epAGksvWAiS0RrIw/iXubcY4WqzJHeqCp9mk3FqM SENQ== X-Gm-Message-State: ABy/qLatE4Y9pmO2qp+FaTboWIRONy0G11ze8G9VEP+/g6g4Rw2j2/ZM 7QS+8qcpQ59gPcrf28owpPQy2iD7LHL0+C/aEXk= X-Received: by 2002:a17:906:8a63:b0:99b:f4df:dd56 with SMTP id hy3-20020a1709068a6300b0099bf4dfdd56mr3407340ejc.6.1690657315332; Sat, 29 Jul 2023 12:01:55 -0700 (PDT) MIME-Version: 1.0 References: <20230727070051.17778-1-frank.li@vivo.com> <20230727070051.17778-19-frank.li@vivo.com> In-Reply-To: <20230727070051.17778-19-frank.li@vivo.com> From: Martin Blumenstingl Date: Sat, 29 Jul 2023 21:01:44 +0200 Message-ID: Subject: Re: [PATCH v3 19/62] mmc: meson-gx: Convert to platform remove callback returning void To: Yangtao Li Cc: Ulf Hansson , Neil Armstrong , Kevin Hilman , Jerome Brunet , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 27, 2023 at 9:01=E2=80=AFAM Yangtao Li wrot= e: > > 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 (mostly) ignored > 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. > > Trivially convert this driver from always returning zero in the remove > callback to the void returning variant. > > Cc: Uwe Kleine-K=C3=B6nig > Signed-off-by: Yangtao Li Acked-by: Martin Blumenstingl