Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3707171iob; Tue, 17 May 2022 05:53:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZkejTBiY4FPSiplV9pyCApDkmnPQ0cxrdkiYtyBrVdAIZMYI1HdcWEEsXJ4x5Kvt2vP9o X-Received: by 2002:a17:907:1622:b0:6fe:22bb:7f8 with SMTP id hb34-20020a170907162200b006fe22bb07f8mr12621289ejc.767.1652792002763; Tue, 17 May 2022 05:53:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652792002; cv=none; d=google.com; s=arc-20160816; b=UXwLiOsCyqBcu+WhwAa0bydDXyH4sO+0f7JbIYlJX2K4CWRM0wqMemvEpEZxGLk0LO mFt48Hob7km81mIqW7x8llJ7JQ4Y1vZiz3xy9qrKdwPUoK8mLYh6qqcWpUVkFWJuPgmb uJ02HXrazIZzbEkgxgQ0mrSJD20E1+Isu7bgb6h867t6bQkCBN4ne+Q8W7cPwTPaiFBr KXEjU8nevf4g88P5LOUY9qP58ANhy1jTNWBvDyKF/C55FXo9jIq9mJrs6nKedG6qTXbY Il4baKSR/NkzliQ6ZN6Msw7MlxMB0zXnbRKhuN8IgVEb1SRU21y7t1XaAWOHsNXTJGeB VmwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:reply-to:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=3vVr+K4NDmssO2e4KeqmSxjJfA0f8IyEGQ1NHgRJqnU=; b=chae59JXAzIcUyJJclEBbdhDLRePkQCbsoijHHx4McutWA7XCNAOHP3YzPeEN7Stz/ xrneqPsOfyraDX7z8+69qscb3eS1ZM15ZXpes9iER5TIrSZEkaMBTfqmRZXVd0jGTzEX kLjcRSMeVj5iiN5KASSrjF4P+Cq0o77eJfSYOdaac+GLakBlRaGzjNqbAvsrXltEI8mR r4Qns/iHA0gqeP0ZZlFXCFRV5FSms5uwLCCzceSDVHFofwHId2upjFjB2bm0FDe3kmnT IyaVFaIDTgK47ujfBGQWG8igo3JWKYrbKll8A2dwyVEl5VdsNaWpS56NLrbFu9A2AvSA Rvbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxonhyperv.com header.s=default header.b=VWGLLjOg; 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=linuxonhyperv.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b14-20020aa7c90e000000b0042ab0ce9382si5824545edt.239.2022.05.17.05.52.56; Tue, 17 May 2022 05:53: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=@linuxonhyperv.com header.s=default header.b=VWGLLjOg; 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=linuxonhyperv.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243754AbiEQJFs (ORCPT + 99 others); Tue, 17 May 2022 05:05:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243995AbiEQJEx (ORCPT ); Tue, 17 May 2022 05:04:53 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9DFCF49695; Tue, 17 May 2022 02:04:52 -0700 (PDT) Received: by linux.microsoft.com (Postfix, from userid 1004) id 85E9C20F722D; Tue, 17 May 2022 02:04:52 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 85E9C20F722D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxonhyperv.com; s=default; t=1652778292; bh=3vVr+K4NDmssO2e4KeqmSxjJfA0f8IyEGQ1NHgRJqnU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:Reply-To:From; b=VWGLLjOgzh/fPLu0QFAgzkQGCAFRydSbyjC61R28ddpA+6/K0Rc3p/eXRcxaYxmXP DKhJPhMaLwJV7+P3pcVgIuwK8wCbIpc6UijKKmWa3UZWfyPcTuw4wff0SLTbP5pgBA q03WoQKVHc2GAXfOWPyGPpc4JwwZ4GAuX0+HluAM= From: longli@linuxonhyperv.com To: "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Jason Gunthorpe , Leon Romanovsky Cc: linux-hyperv@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, Long Li Subject: [PATCH 09/12] net: mana: Move header files to a common location Date: Tue, 17 May 2022 02:04:33 -0700 Message-Id: <1652778276-2986-10-git-send-email-longli@linuxonhyperv.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1652778276-2986-1-git-send-email-longli@linuxonhyperv.com> References: <1652778276-2986-1-git-send-email-longli@linuxonhyperv.com> Reply-To: longli@microsoft.com X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_SPF_WL 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: Long Li In preparation to add MANA RDMA driver, move all the required header files to a common location for use by both Ethernet and RDMA drivers. Signed-off-by: Long Li --- MAINTAINERS | 1 + drivers/net/ethernet/microsoft/mana/gdma_main.c | 2 +- drivers/net/ethernet/microsoft/mana/hw_channel.c | 4 ++-- drivers/net/ethernet/microsoft/mana/mana_bpf.c | 2 +- drivers/net/ethernet/microsoft/mana/mana_en.c | 2 +- drivers/net/ethernet/microsoft/mana/mana_ethtool.c | 2 +- drivers/net/ethernet/microsoft/mana/shm_channel.c | 2 +- {drivers/net/ethernet/microsoft => include/linux}/mana/gdma.h | 0 .../ethernet/microsoft => include/linux}/mana/hw_channel.h | 0 {drivers/net/ethernet/microsoft => include/linux}/mana/mana.h | 0 .../ethernet/microsoft => include/linux}/mana/shm_channel.h | 0 11 files changed, 8 insertions(+), 7 deletions(-) rename {drivers/net/ethernet/microsoft => include/linux}/mana/gdma.h (100%) rename {drivers/net/ethernet/microsoft => include/linux}/mana/hw_channel.h (100%) rename {drivers/net/ethernet/microsoft => include/linux}/mana/mana.h (100%) rename {drivers/net/ethernet/microsoft => include/linux}/mana/shm_channel.h (100%) diff --git a/MAINTAINERS b/MAINTAINERS index 40fa1955ca3f..268c68dc40dc 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9108,6 +9108,7 @@ F: include/asm-generic/hyperv-tlfs.h F: include/asm-generic/mshyperv.h F: include/clocksource/hyperv_timer.h F: include/linux/hyperv.h +F: include/mana/ F: include/uapi/linux/hyperv.h F: net/vmw_vsock/hyperv_transport.c F: tools/hv/ diff --git a/drivers/net/ethernet/microsoft/mana/gdma_main.c b/drivers/net/ethernet/microsoft/mana/gdma_main.c index 9c93d7a403ea..96edf8491ebd 100644 --- a/drivers/net/ethernet/microsoft/mana/gdma_main.c +++ b/drivers/net/ethernet/microsoft/mana/gdma_main.c @@ -6,7 +6,7 @@ #include #include -#include "mana.h" +#include static u32 mana_gd_r32(struct gdma_context *g, u64 offset) { diff --git a/drivers/net/ethernet/microsoft/mana/hw_channel.c b/drivers/net/ethernet/microsoft/mana/hw_channel.c index 078d6a5a0768..609cd714dcc0 100644 --- a/drivers/net/ethernet/microsoft/mana/hw_channel.c +++ b/drivers/net/ethernet/microsoft/mana/hw_channel.c @@ -1,8 +1,8 @@ // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause /* Copyright (c) 2021, Microsoft Corporation. */ -#include "gdma.h" -#include "hw_channel.h" +#include +#include static int mana_hwc_get_msg_index(struct hw_channel_context *hwc, u16 *msg_id) { diff --git a/drivers/net/ethernet/microsoft/mana/mana_bpf.c b/drivers/net/ethernet/microsoft/mana/mana_bpf.c index 1d2f948b5c00..7476f21e5f37 100644 --- a/drivers/net/ethernet/microsoft/mana/mana_bpf.c +++ b/drivers/net/ethernet/microsoft/mana/mana_bpf.c @@ -8,7 +8,7 @@ #include #include -#include "mana.h" +#include void mana_xdp_tx(struct sk_buff *skb, struct net_device *ndev) { diff --git a/drivers/net/ethernet/microsoft/mana/mana_en.c b/drivers/net/ethernet/microsoft/mana/mana_en.c index 6bb38c90b008..928b14a7ee1f 100644 --- a/drivers/net/ethernet/microsoft/mana/mana_en.c +++ b/drivers/net/ethernet/microsoft/mana/mana_en.c @@ -11,7 +11,7 @@ #include #include -#include "mana.h" +#include static DEFINE_IDA(mana_adev_ida); diff --git a/drivers/net/ethernet/microsoft/mana/mana_ethtool.c b/drivers/net/ethernet/microsoft/mana/mana_ethtool.c index e13f2453eabb..c2ecb5154139 100644 --- a/drivers/net/ethernet/microsoft/mana/mana_ethtool.c +++ b/drivers/net/ethernet/microsoft/mana/mana_ethtool.c @@ -5,7 +5,7 @@ #include #include -#include "mana.h" +#include static const struct { char name[ETH_GSTRING_LEN]; diff --git a/drivers/net/ethernet/microsoft/mana/shm_channel.c b/drivers/net/ethernet/microsoft/mana/shm_channel.c index da255da62176..161a4e6ba32a 100644 --- a/drivers/net/ethernet/microsoft/mana/shm_channel.c +++ b/drivers/net/ethernet/microsoft/mana/shm_channel.c @@ -6,7 +6,7 @@ #include #include -#include "shm_channel.h" +#include #define PAGE_FRAME_L48_WIDTH_BYTES 6 #define PAGE_FRAME_L48_WIDTH_BITS (PAGE_FRAME_L48_WIDTH_BYTES * 8) diff --git a/drivers/net/ethernet/microsoft/mana/gdma.h b/include/linux/mana/gdma.h similarity index 100% rename from drivers/net/ethernet/microsoft/mana/gdma.h rename to include/linux/mana/gdma.h diff --git a/drivers/net/ethernet/microsoft/mana/hw_channel.h b/include/linux/mana/hw_channel.h similarity index 100% rename from drivers/net/ethernet/microsoft/mana/hw_channel.h rename to include/linux/mana/hw_channel.h diff --git a/drivers/net/ethernet/microsoft/mana/mana.h b/include/linux/mana/mana.h similarity index 100% rename from drivers/net/ethernet/microsoft/mana/mana.h rename to include/linux/mana/mana.h diff --git a/drivers/net/ethernet/microsoft/mana/shm_channel.h b/include/linux/mana/shm_channel.h similarity index 100% rename from drivers/net/ethernet/microsoft/mana/shm_channel.h rename to include/linux/mana/shm_channel.h -- 2.17.1