Changeset ff381a7 in mainline for kernel/generic


Ignore:
Timestamp:
2015-11-02T20:54:19Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d8513177
Parents:
3feeab2 (diff), 5265eea4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

Location:
kernel/generic
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/adt/list.h

    r3feeab2 rff381a7  
    5353
    5454
    55 extern int list_member(const link_t *, const list_t *);
     55extern bool list_member(const link_t *, const list_t *);
    5656extern void list_splice(list_t *, link_t *);
    57 extern unsigned int list_count(const list_t *);
     57extern unsigned long list_count(const list_t *);
    5858
    5959
     
    220220 *
    221221 */
    222 NO_TRACE static inline int list_empty(const list_t *list)
     222NO_TRACE static inline bool list_empty(const list_t *list)
    223223{
    224224        return (list->head.next == &list->head);
     
    353353 *
    354354 */
    355 static inline link_t *list_nth(list_t *list, unsigned int n)
    356 {
    357         unsigned int cnt = 0;
     355static inline link_t *list_nth(list_t *list, unsigned long n)
     356{
     357        unsigned long cnt = 0;
    358358        link_t *link;
    359359       
  • kernel/generic/src/adt/list.c

    r3feeab2 rff381a7  
    5252 *
    5353 */
    54 int list_member(const link_t *link, const list_t *list)
     54bool list_member(const link_t *link, const list_t *list)
    5555{
    5656        bool found = false;
     
    9999 * @return              Number of items in the list.
    100100 */
    101 unsigned int list_count(const list_t *list)
     101unsigned long list_count(const list_t *list)
    102102{
    103         unsigned int count = 0;
     103        unsigned long count = 0;
    104104       
    105105        link_t *link = list_first(list);
  • kernel/generic/src/console/console.c

    r3feeab2 rff381a7  
    437437        }
    438438
    439         return size;
     439        return EOK;
    440440}
    441441
  • kernel/generic/src/ipc/event.c

    r3feeab2 rff381a7  
    251251 *
    252252 * @return EOK if the subscription was successful.
    253  * @return EEXISTS if the notifications of the given type are
     253 * @return EEXIST if the notifications of the given type are
    254254 *         already subscribed.
    255255 *
     
    269269                res = EOK;
    270270        } else
    271                 res = EEXISTS;
     271                res = EEXIST;
    272272       
    273273        spinlock_unlock(&event->lock);
     
    282282 *
    283283 * @return EOK if the subscription was successful.
    284  * @return EEXISTS if the notifications of the given type are
     284 * @return EEXIST if the notifications of the given type are
    285285 *         already subscribed.
    286286 *
     
    334334 * @return EOK on success.
    335335 * @return ELIMIT on unknown event type.
    336  * @return EEXISTS if the notifications of the given type are
     336 * @return EEXIST if the notifications of the given type are
    337337 *         already subscribed.
    338338 *
  • kernel/generic/src/ipc/irq.c

    r3feeab2 rff381a7  
    351351               
    352352                free(irq);
    353                 return EEXISTS;
     353                return EEXIST;
    354354        }
    355355       
Note: See TracChangeset for help on using the changeset viewer.