Print this page
7127  remove -Wno-missing-braces from Makefile.uts


5888 };
5889 #ifdef UNIQUE_FW_NAME
5890 unsigned short qlc_fw2200cs2_length01 = 0xb604;
5891 #else
5892 unsigned short risc_code_length01 = 0xb604;
5893 #endif
5894 
5895 /*
5896  * Common Solaris kernel module linkage code added at the end of
5897  * each QLogic ql_fw_*.c to form the solaris qlc_fw_*.c file.
5898  */
5899 
5900 #include <sys/modctl.h>
5901 
5902 static struct modlmisc modlmisc = {
5903         &mod_miscops, "SunFC Qlogic FCA-FW " FW_VERSION_STRING
5904 };
5905 
5906 static struct modlinkage modlinkage = {
5907         MODREV_1,
5908         (void *)&modlmisc
5909 };
5910 
5911 int
5912 _init()
5913 {
5914         return (mod_install(&modlinkage));
5915 }
5916 
5917 int
5918 _fini()
5919 {
5920         return (mod_remove(&modlinkage));
5921 }
5922 
5923 int
5924 _info(struct modinfo *mip)
5925 {
5926         return (mod_info(&modlinkage, mip));
5927 }


5888 };
5889 #ifdef UNIQUE_FW_NAME
5890 unsigned short qlc_fw2200cs2_length01 = 0xb604;
5891 #else
5892 unsigned short risc_code_length01 = 0xb604;
5893 #endif
5894 
5895 /*
5896  * Common Solaris kernel module linkage code added at the end of
5897  * each QLogic ql_fw_*.c to form the solaris qlc_fw_*.c file.
5898  */
5899 
5900 #include <sys/modctl.h>
5901 
5902 static struct modlmisc modlmisc = {
5903         &mod_miscops, "SunFC Qlogic FCA-FW " FW_VERSION_STRING
5904 };
5905 
5906 static struct modlinkage modlinkage = {
5907         MODREV_1,
5908         { (void *)&modlmisc, NULL }
5909 };
5910 
5911 int
5912 _init()
5913 {
5914         return (mod_install(&modlinkage));
5915 }
5916 
5917 int
5918 _fini()
5919 {
5920         return (mod_remove(&modlinkage));
5921 }
5922 
5923 int
5924 _info(struct modinfo *mip)
5925 {
5926         return (mod_info(&modlinkage, mip));
5927 }