def write_kobj_size_output(fp):
    fp.write('/* Non device/stack objects */\n')
    for (kobj, obj_info) in kobjects.items():
        (dep, _) = obj_info
        if (kobj in {'device', STACK_TYPE}):
            continue
        if dep:
            fp.write(('#ifdef %s\n' % dep))
        fp.write(('case %s: ret = sizeof(struct %s); break;\n' % (kobject_to_enum(kobj), kobj)))
        if dep:
            fp.write('#endif\n')
def write_kobj_size_output(fp):
    fp.write('/* Non device/stack objects */\n')
    for (kobj, obj_info) in kobjects.items():
        (dep, _) = obj_info
        if (kobj in {'device', STACK_TYPE}):
            continue
        if dep:
            fp.write(('#ifdef %s\n' % dep))
        fp.write(('case %s: ret = sizeof(struct %s); break;\n' % (kobject_to_enum(kobj), kobj)))
        if dep:
            fp.write('#endif\n')