From: Leon Romanovsky <leon@kernel.org>
To: Jeff Johnson <quic_jjohnson@quicinc.com>
Cc: Allison Henderson <allison.henderson@oracle.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
netdev@vger.kernel.org, linux-rdma@vger.kernel.org,
rds-devel@oss.oracle.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] RDMA/rds: Remove duplicate MODULE_LICENSE() from ib.c
Date: Thu, 18 Jul 2024 11:44:34 +0300 [thread overview]
Message-ID: <20240718084434.GO5630@unreal> (raw)
In-Reply-To: <20240717-ml-net-rds-rdma-v1-1-5cc471a5e20f@quicinc.com>
On Wed, Jul 17, 2024 at 04:45:36PM -0700, Jeff Johnson wrote:
> Since commit 1fffe7a34c89 ("script: modpost: emit a warning when the
> description is missing"), a module without a MODULE_DESCRIPTION() will
> result in a warning with make W=1. One strategy for identifying such
> modules is to search for files which have a MODULE_LICENSE() but which
> do not have a MODULE_DESCRIPTION(). net/rds/ib.c is one such file. And
> its product, ib.o, is a component of the rds_rdma module via:
>
> obj-$(CONFIG_RDS_RDMA) += rds_rdma.o
> rds_rdma-y := rdma_transport.o \
> ib.o ib_cm.o ib_recv.o ib_ring.o ib_send.o ib_stats.o \
> ib_sysctl.o ib_rdma.o ib_frmr.o
>
> Interestingly, when CONFIG_RDS_RDMA=m, the missing description warning
> is NOT emitted by modpost. This is because rdma_transport.c contains a
> MODULE_DESCRIPTION() that describes this module. And in addition,
> rdma_transport.c contains a MODULE_LICENSE() for this module.
>
> Since rdma_transport.c already contains both the MODULE_LICENSE() and
> the MODULE_DESCRIPTION() for the rds_rdma module, remove the duplicate
> MODULE_LICENSE() from ib.c
>
> Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com>
> ---
> net/rds/ib.c | 2 --
> 1 file changed, 2 deletions(-)
The title of the patch is wrong, it should be "net/rds: Remove duplicate MODULE_LICENSE() from ib.c"
Thanks
prev parent reply other threads:[~2024-07-18 8:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-17 23:45 [PATCH] RDMA/rds: Remove duplicate MODULE_LICENSE() from ib.c Jeff Johnson
2024-07-18 8:44 ` Leon Romanovsky [this message]
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=20240718084434.GO5630@unreal \
--to=leon@kernel.org \
--cc=allison.henderson@oracle.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=quic_jjohnson@quicinc.com \
--cc=rds-devel@oss.oracle.com \
/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;
as well as URLs for NNTP newsgroup(s).