Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp167989pxu; Tue, 24 Nov 2020 23:08:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJyFr+MlLxYxXrZrnkR9oM6g9UcAh2qyNu0FdPQaV6C06C5qHhcNiDLEeoamjzVv7LBhogJB X-Received: by 2002:a05:6402:1d82:: with SMTP id dk2mr2231651edb.366.1606288104126; Tue, 24 Nov 2020 23:08:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606288104; cv=none; d=google.com; s=arc-20160816; b=RxETXWrhW7h455lHbL8VeJ+8j8xFIvraYX0A5v13Tk45Maj6rYDDs9vWI7v3IFXZEl Tc8amgtcUgQUtk4eB4aLi09blbwH25Pc0+w8OsJ+xRVOoHgsHG4KuiHnlCsgefy81sGI 0LpXj2lo0nayz7Ok2iKsw4KzFvq7Tseo3zv7mkw6VD5yVV9WTiRFqraP4Mw86gNgaQWM UVgvM3JlYJrLA04+l5iVn+MYD6h533I4/bXuzIcMi+pByjbcTaVXkpnTzh/mIGx04jky cH0Eboo8mdK0Kv6DUmD6cbcQVUDwPilbthSEpE53jpjqTpL24RsBAffa9zk26GLJ9SYy oRYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=XG2Xwc0pAqaGKFCv91AtNtbHfnymJaSqN73cFQYbXtY=; b=LvPgdaWBgjbOKFnN5KyQQ965BW5ArixQgxn8IjGVbgx2Kw7qL3nUduIrect5kXTHYN DBe5SXifc18F+L0EwLO6/hu7P/cRqsJ55dExcQptVwNq128c2KF4wgGko5k11xwHZ+mP 3RvfnIVSilHvi5lPvlTkEopS+J3/NksI2lRjprKbmUruUUN/o6DyCZ9D1HT864+dN4fe 5zaNEPa3p5RnhTs2qfskNuRV1CoO075X+FPHkdPIDVTQwAmairne8z7RVM1LlpzokowX mg7QRw6A8UrIcJ3WSNkMCQ7dlrmJub4hLiGytu3Xi2kwF+kN8d+YHVlUQcHNRpZh8Tb9 Y99A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j21si135815edj.288.2020.11.24.23.08.00; Tue, 24 Nov 2020 23:08:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727726AbgKYHGc (ORCPT + 99 others); Wed, 25 Nov 2020 02:06:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726032AbgKYHGc (ORCPT ); Wed, 25 Nov 2020 02:06:32 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27CC2C0613D4 for ; Tue, 24 Nov 2020 23:06:32 -0800 (PST) Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1khoso-0004GJ-9h; Wed, 25 Nov 2020 08:06:30 +0100 Received: from ukl by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1khosn-00010Q-Ig; Wed, 25 Nov 2020 08:06:29 +0100 Date: Wed, 25 Nov 2020 08:06:27 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Thorsten Scherer Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Pengutronix Kernel Team Subject: Re: [PATCH v2 2/2] siox: Make remove callback return void Message-ID: <20201125070627.ragkxfs56czkcrfv@pengutronix.de> References: <20201124141834.3096325-1-u.kleine-koenig@pengutronix.de> <20201124141834.3096325-3-u.kleine-koenig@pengutronix.de> <20201124205845.jma7lay5tux6wiav@ws067.eckelmann.group> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cixxissz6k4lxedf" Content-Disposition: inline In-Reply-To: <20201124205845.jma7lay5tux6wiav@ws067.eckelmann.group> X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --cixxissz6k4lxedf Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 24, 2020 at 09:58:45PM +0100, Thorsten Scherer wrote: > Hello, >=20 > On Tue, Nov 24, 2020 at 03:18:34PM +0100, Uwe Kleine-K=F6nig wrote: > > The driver core ignores the return value of the remove callback, so > > don't give siox drivers the chance to provide a value. > > > > All siox drivers only allocate devm-managed resources in > > .probe, so there is no .remove callback to fix. > > > > Signed-off-by: Uwe Kleine-K=F6nig > > --- > > drivers/siox/siox-core.c | 5 ++--- > > include/linux/siox.h | 2 +- > > 2 files changed, 3 insertions(+), 4 deletions(-) > > > > diff --git a/drivers/siox/siox-core.c b/drivers/siox/siox-core.c > > index b56cdcb52967..1794ff0106bc 100644 > > --- a/drivers/siox/siox-core.c > > +++ b/drivers/siox/siox-core.c > > @@ -525,12 +525,11 @@ static int siox_remove(struct device *dev) >=20 > Shouldn't this return void? This is the callback used for struct device_driver::remove (and after patch 2 struct bus_type::remove) which still has to return int. But in the long run I want to change these to void, too. Best regards and thanks for your feedback Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --cixxissz6k4lxedf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAl++Am0ACgkQwfwUeK3K 7AmNCAgAgcexh6x35DGDrKcMUYhkwLcKDlnYu2H7CWi8lQeDHo1C0PoFBIEcoR5Y fU6zpkrQlysxf3A6Kgbes0PwD5T9xIGw4Umjmm1mnFRjdaAQW5HKP1gebxZ5wp/5 POcRPDO2NHO1h7XbBKTJsvB4sO0HC/es3gEx8q49INgBKhBkAKuqQ1kVkv8BywbK vDK1AFbA241KBgP83iGj+zBuOrvOV9GKthAiE52APtPpw67mcHvbYmU5eUof6Y69 MpO1abp8T89CQdrNZ0Pssxs204Qw354qxJKdCPKB19AcGHCoZtAvhhmGL5rOzqnR Anp1nBkWebGFBZlLwlTVATaPYy0nKg== =PKyt -----END PGP SIGNATURE----- --cixxissz6k4lxedf--