Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp591328pxp; Wed, 9 Mar 2022 08:43:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJxH7DZ3RbSzYG6WbTbgI84y3njWEAZtMQTfTmFPpCNyv9acUJM+f0zSh8Nx1/6oy1kPtavT X-Received: by 2002:aa7:d147:0:b0:415:c68c:f8d6 with SMTP id r7-20020aa7d147000000b00415c68cf8d6mr309395edo.67.1646844199616; Wed, 09 Mar 2022 08:43:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646844199; cv=none; d=google.com; s=arc-20160816; b=hnsiKiYSuFw8T9xDRgcJEei06YTW5cJSbg4dkU02//ZFXfIkm1BrTPNgvy1d5Za1cC xhr3wjV16g39JGutbzYphltv6aDAQ37864s/w/O5QUZnuqmZ2Ux0pxMry+DmsCL6t4qQ Xkxb03I4wk9As6qr4WmJZXjzjWh7qKB7SOZzzBJK0Bo2wVfxlwAqC3LFt/yHPYqz780w uuOxyseyCqpjaOcAp5bLb+3L09vmVp2JiMX3+1ZaeH7JNbdg2GqwnNIigu/GL1RF22ix bINmpg1iHz10SoGtecESpE+yjJCwBwmSAQAWftXXJ4iWMC2uuRm8dx0zsgixkU7SWpAB UGTw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=2RBRYJBug/ooHvksJ4qXQE7yGNkks8tlHYQwoAPwQnQ=; b=HtsM55XVHduoiuqVHDRXb5VHbXCpa6c60lp1bkbVN966vhZZq6eYAvbiEC8jWRiseJ xdJEPzB63CWwV4+a/eggr5JYC1iT9hLj8ItME7mzge+ZYN0BpyptM48gdTJwQU53X0Be +/UHkzUnmdv2jZ1hDw/9rU7bgJ0r+1GRv3lD8vjpbC3w2HqjEk4DNg9H5ScJv9ZIftT+ TNXgTvHGvYQYpJ0MFeK/ARj2Tm4Nos0uUvU3zLEyZe6UDRp3hY12h7SKjNIE0PXlosJ1 JCdi2n+fsHmUFW6oAEMtDLUunqtK8FfGgxDfUNqYefcPJj9RivjutdcBohT1MurtJ+VZ eerA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AjuTn1ml; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ky8-20020a170907778800b006d1109b8b1esi1442880ejc.141.2022.03.09.08.42.56; Wed, 09 Mar 2022 08:43:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AjuTn1ml; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236677AbiCIQTp (ORCPT + 99 others); Wed, 9 Mar 2022 11:19:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236228AbiCIQJn (ORCPT ); Wed, 9 Mar 2022 11:09:43 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C3DB1409DA; Wed, 9 Mar 2022 08:08:26 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D53E9B82220; Wed, 9 Mar 2022 16:08:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A191C340E8; Wed, 9 Mar 2022 16:08:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1646842103; bh=XHCktT/D6wfmuzDCtHqpIABZY8eIdiQJ9I7pesffe8c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AjuTn1mlYnH++VEgPEDTe2jcmSolmeUd1j21+PFh+8jqdMPMd2XRvlT5BSfNN+V3L 43lwYbufpJy/YLYk6q/SWImY9CaDRdfJG/xSqgVtzw6bk6Oe1/Kb1EMZkS7AtyQlRJ YH6JHoIMwK2HdeQHZewbQrCLwMNiCGFrKya3mEo8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christoph Hellwig , Johannes Thumshirn , Jens Axboe , Guenter Roeck Subject: [PATCH 5.15 43/43] block: drop unused includes in Date: Wed, 9 Mar 2022 17:00:27 +0100 Message-Id: <20220309155900.975249277@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220309155859.734715884@linuxfoundation.org> References: <20220309155859.734715884@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 From: Christoph Hellwig commit b81e0c2372e65e5627864ba034433b64b2fc73f5 upstream. Drop various include not actually used in genhd.h itself, and move the remaning includes closer together. Signed-off-by: Christoph Hellwig Reviewed-by: Johannes Thumshirn Link: https://lore.kernel.org/r/20210920123328.1399408-15-hch@lst.de Signed-off-by: Jens Axboe Cc: Guenter Roeck [ needed to fix a MIPS build issue in 5.15.y - gregkh ] Signed-off-by: Greg Kroah-Hartman --- arch/um/drivers/ubd_kern.c | 1 + block/genhd.c | 1 + block/holder.c | 1 + block/partitions/core.c | 1 + drivers/block/amiflop.c | 1 + drivers/block/ataflop.c | 1 + drivers/block/floppy.c | 1 + drivers/block/swim.c | 1 + drivers/block/xen-blkfront.c | 1 + drivers/md/md.c | 1 + drivers/s390/block/dasd_genhd.c | 1 + drivers/scsi/sd.c | 1 + drivers/scsi/sg.c | 1 + drivers/scsi/sr.c | 1 + drivers/scsi/st.c | 1 + include/linux/genhd.h | 14 ++------------ include/linux/part_stat.h | 1 + 17 files changed, 18 insertions(+), 12 deletions(-) --- a/arch/um/drivers/ubd_kern.c +++ b/arch/um/drivers/ubd_kern.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include --- a/block/genhd.c +++ b/block/genhd.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include --- a/block/holder.c +++ b/block/holder.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only #include +#include struct bd_holder_disk { struct list_head list; --- a/block/partitions/core.c +++ b/block/partitions/core.c @@ -5,6 +5,7 @@ * Copyright (C) 2020 Christoph Hellwig */ #include +#include #include #include #include --- a/drivers/block/amiflop.c +++ b/drivers/block/amiflop.c @@ -61,6 +61,7 @@ #include #include #include +#include #include #include #include --- a/drivers/block/ataflop.c +++ b/drivers/block/ataflop.c @@ -68,6 +68,7 @@ #include #include #include +#include #include #include #include --- a/drivers/block/floppy.c +++ b/drivers/block/floppy.c @@ -184,6 +184,7 @@ static int print_unex = 1; #include #include #include +#include #include #include #include --- a/drivers/block/swim.c +++ b/drivers/block/swim.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include --- a/drivers/block/xen-blkfront.c +++ b/drivers/block/xen-blkfront.c @@ -42,6 +42,7 @@ #include #include #include +#include #include #include #include --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -51,6 +51,7 @@ #include #include #include +#include #include #include #include --- a/drivers/s390/block/dasd_genhd.c +++ b/drivers/s390/block/dasd_genhd.c @@ -14,6 +14,7 @@ #define KMSG_COMPONENT "dasd" #include +#include #include #include --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c @@ -48,6 +48,7 @@ #include #include #include +#include #include #include #include --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c @@ -31,6 +31,7 @@ static int sg_version_num = 30536; /* 2 #include #include #include +#include #include #include #include --- a/drivers/scsi/sr.c +++ b/drivers/scsi/sr.c @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include --- a/drivers/scsi/st.c +++ b/drivers/scsi/st.c @@ -32,6 +32,7 @@ static const char *verstr = "20160209"; #include #include #include +#include #include #include #include --- a/include/linux/genhd.h +++ b/include/linux/genhd.h @@ -12,12 +12,10 @@ #include #include -#include -#include -#include #include #include -#include +#include +#include extern const struct device_type disk_type; extern struct device_type part_type; @@ -26,14 +24,6 @@ extern struct class block_class; #define DISK_MAX_PARTS 256 #define DISK_NAME_LEN 32 -#include -#include -#include -#include -#include -#include -#include - #define PARTITION_META_INFO_VOLNAMELTH 64 /* * Enough for the string representation of any kind of UUID plus NULL. --- a/include/linux/part_stat.h +++ b/include/linux/part_stat.h @@ -3,6 +3,7 @@ #define _LINUX_PART_STAT_H #include +#include struct disk_stats { u64 nsecs[NR_STAT_GROUPS];