[PATCH 1/2] nvme: add module description to stop warnings

Sagi Grimberg sagi at grimberg.me
Thu Jan 18 04:24:59 PST 2024



On 1/18/24 07:36, Chaitanya Kulkarni wrote:
> Add MODULE_DESCRIPTION() in order to remove warnings & get clean build:-
>
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/nvme/host/nvme-core.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/nvme/host/nvme.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/nvme/host/nvme-fabrics.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/nvme/host/nvme-rdma.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/nvme/host/nvme-fc.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/nvme/host/nvme-tcp.o
>
> Signed-off-by: Chaitanya Kulkarni <kch at nvidia.com>
> ---
>   drivers/nvme/host/core.c    | 1 +
>   drivers/nvme/host/fabrics.c | 1 +
>   drivers/nvme/host/fc.c      | 1 +
>   drivers/nvme/host/pci.c     | 1 +
>   drivers/nvme/host/rdma.c    | 1 +
>   drivers/nvme/host/tcp.c     | 1 +
>   6 files changed, 6 insertions(+)
>
> diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
> index 8971af7fcb2b..fa14e16731c0 100644
> --- a/drivers/nvme/host/core.c
> +++ b/drivers/nvme/host/core.c
> @@ -4856,5 +4856,6 @@ static void __exit nvme_core_exit(void)
>   
>   MODULE_LICENSE("GPL");
>   MODULE_VERSION("1.0");
> +MODULE_DESCRIPTION("Essential NVMe Host core functionality");

NVMe host core framework ?

>   module_init(nvme_core_init);
>   module_exit(nvme_core_exit);
> diff --git a/drivers/nvme/host/fabrics.c b/drivers/nvme/host/fabrics.c
> index aa88606a44c4..ed2fd0a0d688 100644
> --- a/drivers/nvme/host/fabrics.c
> +++ b/drivers/nvme/host/fabrics.c
> @@ -1488,6 +1488,7 @@ static void __exit nvmf_exit(void)
>   }
>   
>   MODULE_LICENSE("GPL v2");
> +MODULE_DESCRIPTION("Essential NVMeOF Host core functionality");

NVMe host fabrics library

>   
>   module_init(nvmf_init);
>   module_exit(nvmf_exit);
> diff --git a/drivers/nvme/host/fc.c b/drivers/nvme/host/fc.c
> index 05c3159d42e9..522319a4d6f2 100644
> --- a/drivers/nvme/host/fc.c
> +++ b/drivers/nvme/host/fc.c
> @@ -4015,4 +4015,5 @@ static void __exit nvme_fc_exit_module(void)
>   module_init(nvme_fc_init_module);
>   module_exit(nvme_fc_exit_module);
>   
> +MODULE_DESCRIPTION("NVMeOF Host FC transport");

NVMe host FC transport driver ?

>   MODULE_LICENSE("GPL v2");
> diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
> index 46d3897b8986..9801dbe09dad 100644
> --- a/drivers/nvme/host/pci.c
> +++ b/drivers/nvme/host/pci.c
> @@ -3529,5 +3529,6 @@ static void __exit nvme_exit(void)
>   MODULE_AUTHOR("Matthew Wilcox <willy at linux.intel.com>");
>   MODULE_LICENSE("GPL");
>   MODULE_VERSION("1.0");
> +MODULE_DESCRIPTION("NVMe PCIe transport");

NVMe host PCIe transport driver

>   module_init(nvme_init);
>   module_exit(nvme_exit);
> diff --git a/drivers/nvme/host/rdma.c b/drivers/nvme/host/rdma.c
> index 2e77c0f25f71..d93c863d036d 100644
> --- a/drivers/nvme/host/rdma.c
> +++ b/drivers/nvme/host/rdma.c
> @@ -2395,4 +2395,5 @@ static void __exit nvme_rdma_cleanup_module(void)
>   module_init(nvme_rdma_init_module);
>   module_exit(nvme_rdma_cleanup_module);
>   
> +MODULE_DESCRIPTION("NVMeOF Host RDMA transport");

NVMe host RDMA transport driver

>   MODULE_LICENSE("GPL v2");
> diff --git a/drivers/nvme/host/tcp.c b/drivers/nvme/host/tcp.c
> index b234f0674aeb..016a3b7c0791 100644
> --- a/drivers/nvme/host/tcp.c
> +++ b/drivers/nvme/host/tcp.c
> @@ -2819,4 +2819,5 @@ static void __exit nvme_tcp_cleanup_module(void)
>   module_init(nvme_tcp_init_module);
>   module_exit(nvme_tcp_cleanup_module);
>   
> +MODULE_DESCRIPTION("NVMeOF Host TCP transport");

NVMe host TCP transport driver ?

>   MODULE_LICENSE("GPL v2");




More information about the Linux-nvme mailing list