all: Remove 'name' member from mp_obj_module_t struct.

One can instead lookup __name__ in the modules dict to get the value.
diff --git a/cc3200/mods/modmachine.c b/cc3200/mods/modmachine.c
index 410d5b9..f82decd 100644
--- a/cc3200/mods/modmachine.c
+++ b/cc3200/mods/modmachine.c
@@ -213,6 +213,5 @@
 
 const mp_obj_module_t machine_module = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_umachine,
     .globals = (mp_obj_dict_t*)&machine_module_globals,
 };
diff --git a/cc3200/mods/modnetwork.c b/cc3200/mods/modnetwork.c
index 5891f71..8e086b1 100644
--- a/cc3200/mods/modnetwork.c
+++ b/cc3200/mods/modnetwork.c
@@ -161,7 +161,6 @@
 
 const mp_obj_module_t mp_module_network = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_network,
     .globals = (mp_obj_dict_t*)&mp_module_network_globals,
 };
 
diff --git a/cc3200/mods/modubinascii.c b/cc3200/mods/modubinascii.c
index add46f9..09f4b1e 100644
--- a/cc3200/mods/modubinascii.c
+++ b/cc3200/mods/modubinascii.c
@@ -58,6 +58,5 @@
 
 const mp_obj_module_t mp_module_ubinascii = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_ubinascii,
     .globals = (mp_obj_dict_t*)&mp_module_binascii_globals,
 };
diff --git a/cc3200/mods/moduhashlib.c b/cc3200/mods/moduhashlib.c
index 78577f5..93f1554 100644
--- a/cc3200/mods/moduhashlib.c
+++ b/cc3200/mods/moduhashlib.c
@@ -204,7 +204,6 @@
 
 const mp_obj_module_t mp_module_uhashlib = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_uhashlib,
     .globals = (mp_obj_dict_t*)&mp_module_hashlib_globals,
 };
 
diff --git a/cc3200/mods/moduos.c b/cc3200/mods/moduos.c
index 9538b67..8e3e013 100644
--- a/cc3200/mods/moduos.c
+++ b/cc3200/mods/moduos.c
@@ -602,6 +602,5 @@
 
 const mp_obj_module_t mp_module_uos = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_uos,
     .globals = (mp_obj_dict_t*)&os_module_globals,
 };
diff --git a/cc3200/mods/modusocket.c b/cc3200/mods/modusocket.c
index 360d034..c7b3fb2 100644
--- a/cc3200/mods/modusocket.c
+++ b/cc3200/mods/modusocket.c
@@ -541,6 +541,5 @@
 
 const mp_obj_module_t mp_module_usocket = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_usocket,
     .globals = (mp_obj_dict_t*)&mp_module_usocket_globals,
 };
diff --git a/cc3200/mods/modussl.c b/cc3200/mods/modussl.c
index 8342306..1ae45d6 100644
--- a/cc3200/mods/modussl.c
+++ b/cc3200/mods/modussl.c
@@ -152,7 +152,6 @@
 
 const mp_obj_module_t mp_module_ussl = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_ussl,
     .globals = (mp_obj_dict_t*)&mp_module_ussl_globals,
 };
 
diff --git a/cc3200/mods/modutime.c b/cc3200/mods/modutime.c
index c669d32..bef8b66 100644
--- a/cc3200/mods/modutime.c
+++ b/cc3200/mods/modutime.c
@@ -196,6 +196,5 @@
 
 const mp_obj_module_t mp_module_utime = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_utime,
     .globals = (mp_obj_dict_t*)&time_module_globals,
 };
diff --git a/cc3200/mods/modwipy.c b/cc3200/mods/modwipy.c
index 2cfd640..b4c18d1 100644
--- a/cc3200/mods/modwipy.c
+++ b/cc3200/mods/modwipy.c
@@ -26,6 +26,5 @@
 
 const mp_obj_module_t wipy_module = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_wipy,
     .globals = (mp_obj_dict_t*)&wipy_module_globals,
 };
diff --git a/esp8266/modesp.c b/esp8266/modesp.c
index 39cc514..9a7d4ad 100644
--- a/esp8266/modesp.c
+++ b/esp8266/modesp.c
@@ -748,6 +748,5 @@
 
 const mp_obj_module_t esp_module = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_esp,
     .globals = (mp_obj_dict_t*)&esp_module_globals,
 };
diff --git a/esp8266/modmachine.c b/esp8266/modmachine.c
index b0b7f3a..8a81cba 100644
--- a/esp8266/modmachine.c
+++ b/esp8266/modmachine.c
@@ -271,7 +271,6 @@
 
 const mp_obj_module_t mp_module_machine = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_umachine,
     .globals = (mp_obj_dict_t*)&machine_module_globals,
 };
 
diff --git a/esp8266/modnetwork.c b/esp8266/modnetwork.c
index 7031197..86bf27c 100644
--- a/esp8266/modnetwork.c
+++ b/esp8266/modnetwork.c
@@ -484,6 +484,5 @@
 
 const mp_obj_module_t network_module = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_network,
     .globals = (mp_obj_dict_t*)&mp_module_network_globals,
 };
diff --git a/esp8266/modonewire.c b/esp8266/modonewire.c
index 0fcf1ab..0d8958c 100644
--- a/esp8266/modonewire.c
+++ b/esp8266/modonewire.c
@@ -117,6 +117,5 @@
 
 const mp_obj_module_t onewire_module = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_onewire,
     .globals = (mp_obj_dict_t*)&onewire_module_globals,
 };
diff --git a/esp8266/moduos.c b/esp8266/moduos.c
index bbbf2b6..cf65551 100644
--- a/esp8266/moduos.c
+++ b/esp8266/moduos.c
@@ -178,6 +178,5 @@
 
 const mp_obj_module_t uos_module = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_uos,
     .globals = (mp_obj_dict_t*)&os_module_globals,
 };
diff --git a/esp8266/modutime.c b/esp8266/modutime.c
index bf56feb..4b94ace 100644
--- a/esp8266/modutime.c
+++ b/esp8266/modutime.c
@@ -173,6 +173,5 @@
 
 const mp_obj_module_t utime_module = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_utime,
     .globals = (mp_obj_dict_t*)&time_module_globals,
 };
diff --git a/extmod/modbtree.c b/extmod/modbtree.c
index ea2ea58..0f9ae82 100644
--- a/extmod/modbtree.c
+++ b/extmod/modbtree.c
@@ -387,7 +387,6 @@
 
 const mp_obj_module_t mp_module_btree = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_btree,
     .globals = (mp_obj_dict_t*)&mp_module_btree_globals,
 };
 
diff --git a/extmod/modframebuf.c b/extmod/modframebuf.c
index 3c884c6..cd7f1c5 100644
--- a/extmod/modframebuf.c
+++ b/extmod/modframebuf.c
@@ -213,7 +213,6 @@
 
 const mp_obj_module_t mp_module_framebuf = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_framebuf,
     .globals = (mp_obj_dict_t*)&framebuf_module_globals,
 };
 
diff --git a/extmod/modlwip.c b/extmod/modlwip.c
index 80df662..ec37919 100644
--- a/extmod/modlwip.c
+++ b/extmod/modlwip.c
@@ -1309,7 +1309,6 @@
 
 const mp_obj_module_t mp_module_lwip = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_lwip,
     .globals = (mp_obj_dict_t*)&mp_module_lwip_globals,
 };
 
diff --git a/extmod/modubinascii.c b/extmod/modubinascii.c
index 562c754..2b59b1a 100644
--- a/extmod/modubinascii.c
+++ b/extmod/modubinascii.c
@@ -232,7 +232,6 @@
 
 const mp_obj_module_t mp_module_ubinascii = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_ubinascii,
     .globals = (mp_obj_dict_t*)&mp_module_binascii_globals,
 };
 
diff --git a/extmod/moductypes.c b/extmod/moductypes.c
index a3071af..9995f63 100644
--- a/extmod/moductypes.c
+++ b/extmod/moductypes.c
@@ -710,7 +710,6 @@
 
 const mp_obj_module_t mp_module_uctypes = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_uctypes,
     .globals = (mp_obj_dict_t*)&mp_module_uctypes_globals,
 };
 
diff --git a/extmod/moduhashlib.c b/extmod/moduhashlib.c
index 6cd690a..13525cc 100644
--- a/extmod/moduhashlib.c
+++ b/extmod/moduhashlib.c
@@ -151,7 +151,6 @@
 
 const mp_obj_module_t mp_module_uhashlib = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_uhashlib,
     .globals = (mp_obj_dict_t*)&mp_module_hashlib_globals,
 };
 
diff --git a/extmod/moduheapq.c b/extmod/moduheapq.c
index 84ffe54..567ee83 100644
--- a/extmod/moduheapq.c
+++ b/extmod/moduheapq.c
@@ -116,7 +116,6 @@
 
 const mp_obj_module_t mp_module_uheapq = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_uheapq,
     .globals = (mp_obj_dict_t*)&mp_module_uheapq_globals,
 };
 
diff --git a/extmod/modujson.c b/extmod/modujson.c
index 4e080c9..0d0781e 100644
--- a/extmod/modujson.c
+++ b/extmod/modujson.c
@@ -260,7 +260,6 @@
 
 const mp_obj_module_t mp_module_ujson = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_ujson,
     .globals = (mp_obj_dict_t*)&mp_module_ujson_globals,
 };
 
diff --git a/extmod/modurandom.c b/extmod/modurandom.c
index 27d7177..995b0a2 100644
--- a/extmod/modurandom.c
+++ b/extmod/modurandom.c
@@ -215,7 +215,6 @@
 
 const mp_obj_module_t mp_module_urandom = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_urandom,
     .globals = (mp_obj_dict_t*)&mp_module_urandom_globals,
 };
 
diff --git a/extmod/modure.c b/extmod/modure.c
index 9821e23..b8c2424 100644
--- a/extmod/modure.c
+++ b/extmod/modure.c
@@ -237,7 +237,6 @@
 
 const mp_obj_module_t mp_module_ure = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_ure,
     .globals = (mp_obj_dict_t*)&mp_module_re_globals,
 };
 
diff --git a/extmod/modussl_axtls.c b/extmod/modussl_axtls.c
index ce86263..775474e 100644
--- a/extmod/modussl_axtls.c
+++ b/extmod/modussl_axtls.c
@@ -196,7 +196,6 @@
 
 const mp_obj_module_t mp_module_ussl = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_ussl,
     .globals = (mp_obj_dict_t*)&mp_module_ssl_globals,
 };
 
diff --git a/extmod/moduzlib.c b/extmod/moduzlib.c
index 65cbc5e..68a087b 100644
--- a/extmod/moduzlib.c
+++ b/extmod/moduzlib.c
@@ -204,7 +204,6 @@
 
 const mp_obj_module_t mp_module_uzlib = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_uzlib,
     .globals = (mp_obj_dict_t*)&mp_module_uzlib_globals,
 };
 
diff --git a/extmod/modwebrepl.c b/extmod/modwebrepl.c
index 858d2c1..8e05809 100644
--- a/extmod/modwebrepl.c
+++ b/extmod/modwebrepl.c
@@ -340,7 +340,7 @@
 };
 
 STATIC const mp_map_elem_t webrepl_module_globals_table[] = {
-    { MP_OBJ_NEW_QSTR(MP_QSTR___name__), MP_OBJ_NEW_QSTR(MP_QSTR_websocket) },
+    { MP_OBJ_NEW_QSTR(MP_QSTR___name__), MP_OBJ_NEW_QSTR(MP_QSTR__webrepl) },
     { MP_OBJ_NEW_QSTR(MP_QSTR__webrepl), (mp_obj_t)&webrepl_type },
     { MP_OBJ_NEW_QSTR(MP_QSTR_password), (mp_obj_t)&webrepl_set_password_obj },
 };
@@ -349,7 +349,6 @@
 
 const mp_obj_module_t mp_module_webrepl = {
     .base = { &mp_type_module },
-    .name = MP_QSTR__webrepl,
     .globals = (mp_obj_dict_t*)&webrepl_module_globals,
 };
 
diff --git a/extmod/modwebsocket.c b/extmod/modwebsocket.c
index f46dac1..8200ea7 100644
--- a/extmod/modwebsocket.c
+++ b/extmod/modwebsocket.c
@@ -313,7 +313,6 @@
 
 const mp_obj_module_t mp_module_websocket = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_websocket,
     .globals = (mp_obj_dict_t*)&websocket_module_globals,
 };
 
diff --git a/pic16bit/modpyb.c b/pic16bit/modpyb.c
index f59163a..326d37f 100644
--- a/pic16bit/modpyb.c
+++ b/pic16bit/modpyb.c
@@ -66,6 +66,5 @@
 
 const mp_obj_module_t pyb_module = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_pyb,
     .globals = (mp_obj_dict_t*)&pyb_module_globals,
 };
diff --git a/py/modarray.c b/py/modarray.c
index cfee011..356e48b 100644
--- a/py/modarray.c
+++ b/py/modarray.c
@@ -37,7 +37,6 @@
 
 const mp_obj_module_t mp_module_array = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_array,
     .globals = (mp_obj_dict_t*)&mp_module_array_globals,
 };
 
diff --git a/py/modbuiltins.c b/py/modbuiltins.c
index ac3d304..29f84d6 100644
--- a/py/modbuiltins.c
+++ b/py/modbuiltins.c
@@ -577,6 +577,8 @@
 MP_DEFINE_CONST_FUN_OBJ_1(mp_builtin_len_obj, mp_obj_len);
 
 STATIC const mp_rom_map_elem_t mp_module_builtins_globals_table[] = {
+    { MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_builtins) },
+
     // built-in core functions
     { MP_ROM_QSTR(MP_QSTR___build_class__), MP_ROM_PTR(&mp_builtin___build_class___obj) },
     { MP_ROM_QSTR(MP_QSTR___import__), MP_ROM_PTR(&mp_builtin___import___obj) },
@@ -727,6 +729,5 @@
 
 const mp_obj_module_t mp_module_builtins = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_builtins,
     .globals = (mp_obj_dict_t*)&mp_module_builtins_globals,
 };
diff --git a/py/modcmath.c b/py/modcmath.c
index 33fe9c7..7ad8f5a 100644
--- a/py/modcmath.c
+++ b/py/modcmath.c
@@ -160,7 +160,6 @@
 
 const mp_obj_module_t mp_module_cmath = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_cmath,
     .globals = (mp_obj_dict_t*)&mp_module_cmath_globals,
 };
 
diff --git a/py/modcollections.c b/py/modcollections.c
index dceaa20..e610a28 100644
--- a/py/modcollections.c
+++ b/py/modcollections.c
@@ -40,7 +40,6 @@
 
 const mp_obj_module_t mp_module_collections = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_ucollections,
     .globals = (mp_obj_dict_t*)&mp_module_collections_globals,
 };
 
diff --git a/py/modgc.c b/py/modgc.c
index 976fb89..2456462 100644
--- a/py/modgc.c
+++ b/py/modgc.c
@@ -119,7 +119,6 @@
 
 const mp_obj_module_t mp_module_gc = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_gc,
     .globals = (mp_obj_dict_t*)&mp_module_gc_globals,
 };
 
diff --git a/py/modio.c b/py/modio.c
index f8826c7..2a38af6 100644
--- a/py/modio.c
+++ b/py/modio.c
@@ -153,7 +153,6 @@
 
 const mp_obj_module_t mp_module_io = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_uio,
     .globals = (mp_obj_dict_t*)&mp_module_io_globals,
 };
 
diff --git a/py/modmath.c b/py/modmath.c
index 54262f6..0c70f34 100644
--- a/py/modmath.c
+++ b/py/modmath.c
@@ -268,7 +268,6 @@
 
 const mp_obj_module_t mp_module_math = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_math,
     .globals = (mp_obj_dict_t*)&mp_module_math_globals,
 };
 
diff --git a/py/modmicropython.c b/py/modmicropython.c
index 805bda5..31ae702 100644
--- a/py/modmicropython.c
+++ b/py/modmicropython.c
@@ -145,6 +145,5 @@
 
 const mp_obj_module_t mp_module_micropython = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_micropython,
     .globals = (mp_obj_dict_t*)&mp_module_micropython_globals,
 };
diff --git a/py/modstruct.c b/py/modstruct.c
index be0d011..5c07b81 100644
--- a/py/modstruct.c
+++ b/py/modstruct.c
@@ -265,7 +265,6 @@
 
 const mp_obj_module_t mp_module_ustruct = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_ustruct,
     .globals = (mp_obj_dict_t*)&mp_module_struct_globals,
 };
 
diff --git a/py/modsys.c b/py/modsys.c
index 3bc5c2b..8c368ac 100644
--- a/py/modsys.c
+++ b/py/modsys.c
@@ -203,7 +203,6 @@
 
 const mp_obj_module_t mp_module_sys = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_sys,
     .globals = (mp_obj_dict_t*)&mp_module_sys_globals,
 };
 
diff --git a/py/modthread.c b/py/modthread.c
index 6c8340c..24b94f1 100644
--- a/py/modthread.c
+++ b/py/modthread.c
@@ -294,7 +294,6 @@
 
 const mp_obj_module_t mp_module_thread = {
     .base = { &mp_type_module },
-    .name = MP_QSTR__thread,
     .globals = (mp_obj_dict_t*)&mp_module_thread_globals,
 };
 
diff --git a/py/moduerrno.c b/py/moduerrno.c
index 343b29b..4a5e874 100644
--- a/py/moduerrno.c
+++ b/py/moduerrno.c
@@ -89,7 +89,6 @@
 
 const mp_obj_module_t mp_module_uerrno = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_uerrno,
     .globals = (mp_obj_dict_t*)&mp_module_uerrno_globals,
 };
 
diff --git a/py/obj.h b/py/obj.h
index 22aa196..72d79ce 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -765,7 +765,6 @@
 // module
 typedef struct _mp_obj_module_t {
     mp_obj_base_t base;
-    qstr name;
     mp_obj_dict_t *globals;
 } mp_obj_module_t;
 mp_obj_dict_t *mp_obj_module_get_globals(mp_obj_t self_in);
diff --git a/py/objmodule.c b/py/objmodule.c
index dc2ce78..9b06e3b 100644
--- a/py/objmodule.c
+++ b/py/objmodule.c
@@ -37,17 +37,23 @@
     (void)kind;
     mp_obj_module_t *self = MP_OBJ_TO_PTR(self_in);
 
+    const char *module_name = "";
+    mp_map_elem_t *elem = mp_map_lookup(&self->globals->map, MP_OBJ_NEW_QSTR(MP_QSTR___name__), MP_MAP_LOOKUP);
+    if (elem != NULL) {
+        module_name = mp_obj_str_get_str(elem->value);
+    }
+
 #if MICROPY_PY___FILE__
     // If we store __file__ to imported modules then try to lookup this
     // symbol to give more information about the module.
-    mp_map_elem_t *elem = mp_map_lookup(&self->globals->map, MP_OBJ_NEW_QSTR(MP_QSTR___file__), MP_MAP_LOOKUP);
+    elem = mp_map_lookup(&self->globals->map, MP_OBJ_NEW_QSTR(MP_QSTR___file__), MP_MAP_LOOKUP);
     if (elem != NULL) {
-        mp_printf(print, "<module '%q' from '%s'>", self->name, mp_obj_str_get_str(elem->value));
+        mp_printf(print, "<module '%s' from '%s'>", module_name, mp_obj_str_get_str(elem->value));
         return;
     }
 #endif
 
-    mp_printf(print, "<module '%q'>", self->name);
+    mp_printf(print, "<module '%s'>", module_name);
 }
 
 STATIC void module_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) {
@@ -106,7 +112,6 @@
     // create new module object
     mp_obj_module_t *o = m_new_obj(mp_obj_module_t);
     o->base.type = &mp_type_module;
-    o->name = module_name;
     o->globals = MP_OBJ_TO_PTR(mp_obj_new_dict(MICROPY_MODULE_DICT_SIZE));
 
     // store __name__ entry in the module
diff --git a/py/runtime.c b/py/runtime.c
index 48e815f..c3e187d 100644
--- a/py/runtime.c
+++ b/py/runtime.c
@@ -55,7 +55,6 @@
 
 const mp_obj_module_t mp_module___main__ = {
     .base = { &mp_type_module },
-    .name = MP_QSTR___main__,
     .globals = (mp_obj_dict_t*)&MP_STATE_VM(dict_main),
 };
 
diff --git a/stmhal/modmachine.c b/stmhal/modmachine.c
index ca17eff..c5f3314 100644
--- a/stmhal/modmachine.c
+++ b/stmhal/modmachine.c
@@ -559,7 +559,6 @@
 
 const mp_obj_module_t machine_module = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_umachine,
     .globals = (mp_obj_dict_t*)&machine_module_globals,
 };
 
diff --git a/stmhal/modnetwork.c b/stmhal/modnetwork.c
index 4425461..1ea224c 100644
--- a/stmhal/modnetwork.c
+++ b/stmhal/modnetwork.c
@@ -86,6 +86,5 @@
 
 const mp_obj_module_t mp_module_network = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_network,
     .globals = (mp_obj_dict_t*)&mp_module_network_globals,
 };
diff --git a/stmhal/modpyb.c b/stmhal/modpyb.c
index 209d0fb..17c3411 100644
--- a/stmhal/modpyb.c
+++ b/stmhal/modpyb.c
@@ -229,6 +229,5 @@
 
 const mp_obj_module_t pyb_module = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_pyb,
     .globals = (mp_obj_dict_t*)&pyb_module_globals,
 };
diff --git a/stmhal/modstm.c b/stmhal/modstm.c
index 005cd82..76c8eb1 100644
--- a/stmhal/modstm.c
+++ b/stmhal/modstm.c
@@ -51,6 +51,5 @@
 
 const mp_obj_module_t stm_module = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_stm,
     .globals = (mp_obj_dict_t*)&stm_module_globals,
 };
diff --git a/stmhal/moduos.c b/stmhal/moduos.c
index 52d0a58..0a369ef 100644
--- a/stmhal/moduos.c
+++ b/stmhal/moduos.c
@@ -407,6 +407,5 @@
 
 const mp_obj_module_t mp_module_uos = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_uos,
     .globals = (mp_obj_dict_t*)&os_module_globals,
 };
diff --git a/stmhal/moduselect.c b/stmhal/moduselect.c
index 92e77e6..2dcac7f 100644
--- a/stmhal/moduselect.c
+++ b/stmhal/moduselect.c
@@ -307,6 +307,5 @@
 
 const mp_obj_module_t mp_module_uselect = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_uselect,
     .globals = (mp_obj_dict_t*)&mp_module_select_globals,
 };
diff --git a/stmhal/modusocket.c b/stmhal/modusocket.c
index c0e30ce..36f149c 100644
--- a/stmhal/modusocket.c
+++ b/stmhal/modusocket.c
@@ -444,6 +444,5 @@
 
 const mp_obj_module_t mp_module_usocket = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_usocket,
     .globals = (mp_obj_dict_t*)&mp_module_usocket_globals,
 };
diff --git a/stmhal/modutime.c b/stmhal/modutime.c
index 8502e0f..60c92d6 100644
--- a/stmhal/modutime.c
+++ b/stmhal/modutime.c
@@ -213,6 +213,5 @@
 
 const mp_obj_module_t mp_module_utime = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_utime,
     .globals = (mp_obj_dict_t*)&time_module_globals,
 };
diff --git a/teensy/modpyb.c b/teensy/modpyb.c
index aa62f78..0eb2a7b 100644
--- a/teensy/modpyb.c
+++ b/teensy/modpyb.c
@@ -354,6 +354,5 @@
 
 const mp_obj_module_t pyb_module = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_pyb,
     .globals = (mp_obj_dict_t*)&pyb_module_globals,
 };
diff --git a/unix/modffi.c b/unix/modffi.c
index ba7141d..71c6b57 100644
--- a/unix/modffi.c
+++ b/unix/modffi.c
@@ -499,6 +499,5 @@
 
 const mp_obj_module_t mp_module_ffi = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_ffi,
     .globals = (mp_obj_dict_t*)&mp_module_ffi_globals,
 };
diff --git a/unix/modjni.c b/unix/modjni.c
index c06e68e..b54da8b 100644
--- a/unix/modjni.c
+++ b/unix/modjni.c
@@ -718,6 +718,5 @@
 
 const mp_obj_module_t mp_module_jni = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_jni,
     .globals = (mp_obj_dict_t*)&mp_module_jni_globals,
 };
diff --git a/unix/modmachine.c b/unix/modmachine.c
index 166d477..1b62b68 100644
--- a/unix/modmachine.c
+++ b/unix/modmachine.c
@@ -91,7 +91,6 @@
 
 const mp_obj_module_t mp_module_machine = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_umachine,
     .globals = (mp_obj_dict_t*)&machine_module_globals,
 };
 
diff --git a/unix/modos.c b/unix/modos.c
index 0e699ec..833d69b 100644
--- a/unix/modos.c
+++ b/unix/modos.c
@@ -253,6 +253,5 @@
 
 const mp_obj_module_t mp_module_os = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_uos,
     .globals = (mp_obj_dict_t*)&mp_module_os_globals,
 };
diff --git a/unix/modsocket.c b/unix/modsocket.c
index 56bab34..bc1531c 100644
--- a/unix/modsocket.c
+++ b/unix/modsocket.c
@@ -586,6 +586,5 @@
 
 const mp_obj_module_t mp_module_socket = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_usocket,
     .globals = (mp_obj_dict_t*)&mp_module_socket_globals,
 };
diff --git a/unix/modtermios.c b/unix/modtermios.c
index 38be729..20f824a 100644
--- a/unix/modtermios.c
+++ b/unix/modtermios.c
@@ -151,6 +151,5 @@
 
 const mp_obj_module_t mp_module_termios = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_termios,
     .globals = (mp_obj_dict_t*)&mp_module_termios_globals,
 };
diff --git a/unix/modtime.c b/unix/modtime.c
index 6843238..8d6d9f4 100644
--- a/unix/modtime.c
+++ b/unix/modtime.c
@@ -198,7 +198,6 @@
 
 const mp_obj_module_t mp_module_time = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_utime,
     .globals = (mp_obj_dict_t*)&mp_module_time_globals,
 };
 
diff --git a/unix/moduselect.c b/unix/moduselect.c
index e670c38..ae603b3 100644
--- a/unix/moduselect.c
+++ b/unix/moduselect.c
@@ -235,7 +235,6 @@
 
 const mp_obj_module_t mp_module_uselect = {
     .base = { &mp_type_module },
-    .name = MP_QSTR_uselect,
     .globals = (mp_obj_dict_t*)&mp_module_select_globals,
 };