[kernel] r6321 - people/waldi/linux-kbuild-2.6/src/mod

Bastian Blank waldi at costa.debian.org
Tue Mar 28 16:19:35 UTC 2006


Author: waldi
Date: Tue Mar 28 16:19:25 2006
New Revision: 6321

Modified:
   people/waldi/linux-kbuild-2.6/src/mod/module_devicetable_impl_2_6_16.cpp
Log:
src/mod/module_devicetable_impl_2_6_16.cpp: Use a macro to generate templates.


Modified: people/waldi/linux-kbuild-2.6/src/mod/module_devicetable_impl_2_6_16.cpp
==============================================================================
--- people/waldi/linux-kbuild-2.6/src/mod/module_devicetable_impl_2_6_16.cpp	(original)
+++ people/waldi/linux-kbuild-2.6/src/mod/module_devicetable_impl_2_6_16.cpp	Tue Mar 28 16:19:25 2006
@@ -300,27 +300,14 @@
     table_entry_data<device, version_2_6_16, Elf_class, Elf_data>::add (e[i], this->entries);
 }
 
-template class table_data<device_ccw, version_2_6_16, Elf::file_class_32, Elf::file_data_2LSB>;
-template class table_data<device_ccw, version_2_6_16, Elf::file_class_32, Elf::file_data_2MSB>;
-template class table_data<device_ccw, version_2_6_16, Elf::file_class_64, Elf::file_data_2LSB>;
-template class table_data<device_ccw, version_2_6_16, Elf::file_class_64, Elf::file_data_2MSB>;
-template class table_data<device_ieee1394, version_2_6_16, Elf::file_class_32, Elf::file_data_2LSB>;
-template class table_data<device_ieee1394, version_2_6_16, Elf::file_class_32, Elf::file_data_2MSB>;
-template class table_data<device_ieee1394, version_2_6_16, Elf::file_class_64, Elf::file_data_2LSB>;
-template class table_data<device_ieee1394, version_2_6_16, Elf::file_class_64, Elf::file_data_2MSB>;
-template class table_data<device_pci, version_2_6_16, Elf::file_class_32, Elf::file_data_2LSB>;
-template class table_data<device_pci, version_2_6_16, Elf::file_class_32, Elf::file_data_2MSB>;
-template class table_data<device_pci, version_2_6_16, Elf::file_class_64, Elf::file_data_2LSB>;
-template class table_data<device_pci, version_2_6_16, Elf::file_class_64, Elf::file_data_2MSB>;
-template class table_data<device_pnp, version_2_6_16, Elf::file_class_32, Elf::file_data_2LSB>;
-template class table_data<device_pnp, version_2_6_16, Elf::file_class_32, Elf::file_data_2MSB>;
-template class table_data<device_pnp, version_2_6_16, Elf::file_class_64, Elf::file_data_2LSB>;
-template class table_data<device_pnp, version_2_6_16, Elf::file_class_64, Elf::file_data_2MSB>;
-template class table_data<device_pnp_card, version_2_6_16, Elf::file_class_32, Elf::file_data_2LSB>;
-template class table_data<device_pnp_card, version_2_6_16, Elf::file_class_32, Elf::file_data_2MSB>;
-template class table_data<device_pnp_card, version_2_6_16, Elf::file_class_64, Elf::file_data_2LSB>;
-template class table_data<device_pnp_card, version_2_6_16, Elf::file_class_64, Elf::file_data_2MSB>;
-template class table_data<device_usb, version_2_6_16, Elf::file_class_32, Elf::file_data_2LSB>;
-template class table_data<device_usb, version_2_6_16, Elf::file_class_32, Elf::file_data_2MSB>;
-template class table_data<device_usb, version_2_6_16, Elf::file_class_64, Elf::file_data_2LSB>;
-template class table_data<device_usb, version_2_6_16, Elf::file_class_64, Elf::file_data_2MSB>;
+#define make_templates(name) \
+template class table_data<name, version_2_6_16, Elf::file_class_32, Elf::file_data_2LSB>; \
+template class table_data<name, version_2_6_16, Elf::file_class_32, Elf::file_data_2MSB>; \
+template class table_data<name, version_2_6_16, Elf::file_class_64, Elf::file_data_2LSB>; \
+template class table_data<name, version_2_6_16, Elf::file_class_64, Elf::file_data_2MSB>
+make_templates(device_ccw);
+make_templates(device_ieee1394);
+make_templates(device_pci);
+make_templates(device_pnp);
+make_templates(device_pnp_card);
+make_templates(device_usb);



More information about the Kernel-svn-changes mailing list