Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp831028rwb; Thu, 11 Aug 2022 10:37:22 -0700 (PDT) X-Google-Smtp-Source: AA6agR6cdjwOR0QPpvaJuBszhdOikdAepPNSZgDzIk77KV2f6KJzhATmp2DL2PWie+7i7LuL2QbD X-Received: by 2002:a17:90b:1d44:b0:1f7:6f05:639e with SMTP id ok4-20020a17090b1d4400b001f76f05639emr9714431pjb.99.1660239442092; Thu, 11 Aug 2022 10:37:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660239442; cv=none; d=google.com; s=arc-20160816; b=qvj52ZiZEWpLOzuzbAgqr1BEhyeHLznzLbu+0v4MFCXWgGVE8Dmb1PVUpBmCUoc86e Uf+cj+XytOM6WzH2TVgol6OOERNn7Vn0pUZUWfvY+bkZYMBP4Jx5mHFvHvf+BrG3IywC WIU2xdSp8leufJqiGqYQm4nFH1adtjbBCnLvI5CCBoWv0fyxENgjOUmXQEUnVfYhzRF8 w8nvvyGsufa103AklUzokKaUqfg19gZfr0kDDffhLvJIj6qy+DlyzTwdf8BzAaHsWfys EMGEtrb+pR6qNh+cmrEgnCL8Co8yTtl2zIVZrOeoDf8wlpOHfRZGr1YA34Zg3IL2534p unJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:cc:to:from:dkim-signature; bh=6kuAZYwVluI2sAlDZx4xQvA8ERYgrpESzYZj4B/AR7A=; b=gm/ZrIa0cCmm1d8C2H3bV3AZWHb2NZX2FuknjxtgknV7tvXZtNxT42YnxrKbybh9Yy kGh+ffPMXKMFS417mvcDoRWNgT5RMTQRC0p6Z64BQ9PmS5Uwj1hHAlGQCg0a8LVHKKyq vzd651Z9T+NDur25m+j3HZ02iZy+JHtfzCncLol3TMVLFC/HmA8psKjOZ/fYTleH2e36 10TwRD4/h3yuuw/7Dne4HcFNvlh5Pd2w0X2vc7RFLiTNbfYdhHnxKV0tmB0YXD6y3YaU eCHzE9zMjS4OcPKxuJLnRVwegrN2xRsCue3gKLS7LcB4DSRKu2saAOz6yQGK4v2hSYol NDlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@deltatee.com header.s=20200525 header.b=gsXYvXPn; 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=deltatee.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ea13-20020a056a004c0d00b0052d9edab4e1si5464466pfb.86.2022.08.11.10.37.07; Thu, 11 Aug 2022 10:37:22 -0700 (PDT) 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=@deltatee.com header.s=20200525 header.b=gsXYvXPn; 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=deltatee.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236583AbiHKRTJ (ORCPT + 99 others); Thu, 11 Aug 2022 13:19:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235273AbiHKRSg (ORCPT ); Thu, 11 Aug 2022 13:18:36 -0400 Received: from ale.deltatee.com (ale.deltatee.com [204.191.154.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D3A598CBE; Thu, 11 Aug 2022 10:14:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deltatee.com; s=20200525; h=Subject:MIME-Version:References:In-Reply-To: Message-Id:Date:Cc:To:From:content-disposition; bh=6kuAZYwVluI2sAlDZx4xQvA8ERYgrpESzYZj4B/AR7A=; b=gsXYvXPnsl+tpkifXN8kTpyVeB kkvgEPG3bwjBXqdunzmRA8hl/sNMJnUgO4RWEGWVNmXqcgfEzjDuD2HpZGXf/QUoiOSHz5oDh/Lkp OOuC+jeyBvseqGM3UxWyKT4okFnoQ4uaorUaOvpOlFFLE4uhcMU8Ie+Zri22V/MY7K41PtIPppjJw d2PeRxySsXVGiAEcKU/J60ygarozwnhYJCGo2fuEkyuXcrKIGal2QHnTAc3sYPKdXCL4oc9xnSKSN xiBVIQaSCjF//4CuUSWppTzPAO/s9MUApOHn4yt5MKr21S9krIfM5a55zyoExGkqy8pKCLWjsyUsm OUsE9l+A==; Received: from cgy1-donard.priv.deltatee.com ([172.16.1.31]) by ale.deltatee.com with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oMBlJ-00EAyj-Rk; Thu, 11 Aug 2022 11:14:27 -0600 Received: from gunthorp by cgy1-donard.priv.deltatee.com with local (Exim 4.94.2) (envelope-from ) id 1oMBlI-000cRD-2t; Thu, 11 Aug 2022 11:14:24 -0600 From: Logan Gunthorpe To: linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, Song Liu Cc: Christoph Hellwig , Guoqing Jiang , Stephen Bates , Martin Oliveira , David Sloan , Logan Gunthorpe Date: Thu, 11 Aug 2022 11:14:15 -0600 Message-Id: <20220811171417.147697-4-logang@deltatee.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220811171417.147697-1-logang@deltatee.com> References: <20220811171417.147697-1-logang@deltatee.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 172.16.1.31 X-SA-Exim-Rcpt-To: linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, song@kernel.org, hch@infradead.org, guoqing.jiang@linux.dev, sbates@raithlin.com, Martin.Oliveira@eideticom.com, David.Sloan@eideticom.com, logang@deltatee.com X-SA-Exim-Mail-From: gunthorp@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Subject: [PATCH 3/5] md/raid5: Drop extern on function declarations in raid5.h X-SA-Exim-Version: 4.2.1 (built Sat, 13 Feb 2021 17:57:42 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org externs should not be used in function declarations, so clean those up. Signed-off-by: Logan Gunthorpe --- drivers/md/raid5.h | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/drivers/md/raid5.h b/drivers/md/raid5.h index a5082bed83c8..4be2feb9e74a 100644 --- a/drivers/md/raid5.h +++ b/drivers/md/raid5.h @@ -803,16 +803,14 @@ raid5_get_dev_page(struct stripe_head *sh, int disk_idx) } #endif -extern void md_raid5_kick_device(struct r5conf *conf); -extern int raid5_set_cache_size(struct mddev *mddev, int size); -extern sector_t raid5_compute_blocknr(struct stripe_head *sh, int i, int previous); -extern void raid5_release_stripe(struct stripe_head *sh); -extern sector_t raid5_compute_sector(struct r5conf *conf, sector_t r_sector, - int previous, int *dd_idx, - struct stripe_head *sh); -extern struct stripe_head * -raid5_get_active_stripe(struct r5conf *conf, sector_t sector, - bool previous, bool noblock, bool noquiesce); -extern int raid5_calc_degraded(struct r5conf *conf); -extern int r5c_journal_mode_set(struct mddev *mddev, int journal_mode); +void md_raid5_kick_device(struct r5conf *conf); +int raid5_set_cache_size(struct mddev *mddev, int size); +sector_t raid5_compute_blocknr(struct stripe_head *sh, int i, int previous); +void raid5_release_stripe(struct stripe_head *sh); +sector_t raid5_compute_sector(struct r5conf *conf, sector_t r_sector, + int previous, int *dd_idx, struct stripe_head *sh); +struct stripe_head *raid5_get_active_stripe(struct r5conf *conf, + sector_t sector, bool previous, bool noblock, bool noquiesce); +int raid5_calc_degraded(struct r5conf *conf); +int r5c_journal_mode_set(struct mddev *mddev, int journal_mode); #endif -- 2.30.2