Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Yanze Zhang" <zhang.yanze@zte.com.cn>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [PATCH 4/7] RDMA/zrdma: Add hardware resource initialization and verbs skeleton
Date: Sat, 24 Oct 2026 07:36:24 +0000	[thread overview]
Message-ID: <sashiko-outbox-183587@kernel.org> (raw)
In-Reply-To: <20261024071539.2182864-5-zhang.yanze@zte.com.cn>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] RDMA/zrdma: accidental deletion of zrdma_main.c breaks build
--

commit e05483ee5929bdb338026257200504048dace255
Author: Yanze Zhang <zhang.yanze@zte.com.cn>

RDMA/zrdma: Add hardware resource initialization and verbs skeleton

This commit adds hardware resource initialization routines in zrdma_hw.c
and a minimal verbs device registration skeleton in zrdma_verbs.c and
zrdma_verbs.h.

> diff --git a/drivers/infiniband/hw/zrdma/Makefile b/drivers/infiniband/hw/zrdma/Makefile
> index 2ddf50d1fd208..88be835f5c5c2 100644
> --- a/drivers/infiniband/hw/zrdma/Makefile
> +++ b/drivers/infiniband/hw/zrdma/Makefile
> @@ -1,4 +1,7 @@
>  # SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
>  
>  obj-$(CONFIG_INFINIBAND_ZRDMA) += zrdma.o
> -zrdma-y := zrdma_main.o
> +zrdma-y := \
> +	zrdma_main.o \
> +	zrdma_hw.o \
> +	zrdma_verbs.o
> \ No newline at end of file

[ ... ]

> diff --git a/drivers/infiniband/hw/zrdma/zrdma_main.c b/drivers/infiniband/hw/zrdma/zrdma_main.c
> deleted file mode 100644
> index af1d37be63362..0000000000000
> --- a/drivers/infiniband/hw/zrdma/zrdma_main.c
> +++ /dev/null
> @@ -1,57 +0,0 @@
> -// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
> -/*
> - * ZTE DingHai Rdma driver
> - * Copyright (c) 2022-2026, ZTE Corporation
> - */
> -
> -#include <linux/module.h>
> -#include <linux/auxiliary_bus.h>

[ ... ]

> -static int __init zrdma_module_init(void)
> -{
> -	return auxiliary_driver_register(&zxdh_auxiliary_drv);
> -}
> -
> -static void __exit zrdma_module_exit(void)
> -{
> -	auxiliary_driver_unregister(&zxdh_auxiliary_drv);
> -}
> -
> -module_init(zrdma_module_init);
> -module_exit(zrdma_module_exit);

[Severity: High]
Was drivers/infiniband/hw/zrdma/zrdma_main.c deleted here by mistake?

In drivers/infiniband/hw/zrdma/Makefile, zrdma-y still lists zrdma_main.o:

    zrdma-y := \
            zrdma_main.o \
            zrdma_hw.o \
            zrdma_verbs.o

Deleting drivers/infiniband/hw/zrdma/zrdma_main.c in this commit removes
zrdma_module_init(), zrdma_module_exit(), zxdh_probe(), and zxdh_remove(),
and causes the build to fail when building drivers/infiniband/hw/zrdma/
because there is no rule to make target zrdma_main.o.

Although a later commit in the series ("RDMA/zrdma: Add device probe and
remove logic") re-adds drivers/infiniband/hw/zrdma/zrdma_main.c, leaving it
deleted here breaks the build and git bisection at this commit.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261024071539.2182864-1-zhang.yanze@zte.com.cn?part=4

  reply	other threads:[~2026-10-24  7:36 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-24  7:15 [PATCH rdma v6 0/7] Add ZTE DingHai Ethernet Protocol Driver for RDMA Yanze Zhang
2026-10-24  7:15 ` [PATCH 1/7] RDMA/zrdma: Add build infrastructure and module skeleton Yanze Zhang
2026-10-24  7:34   ` sashiko-bot
2026-10-24  7:15 ` [PATCH 2/7] RDMA/zrdma: Add core data structures and ABI definitions Yanze Zhang
2026-10-24  7:32   ` sashiko-bot
2026-10-24 18:33   ` kernel test robot
2026-10-24  7:15 ` [PATCH 3/7] RDMA/zrdma: Add internal headers and hardware register definitions Yanze Zhang
2026-10-24  7:31   ` sashiko-bot
2026-10-24  8:43   ` [PATCH v6? " Markus Elfring
2026-10-24  7:15 ` [PATCH 4/7] RDMA/zrdma: Add hardware resource initialization and verbs skeleton Yanze Zhang
2026-10-24  7:36   ` sashiko-bot [this message]
2026-10-24  7:15 ` [PATCH 5/7] RDMA/zrdma: Add device probe and remove logic Yanze Zhang
2026-10-24  7:38   ` sashiko-bot
2026-10-24  7:15 ` [PATCH 6/7] RDMA/zrdma: Implement context, PD, and mmap operations Yanze Zhang
2026-10-24  7:43   ` sashiko-bot
2026-10-24  7:15 ` [PATCH 7/7] RDMA/zrdma: Implement device and port query operations Yanze Zhang
2026-10-24  7:45   ` sashiko-bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-183587@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=zhang.yanze@zte.com.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox