GNU Linux-libre 6.10-gnua scripts scripts/v6.10-gnua
authorFreedo <freedo@linux-libre.fsfla.org>
Mon, 15 Jul 2024 11:48:43 +0000 (11:48 +0000)
committerFreedo <freedo@linux-libre.fsfla.org>
Mon, 15 Jul 2024 11:53:55 +0000 (11:53 +0000)
deblob-6.10

index b8e39342b47a8e22a77c9de0c91dd37bd09c1c0f..ecdb90efcf58bacb111b6d43af5875e43fbca2e4 100755 (executable)
@@ -927,7 +927,11 @@ reject_firmware drivers/gpu/drm/i915/display/intel_dmc.c
 clean_blob drivers/gpu/drm/i915/display/intel_dmc.c
 reject_firmware drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
 clean_sed '/uc_fw->file_selected\.path = blob->path/ i\
-               else if (blob->path == NONFREE_FIRMWARE)\
+               /* If the compiler unifies string literals, as expected,\
+                  do not bother with strcmp.  */\
+               else if ((char const *)NONFREE_FIRMWARE == (char const *)NONFREE_FIRMWARE\
+                        ? blob->path == (char const *)NONFREE_FIRMWARE\
+                        : !strcmp (blob->path, NONFREE_FIRMWARE))\
                        /* Never select an entry we would refuse to load.\
                           If we find nothing, loading is disabled but the card\
                           initialization proceeds as if the user had disabled\
@@ -937,7 +941,11 @@ clean_sed '/uc_fw->file_selected\.path = blob->path/ i\
 
 ' drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c 'disable non-Free firmware'
 clean_sed '/Versionless file names must be unique/ i\
-           if (fw_blobs[i].blob.path != NONFREE_FIRMWARE)
+               /* If the compiler unifies string literals, as expected,\
+                  do not bother with strcmp.  */\
+               if ((char const *)NONFREE_FIRMWARE == (char const *)NONFREE_FIRMWARE\
+                   ? fw_blobs[i].blob.path != (char const *)NONFREE_FIRMWARE\
+                   : strcmp (fw_blobs[i].blob.path, NONFREE_FIRMWARE))
 ' drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c 'avoid validation fails'
 clean_blob drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
 clean_blob drivers/gpu/drm/i915/gt/uc/intel_uc_fw.h
@@ -3294,9 +3302,9 @@ announce SCSI_QLA_FC - "QLogic QLA2XXX Fibre Channel Support"
 reject_firmware drivers/scsi/qla2xxx/qla_os.c
 clean_sed '
 /^config SCSI_QLA_FC$/,/^config /{
-  /By default, firmware/i\
-       /*(DEBLOBBED)*/
-  /By default, firmware/,/linux-firmware tree/d
+  /^     By default, firmware/i\
+         /*(DEBLOBBED)*/
+  /^     By default, firmware/,/linux-firmware tree/d
 }' drivers/scsi/qla2xxx/Kconfig 'removed firmware notes'
 clean_blob drivers/scsi/qla2xxx/qla_os.c
 clean_kconfig drivers/scsi/qla2xxx/Kconfig SCSI_QLA_FC