Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp437522pxu; Wed, 25 Nov 2020 07:01:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJyeDH20gUEjJJIFdKwXqmV2wUQuyVRhq1vNpbi5JfvR3GehnmQhuux8ttNL6VeSm46tgU3i X-Received: by 2002:a5d:6852:: with SMTP id o18mr4576093wrw.336.1606316489818; Wed, 25 Nov 2020 07:01:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606316489; cv=none; d=google.com; s=arc-20160816; b=fxj9GRhBRBBenCaeRKSd9CjOBlaxS3VYcFuDbPnPfLTiOOBXs0tq71NhWuZbvN+aKF Ma/ourGRD6LZZp7OX5prr974XOgNXpTz5Xp7P1hPapEX7vApRqqdePHB02XZls/4rlP0 nIhBfXtn0G8nUxeZjmO4h6PCR38004ZfF363UjvQ0QXoFiqgeD3l48lspmVHxYsi4DC5 77yI1ZY29GgWo0l/Ipxl58L1EKrmnfMKRU0+fWPbw541H8lhuFSBHhyHuClGFqGSPVju gxnDqCrO+6CNPZhwY60RWzqK3eJUAw1ZESqmJjl7E2XqHEZ9F5JcEju1rXDmdzRNeMd3 ulhw== 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=TEyZ+NYcbsxQuMldn96lRooP5uH0+gm+rJOre2SaS9o=; b=wbVqh3/IqrbWAw3x/vHrQEEWTh145n0GqxgWZZNA9t6xb8yYlROSyUtbv8V1aHF74K yKYXHU5kYERbAWgaySVJvXgwykQUFe8mwtFTkveb2/6W4U2iNVqTcZbRpDUSkgheoWoU hzlCJk04mq8oWrVFutb34CvcSxCiptByCPb+s/eiLqFTZbCoy82Nvg/4asq4ihCO6Rvf q5HJ7mh8N+gRV7x9yxp92cNczkQsbkKLhQUj9gygCxvCCYXkmxQ+iRecX3hBUTF3QmSL CUViqskvWq2JaxJuOVW5KSTTgNRItL7YiUVshJngoI6+osJTlTFcSV1rTAaGfLPTeVYk 7c1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@eckelmann.de header.s=hse1 header.b=cZzbKtmF; 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 w24si1421873ejy.97.2020.11.25.07.01.03; Wed, 25 Nov 2020 07:01:29 -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=cZzbKtmF; 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 S1729989AbgKYOs2 (ORCPT + 99 others); Wed, 25 Nov 2020 09:48:28 -0500 Received: from mx-relay80-hz1.antispameurope.com ([94.100.133.250]:39268 "EHLO mx-relay80-hz1.antispameurope.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729817AbgKYOs2 (ORCPT ); Wed, 25 Nov 2020 09:48:28 -0500 X-Greylist: delayed 321 seconds by postgrey-1.27 at vger.kernel.org; Wed, 25 Nov 2020 09:48:28 EST Received: from smtp.eckelmann.de ([217.19.183.80]) by mx-relay80-hz1.antispameurope.com; Wed, 25 Nov 2020 15:43:05 +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; Wed, 25 Nov 2020 15:42:58 +0100 Date: Wed, 25 Nov 2020 15:42:57 +0100 From: Thorsten Scherer To: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= CC: Greg Kroah-Hartman , , Pengutronix Kernel Team Subject: Re: [PATCH v3 2/2] siox: Make remove callback return void Message-ID: <20201125144257.ck5hndrqczvdb6se@ws067.eckelmann.group> References: <20201125093106.240643-1-u.kleine-koenig@pengutronix.de> <20201125093106.240643-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: <20201125093106.240643-3-u.kleine-koenig@pengutronix.de> X-Originating-IP: [2a00:1f08:4007:e035:172:18:35:1b] X-ClientProxiedBy: EX-SRV2.eckelmann.group (2a00:1f08:4007:e030:172:18:30:61) 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-relay80-hz1.antispameurope.com with 50D4C10E58DE X-cloud-security-connect: smtp.eckelmann.de[217.19.183.80], TLS=1, IP=217.19.183.80 X-cloud-security: scantime:.5533 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= jSCBTisSbgyVlN2ckNYq07hYs8qkcA3hyWElz2yILrA=; b=cZzbKtmFbzyfnbk6 xrw5STuV0V7buSOmsgn9e5tg8almC6SVM7lBUQh0ewPrH5n1/ZcPo2x0G/LDuwXv zVrIPnYxH/Z7teJdEnw8QkLCu/HB8suWQXZOYIJX+67a+SRaUYfHv80ieW8Q7vzC 07/+XplFej7TVsTzx/ELxtc7NDSKkIsROjfm43AHJlstq4/b9b2YlSLiY7Lhuwle TNUGv2jIFXznkx++XHo5tI2B15FurxVkqRkT97YnTfIgfivHZVPm+AjpyKw/YOeI y38Z2rPSxyMXy0WXjC/YhLDI4DLcXe6yT1XAtdhiaC+K0nVC6jfNiLrrLpY45Q7k FaVmJQ== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Wed, Nov 25, 2020 at 10:31:06AM +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 Acked-by: Thorsten Scherer > --- > 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) > 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; > } > > static void siox_shutdown(struct device *dev) > diff --git a/include/linux/siox.h b/include/linux/siox.h > index da7225bf1877..6bfbda3f634c 100644 > --- a/include/linux/siox.h > +++ b/include/linux/siox.h > @@ -36,7 +36,7 @@ bool siox_device_connected(struct siox_device *sdevice); > > struct siox_driver { > int (*probe)(struct siox_device *sdevice); > - int (*remove)(struct siox_device *sdevice); > + void (*remove)(struct siox_device *sdevice); > void (*shutdown)(struct siox_device *sdevice); > > /* > -- > 2.29.2 > Kind regards Thorsten -- Thorsten Scherer | Eckelmann AG | www.eckelmann.de |