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/arch/sparc64/src/trap/sun4u/interrupt.c

    r3061bc1 ra35b458  
    5858        if (status & (!INTR_DISPATCH_STATUS_BUSY))
    5959                panic("Interrupt Dispatch Status busy bit not set\n");
    60        
     60
    6161        uint64_t intrcv = asi_u64_read(ASI_INTR_RECEIVE, 0);
    6262#if defined (US)
     
    6565        uint64_t data0 = asi_u64_read(ASI_INTR_R, VA_INTR_R_DATA_0);
    6666#endif
    67        
     67
    6868        irq_t *irq = irq_dispatch_and_lock(data0);
    6969        if (irq) {
     
    7272                 */
    7373                irq->handler(irq);
    74                
     74
    7575                /*
    7676                 * See if there is a clear-interrupt-routine and call it.
     
    7878                if (irq->cir)
    7979                        irq->cir(irq->cir_arg, irq->inr);
    80                
     80
    8181                irq_spinlock_unlock(&irq->lock, false);
    8282        } else if (data0 > config.base) {
     
    103103#endif
    104104        }
    105        
     105
    106106        membar();
    107107        asi_u64_write(ASI_INTR_RECEIVE, 0, 0);
Note: See TracChangeset for help on using the changeset viewer.