Changeset 5b0cf63 in mainline for kernel/generic/include


Ignore:
Timestamp:
2018-01-25T13:42:08Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1ab3c4b
Parents:
c832ab15
git-author:
Jiri Svoboda <jiri@…> (2017-01-24 18:40:44)
git-committer:
Jiri Svoboda <jiri@…> (2018-01-25 13:42:08)
Message:

A round of cstyle fixing (i.e. run make ccheck-fix).

Location:
kernel/generic/include
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/adt/hash_table.h

    rc832ab15 r5b0cf63  
    8484        member_to_inst((item), type, member)
    8585
    86 extern bool hash_table_create(hash_table_t *, size_t, size_t, 
    87         hash_table_ops_t *);
     86extern bool hash_table_create(hash_table_t *, size_t, size_t,
     87    hash_table_ops_t *);
    8888extern void hash_table_destroy(hash_table_t *);
    8989
     
    9898extern size_t hash_table_remove(hash_table_t *, void *);
    9999extern void hash_table_remove_item(hash_table_t *, ht_link_t *);
    100 extern void hash_table_apply(hash_table_t *, bool (*)(ht_link_t *, void *), 
    101         void *);
     100extern void hash_table_apply(hash_table_t *, bool (*)(ht_link_t *, void *),
     101    void *);
    102102
    103103
  • kernel/generic/include/align.h

    rc832ab15 r5b0cf63  
    5858 * @param s Address or size to be checked for alignment.
    5959 * @param a Size of alignment, must be a power of 2.
    60  */ 
     60 */
    6161#define IS_ALIGNED(s, a)        (ALIGN_UP((s), (a)) == (s))
    6262
  • kernel/generic/include/arch.h

    rc832ab15 r5b0cf63  
    8080
    8181typedef struct {
    82         void (* pre_mm_init)(void);
    83         void (* post_mm_init)(void);
    84         void (* post_cpu_init)(void);
    85         void (* pre_smp_init)(void);
    86         void (* post_smp_init)(void);
     82        void (*pre_mm_init)(void);
     83        void (*post_mm_init)(void);
     84        void (*post_cpu_init)(void);
     85        void (*pre_smp_init)(void);
     86        void (*post_smp_init)(void);
    8787} arch_ops_t;
    8888
  • kernel/generic/include/gsort.h

    rc832ab15 r5b0cf63  
    3939#include <stddef.h>
    4040
    41 typedef int (* sort_cmp_t)(void *, void *, void *);
     41typedef int (*sort_cmp_t)(void *, void *, void *);
    4242
    4343extern bool gsort(void *, size_t, size_t, sort_cmp_t, void *);
  • kernel/generic/include/ipc/sysipc_ops.h

    rc832ab15 r5b0cf63  
    9090         * Invoked on:          all calls
    9191         */
    92         errno_t (* request_preprocess)(call_t *, phone_t *);
     92        errno_t (*request_preprocess)(call_t *, phone_t *);
    9393
    9494        /**
     
    101101         *                      _ipc_answer_free_call()
    102102         * Invoked on:          all forgotten calls
    103          */     
    104         errno_t (* request_forget)(call_t *);
     103         */
     104        errno_t (*request_forget)(call_t *);
    105105
    106106        /**
     
    111111         * Races with:          request_forget()
    112112         * Invoked on:          all calls delivered to the callee
    113          */     
    114         int (* request_process)(call_t *, answerbox_t *);
     113         */
     114        int (*request_process)(call_t *, answerbox_t *);
    115115
    116116        /**
     
    123123         * Invoked on:          all forgotten calls
    124124         */
    125         errno_t (* answer_cleanup)(call_t *, ipc_data_t *);
     125        errno_t (*answer_cleanup)(call_t *, ipc_data_t *);
    126126
    127127        /**
     
    134134         * Invoked on:          all answered calls
    135135         */
    136         errno_t (* answer_preprocess)(call_t *, ipc_data_t *);
     136        errno_t (*answer_preprocess)(call_t *, ipc_data_t *);
    137137
    138138        /**
     
    144144         * Invoked on:          all answered calls
    145145         */
    146         errno_t (* answer_process)(call_t *);
     146        errno_t (*answer_process)(call_t *);
    147147} sysipc_ops_t;
    148148
  • kernel/generic/include/mm/page.h

    rc832ab15 r5b0cf63  
    4646/** Operations to manipulate page mappings. */
    4747typedef struct {
    48         void (* mapping_insert)(as_t *, uintptr_t, uintptr_t, unsigned int);
    49         void (* mapping_remove)(as_t *, uintptr_t);
    50         bool (* mapping_find)(as_t *, uintptr_t, bool, pte_t *);
    51         void (* mapping_update)(as_t *, uintptr_t, bool, pte_t *);
    52         void (* mapping_make_global)(uintptr_t, size_t);
     48        void (*mapping_insert)(as_t *, uintptr_t, uintptr_t, unsigned int);
     49        void (*mapping_remove)(as_t *, uintptr_t);
     50        bool (*mapping_find)(as_t *, uintptr_t, bool, pte_t *);
     51        void (*mapping_update)(as_t *, uintptr_t, bool, pte_t *);
     52        void (*mapping_make_global)(uintptr_t, size_t);
    5353} page_mapping_operations_t;
    5454
  • kernel/generic/include/stacktrace.h

    rc832ab15 r5b0cf63  
    4949
    5050typedef struct {
    51         bool (* stack_trace_context_validate)(stack_trace_context_t *);
    52         bool (* frame_pointer_prev)(stack_trace_context_t *, uintptr_t *);
    53         bool (* return_address_get)(stack_trace_context_t *, uintptr_t *);
    54         bool (* symbol_resolve)(uintptr_t, const char **, uintptr_t *);
     51        bool (*stack_trace_context_validate)(stack_trace_context_t *);
     52        bool (*frame_pointer_prev)(stack_trace_context_t *, uintptr_t *);
     53        bool (*return_address_get)(stack_trace_context_t *, uintptr_t *);
     54        bool (*symbol_resolve)(uintptr_t, const char **, uintptr_t *);
    5555} stack_trace_ops_t;
    5656
  • kernel/generic/include/symtab.h

    rc832ab15 r5b0cf63  
    4040
    4141extern void symtab_print_search(const char *);
    42 extern const char* symtab_hints_enum(const char *, const char **, void **);
     42extern const char *symtab_hints_enum(const char *, const char **, void **);
    4343
    4444#endif
  • kernel/generic/include/synch/condvar.h

    rc832ab15 r5b0cf63  
    6565    int flags);
    6666extern errno_t _condvar_wait_timeout_spinlock_impl(condvar_t *cv, spinlock_t *lock,
    67         uint32_t usec, int flags);
     67    uint32_t usec, int flags);
    6868extern errno_t _condvar_wait_timeout_irq_spinlock(condvar_t *cv,
    69         irq_spinlock_t *irq_lock, uint32_t usec, int flags);
     69    irq_spinlock_t *irq_lock, uint32_t usec, int flags);
    7070
    7171
  • kernel/generic/include/synch/workqueue.h

    rc832ab15 r5b0cf63  
    6464extern bool workq_global_enqueue(work_t *, work_func_t);
    6565
    66 extern struct work_queue * workq_create(const char *);
     66extern struct work_queue *workq_create(const char *);
    6767extern void workq_destroy(struct work_queue *);
    6868extern bool workq_init(struct work_queue *, const char *);
  • kernel/generic/include/typedefs.h

    rc832ab15 r5b0cf63  
    4343} atomic_t;
    4444
    45 typedef void (* function)(void);
     45typedef void (*function)(void);
    4646
    4747typedef uint32_t container_id_t;
Note: See TracChangeset for help on using the changeset viewer.