Skip to content
  • Márton Németh's avatar
    x86/PCI/ACPI: fix type mismatch · 6e33a852
    Márton Németh authored
    
    
    The flags field of struct resource from linux/ioport.h is "unsigned
    long". Change the "type" parameter of coalesce_windows() function to
    match that field. This fixes the following warning messages when
    compiling with "make C=1 W=1 bzImage modules":
    
    arch/x86/pci/acpi.c: In function ‘coalesce_windows’:
    arch/x86/pci/acpi.c:198: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result
    arch/x86/pci/acpi.c:203: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result
    
    Signed-off-by: default avatarMárton Németh <nm127@freemail.hu>
    Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
    6e33a852