Changeset d1582b50 in mainline for kernel


Ignore:
Timestamp:
2020-12-14T20:41:53Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
02fe42e
Parents:
1382446
git-author:
Jiri Svoboda <jiri@…> (2020-12-14 20:33:54)
git-committer:
Jiri Svoboda <jiri@…> (2020-12-14 20:41:53)
Message:

Fix spacing in single-line comments using latest ccheck

This found incorrectly formatted section comments (with blocks of
asterisks or dashes). I strongly believe against using section comments
but I am not simply removing them since that would probably be
controversial.

Location:
kernel
Files:
22 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/include/arch/cp15.h

    r1382446 rd1582b50  
    248248        SCTLR_WRITE_XN_EN_FLAG       = 1 << 19, /* Only if virt. supported */
    249249        SCTLR_USPCE_WRITE_XN_EN_FLAG = 1 << 20, /* Only if virt. supported */
    250         SCTLR_FAST_IRQ_EN_FLAG       = 1 << 21, /* Disable impl. specific feat*/
     250        SCTLR_FAST_IRQ_EN_FLAG       = 1 << 21, /* Disable impl. specific feat */
    251251        SCTLR_UNALIGNED_EN_FLAG      = 1 << 22, /* Must be 1 on armv7 */
    252252        SCTLR_EXTENDED_PT_EN_FLAG    = 1 << 23,
     
    584584CONTROL_REG_GEN_WRITE(PMCCNTR, c9, 0, c13, 0);
    585585
    586 /*c10 has tons of reserved too */
     586/* c10 has tons of reserved too */
    587587CONTROL_REG_GEN_READ(PRRR, c10, 0, c2, 0); /* no PAE */
    588588CONTROL_REG_GEN_WRITE(PRRR, c10, 0, c2, 0); /* no PAE */
  • kernel/arch/arm32/include/arch/mm/page_armv6.h

    r1382446 rd1582b50  
    284284        p->non_global = !(flags & PAGE_GLOBAL);
    285285
    286         /* default access permission: kernel only*/
     286        /* default access permission: kernel only */
    287287        p->access_permission_0 = PTE_AP0_USER_NO_KERNEL_FULL;
    288288
  • kernel/arch/arm32/src/fpu_context.c

    r1382446 rd1582b50  
    186186        uint32_t mvfr0;
    187187
    188         /* Enable coprocessor access*/
     188        /* Enable coprocessor access */
    189189        fpu_enable_coprocessor_access();
    190190
  • kernel/arch/arm32/src/mach/beagleboardxm/beagleboardxm.c

    r1382446 rd1582b50  
    158158                spinlock_unlock(&irq->lock);
    159159        } else {
    160                 /* Spurious interrupt.*/
     160                /* Spurious interrupt. */
    161161                printf("cpu%d: spurious interrupt (inum=%d)\n",
    162162                    CPU->id, inum);
  • kernel/arch/arm32/src/mach/gta02/gta02.c

    r1382446 rd1582b50  
    148148                spinlock_unlock(&irq->lock);
    149149        } else {
    150                 /* Spurious interrupt.*/
     150                /* Spurious interrupt. */
    151151                log(LF_ARCH, LVL_DEBUG, "cpu%d: spurious interrupt (inum=%d)",
    152152                    CPU->id, inum);
  • kernel/arch/arm32/src/mach/integratorcp/integratorcp.c

    r1382446 rd1582b50  
    270270                                spinlock_unlock(&irq->lock);
    271271                        } else {
    272                                 /* Spurious interrupt.*/
     272                                /* Spurious interrupt. */
    273273                                log(LF_ARCH, LVL_DEBUG,
    274274                                    "cpu%d: spurious interrupt (inum=%d)",
  • kernel/arch/arm32/src/mach/raspberrypi/raspberrypi.c

    r1382446 rd1582b50  
    161161                spinlock_unlock(&irq->lock);
    162162        } else {
    163                 /* Spurious interrupt.*/
     163                /* Spurious interrupt. */
    164164                printf("cpu%d: spurious interrupt (inum=%d)\n", CPU->id, inum);
    165165                bcm2835_irc_disable(raspi.irc, inum);
  • kernel/arch/arm32/src/mm/page_fault.c

    r1382446 rd1582b50  
    161161        } ls_inst[] = {
    162162                /* Store word/byte */
    163                 { 0x0e100000, 0x04000000, PF_ACCESS_WRITE }, /*STR(B) imm*/
    164                 { 0x0e100010, 0x06000000, PF_ACCESS_WRITE }, /*STR(B) reg*/
     163                { 0x0e100000, 0x04000000, PF_ACCESS_WRITE }, /* STR(B) imm */
     164                { 0x0e100010, 0x06000000, PF_ACCESS_WRITE }, /* STR(B) reg */
    165165                /* Load word/byte */
    166                 { 0x0e100000, 0x04100000, PF_ACCESS_READ }, /*LDR(B) imm*/
    167                 { 0x0e100010, 0x06100000, PF_ACCESS_READ }, /*LDR(B) reg*/
     166                { 0x0e100000, 0x04100000, PF_ACCESS_READ }, /* LDR(B) imm */
     167                { 0x0e100010, 0x06100000, PF_ACCESS_READ }, /* LDR(B) reg */
    168168                /* Store half-word/dual  A5.2.8 */
    169                 { 0x0e1000b0, 0x000000b0, PF_ACCESS_WRITE }, /*STRH imm reg*/
     169                { 0x0e1000b0, 0x000000b0, PF_ACCESS_WRITE }, /* STRH imm reg */
    170170                /* Load half-word/dual A5.2.8 */
    171                 { 0x0e0000f0, 0x000000d0, PF_ACCESS_READ }, /*LDRH imm reg*/
    172                 { 0x0e1000b0, 0x001000b0, PF_ACCESS_READ }, /*LDRH imm reg*/
     171                { 0x0e0000f0, 0x000000d0, PF_ACCESS_READ }, /* LDRH imm reg */
     172                { 0x0e1000b0, 0x001000b0, PF_ACCESS_READ }, /* LDRH imm reg */
    173173                /* Block data transfer, Store */
    174174                { 0x0e100000, 0x08000000, PF_ACCESS_WRITE }, /* STM variants */
  • kernel/arch/arm64/src/mach/virt/virt.c

    r1382446 rd1582b50  
    9595                irq_spinlock_unlock(&irq->lock, false);
    9696        } else {
    97                 /* Spurious interrupt.*/
     97                /* Spurious interrupt. */
    9898                printf("cpu%d: spurious interrupt (inum=%u)\n", CPU->id, inum);
    9999        }
  • kernel/arch/sparc64/include/arch/register.h

    r1382446 rd1582b50  
    6969                unsigned priv : 1;      /**< Privileged Mode. */
    7070                unsigned ie : 1;        /**< Interrupt Enable. */
    71                 unsigned ag : 1;        /**< Alternate Globals*/
     71                unsigned ag : 1;        /**< Alternate Globals */
    7272        } __attribute__((packed));
    7373};
  • kernel/arch/sparc64/src/smp/sun4v/smp.c

    r1382446 rd1582b50  
    183183        md_node_t node = md_get_root();
    184184
    185         /* walk through all the CPU nodes in the MD*/
     185        /* walk through all the CPU nodes in the MD */
    186186        while (md_next_node(&node, "cpu")) {
    187187
  • kernel/genarch/include/genarch/drivers/amdm37x/gpt.h

    r1382446 rd1582b50  
    178178        const ioport32_t tcar2;
    179179
    180         /* GPT1,2,10 only (used for 1ms time period generation)*/
     180        /* GPT1,2,10 only (used for 1ms time period generation) */
    181181
    182182        /** Positive increment register */
  • kernel/genarch/include/genarch/drivers/omap/uart_regs.h

    r1382446 rd1582b50  
    353353#define OMAP_UART_SSR_DMA_COUNTER_RESET_FLAG   (1 << 2)
    354354
    355         /** BOF Length register (IrDA only)*/
     355        /** BOF Length register (IrDA only) */
    356356        ioport32_t eblr;
    357357#define OMAP_IRDA_EBLR_DISABLED   (0x00)
  • kernel/genarch/include/genarch/drivers/pl011/pl011.h

    r1382446 rd1582b50  
    5454
    5555        union {
    56                 /* Same values that are in upper bits of data register*/
     56                /* Same values that are in upper bits of data register */
    5757                const ioport32_t status;
    5858#define PL011_UART_STATUS_FE_FLAG   (1 << 0)
  • kernel/genarch/src/drivers/i8042/i8042.c

    r1382446 rd1582b50  
    7777}
    7878
    79 /**< Clear input buffer. */
     79/** Clear input buffer. */
    8080static void i8042_clear_buffer(i8042_t *dev)
    8181{
  • kernel/genarch/src/kbrd/scanc_at.c

    r1382446 rd1582b50  
    106106        U_SPECIAL, /* 0x64 */
    107107        U_SPECIAL, /* 0x65 */
    108         '\b', /* 0x66  - backspace*/
     108        '\b', /* 0x66  - backspace */
    109109        U_SPECIAL, /* 0x67 */
    110110        U_SPECIAL, /* 0x68 */
     
    117117        U_SPECIAL, /* 0x6f */
    118118        U_SPECIAL, /* 0x70 */
    119         U_DELETE, /* 0x71 - Del*/
     119        U_DELETE, /* 0x71 - Del */
    120120        U_DOWN_ARROW, /* 0x72 Down Arrow */
    121121        U_SPECIAL, /* 0x73 */
     
    123123        U_UP_ARROW, /* 0x75  Up Arrow */
    124124        U_ESCAPE, /* 0x76 Esc */
    125         U_SPECIAL, /* 0x77 - NumLock*/
    126         U_SPECIAL, /* 0x78  F11*/
     125        U_SPECIAL, /* 0x77 - NumLock */
     126        U_SPECIAL, /* 0x78  F11 */
    127127        U_SPECIAL, /* 0x79 */
    128128        U_PAGE_DOWN, /* 0x7a */
     
    202202        U_SPECIAL, /* 0x64 */
    203203        U_SPECIAL, /* 0x65 */
    204         '\b', /* 0x66  - backspace*/
     204        '\b', /* 0x66  - backspace */
    205205        U_SPECIAL, /* 0x67 */
    206206        U_SPECIAL, /* 0x68 */
     
    213213        U_SPECIAL, /* 0x6f */
    214214        U_SPECIAL, /* 0x70 */
    215         U_DELETE, /* 0x71 - Del*/
     215        U_DELETE, /* 0x71 - Del */
    216216        U_DOWN_ARROW, /* 0x72 Down Arrow */
    217217        U_SPECIAL, /* 0x73 */
     
    219219        U_UP_ARROW, /* 0x75  Up Arrow */
    220220        U_ESCAPE, /* 0x76 Esc */
    221         U_SPECIAL, /* 0x77 - NumLock*/
    222         U_SPECIAL, /* 0x78  F11*/
     221        U_SPECIAL, /* 0x77 - NumLock */
     222        U_SPECIAL, /* 0x78  F11 */
    223223        U_SPECIAL, /* 0x79 */
    224224        U_PAGE_DOWN, /* 0x7a */
  • kernel/generic/include/cpu/cpu_mask.h

    r1382446 rd1582b50  
    5959        cpu_mask_t *(cpu_mask) = (cpu_mask_t*) alloca(cpu_mask_size())
    6060
    61 /** If used with DEFINE_CPU_MASK, the mask is large enough for all detected cpus.*/
     61/** If used with DEFINE_CPU_MASK, the mask is large enough for all detected cpus. */
    6262typedef struct cpu_mask {
    6363        unsigned int mask[1];
  • kernel/generic/src/adt/hash_table.c

    r1382446 rd1582b50  
    331331}
    332332
    333 /** Removes an item already present in the table. The item must be in the table.*/
     333/** Removes an item already present in the table. The item must be in the table. */
    334334void hash_table_remove_item(hash_table_t *h, ht_link_t *item)
    335335{
     
    393393}
    394394
    395 /** Allocates and initializes the desired number of buckets. True if successful.*/
     395/** Allocates and initializes the desired number of buckets. True if successful. */
    396396static bool alloc_table(size_t bucket_cnt, list_t **pbuckets)
    397397{
  • kernel/generic/src/mm/as.c

    r1382446 rd1582b50  
    20572057        /* Check if A is adjacent to the new interval */
    20582058        adj_a = (a != NULL) && (a->page + P2SZ(a->count) == page);
    2059         /* Check if the new interval is adjacent to B*/
     2059        /* Check if the new interval is adjacent to B */
    20602060        adj_b = (b != NULL) && page + P2SZ(count) == b->page;
    20612061
  • kernel/generic/src/mm/frame.c

    r1382446 rd1582b50  
    8585}
    8686
    87 /*******************/
    88 /* Zones functions */
    89 /*******************/
     87/*
     88 * Zones functions
     89 */
    9090
    9191/** Insert-sort zone into zones list.
     
    341341}
    342342
    343 /******************/
    344 /* Zone functions */
    345 /******************/
     343/*
     344 * Zone functions
     345 */
    346346
    347347/** Return frame from zone. */
     
    781781}
    782782
    783 /*******************/
    784 /* Frame functions */
    785 /*******************/
     783/*
     784 * Frame functions
     785 */
    786786
    787787/** Set parent of frame. */
  • kernel/generic/src/mm/slab.c

    r1382446 rd1582b50  
    151151#endif
    152152
    153 /**************************************/
    154 /* Slab allocation functions          */
    155 /**************************************/
     153/*
     154 * Slab allocation functions
     155 */
    156156
    157157/** Allocate frames for slab space and initialize
     
    223223}
    224224
    225 /******************/
    226 /* Slab functions */
    227 /******************/
     225/*
     226 * Slab functions
     227 */
    228228
    229229/** Return object to slab and call a destructor
     
    323323}
    324324
    325 /****************************/
    326 /* CPU-Cache slab functions */
    327 /****************************/
     325/*
     326 * CPU-Cache slab functions
     327 */
    328328
    329329/** Find a full magazine in cache, take it from list and return it
     
    531531}
    532532
    533 /************************/
    534 /* Slab cache functions */
    535 /************************/
     533/*
     534 * Slab cache functions
     535 */
    536536
    537537/** Return number of objects that fit in certain cache size
  • kernel/generic/src/udebug/udebug_ops.c

    r1382446 rd1582b50  
    123123        /* Now verify that the thread belongs to the current task. */
    124124        if (thread->task != TASK) {
    125                 /* No such thread belonging this task*/
     125                /* No such thread belonging this task */
    126126                mutex_unlock(&TASK->udebug.lock);
    127127                return ENOENT;
Note: See TracChangeset for help on using the changeset viewer.