Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp615005pxb; Thu, 15 Apr 2021 02:23:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdREUU3zSVTtMBPrwyPgULUBQU2M0IKvX6K3SMxNDZmkyM/SoHz3+R3wz/2U2DNVRoCi4E X-Received: by 2002:a50:ee17:: with SMTP id g23mr3015850eds.45.1618478637258; Thu, 15 Apr 2021 02:23:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618478637; cv=none; d=google.com; s=arc-20160816; b=CfOy6lS/iPSlpXNt+F/WxnqTw7S4bQtJhdDu0PmMPmaebcskxJxWhNOfJ/kX4Tkgrf Q31g6gvG5hIElIMIk42aPQr1ItTSwMNesb4bEz7NN/MbGO18H3pIqUrhWvmzH1ekK6AF Y9G5H69qAoKyQA4VZNaE2Dc0fisdVUX4ENEOE8smzHeGL8vnQCzk0y9jV/EP7TLv8Kza M97rGmVN2HGrSLDbgh4yXA7J3GssmvjJu68kayL4HtQYFIv9YptAFdpWeAawpt6dZMdG jTlpsYLIrIbdhCwv8MqQYZRg52VTN94t4sjoyJv+hNNIvqnyVr884Rcx6eHzpCxr/HTG oyoA== 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 :message-id:date:subject:cc:to:from; bh=8dRsvIMDJav+1kzp8QhF+Qfix9C42oizov/8WAFHERI=; b=CD/RFrQ0P7OcJm6Z1uaomsKsVeO9q9LyqgfDYtksyNTTQrmVLmTRI5FBWQiDhkSlkV V1jJ1vOKS47rICJqyJI21+zqJxUs8C2I+vBQF3mS8aNBBpkO8k9thHYARO1dNYs7UzuI qcy+fV8rqcxzvRtDrAG2Cel2AD8d6L3myDCJXwryLRJWhz6hyzesSlfoAQKUhUxVcIvS 1ObeCCmoL9ElZQxYMbVNsZI7Y1f13Jb9YwbHD+AWxYtcplZp7QIw7juzM3VZRksHjsUG 9NSjcRZapjobZA1BIDn2H3LV8IvQDIQJJtEgUs4BN96oKUrRarckcQrp5UmoBPAzh71C br1g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j22si1865741eds.145.2021.04.15.02.23.34; Thu, 15 Apr 2021 02:23:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231716AbhDOJV6 (ORCPT + 99 others); Thu, 15 Apr 2021 05:21:58 -0400 Received: from mail-m17635.qiye.163.com ([59.111.176.35]:52036 "EHLO mail-m17635.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231398AbhDOJV5 (ORCPT ); Thu, 15 Apr 2021 05:21:57 -0400 Received: from wanjb-virtual-machine.localdomain (unknown [36.152.145.182]) by mail-m17635.qiye.163.com (Hmail) with ESMTPA id 8EEAE4002ED; Thu, 15 Apr 2021 17:21:30 +0800 (CST) From: Wan Jiabing To: Doug Ledford , Jason Gunthorpe , Kamal Heib , Alaa Hleihel , Wan Jiabing , Valentine Fatiev , Christoph Lameter , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kael_w@yeah.net Subject: [PATCH] infiniband: ulp: Remove unnecessary struct declaration Date: Thu, 15 Apr 2021 17:21:16 +0800 Message-Id: <20210415092124.27684-1-wanjiabing@vivo.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZGkMYT1ZLGE5LQkseHU4dSR9VEwETFhoSFyQUDg9ZV1kWGg8SFR0UWUFZT0tIVUpKS0 hKTFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6NRQ6DTo4TT8SKBI2CT8WEQtI LU0aFDNVSlVKTUpDT0xDT0JKSkJNVTMWGhIXVQwaFRESGhkSFRw7DRINFFUYFBZFWVdZEgtZQVlI TVVKTklVSk9OVUpDSVlXWQgBWUFKQkNKNwY+ X-HM-Tid: 0a78d4d5e496d991kuws8eeae4002ed Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org struct ipoib_cm_tx is defined at 245th line. And the definition is independent on the MACRO. The declaration here is unnecessary. Remove it. Signed-off-by: Wan Jiabing --- drivers/infiniband/ulp/ipoib/ipoib.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/infiniband/ulp/ipoib/ipoib.h b/drivers/infiniband/ulp/ipoib/ipoib.h index 179ff1d068e5..d255aa69ba6d 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib.h +++ b/drivers/infiniband/ulp/ipoib/ipoib.h @@ -677,8 +677,6 @@ void ipoib_cm_handle_rx_wc(struct net_device *dev, struct ib_wc *wc); void ipoib_cm_handle_tx_wc(struct net_device *dev, struct ib_wc *wc); #else -struct ipoib_cm_tx; - #define ipoib_max_conn_qp 0 static inline int ipoib_cm_admin_enabled(struct net_device *dev) -- 2.25.1