diff mbox series

dmaengine: idxd: make idxd_name constant

Message ID 161314339610.2231590.18332704779939143434.stgit@djiang5-desk3.ch.intel.com (mailing list archive)
State New
Headers show
Series dmaengine: idxd: make idxd_name constant | expand

Commit Message

Dave Jiang Feb. 12, 2021, 3:23 p.m. UTC
idxd_name is a string table and should be constant.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
---
 drivers/dma/idxd/init.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Dave Jiang April 5, 2021, 11:31 p.m. UTC | #1
On 2/12/2021 8:23 AM, Dave Jiang wrote:
> idxd_name is a string table and should be constant.
>
> Signed-off-by: Dave Jiang <dave.jiang@intel.com>

This patch can be dropped. It's no longer relevant with this patch.

https://lore.kernel.org/dmaengine/161739347672.2945060.13854255339674044108.stgit@djiang5-desk3.ch.intel.com/T/#u



> ---
>   drivers/dma/idxd/init.c |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/dma/idxd/init.c b/drivers/dma/idxd/init.c
> index 1df624eee6db..7fa147b1d29e 100644
> --- a/drivers/dma/idxd/init.c
> +++ b/drivers/dma/idxd/init.c
> @@ -47,7 +47,7 @@ static struct pci_device_id idxd_pci_tbl[] = {
>   };
>   MODULE_DEVICE_TABLE(pci, idxd_pci_tbl);
>   
> -static char *idxd_name[] = {
> +static const char * const idxd_name[] = {
>   	"dsa",
>   	"iax"
>   };
>
>
diff mbox series

Patch

diff --git a/drivers/dma/idxd/init.c b/drivers/dma/idxd/init.c
index 1df624eee6db..7fa147b1d29e 100644
--- a/drivers/dma/idxd/init.c
+++ b/drivers/dma/idxd/init.c
@@ -47,7 +47,7 @@  static struct pci_device_id idxd_pci_tbl[] = {
 };
 MODULE_DEVICE_TABLE(pci, idxd_pci_tbl);
 
-static char *idxd_name[] = {
+static const char * const idxd_name[] = {
 	"dsa",
 	"iax"
 };