Skip to contentSkip to conversation

e1000: Adicionado const para melhorar a segurança do código

PATCH In review joaomboni 3 participants 3 messages Mar 3, 2025

Subsystems (3)
lore
Share & tools
lore

joaomboni

author
#0 lore raw

PATCH 1/1 e1000: Adicionado const para melhorar a segurança do código

---
 drivers/net/ethernet/intel/e1000/e1000_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/e1000/e1000_main.c +1 -1
index 3f089c3d47b2..96bc85f09aaf 100644
@@ -9,7 +9,7 @@
 #include <linux/if_vlan.h>
 
 char e1000_driver_name[] = "e1000";
-static char e1000_driver_string[] = "Intel(R) PRO/1000 Network Driver";
+static const char e1000_driver_string[] = "Intel(R) PRO/1000 Network Driver";
 static const char e1000_copyright[] = "Copyright (c) 1999-2006 Intel Corporation.";
 
 /* e1000_pci_tbl - PCI Device ID Table
Signature · 1 line
2.48.1
#1 lore raw
Quoted 1 line · joaomboni

Sorry, but the Subject: line needs to be in English.

And the name in Signed-off-by: needs to be a real name.

The code change itself looks sensible.

Andrew

---
pw-bot: cr

maintainer
#2 lore raw
Quoted 5 lines · On Mon, 3 Mar 2025 14:48:46 +0100 Andrew Lunn wrote:

Sorry, but the Subject: line needs to be in English.

And the name in Signed-off-by: needs to be a real name.

The code change itself looks sensible.

If only we were also LLMs, not just humans, we could read commits in any language!