[ipxe-devel] [PATCH 3/5] pci ids are meanwhile a const

Geert Stappers stappers at stappers.nl
Tue May 24 20:13:49 UTC 2022


From: Geert Stappers <stappers at stappers.nl>

As in
  static struct pci_device_id cp_pci_tbl[] = {
became
  static const struct pci_device_id cp_pci_tbl[] = {
---
 src/util/get-pci-ids | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/get-pci-ids b/src/util/get-pci-ids
index 0927ef2d..2f1cac2b 100755
--- a/src/util/get-pci-ids
+++ b/src/util/get-pci-ids
@@ -91,7 +91,7 @@ foreach $driver (@drivers) {
 	my $line = "";
 	my @lines;
 	while(<DRIVER>) {
-		if(/^\s*static\s+struct\s+pci_device_id/) {
+		if(/^\s*static\s+const\s+struct\s+pci_device_id/) {
 			# This file contains a driver. Print the name.
 			$driver =~ s!$kernel_src/drivers/net/!!g;
 			print "\n$driver\n";
-- 
2.11.0



More information about the ipxe-devel mailing list