• H
    s390: avoid undefined behaviour · ead7a22e
    Heiko Carstens 提交于
    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: NHeiko Carstens <heiko.carstens@de.ibm.com>
    ead7a22e
init.c 6.1 KB