diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-10-11 03:36:31 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-10-11 03:36:31 +0000 |
commit | d1aeb0bdc36f6bece71a2b0fd3684857d11a867b (patch) | |
tree | 16d3adc0ec1bcb6e6628c164f488ed89958939ab /MdeModulePkg/Bus/Pci | |
parent | f36d8a69a581c8359a486ddb71e5aaee08888296 (diff) | |
download | edk2-d1aeb0bdc36f6bece71a2b0fd3684857d11a867b.zip edk2-d1aeb0bdc36f6bece71a2b0fd3684857d11a867b.tar.gz edk2-d1aeb0bdc36f6bece71a2b0fd3684857d11a867b.tar.bz2 |
Add compiler hint of "GLOBAL_REMOVE_IF_UNREFERENCED" to prevent static unicode string table linked into final image if both PcdComponentNameDisabled and PcdComponentName2Disabled are set to TRUE.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4084 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Bus/Pci')
-rw-r--r-- | MdeModulePkg/Bus/Pci/AtapiPassThruDxe/ComponentName.c | 2 | ||||
-rw-r--r-- | MdeModulePkg/Bus/Pci/EhciDxe/ComponentName.c | 2 | ||||
-rw-r--r-- | MdeModulePkg/Bus/Pci/UhciDxe/ComponentName.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/MdeModulePkg/Bus/Pci/AtapiPassThruDxe/ComponentName.c b/MdeModulePkg/Bus/Pci/AtapiPassThruDxe/ComponentName.c index 32daf0c..2f04f0b 100644 --- a/MdeModulePkg/Bus/Pci/AtapiPassThruDxe/ComponentName.c +++ b/MdeModulePkg/Bus/Pci/AtapiPassThruDxe/ComponentName.c @@ -32,7 +32,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gAtapiScsiPassThruCom };
-static EFI_UNICODE_STRING_TABLE mAtapiScsiPassThruDriverNameTable[] = {
+GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mAtapiScsiPassThruDriverNameTable[] = {
{ "eng;en", (CHAR16 *) L"ATAPI SCSI Pass Thru Driver" },
{ NULL , NULL }
};
diff --git a/MdeModulePkg/Bus/Pci/EhciDxe/ComponentName.c b/MdeModulePkg/Bus/Pci/EhciDxe/ComponentName.c index d55606a..660dd55 100644 --- a/MdeModulePkg/Bus/Pci/EhciDxe/ComponentName.c +++ b/MdeModulePkg/Bus/Pci/EhciDxe/ComponentName.c @@ -171,7 +171,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gEhciComponentName2 = };
-static EFI_UNICODE_STRING_TABLE mEhciDriverNameTable[] = {
+GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mEhciDriverNameTable[] = {
{ "eng;en", L"Usb Ehci Driver" },
{ NULL , NULL }
};
diff --git a/MdeModulePkg/Bus/Pci/UhciDxe/ComponentName.c b/MdeModulePkg/Bus/Pci/UhciDxe/ComponentName.c index 353b657..6be0e73 100644 --- a/MdeModulePkg/Bus/Pci/UhciDxe/ComponentName.c +++ b/MdeModulePkg/Bus/Pci/UhciDxe/ComponentName.c @@ -169,7 +169,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gUhciComponentName2 = };
-static EFI_UNICODE_STRING_TABLE mUhciDriverNameTable[] = {
+GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mUhciDriverNameTable[] = {
{ "eng;en", L"Usb Uhci Driver" },
{ NULL, NULL }
};
|