Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp665532pxb; Thu, 21 Jan 2021 17:18:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJw53hw1LgyiZSchskUFH0713CFS3BbMxCgbf8sqadVMGNFll1K8iUJO6UnMNvJjl9G51r6y X-Received: by 2002:a17:906:f246:: with SMTP id gy6mr1348733ejb.264.1611278292392; Thu, 21 Jan 2021 17:18:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611278292; cv=none; d=google.com; s=arc-20160816; b=Ol6qWr0MOs/ObyGUGZQMFJ23yZe4D4ZXpYEP1ZHJVOpwM9vGPeCC5oEDuX5N4c9i0R SwZrRr5s1IRMVQEtni84MCjQLpvMtrSFbSguJq/Z7P+SoK7ixJVoR+eOfPt5cr0gGsiu rmTAcKIWHxM4rpFJYfrnV1dRNMnrQ+boU9TsM6f+G5rIQiqbl5X3c9qMzA79DtVAj9U0 SWpd5glpZbUkjHS2YcjdjjsmwheZrnDE846/WzIku342CCE+bEB4A0fgegMggX7oz+Vn V39Y10JzuO9Na6eQe+zUXOT+cu/DFzpw3qTXvzi/7oPiOmRCZQ0qevySH3BmYY17Ut50 s6rA== 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:dkim-signature; bh=lw4cm+7RXhLgXHhIgHAntQuy6SsZDwNqhL+qH8M4o3Q=; b=tbWafbjmyvNbyT0KK/kcZ9dAdeS3VtsHALVUJzTJ2FUgdxhyAL//h4Gr4PCZMsSGHk yM9gmh4Y+ABziynK71TkKpJJ2uYxOOtHveRzEN8mSAy2+2OZc85LXyR2KP07pKrSZXqR KAO0AA16x+jd00dgf3PZUmfWitV8so/ZYQje0fqR7sCQF7i7KnVNVeecIeEYfe5GlK8h 9AMt0bf23JQqQ75Zk5c5w77l1E0EicoT3FCxEBjO8YjhD0Plt6l3optmOW/w9X/PwiGl p+n3MYVl/mYC5d4fbC1aymEDn+pu18Pvt0Rzkg2hq/zm7gerYJqvAWwODRkrHszAL/mT mo6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XhdA9ei1; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g20si2852970edy.399.2021.01.21.17.17.48; Thu, 21 Jan 2021 17:18:12 -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=@gmail.com header.s=20161025 header.b=XhdA9ei1; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725984AbhAVBEa (ORCPT + 99 others); Thu, 21 Jan 2021 20:04:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725283AbhAVBE0 (ORCPT ); Thu, 21 Jan 2021 20:04:26 -0500 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78D54C06174A; Thu, 21 Jan 2021 17:03:46 -0800 (PST) Received: by mail-pl1-x633.google.com with SMTP id b8so2275719plh.12; Thu, 21 Jan 2021 17:03:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=lw4cm+7RXhLgXHhIgHAntQuy6SsZDwNqhL+qH8M4o3Q=; b=XhdA9ei1rorZZbjDB1bxDSifSMzivWAG6Z/YPsqR6QqmUxc6VTdh+WLbjCztj5VjV2 Y+dKEpFeuWM2An1Evn24rEmp+5Z1dm7qpRCibEQ+1GbNwX1r9T5/Gx9nSURWWwbIIe2r HfM82xGGVz+LObwR71Pbjpi2+oRPfDZQWmV9/DV6mcUFtH+iaAEuh/XYNUYmanyIPwXg ATzqC2zmij1Tegt2Xv3ZP71dx/wTol+Zu5oxZfoID7vldOsjrt6OxnB20MrihUv46wT5 9Qbw8tCFYnUVghfTteSJg3nWRppmB8WPscLwqjlcs2JIeH8v07/c+Q9k08CQy2bIBPMN fXYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=lw4cm+7RXhLgXHhIgHAntQuy6SsZDwNqhL+qH8M4o3Q=; b=HOA6o1HkBG9t+R1vfk89GuC6qTiMgzzVu3SmXhDzN4KAbya9dKaKG4hbfPuwMWE4ys 43eOuIBhCofQDs5RRUUmSH/z2f+E65fXj2PO8L0tz09PYN0BWklD1fdRpK072oGF0tSV u0l79cdWgkVYu43JHR63hUB64CZZOQ+7an3giSgSVRZTwfTcE1JOq9qMZ5si3ZMc310J mkilybkFgqbaFPXZgcZgQxlS8w7eZ8bPg7mLYOK6Hfn3e8C+bC5rVKOhjHENznj1bTOQ uSPIOIOG7n9ih5TsBfOjKFrjweBEIkUjS4NDWOsmhynG8C2/nrHL5API8E5MP7mqsuw4 8i8g== X-Gm-Message-State: AOAM530EdHrzRMj3PcYjJvddiszCN0pNQ17jFaEMXmiOGjJw4ETCe5XD gpfrdgajeGNqZW3r4NBKIag= X-Received: by 2002:a17:90a:5513:: with SMTP id b19mr2363941pji.99.1611277425889; Thu, 21 Jan 2021 17:03:45 -0800 (PST) Received: from shinobu (113x33x126x33.ap113.ftth.ucom.ne.jp. [113.33.126.33]) by smtp.gmail.com with ESMTPSA id e3sm6395565pgs.60.2021.01.21.17.03.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Jan 2021 17:03:44 -0800 (PST) Date: Fri, 22 Jan 2021 10:03:32 +0900 From: William Breathitt Gray To: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= Cc: Wim Van Sebroeck , Guenter Roeck , Greg Kroah-Hartman , "Rafael J. Wysocki" , Pau Oliva Fora , Dmitry Torokhov , Mauro Carvalho Chehab , Wolfgang Grandegger , Marc Kleine-Budde , "David S. Miller" , Jakub Kicinski , Matthew Wilcox , Hannes Reinecke , "James E.J. Bottomley" , "Martin K. Petersen" , Finn Thain , Michael Schmitz , Jaroslav Kysela , Takashi Iwai , linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-input@vger.kernel.org, linux-media@vger.kernel.org, linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-scsi@vger.kernel.org, alsa-devel@alsa-project.org Subject: Re: [PATCH v1 0/2] isa: Make the remove callback for isa drivers return void Message-ID: References: <20210121204812.402589-1-uwe@kleine-koenig.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="PZu/ILMf5FNwdU4R" Content-Disposition: inline In-Reply-To: <20210121204812.402589-1-uwe@kleine-koenig.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --PZu/ILMf5FNwdU4R Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 21, 2021 at 09:48:10PM +0100, Uwe Kleine-K=C3=B6nig wrote: > Hello, >=20 > as described in the commit log of the 2nd patch returning an error code > from a bus' remove callback doesn't make any difference as the driver > core ignores it and still considers the device removed. >=20 > So change the remove callback to return void to not give driver authors > an incentive to believe they could return an error. >=20 > There is only a single isa driver in the tree (assuming I didn't miss > any) that has a remove callback that can return a non zero return code. > This is "fixed" in the first patch, to make the second patch more > obviously correct. >=20 > Best regards > Uwe >=20 > Uwe Kleine-K=C3=B6nig (2): > watchdog: pcwd: drop always-false if from remove callback > isa: Make the remove callback for isa drivers return void >=20 > drivers/base/isa.c | 2 +- > drivers/i2c/busses/i2c-elektor.c | 4 +--- > drivers/i2c/busses/i2c-pca-isa.c | 4 +--- > drivers/input/touchscreen/htcpen.c | 4 +--- > drivers/media/radio/radio-sf16fmr2.c | 4 +--- > drivers/net/can/sja1000/tscan1.c | 4 +--- > drivers/net/ethernet/3com/3c509.c | 3 +-- > drivers/scsi/advansys.c | 3 +-- > drivers/scsi/aha1542.c | 3 +-- > drivers/scsi/fdomain_isa.c | 3 +-- > drivers/scsi/g_NCR5380.c | 3 +-- > drivers/watchdog/pcwd.c | 7 +------ > include/linux/isa.h | 2 +- > sound/isa/ad1848/ad1848.c | 3 +-- > sound/isa/adlib.c | 3 +-- > sound/isa/cmi8328.c | 3 +-- > sound/isa/cmi8330.c | 3 +-- > sound/isa/cs423x/cs4231.c | 3 +-- > sound/isa/cs423x/cs4236.c | 3 +-- > sound/isa/es1688/es1688.c | 3 +-- > sound/isa/es18xx.c | 3 +-- > sound/isa/galaxy/galaxy.c | 3 +-- > sound/isa/gus/gusclassic.c | 3 +-- > sound/isa/gus/gusextreme.c | 3 +-- > sound/isa/gus/gusmax.c | 3 +-- > sound/isa/gus/interwave.c | 3 +-- > sound/isa/msnd/msnd_pinnacle.c | 3 +-- > sound/isa/opl3sa2.c | 3 +-- > sound/isa/opti9xx/miro.c | 3 +-- > sound/isa/opti9xx/opti92x-ad1848.c | 3 +-- > sound/isa/sb/jazz16.c | 3 +-- > sound/isa/sb/sb16.c | 3 +-- > sound/isa/sb/sb8.c | 3 +-- > sound/isa/sc6000.c | 3 +-- > sound/isa/sscape.c | 3 +-- > sound/isa/wavefront/wavefront.c | 3 +-- > 36 files changed, 36 insertions(+), 79 deletions(-) >=20 >=20 > base-commit: 5a158981aafa7f29709034b17bd007b15cb29983 > --=20 > 2.29.2 Acked-by: William Breathitt Gray --PZu/ILMf5FNwdU4R Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEk5I4PDJ2w1cDf/bghvpINdm7VJIFAmAKJFgACgkQhvpINdm7 VJLzPQ/9FPQmfnPF1kWcQikWSXr31BdrY/bU1k3tsN3+yIFcnAkjeW5mH5TGysY8 zpAFfnbdVIMz5er9oBLPRcOztSwitbQeOuLQHNnm5Bf8Vs/BBYahD8iK0Z11CLzU NaOcLr3iJYTisqqbPjiadkoKUeCh6vizab5oaZUR/5jn6YvtFX1vB3amb2J0600r mNVDoLHL4BnWW40jTxr12OQF/Z27BGaRqUImGhmgUqvLY8WMz79zGTgg4qHYMujs MYZxWX9ILt3oXKwFrd58mIcG9cIP9q18ndjkyMdH3sXMMYHPm6vKuVnVHcOjSqBn sX0ciA2HizGr7V2o1AhQiU3loQEaE3uHZ1t0te/vEqVRLlWlqSevRdNxxpgNk58Y iQe3J72kgc2Pb3009+FpzMMO4MaGfpNTXBeVP9qurmHmaAGBQLAoNxqmSOFnXx7I aSmNOW9wTuijQeUWN7WlYGtaRlEldvQlPiPbut8p9M7/5kTkW8GTXxvbJd1ylwwF Oxz1NxLAEvJN3NuwPoAkywW930fVXy4JJigSwMjKlc+vXvJgGqGP20HqeHKBxTdE GglZQJ0FunBNAYckgJwTqt6A84+wCwZ/5erqRqsJDipn8qcnQ79YiKjh+L4za0QA yyItzFeVSsa/lPxJ3OrDiOD2LsTb9hkJhmT5OHPFjwxt++d7KiA= =WpSs -----END PGP SIGNATURE----- --PZu/ILMf5FNwdU4R--