Changeset b83fe77c in rtems


Ignore:
Timestamp:
Oct 20, 2014, 2:11:00 AM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
8566e1fc
Parents:
51995b69
Message:

jffs2: Add casts and constant designators to address warnings on 16-bit targets

Location:
cpukit/libfs/src/jffs2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/jffs2/include/linux/kernel.h

    r51995b69 rb83fe77c  
    1010#define jiffies ((unsigned long)rtems_clock_get_ticks_since_boot())
    1111
    12 #define ERR_PTR(err) ((void*)(err))
     12#define ERR_PTR(err) ((void*)((intptr_t)(err)))
    1313#define PTR_ERR(err) ((unsigned long)(err))
    1414#define IS_ERR(err) ((unsigned long)err > (unsigned long)-1000L)
  • cpukit/libfs/src/jffs2/src/nodelist.h

    r51995b69 rb83fe77c  
    292292static inline int jffs2_blocks_use_vmalloc(struct jffs2_sb_info *c)
    293293{
    294         return ((c->flash_size / c->sector_size) * sizeof (struct jffs2_eraseblock)) > (128 * 1024);
     294        return ((c->flash_size / c->sector_size) * sizeof (struct jffs2_eraseblock)) > (128L * 1024L);
    295295}
    296296
  • cpukit/libfs/src/jffs2/src/os-rtems.h

    r51995b69 rb83fe77c  
    4343static inline unsigned int full_name_hash(const unsigned char * name, size_t len) {
    4444
    45         unsigned hash = 0;
     45        uint32_t hash = 0;
    4646        while (len--) {
    4747                hash = (hash << 4) | (hash >> 28);
Note: See TracChangeset for help on using the changeset viewer.