Changeset ad211c8 in mainline for kernel/generic/include/macros.h


Ignore:
Timestamp:
2019-12-10T13:49:37Z (4 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a6302ae
Parents:
d2e0af47
Message:

remove unnecessary SYSCALL_END

The size of the syscall table is computed statically using the
sizeof_array() macro. Also there is no reason to make the syscall table
a global symbol.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/macros.h

    rd2e0af47 rad211c8  
    164164            ((void *) &(((type *) 0)->member_identif))))
    165165
     166/** Get the size of an array in array elements
     167 *
     168 * @param array Array to determine the size of
     169 *
     170 * @return Size of array in array elements
     171 *
     172 */
     173#define sizeof_array(array) \
     174        (sizeof(array) / sizeof((array)[0]))
     175
    166176#endif
    167177
Note: See TracChangeset for help on using the changeset viewer.