Changeset a35b458 in mainline for kernel/generic/src/ipc/ops


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.

Location:
kernel/generic/src/ipc/ops
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ipc/ops/conctmeto.c

    r3061bc1 ra35b458  
    108108                IPC_SET_ARG5(answer->data, phone_handle);
    109109        }
    110        
     110
    111111        return EOK;
    112112}
  • kernel/generic/src/ipc/ops/dataread.c

    r3061bc1 ra35b458  
    7474                         */
    7575                        IPC_SET_ARG1(answer->data, dst);
    76                                
     76
    7777                        answer->buffer = malloc(size, 0);
    7878                        errno_t rc = copy_from_uspace(answer->buffer,
  • kernel/generic/src/ipc/ops/datawrite.c

    r3061bc1 ra35b458  
    6565                return rc;
    6666        }
    67                
     67
    6868        return EOK;
    6969}
     
    7878                size_t size = (size_t)IPC_GET_ARG2(answer->data);
    7979                size_t max_size = (size_t)IPC_GET_ARG2(*olddata);
    80                        
     80
    8181                if (size <= max_size) {
    8282                        errno_t rc = copy_to_uspace((void *) dst,
  • kernel/generic/src/ipc/ops/pagein.c

    r3061bc1 ra35b458  
    9292                page_table_unlock(AS, true);
    9393        }
    94        
     94
    9595        return EOK;
    9696}
  • kernel/generic/src/ipc/ops/sharein.c

    r3061bc1 ra35b458  
    4747                as_t *as = answer->sender->as;
    4848                irq_spinlock_unlock(&answer->sender->lock, true);
    49                        
     49
    5050                uintptr_t dst_base = (uintptr_t) -1;
    5151                errno_t rc = as_area_share(AS, IPC_GET_ARG1(answer->data),
     
    5555                IPC_SET_RETVAL(answer->data, rc);
    5656        }
    57        
     57
    5858        return EOK;
    5959}
  • kernel/generic/src/ipc/ops/shareout.c

    r3061bc1 ra35b458  
    6868                    IPC_GET_ARG2(*olddata), AS, IPC_GET_ARG3(*olddata),
    6969                    &dst_base, IPC_GET_ARG1(answer->data));
    70                        
     70
    7171                if (rc == EOK) {
    7272                        rc = copy_to_uspace((void *) IPC_GET_ARG2(answer->data),
    7373                            &dst_base, sizeof(dst_base));
    7474                }
    75                        
     75
    7676                IPC_SET_RETVAL(answer->data, rc);
    7777        }
Note: See TracChangeset for help on using the changeset viewer.