Ignore:
Timestamp:
2018-03-02T20:10:49Z (6 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/genarch/src/multiboot/multiboot2.c

    r3061bc1 ra35b458  
    5656                multiboot_extract_argument(init.tasks[init.cnt].arguments,
    5757                    CONFIG_TASK_ARGUMENTS_BUFLEN, module->string);
    58                
     58
    5959                init.cnt++;
    6060        }
     
    6666            ((uintptr_t) memmap + sizeof(*memmap));
    6767        uint32_t pos = sizeof(*memmap);
    68        
     68
    6969        while ((pos < length) && (e820counter < MEMMAP_E820_MAX_RECORDS)) {
    7070                e820table[e820counter].base_address = entry->base_address;
    7171                e820table[e820counter].size = entry->size;
    7272                e820table[e820counter].type = entry->type;
    73                
     73
    7474                /* Compute address of next entry. */
    7575                entry = (multiboot2_memmap_entry_t *)
    7676                    ((uintptr_t) entry + memmap->entry_size);
    7777                pos += memmap->entry_size;
    78                
     78
    7979                e820counter++;
    8080        }
     
    9090                bfb_bpp = fbinfo->bpp;
    9191                bfb_scanline = fbinfo->scanline;
    92                
     92
    9393                bfb_red_pos = fbinfo->rgb.red_pos;
    9494                bfb_red_size = fbinfo->rgb.red_size;
    95                
     95
    9696                bfb_green_pos = fbinfo->rgb.green_pos;
    9797                bfb_green_size = fbinfo->rgb.green_size;
    98                
     98
    9999                bfb_blue_pos = fbinfo->rgb.blue_pos;
    100100                bfb_blue_size = fbinfo->rgb.blue_size;
     
    116116        if (signature != MULTIBOOT2_LOADER_MAGIC)
    117117                return;
    118        
     118
    119119        const multiboot2_tag_t *tag = (const multiboot2_tag_t *)
    120120            ALIGN_UP((uintptr_t) info + sizeof(*info), MULTIBOOT2_TAG_ALIGN);
    121        
     121
    122122        while (tag->type != MULTIBOOT2_TAG_TERMINATOR) {
    123123                switch (tag->type) {
     
    135135                        break;
    136136                }
    137                
     137
    138138                tag = (const multiboot2_tag_t *)
    139139                    ALIGN_UP((uintptr_t) tag + tag->size, MULTIBOOT2_TAG_ALIGN);
Note: See TracChangeset for help on using the changeset viewer.