Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp240717iob; Mon, 2 May 2022 18:13:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxY2OsqTsjXrQpH0EEjn01+SWcbHCHtj41M7ELo884KGWhrdNCki0e+7go/tikJbsrZTjOa X-Received: by 2002:a17:902:ec81:b0:15e:9cfc:a07a with SMTP id x1-20020a170902ec8100b0015e9cfca07amr9559254plg.62.1651540402576; Mon, 02 May 2022 18:13:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651540402; cv=none; d=google.com; s=arc-20160816; b=jh83pinmYv6snu9vLO5Am883UCHsqt9twtCaeyA/yRErjsWDqitrB+4MFwYc/PjdAf PGpAJRrj0dTlaQS1prZCPw/P3i+UFjvHv5+NgEX2jWnQeA2Y4f8FpsX5KczSOoPYmj0Z wbNSMoV74yMXWe7oXqfDDxZSnWORC/ckp8vsmdYUcy65gCR84dZ5rI5mpZSckzyk2/XA YB0pzCfh9T6jVeJ1flYs3ndVWWso+O3h/FfI98IAsUt/I+qv/6zT+azxDC9ColkGPJqn Uo/9Kfnhw4OfAkPlRgu4MI8rMdISyFRUt/blh6G+H4H4xPhOl4mqfu0H8h6q16RYKisg RBIQ== 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=AXuxilFt8bJ4TZzFoEehtqH1L61QxOPFeWD14sA1KQ4=; b=kRdsQFO1cQmUruoXzHjLPvD4pYUD7vBIf1OylZWiyJAgzFIfSj/DNGA+1SEhhmHbXC +1gMxK+GPCQAFyvV+KvdBAHVcSiHg0L5+AwutCB1YEoTfQdfxMUfz5NRW8aUxC3YgOge wkFH0aCeQrToiW0JJNMO6TS5pLCQ9hM4mTivW5XaNAT56szxx7Wlx3zibab8JPum2FhW 2EasebSsQze3kcGIlHjDaBZANAqgLOlEVkgUT85LTvNiAOnBUaQeQ+/vUB4+qPzv6aY3 zfS/l2ruMGAYXOY2EO+wuHGPuVPPKIjjsURp3R8NVeAXdE4xY2vxOeuz5XgXyIh3fiRn FABQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@philpotter-co-uk.20210112.gappssmtp.com header.s=20210112 header.b=kVB3werF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id g4-20020a63f404000000b003ab7a1a4576si12418826pgi.136.2022.05.02.18.13.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 18:13:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@philpotter-co-uk.20210112.gappssmtp.com header.s=20210112 header.b=kVB3werF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B7E2D41619; Mon, 2 May 2022 17:54:10 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353275AbiD1XcI (ORCPT + 99 others); Thu, 28 Apr 2022 19:32:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233655AbiD1XcH (ORCPT ); Thu, 28 Apr 2022 19:32:07 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD3F9BCB71 for ; Thu, 28 Apr 2022 16:28:49 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id q23so8667571wra.1 for ; Thu, 28 Apr 2022 16:28:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philpotter-co-uk.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=AXuxilFt8bJ4TZzFoEehtqH1L61QxOPFeWD14sA1KQ4=; b=kVB3werFcuHON4QX+/OUCotuXYa3W3x13MoRWMIGj26V9rGs2dQ3RC0L4IVjEM/ugE PpT64lSYNqkTKIxDxpILxZoHX+wJ9nL1nV4g/hJ/e5nJIfPUXwFlX2CR1qYbCIHq2lf2 Jriu6al3z6pQ806XQWQuNs1BvAxJyvPNYIHnAMmLbZEptYiLGtJ/6TtAPdlK2a5Z5Es1 MqpIfH0nluvXRbRGG8ArFOvxsPdwBSff8V7cpoJcANPG3Q3/zKZWt7DkNhe9tyBtRWTW Xj5kuAdMxkVLiFTDAiE9trlEjdSupiLgss7UqQ3YZk2qQlk2EFO6EteZ2XOAp8bdYE6p P5bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=AXuxilFt8bJ4TZzFoEehtqH1L61QxOPFeWD14sA1KQ4=; b=UMpz6RgyOdSOWp3r/NNS6Jox8kD2uXxO+LtSmVOEWXtY/oPUAw3YwbThdTNRS49pLx vez8lmYQ+lal4ibd7EEn+S1TEwugtj8A3M89VIeeDetKbOAlauoD8x1aXnvJmdkm5+aS 0RGRFnioE4AmeIZ2Y4oHdG3BNYI8/fWOOkvSlXn2OoUZkJh1oXIViAOZvG369Sjp5oLr j5yLVsypriP7WolulpdmyhOq71xv7sn4xcJTCoi2uzAj0mDGj8oSZ4f0EtG3yEZzPXPa wTecCn5RzXwOD00Qyqrus7mndX1Keswr1Dv5Zvd7/UuNzdGsI9BEWgsjc5yUVdxyoNKV P4yg== X-Gm-Message-State: AOAM5325IKJEPFkZGuqWG4pHQC86PlmxLgnftxiwf8PkCCBiUQ4clyYO yf5qgZWgD4kL85HOWUrUJoifog== X-Received: by 2002:a05:6000:124a:b0:20a:df42:3d4e with SMTP id j10-20020a056000124a00b0020adf423d4emr16141395wrx.33.1651188528248; Thu, 28 Apr 2022 16:28:48 -0700 (PDT) Received: from equinox (2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.a.1.e.e.d.f.d.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:dfde:e1a0::2]) by smtp.gmail.com with ESMTPSA id g13-20020a5d64ed000000b0020a9e488976sm1061761wri.25.2022.04.28.16.28.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Apr 2022 16:28:47 -0700 (PDT) Date: Fri, 29 Apr 2022 00:28:45 +0100 From: Phillip Potter To: Paul Gortmaker Cc: linux-kernel@vger.kernel.org, Christoph Hellwig , Jens Axboe , linux-block@vger.kernel.org Subject: Re: [PATCH 1/3] cdrom: remove the unused driver specific disc change ioctl Message-ID: References: <20220427132436.12795-1-paul.gortmaker@windriver.com> <20220427132436.12795-2-paul.gortmaker@windriver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220427132436.12795-2-paul.gortmaker@windriver.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Wed, Apr 27, 2022 at 09:24:33AM -0400, Paul Gortmaker wrote: > This was only used by the ide-cd driver, which went away in > commit b7fb14d3ac63 ("ide: remove the legacy ide driver") > so we might as well take advantage of that and get rid of > this hook as well. > > Cc: Christoph Hellwig > Cc: Jens Axboe > Cc: Phillip Potter > Signed-off-by: Paul Gortmaker > --- > Documentation/cdrom/cdrom-standard.rst | 10 ---------- > drivers/cdrom/cdrom.c | 8 -------- > include/linux/cdrom.h | 1 - > 3 files changed, 19 deletions(-) > > diff --git a/Documentation/cdrom/cdrom-standard.rst b/Documentation/cdrom/cdrom-standard.rst > index 52ea7b6b2fe8..7964fe134277 100644 > --- a/Documentation/cdrom/cdrom-standard.rst > +++ b/Documentation/cdrom/cdrom-standard.rst > @@ -218,7 +218,6 @@ current *struct* is:: > int (*tray_move)(struct cdrom_device_info *, int); > int (*lock_door)(struct cdrom_device_info *, int); > int (*select_speed)(struct cdrom_device_info *, int); > - int (*select_disc)(struct cdrom_device_info *, int); > int (*get_last_session) (struct cdrom_device_info *, > struct cdrom_multisession *); > int (*get_mcn)(struct cdrom_device_info *, struct cdrom_mcn *); > @@ -419,15 +418,6 @@ this `auto-selection` capability, the decision should be made on the > current disc loaded and the return value should be positive. A negative > return value indicates an error. > > -:: > - > - int select_disc(struct cdrom_device_info *cdi, int number) > - > -If the drive can store multiple discs (a juke-box) this function > -will perform disc selection. It should return the number of the > -selected disc on success, a negative value on error. Currently, only > -the ide-cd driver supports this functionality. > - > :: > > int get_last_session(struct cdrom_device_info *cdi, > diff --git a/drivers/cdrom/cdrom.c b/drivers/cdrom/cdrom.c > index 2dc9da683a13..0a858bfea849 100644 > --- a/drivers/cdrom/cdrom.c > +++ b/drivers/cdrom/cdrom.c > @@ -2443,14 +2443,6 @@ static int cdrom_ioctl_select_disc(struct cdrom_device_info *cdi, > return -EINVAL; > } > > - /* > - * ->select_disc is a hook to allow a driver-specific way of > - * seleting disc. However, since there is no equivalent hook for > - * cdrom_slot_status this may not actually be useful... > - */ > - if (cdi->ops->select_disc) > - return cdi->ops->select_disc(cdi, arg); > - > cd_dbg(CD_CHANGER, "Using generic cdrom_select_disc()\n"); > return cdrom_select_disc(cdi, arg); > } > diff --git a/include/linux/cdrom.h b/include/linux/cdrom.h > index 0a89f111e00e..67caa909e3e6 100644 > --- a/include/linux/cdrom.h > +++ b/include/linux/cdrom.h > @@ -77,7 +77,6 @@ struct cdrom_device_ops { > int (*tray_move) (struct cdrom_device_info *, int); > int (*lock_door) (struct cdrom_device_info *, int); > int (*select_speed) (struct cdrom_device_info *, int); > - int (*select_disc) (struct cdrom_device_info *, int); > int (*get_last_session) (struct cdrom_device_info *, > struct cdrom_multisession *); > int (*get_mcn) (struct cdrom_device_info *, > -- > 2.33.0 > Hi Paul, Thanks for the patch, looks good. I'll send onto Jens during the next merge window. Signed-off-by: Phillip Potter Regards, Phil