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


2002 
2003                 cfg =
2004                     (core_pcbe_config_t *)kcpc_next_config(token, cfg, &daddr);
2005         }
2006 }
2007 
2008 static void
2009 core_pcbe_free(void *config)
2010 {
2011         kmem_free(config, sizeof (core_pcbe_config_t));
2012 }
2013 
2014 static struct modlpcbe core_modlpcbe = {
2015         &mod_pcbeops,
2016         "Core Performance Counters",
2017         &core_pcbe_ops
2018 };
2019 
2020 static struct modlinkage core_modl = {
2021         MODREV_1,
2022         &core_modlpcbe,
2023 };
2024 
2025 int
2026 _init(void)
2027 {
2028         if (core_pcbe_init() != 0) {
2029                 return (ENOTSUP);
2030         }
2031         return (mod_install(&core_modl));
2032 }
2033 
2034 int
2035 _fini(void)
2036 {
2037         return (mod_remove(&core_modl));
2038 }
2039 
2040 int
2041 _info(struct modinfo *mi)
2042 {


2002 
2003                 cfg =
2004                     (core_pcbe_config_t *)kcpc_next_config(token, cfg, &daddr);
2005         }
2006 }
2007 
2008 static void
2009 core_pcbe_free(void *config)
2010 {
2011         kmem_free(config, sizeof (core_pcbe_config_t));
2012 }
2013 
2014 static struct modlpcbe core_modlpcbe = {
2015         &mod_pcbeops,
2016         "Core Performance Counters",
2017         &core_pcbe_ops
2018 };
2019 
2020 static struct modlinkage core_modl = {
2021         MODREV_1,
2022         { &core_modlpcbe, NULL }
2023 };
2024 
2025 int
2026 _init(void)
2027 {
2028         if (core_pcbe_init() != 0) {
2029                 return (ENOTSUP);
2030         }
2031         return (mod_install(&core_modl));
2032 }
2033 
2034 int
2035 _fini(void)
2036 {
2037         return (mod_remove(&core_modl));
2038 }
2039 
2040 int
2041 _info(struct modinfo *mi)
2042 {