From patchwork Mon Apr 19 11:27:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiabing Wan X-Patchwork-Id: 12211575 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.9 required=3.0 tests=BAYES_50, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 01170C433B4 for ; Mon, 19 Apr 2021 11:27:52 +0000 (UTC) Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 62B6A6108B for ; Mon, 19 Apr 2021 11:27:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 62B6A6108B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=vivo.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-nvdimm-bounces@lists.01.org Received: from ml01.vlan13.01.org (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 3A81A100EB831; Mon, 19 Apr 2021 04:27:49 -0700 (PDT) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=59.111.176.35; helo=mail-m17635.qiye.163.com; envelope-from=wanjiabing@vivo.com; receiver= Received: from mail-m17635.qiye.163.com (mail-m17635.qiye.163.com [59.111.176.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 7A879100EB82C for ; Mon, 19 Apr 2021 04:27:46 -0700 (PDT) Received: from wanjb-virtual-machine.localdomain (unknown [36.152.145.182]) by mail-m17635.qiye.163.com (Hmail) with ESMTPA id 39D3F400552; Mon, 19 Apr 2021 19:27:43 +0800 (CST) From: Wan Jiabing To: Dan Williams , Vishal Verma , Dave Jiang , Ira Weiny , linux-nvdimm@lists.01.org, linux-kernel@vger.kernel.org Subject: [PATCH] libnvdimm.h: Remove duplicate struct declaration Date: Mon, 19 Apr 2021 19:27:25 +0800 Message-Id: <20210419112725.42145-1-wanjiabing@vivo.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZGRoeT1ZJQh5MHh9PGkIaGBhVEwETFhoSFyQUDg9ZV1kWGg8SFR0UWUFZT0tIVUpKS0 hKTFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6NSo6HCo6Kj8TFhQYFE0NTzM6 DzkKCQ5VSlVKTUpDQ0hKTU1ITElMVTMWGhIXVQwaFRESGhkSFRw7DRINFFUYFBZFWVdZEgtZQVlI TVVKTklVSk9OVUpDSVlXWQgBWUFKTUJPNwY+ X-HM-Tid: 0a78e9e2e106d991kuws39d3f400552 Message-ID-Hash: 7FTHXDLWPFXSD2DAI4FJE4YN2BCVTGVC X-Message-ID-Hash: 7FTHXDLWPFXSD2DAI4FJE4YN2BCVTGVC X-MailFrom: wanjiabing@vivo.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation CC: kael_w@yeah.net, Wan Jiabing X-Mailman-Version: 3.1.1 Precedence: list List-Id: "Linux-nvdimm developer list." Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: struct device is declared at 133rd line. The declaration here is unnecessary. Remove it. Signed-off-by: Wan Jiabing --- include/linux/libnvdimm.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/libnvdimm.h b/include/linux/libnvdimm.h index 01f251b6e36c..89b69e645ac7 100644 --- a/include/linux/libnvdimm.h +++ b/include/linux/libnvdimm.h @@ -141,7 +141,6 @@ static inline void __iomem *devm_nvdimm_ioremap(struct device *dev, struct nvdimm_bus; struct module; -struct device; struct nd_blk_region; struct nd_blk_region_desc { int (*enable)(struct nvdimm_bus *nvdimm_bus, struct device *dev);