Re: [PATCH] dmaengine: idxd: make idxd_name constant

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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@xxxxxxxxx>

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

https://lore.kernel.org/dmaengine/161739347672.2945060.13854255339674044108.stgit@xxxxxxxxxxxxxxxxxxxxxxxxxx/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"
  };





[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux PCI]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux