Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2765527rwb; Sat, 29 Jul 2023 13:38:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlGqpHlJm1ns9/r2arh06DoZzA3qORGO/5R1+j10jzUAec124F7H2JqhaYjzm3wGvWuwQ3h5 X-Received: by 2002:aa7:c1c7:0:b0:522:216a:28cd with SMTP id d7-20020aa7c1c7000000b00522216a28cdmr4690216edp.7.1690663129216; Sat, 29 Jul 2023 13:38:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690663129; cv=none; d=google.com; s=arc-20160816; b=xqtzeAQsFK4m0XcxYHzRth9/QSnpYb+MeHkK86aqJ2h2VjQ7iydy6gZGJbbUJO2jI0 YOWDv5/F1J+oQp/kcwtbIN+72NUtZWSv20M0AyYhTzpNHR1PGPF4emRluUkaKG+INeUQ 0d4gHtFYlIBiiQE44UBnHFQ50a+k59Ud0gohTVMIN9oq3s3ejfpBIoyWsDQZn0xlp9LK sgaVzHYkHV/g33KCIs9KuYQkv9SQLacTGGsx57jrhpg1+d1CXFAHOpdUMHlMUmdGF3ek bPzzBBxFW2PR4/qtvD8swxQpR+54vsrPJWLUSJPjC2Xtw6diJG0tIeX/XYQGMIwwpJx4 aTaQ== 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=mbwxOo0rYZaBf7rK29/+zBVbIyIuQuXZw1K3yD81hfw=; fh=+IsvcrNjlq0Ty2ioyS5rc1At/CbiyCY/8w2BkEBbrrw=; b=mDDWQXVCgscZ2URxfochhW5X/Rcb3PR/+SgQ4mHhz48wCdbgtJh8fdAdBGpZKt9Zpq F8jGUh1+OlKauVZdsDsOwD6TcGZIgYeIgeI/85aZuQbyRbHEHa6yM4S9X5u7ugP11GqN UVsipOa13I+KQ8HieB2qu3sP0le0vm2kvY/YnOjwo81lSot38m0dRobcvy/i2Tv8aMIw ck962sbu5wBK3IuUxmrJnrpDvNG/z9Gvtgmojkr3Zkgzxs8Y86i9du/GSNz6ymiCEeY0 EsCkncutgHILir83TiI3MOwaSvy1MQq+ncxonY0Sbj9a/cFV1N/pFGre5Zrn+f9Z1uBO OiEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20221208 header.b=qqgKsyvm; 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 n3-20020a056402060300b0052257d9655bsi4510139edv.304.2023.07.29.13.38.25; Sat, 29 Jul 2023 13:38:49 -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=qqgKsyvm; 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 S229778AbjG2TCa (ORCPT + 99 others); Sat, 29 Jul 2023 15:02:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229764AbjG2TC2 (ORCPT ); Sat, 29 Jul 2023 15:02:28 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6AD735B8; Sat, 29 Jul 2023 12:02:24 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-99b9421aaebso446750066b.2; Sat, 29 Jul 2023 12:02:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20221208; t=1690657343; x=1691262143; 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=mbwxOo0rYZaBf7rK29/+zBVbIyIuQuXZw1K3yD81hfw=; b=qqgKsyvm1cURFa0kmIdwXTlP4iWRb4n0WSxpNHt/XPzwWMaAwrdIRW4b2QmL3loEVw X8uYLYwD18cr6aq6R8+QJAuwKZirccUnOmn0Sxrb1i2dPobTOrKIzroLlTEwgGAdbpwS J2am7zwSVmYTk2JnPc6hkGvM2MmTy4g0qlgsWF7G0krgyvhmlmieRBkI/iMw4dHUsYjl 7J4xdreUdwjdablWi7ce79vG+5rPllGMvNiMOnmNi5JJIP1i/WEFuFGbSocVQ21VXI+f NXrmKzV71NQ38IraKdOmfk7UzRORBad3bxNed2QPWNEB9udPl+6LvcXYPPTZuSXDyJ+F SA7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690657343; x=1691262143; 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=mbwxOo0rYZaBf7rK29/+zBVbIyIuQuXZw1K3yD81hfw=; b=Yup+F7ZCaSHCVaIat01rtbJX7BbpuiGyeqCVjlEQp5MvCLy1fCqFtmrLNGAovR2E2v 9RbTgzIMhA5ObTgudS8mQfwbry/UEIl33+c3F2/gwmeTOn8flNgpV/R4mbBWsEwXrtVn ko0w2jnM78+YevMVi8cn6EAvcMWTHhhL0paYsP1NyFP+HAGf+enBFeWcpNSfAfBzKqdx 00zVI0P4giuT/4Cb5oentbQDWsFib+QouK071dpfLFfruiIGo2YqMtHKzVUs+v3gc1RE 6SrqzW/NIJVa/gkNLMKDsPmYa2MJ/FudKvXOiu8D1aJGVrIFupqAPr3SQqN4QKr5Bh2L Rbsw== X-Gm-Message-State: ABy/qLYyg8kM4hPRhMR4SpAB6KL65oq9Ou/zUm/GKVArZdWkj4g6Ms20 ZDGp4LQxasEW3soFg8zwWntjxANceir+5vzQ9yk= X-Received: by 2002:a17:906:32cb:b0:99c:3b4:940f with SMTP id k11-20020a17090632cb00b0099c03b4940fmr1296569ejk.27.1690657343026; Sat, 29 Jul 2023 12:02:23 -0700 (PDT) MIME-Version: 1.0 References: <20230727070051.17778-1-frank.li@vivo.com> <20230727070051.17778-34-frank.li@vivo.com> In-Reply-To: <20230727070051.17778-34-frank.li@vivo.com> From: Martin Blumenstingl Date: Sat, 29 Jul 2023 21:02:12 +0200 Message-ID: Subject: Re: [PATCH v3 34/62] mmc: meson-mx-sdio: 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_NONE,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:02=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 Reviewed-by: Martin Blumenstingl