Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3547206pxb; Mon, 16 Nov 2020 18:42:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJzl6ZEGjk7BB2R048Fs0QT6C7z+Ph2SNcq4d+oUJWBSvv4eGgZRFahnORj9oFTdSFH8qfbI X-Received: by 2002:a17:906:77c5:: with SMTP id m5mr17655072ejn.424.1605580932285; Mon, 16 Nov 2020 18:42:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605580932; cv=none; d=google.com; s=arc-20160816; b=mnI7i43UDNWWPnb/Kk6RMiQukXofqINoyWMRrs6duXw0AgsuwUu42BYU1Qe8ZV977v SYTg/zfNoSZY3cL3NWmxMq5bqTeigqtPg5W+zUbJqKuw/pATmS0cM1pZVnaYdijRzLx2 YYpPlBGUL0LNTT5SLtPKg4WriMzC37h3Vjgz0ewGMN0YOvBLHiPh9xYiCBVI9t2d9hL2 pyBY7RVUVLxEW7yQ3ZXDJbRmDS1fQGvRYWGQJoLz7zs/a59sPHdsP+7BlEnE/63xpT9b 8ivATOkPaffMGpZWqCSMXnAaBkrkedLJK0jO0wZz8JtBiW0LbPyKJwB46L/4UTUTNWrX 81Rw== 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=KEPcv8NsHyY9jn1p7ctfrHalxftbHgtxAgS6+iU39QQ=; b=bo7/+BQGAuqSJclVlLtQBNH8PeclOn1uk7YF9RBPdGagR+a7iXr/0iSXqNmA+iUaEj rSQ/vp2VPLQSD7KHFmto7aMZkfwmB5hls8Nn9tBtiF/qc4VbcIArTSM1PUiXktxhiSYf HDvo3cEc0isAYzlm+y3Ky5s3GGhZBPpFEpDq1aMjd8HnHY8stCLCUdTRTEvPo1AabYtu LQ+AaPNTSIuVRGctR9jmZwIlXuqQLt1IocxxyHkc6S880H2YJ2YY7QGbO32Mm1ODVMnQ AKVjIGt1Bjv//t0a6zc8Jh/qUjnBqetmQoHl9mkKjVHqmllSR+GHah2nZnud9JDcxCAe ba/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aqmrosfB; 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 63si13217282edn.339.2020.11.16.18.41.50; Mon, 16 Nov 2020 18:42: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=aqmrosfB; 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 S1727150AbgKQBza (ORCPT + 99 others); Mon, 16 Nov 2020 20:55:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725730AbgKQBz3 (ORCPT ); Mon, 16 Nov 2020 20:55:29 -0500 Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCF7EC0613CF; Mon, 16 Nov 2020 17:55:28 -0800 (PST) Received: by mail-qk1-x744.google.com with SMTP id u4so19058888qkk.10; Mon, 16 Nov 2020 17:55:28 -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=KEPcv8NsHyY9jn1p7ctfrHalxftbHgtxAgS6+iU39QQ=; b=aqmrosfBQ/5/PP8/aSzmMcASYA6bzhZZ0iLhCWySTuJ3zEqFQB/9C6UAqcIBj1fnr2 LGhS6mTVor9TUp+QFdNEmtwgtmCIDmgr28ahA3iDTC/BIQo631GOGbUZmFwI6lsaL7Sm LtNldi2sik+cVNUOcyel/1xHElXyk4Drx/ZvQ39CHWyG9LHHBP3xvGmWYu8h4HS40YUs i0dKzgqvQ288lGgPKfsAE6I6tvfWueNLxJWqbcxYBPYGwGafXzPRGw9vsJFFfYCieBgK 7Zos0Q/2MCnLpZGzcfk7SdKcj/kghkn7SqgXoml9AZ98wFqJPmlD4/JWReQ/X1AUoPCG BJZw== 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=KEPcv8NsHyY9jn1p7ctfrHalxftbHgtxAgS6+iU39QQ=; b=SI2yhFrFU0nt40zj/pLj3lNZVqA1vgk/cFqYqI4mZ5WIE4lCJjB0sGWf45OhWNDU7S UcSnlNLfluSQiy/Hgorq7bv61qA5GbpYLI97tqjYKHP0ceuMjVqw3D/VYPwrjd9gaG8I kod+6XvNncTh5vIjo0JXz6jQIrCKpBEMrn/rzbcl9ImFdIrmThBNml+ZRc2puMAEe35i F9WSvcNK5dUDDwvjxsfmT1akv6LiDRSanZZDJa0OeB1cuqlN+h10IFajxaKVUNhRLqlv EAwkpB1p2TXwvMTr51PagFRE3X0CliacbAeOZ5L+2HVkby6eqe40FSDijE4wbj19OE9d YWoQ== X-Gm-Message-State: AOAM5312bCTjcvcPIwYny8vjzYVPk5Fq86tiXTRE4Nmfafgq/ATjrSnv gVpGFOanMxQK3esGUFIxmz4= X-Received: by 2002:ae9:ea14:: with SMTP id f20mr17234195qkg.239.1605578128013; Mon, 16 Nov 2020 17:55:28 -0800 (PST) Received: from ubuntu-m3-large-x86 ([2604:1380:45f1:1d00::1]) by smtp.gmail.com with ESMTPSA id c6sm3401553qkg.54.2020.11.16.17.55.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 17:55:27 -0800 (PST) Date: Mon, 16 Nov 2020 18:55:25 -0700 From: Nathan Chancellor To: Lukas Bulwahn Cc: Christoph Hellwig , Hannes Reinecke , "Martin K . Petersen" , "James E . J . Bottomley" , linux-scsi@vger.kernel.org, Arnd Bergmann , Tom Rix , Nick Desaulniers , clang-built-linux@googlegroups.com, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] scsi: sd: remove obsolete variable in sd_remove() Message-ID: <20201117015525.GA801777@ubuntu-m3-large-x86> References: <20201116070035.11870-1-lukas.bulwahn@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201116070035.11870-1-lukas.bulwahn@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 16, 2020 at 08:00:35AM +0100, Lukas Bulwahn wrote: > Commit 140ea3bbf39a ("sd: use __register_blkdev to avoid a modprobe for an > unregistered dev_t") removed blk_register_region(devt, ...) in sd_remove() > and since then, devt is unused in sd_remove(). > > Hence, make W=1 warns: > > drivers/scsi/sd.c:3516:8: > warning: variable 'devt' set but not used [-Wunused-but-set-variable] > > Simply remove this obsolete variable. > > Signed-off-by: Lukas Bulwahn Reviewed-by: Nathan Chancellor