• Heiko Carstens's avatar
    s390: avoid undefined behaviour · ead7a22e
    Heiko Carstens authored
    At a couple of places smatch emits warnings like this:
    
        arch/s390/mm/vmem.c:409 vmem_map_init() warn:
            right shifting more than type allows
    
    In fact shifting a signed type right is undefined. Avoid this and add
    an unsigned long cast. The shifted values are always positive.
    Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
    ead7a22e
vmem.c 10.1 KB