Changeset a35b458 in mainline for kernel/generic/include/proc/task.h


Ignore:
Timestamp:
2018-03-02T20:10:49Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f1380b7
Parents:
3061bc1
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
Message:

style: Remove trailing whitespace on _all_ lines, including empty ones, for particular file types.

Command used: tools/srepl '\s\+$' '' -- *.c *.h *.py *.sh *.s *.S *.ag

Currently, whitespace on empty lines is very inconsistent.
There are two basic choices: Either remove the whitespace, or keep empty lines
indented to the level of surrounding code. The former is AFAICT more common,
and also much easier to do automatically.

Alternatively, we could write script for automatic indentation, and use that
instead. However, if such a script exists, it's possible to use the indented
style locally, by having the editor apply relevant conversions on load/save,
without affecting remote repository. IMO, it makes more sense to adopt
the simpler rule.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/proc/task.h

    r3061bc1 ra35b458  
    7373        /** Task's linkage for the tasks_tree AVL tree. */
    7474        avltree_node_t tasks_tree_node;
    75        
     75
    7676        /** Task lock.
    7777         *
     
    8080         */
    8181        IRQ_SPINLOCK_DECLARE(lock);
    82        
     82
    8383        char name[TASK_NAME_BUFLEN];
    8484        /** List of threads contained in this task. */
     
    9090        /** Task security container. */
    9191        container_id_t container;
    92        
     92
    9393        /** Number of references (i.e. threads). */
    9494        atomic_t refcount;
    9595        /** Number of threads that haven't exited yet. */
    9696        atomic_t lifecount;
    97        
     97
    9898        /** Task permissions. */
    9999        perm_t perms;
     
    101101        /** Capabilities */
    102102        cap_info_t *cap_info;
    103        
     103
    104104        /* IPC stuff */
    105105
     
    120120        /** IPC statistics */
    121121        stats_ipc_t ipc_info;
    122        
     122
    123123#ifdef CONFIG_UDEBUG
    124124        /** Debugging stuff. */
    125125        udebug_task_t udebug;
    126        
     126
    127127        /** Kernel answerbox. */
    128128        kbox_t kb;
    129129#endif /* CONFIG_UDEBUG */
    130        
     130
    131131        /** Architecture specific task data. */
    132132        task_arch_t arch;
    133        
     133
    134134        struct futex_cache {
    135135                /** CHT mapping virtual addresses of futex variables to futex objects.*/
     
    141141                work_t destroy_work;
    142142        } *futexes;
    143        
     143
    144144        /** Accumulated accounting. */
    145145        uint64_t ucycles;
Note: See TracChangeset for help on using the changeset viewer.