Changeset 5b0cf63 in mainline for kernel


Ignore:
Timestamp:
2018-01-25T13:42:08Z (8 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
Files:
25 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/include/arch/interrupt.h

    rc832ab15 r5b0cf63  
    8383#define VECTOR_SMP_CALL_IPI       (IVT_FREEBASE + 3)
    8484
    85 extern void (* disable_irqs_function)(uint16_t);
    86 extern void (* enable_irqs_function)(uint16_t);
    87 extern void (* eoi_function)(void);
     85extern void (*disable_irqs_function)(uint16_t);
     86extern void (*enable_irqs_function)(uint16_t);
     87extern void (*eoi_function)(void);
    8888extern const char *irqs_info;
    8989
  • kernel/arch/arm32/include/arch/elf.h

    rc832ab15 r5b0cf63  
    4040
    4141#ifdef __BE__
    42         #define ELF_DATA_ENCODING  ELFDATA2MSB
     42#define ELF_DATA_ENCODING  ELFDATA2MSB
    4343#else
    44         #define ELF_DATA_ENCODING  ELFDATA2LSB
     44#define ELF_DATA_ENCODING  ELFDATA2LSB
    4545#endif
    4646
  • kernel/arch/arm32/include/arch/exception.h

    rc832ab15 r5b0cf63  
    4545
    4646#ifdef HIGH_EXCEPTION_VECTORS
    47         #define EXC_BASE_ADDRESS  0xffff0000
     47#define EXC_BASE_ADDRESS  0xffff0000
    4848#else
    49         #define EXC_BASE_ADDRESS  0x0
     49#define EXC_BASE_ADDRESS  0x0
    5050#endif
    5151
  • kernel/arch/arm32/include/arch/mach/integratorcp/integratorcp.h

    rc832ab15 r5b0cf63  
    7777
    7878typedef struct {
    79         uintptr_t uart;
    80         uintptr_t kbd_ctrl;
    81         uintptr_t kbd_stat;
    82         uintptr_t kbd_data;
    83         uintptr_t kbd_intstat;
    84         uintptr_t rtc;
    85         uintptr_t rtc1_load;
    86         uintptr_t rtc1_read;
    87         uintptr_t rtc1_ctl;
    88         uintptr_t rtc1_intrclr;
    89         uintptr_t rtc1_intrstat;
    90         uintptr_t rtc1_bgload;
    91         uintptr_t irqc;
    92         uintptr_t irqc_mask;
    93         uintptr_t irqc_unmask;
    94         uintptr_t vga;
    95         uintptr_t cmcr;
    96         uintptr_t sdramcr;
     79        uintptr_t uart;
     80        uintptr_t kbd_ctrl;
     81        uintptr_t kbd_stat;
     82        uintptr_t kbd_data;
     83        uintptr_t kbd_intstat;
     84        uintptr_t rtc;
     85        uintptr_t rtc1_load;
     86        uintptr_t rtc1_read;
     87        uintptr_t rtc1_ctl;
     88        uintptr_t rtc1_intrclr;
     89        uintptr_t rtc1_intrstat;
     90        uintptr_t rtc1_bgload;
     91        uintptr_t irqc;
     92        uintptr_t irqc_mask;
     93        uintptr_t irqc_unmask;
     94        uintptr_t vga;
     95        uintptr_t cmcr;
     96        uintptr_t sdramcr;
    9797} icp_hw_map_t;
    9898
  • kernel/arch/arm32/include/arch/machine_func.h

    rc832ab15 r5b0cf63  
    108108extern size_t machine_get_irq_count(void);
    109109
    110 extern const char * machine_get_platform_name(void);
     110extern const char *machine_get_platform_name(void);
    111111
    112112#endif
  • kernel/arch/arm32/include/arch/types.h

    rc832ab15 r5b0cf63  
    3838
    3939#ifndef DOXYGEN
    40         #define ATTRIBUTE_PACKED __attribute__((packed))
     40#define ATTRIBUTE_PACKED __attribute__((packed))
    4141#else
    42         #define ATTRIBUTE_PACKED
     42#define ATTRIBUTE_PACKED
    4343#endif
    4444
  • kernel/arch/ia32/include/arch/interrupt.h

    rc832ab15 r5b0cf63  
    8585#define VECTOR_SMP_CALL_IPI       (IVT_FREEBASE + 3)
    8686
    87 extern void (* disable_irqs_function)(uint16_t);
    88 extern void (* enable_irqs_function)(uint16_t);
    89 extern void (* eoi_function)(void);
     87extern void (*disable_irqs_function)(uint16_t);
     88extern void (*enable_irqs_function)(uint16_t);
     89extern void (*eoi_function)(void);
    9090extern const char *irqs_info;
    9191
  • kernel/arch/ia32/include/arch/smp/smp.h

    rc832ab15 r5b0cf63  
    4242struct smp_config_operations {
    4343        /** Check whether a processor is enabled. */
    44         bool (* cpu_enabled)(size_t);
     44        bool (*cpu_enabled)(size_t);
    4545       
    4646        /** Check whether a processor is BSP. */
  • kernel/arch/mips32/include/arch/elf.h

    rc832ab15 r5b0cf63  
    3939
    4040#ifdef __BE__
    41         #define ELF_DATA_ENCODING  ELFDATA2MSB
     41#define ELF_DATA_ENCODING  ELFDATA2MSB
    4242#else
    43         #define ELF_DATA_ENCODING  ELFDATA2LSB
     43#define ELF_DATA_ENCODING  ELFDATA2LSB
    4444#endif
    4545
  • kernel/arch/sparc64/include/arch/drivers/pci.h

    rc832ab15 r5b0cf63  
    5252
    5353struct pci_operations {
    54         void (* enable_interrupt)(pci_t *, int);
    55         void (* clear_interrupt)(pci_t *, int);
     54        void (*enable_interrupt)(pci_t *, int);
     55        void (*clear_interrupt)(pci_t *, int);
    5656};
    5757
  • kernel/arch/sparc64/include/arch/mm/cache_spec.h

    rc832ab15 r5b0cf63  
    4747
    4848#if defined (US)
    49         #define DCACHE_SIZE  (16 * 1024)
     49#define DCACHE_SIZE  (16 * 1024)
    5050#elif defined (US3)
    51         #define DCACHE_SIZE  (64 * 1024)
     51#define DCACHE_SIZE  (64 * 1024)
    5252#endif
    5353
  • kernel/arch/sparc64/include/arch/sun4v/md.h

    rc832ab15 r5b0cf63  
    5454const char *md_get_node_name(md_node_t node);
    5555bool md_get_integer_property(md_node_t node, const char *key,
    56         uint64_t *result);
     56    uint64_t *result);
    5757bool md_get_string_property(md_node_t node, const char *key,
    58         const char **result);
     58    const char **result);
    5959bool md_next_node(md_node_t *node, const char *name);
    6060void md_init(void);
  • kernel/doc/doxygroups.h

    rc832ab15 r5b0cf63  
    117117         * @ingroup mm
    118118         * @endcond
    119          */     
     119         */
    120120       
    121121        /**
     
    193193         * @ingroup ddi
    194194         * @endcond
    195          */     
     195         */
    196196
    197197        /**
     
    257257         * @ingroup debug
    258258         * @endcond
    259          */     
     259         */
    260260
    261261        /**
     
    321321         * @ingroup interrupt
    322322         * @endcond
    323          */     
     323         */
    324324
    325325        /**
     
    389389         * @ingroup others
    390390         * @endcond
    391          */     
     391         */
    392392
    393393        /**
  • kernel/genarch/include/genarch/ofw/ofw_tree.h

    rc832ab15 r5b0cf63  
    6565
    6666/* Walker for visiting OpenFirmware device tree nodes. */
    67 typedef bool (* ofw_tree_walker_t)(ofw_tree_node_t *, void *);
     67typedef bool (*ofw_tree_walker_t)(ofw_tree_node_t *, void *);
    6868
    6969extern void ofw_tree_init(ofw_tree_node_t *);
  • 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.