Changeset 6c441cf8 in mainline for kernel/test


Ignore:
Timestamp:
2008-02-27T11:49:17Z (17 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
56976a17
Parents:
fdb7795
Message:

code cleanup (mostly signed/unsigned)
allow extra compiler warnings

Location:
kernel/test
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/avltree/avltree1.c

    rfdb7795 r6c441cf8  
    247247static void test_tree_delmin(avltree_t *tree, count_t node_count, bool quiet)
    248248{
    249         int i = 0;
     249        unsigned int i = 0;
    250250       
    251251        if (!quiet)
  • kernel/test/fpu/fpu1.c

    rfdb7795 r6c441cf8  
    216216        waitq_wakeup(&can_start, WAKEUP_ALL);
    217217       
    218         while (atomic_get(&threads_ok) != total) {
     218        while (atomic_get(&threads_ok) != (long) total) {
    219219                if (!quiet)
    220220                        printf("Threads left: %d\n", total - atomic_get(&threads_ok));
  • kernel/test/fpu/mips2.c

    rfdb7795 r6c441cf8  
    152152        waitq_wakeup(&can_start, WAKEUP_ALL);
    153153       
    154         while (atomic_get(&threads_ok) != total) {
     154        while (atomic_get(&threads_ok) != (long) total) {
    155155                if (!quiet)
    156156                        printf("Threads left: %d\n", total - atomic_get(&threads_ok));
  • kernel/test/fpu/sse1.c

    rfdb7795 r6c441cf8  
    152152        waitq_wakeup(&can_start, WAKEUP_ALL);
    153153       
    154         while (atomic_get(&threads_ok) != total) {
     154        while (atomic_get(&threads_ok) != (long) total) {
    155155                if (!quiet)
    156156                        printf("Threads left: %d\n", total - atomic_get(&threads_ok));
  • kernel/test/mm/falloc2.c

    rfdb7795 r6c441cf8  
    8989                       
    9090                        for (i = 0; i < allocated; i++) {
    91                                 for (k = 0; k <= ((FRAME_SIZE << order) - 1); k++) {
     91                                for (k = 0; k <= (((index_t) FRAME_SIZE << order) - 1); k++) {
    9292                                        if (((uint8_t *) frames[i])[k] != val) {
    9393                                                if (!sh_quiet)
  • kernel/test/synch/rwlock5.c

    rfdb7795 r6c441cf8  
    7070{
    7171        int i, j, k;
    72         count_t readers, writers;
     72        long readers, writers;
    7373       
    7474        waitq_initialize(&can_start);
  • kernel/test/test.c

    rfdb7795 r6c441cf8  
    5959#include <thread/thread1.def>
    6060#include <sysinfo/sysinfo1.def>
    61         {NULL, NULL, NULL}
     61        {
     62                .name = NULL,
     63                .desc = NULL,
     64                .entry = NULL
     65        }
    6266};
    6367
  • kernel/test/thread/thread1.c

    rfdb7795 r6c441cf8  
    7979       
    8080        atomic_set(&finish, 0);
    81         while (atomic_get(&threads_finished) < total) {
     81        while (atomic_get(&threads_finished) < ((long) total)) {
    8282                if (!quiet)
    8383                        printf("Threads left: %d\n", total - atomic_get(&threads_finished));
Note: See TracChangeset for help on using the changeset viewer.