Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2253500pxm; Fri, 4 Mar 2022 12:24:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJz6qTwhpMHkS2jdyjBX5MA9J+xRAtd/vbxqhC2IHBi5pDSrrRB/N6sfO3nMOukGv+BoPD+t X-Received: by 2002:a05:6a00:1a42:b0:4d1:e81a:64cb with SMTP id h2-20020a056a001a4200b004d1e81a64cbmr250919pfv.78.1646425441882; Fri, 04 Mar 2022 12:24:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646425441; cv=none; d=google.com; s=arc-20160816; b=LJP0K4GwsciZsuLT0X+4bcE71QshZlIZOb6P3P8awqgOwqAD60YSl59drPJiuwtwi5 dfJPejFXVNEx9tuNkmgEhR5JYVZXGpixADYQ/zfy7kx7pUeLFYntu5QqHFi/2LwYdQl3 au1jDAjlVJzZB0HSmzan0ydfA+IzNAIeWjDMTYYQOzXEwAVwPNWuMiWlw4pDk+wBhenH NC0FQCFmqpjGfvZq/fHzMdTyE2X5yUa+VEKPTOiXR3GCVs0VBeAdyphDqamYvA8Tmotf crWA4rzdMfPBx93qVBi/oN+qhuW12seXtWyRvziMrNK+0mU+yoIlIKcbKCp4GsYy5Av+ Qgzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=h0tpXAQtNHEaCQzxgx/Ath7a0Cf/9SvtKG1WM6dabdU=; b=X1AJmTFG0Lv+N9o/nXmIjIklrf8M4b4lQ2JlWf8OPXVcksLhRfkxIcvLd2k6r87zeR UIyRc+hqX64NXI7SnBF+5KqHa1R6G5LOD0pYkh1usl1pW34sMjANIwIUHzqC+WdrY5dY THnVrFEmRN2ihArgb8h+DItc7QKOFYmiudOMeuEZ/jc+haCOVLsLER/0XTeXmQbUW8jC nLXhf666PpjEhyXpZp6Hp7iJ51OHGuyir/HPHBAsyvD1/+VVA/yq/RvP3CpJReFhzgOH 2/ULCNs79e+jnCzoWNAYqNH2W/LoJEfDgTtoWg5NSZUk1DoaMYhxBLDtSdbnPYx/SpHd IJgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="TiKY/kEa"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-ext4-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 i10-20020a655b8a000000b00378d9d69e71si5570838pgr.295.2022.03.04.12.23.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 12:24:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-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=@infradead.org header.s=bombadil.20210309 header.b="TiKY/kEa"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1646439168; Fri, 4 Mar 2022 11:32:33 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241475AbiCDSCa (ORCPT + 99 others); Fri, 4 Mar 2022 13:02:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241461AbiCDSCZ (ORCPT ); Fri, 4 Mar 2022 13:02:25 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC88B1D085D; Fri, 4 Mar 2022 10:01:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=h0tpXAQtNHEaCQzxgx/Ath7a0Cf/9SvtKG1WM6dabdU=; b=TiKY/kEa/u3/xm8OWEXU46s7wR yJijQAXgLHh2Ck/EQPg2L0OXen2Q0W+3MHyP5VlMHho0MReXms2D7IVM4yGlTHgEOLlg/7cBDJhfn TXn5gFqYi+/9qY9nlPK50TX/He0A4fOjlwrZdKafvat/OrWTEjNUrIUjdyJaSe+SxU/1ttpt1NM0J L6XGpQktw529TTktrVdk0BYgjt10P+W5+NU6GPnLYhCjMtCApr5DJWjvtrD+aALxnaDW/xxXJU/Fh Vvp050GDKfRCXB0dQTJozDja+PXFLqF6FgZKM4LTF9/BIMDPLv/qFZdUBEnPEtr9Nfvcz/DIBm0LL gO4K8jaA==; Received: from [2001:4bb8:180:5296:cded:8d4b:ace6:f3c] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQCFC-00BV1M-HL; Fri, 04 Mar 2022 18:01:34 +0000 From: Christoph Hellwig To: Jens Axboe Cc: Song Liu , "Theodore Ts'o" , linux-block@vger.kernel.org, dm-devel@redhat.com, linux-raid@vger.kernel.org, linux-ext4@vger.kernel.org Subject: [PATCH 10/10] block: remove bio_devname Date: Fri, 4 Mar 2022 19:01:05 +0100 Message-Id: <20220304180105.409765-11-hch@lst.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220304180105.409765-1-hch@lst.de> References: <20220304180105.409765-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html 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-ext4@vger.kernel.org All callers are gone, so remove this wrapper. Signed-off-by: Christoph Hellwig --- block/bio.c | 6 ------ include/linux/bio.h | 2 -- 2 files changed, 8 deletions(-) diff --git a/block/bio.c b/block/bio.c index b15f5466ce084..151cace2dbe16 100644 --- a/block/bio.c +++ b/block/bio.c @@ -807,12 +807,6 @@ int bio_init_clone(struct block_device *bdev, struct bio *bio, } EXPORT_SYMBOL(bio_init_clone); -const char *bio_devname(struct bio *bio, char *buf) -{ - return bdevname(bio->bi_bdev, buf); -} -EXPORT_SYMBOL(bio_devname); - /** * bio_full - check if the bio is full * @bio: bio to check diff --git a/include/linux/bio.h b/include/linux/bio.h index 7523aba4ddf7c..4c21f6e69e182 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h @@ -491,8 +491,6 @@ static inline void bio_release_pages(struct bio *bio, bool mark_dirty) __bio_release_pages(bio, mark_dirty); } -extern const char *bio_devname(struct bio *bio, char *buffer); - #define bio_dev(bio) \ disk_devt((bio)->bi_bdev->bd_disk) -- 2.30.2