Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2052146pxu; Tue, 24 Nov 2020 15:58:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJy1ejQNMuLfrPAmaZRDbdSPZeEb8v5Ep2tCBkgF/4ZVnDydMzyWG4M4fR4T9d+zpZ82g2EF X-Received: by 2002:aa7:d717:: with SMTP id t23mr978053edq.286.1606262302621; Tue, 24 Nov 2020 15:58:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606262302; cv=none; d=google.com; s=arc-20160816; b=vIa3cvEQeLGfvYS/Qnv5ricTahhBvqoBz0hRN5oW617Z4immHkqKJTQ2kreCnrhmzc ADsmb2oFJdac0IeU0Zbe6ze4HCM++TzrDvmpCV/VjLrBeY3wgsoGFuNh7Pf9WxZau/Ho 6ff8vjiwm2LIa235Qb60DLGHcnIbC8PmZyjkEvG9vwpqhzWjt5GC+oAFAXgEzFUqRuv2 mT/r47AmGXFkLQpwHyqF8pIghzZEXMACqWoNDidDwpWNmPWIj2ArcMGbdBJ6gCq4aoh0 YEEtC+0H+EaSFy3hQ8piZbmd/4RbvYf6ScKcgzXaySKp0aYZX8md/XtM5ms0knHFxU1s 20gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=SQ9uL7k+v7if6nndXA+k+Dlk2da72Th2ldZRQAqpcFY=; b=HmDi72mPpIiDfdJlW4b28fSQRNV3u6zLDM6N8hdgU77sdBxT9JvmknyBcfkRHNkxSQ a6siRTjwAAXjjTRUx8CY26pnaviORjfOee1mGLVUTEZuMkxlEzN/PVgF21aQ4zVYWV7X ciDrAUYnNS4btd3pHOhRREwO/zn2mz9yERtxRAEkXhkyxnCq+z2HcoGh74Y0VKV3xDMA QYY+88CZNg4TG8dQf8WsaNFYfUnzY+I14sZjPRWpkHT5D+kzYRzP40ehCjrjoQh/7K5y kj8dHDO0GDIINBygt8IqvZdMnBQtDurGMS1xvcQYl2TjyeiF+1RgyVdxoIdJ4lusSSTl lYdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@eckelmann.de header.s=hse1 header.b=sCGJ3wXT; 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 a19si186064edb.21.2020.11.24.15.58.00; Tue, 24 Nov 2020 15:58:22 -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; dkim=pass header.i=@eckelmann.de header.s=hse1 header.b=sCGJ3wXT; 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 S1729342AbgKXVEL (ORCPT + 99 others); Tue, 24 Nov 2020 16:04:11 -0500 Received: from mx-relay17-hz1.antispameurope.com ([94.100.132.217]:43615 "EHLO mx-relay17-hz1.antispameurope.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729288AbgKXVEJ (ORCPT ); Tue, 24 Nov 2020 16:04:09 -0500 X-Greylist: delayed 317 seconds by postgrey-1.27 at vger.kernel.org; Tue, 24 Nov 2020 16:04:08 EST Received: from smtp.eckelmann.de ([217.19.183.80]) by mx-relay17-hz1.antispameurope.com; Tue, 24 Nov 2020 21:58:50 +0100 Received: from ws067.eckelmann.group (2a00:1f08:4007:e035:172:18:35:1b) by EX-SRV2.eckelmann.group (2a00:1f08:4007:e030:172:18:30:61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Tue, 24 Nov 2020 21:58:47 +0100 Date: Tue, 24 Nov 2020 21:58:45 +0100 From: Thorsten Scherer To: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= CC: Greg Kroah-Hartman , , Pengutronix Kernel Team Subject: Re: [PATCH v2 2/2] siox: Make remove callback return void Message-ID: <20201124205845.jma7lay5tux6wiav@ws067.eckelmann.group> References: <20201124141834.3096325-1-u.kleine-koenig@pengutronix.de> <20201124141834.3096325-3-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201124141834.3096325-3-u.kleine-koenig@pengutronix.de> X-Originating-IP: [2a00:1f08:4007:e035:172:18:35:1b] X-ClientProxiedBy: EX-SRV1.eckelmann.group (2a00:1f08:4007:e030:172:18:30:60) To EX-SRV2.eckelmann.group (2a00:1f08:4007:e030:172:18:30:61) X-cloud-security-sender: t.scherer@eckelmann.de X-cloud-security-recipient: linux-kernel@vger.kernel.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mx-relay17-hz1.antispameurope.com with 75DAD1844F23 X-cloud-security-connect: smtp.eckelmann.de[217.19.183.80], TLS=1, IP=217.19.183.80 X-cloud-security: scantime:.3002 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=eckelmann.de; h=date :from:to:cc:subject:message-id:references:mime-version :content-type:content-transfer-encoding:in-reply-to; s=hse1; bh= M8GLMVkJvqxCzi92fFaRaFOYmB4+0wuwzPA71db+qjA=; b=sCGJ3wXT8Eyc9wZH AZOoCz4vlnaElGomiiN+9eko54C/UZxCDv6dpAgYdVTTiZSU/IstBI5Gbb/V+d4I xnPI/EyiIageFE5+WRDjNwQtx5AjApIyiunJcBdEouLS96nLzykPrpadV/dbJQ3r vPGCiu+maJYnnyA5wqGD0rVAO7x0zNW0qfucsufOtFIC8l5AQ98aYuIQj9p6gDud qqUmoSIN9Jm5V6M3devpZOOsRYYJfRva1Uvt0r/N9yMvkswvtkNSh5y/5LKkUaHx DwiYTUD8HvxExKHEUXETaIl1F7r+0mnKE0QzYxweV5GwnOP0u1xfmawBrMO98vJz Soikwg== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Tue, Nov 24, 2020 at 03:18:34PM +0100, Uwe Kleine-König 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önig > --- > 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) Shouldn't this return void? > struct siox_driver *sdriver = > container_of(dev->driver, struct siox_driver, driver); > struct siox_device *sdevice = to_siox_device(dev); > - int ret = 0; > > if (sdriver->remove) > - ret = sdriver->remove(sdevice); > + sdriver->remove(sdevice); > > - return ret; > + return 0; > } > [...] > -- > 2.29.2 > Kind regards Thorsten -- Thorsten Scherer | Eckelmann AG | www.eckelmann.de |