Ignore:
Timestamp:
May 1, 2010, 9:49:10 PM (15 years ago)
Author:
David Azarewicz
Message:

Cleanup compiler warnings

Location:
GPL/trunk/include/linux
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/include/linux/math64.h

    r463 r479  
    6363        u32 q1 = 0;
    6464        int c = 32;
    65         while (n > 0xffffffffU) {
     65        while (n > 0xffffffffUi64) {
    6666                q1 <<= 1;
    6767                if (n >= d) {
     
    110110                u32 low1 = low;
    111111                high /= div;
    112                 divl(high1, low1, div, &low, rem);
     112                divl(high1, low1, div, &low, &rem);
    113113                return (u64)high << 32 | low;
    114114        } else {
  • GPL/trunk/include/linux/pci.h

    r463 r479  
    7373/*
    7474 * Base addresses specify locations in memory or I/O space.
    75  * Decoded size can be determined by writing a value of 
    76  * 0xffffffff to the register, and reading it back.  Only 
     75 * Decoded size can be determined by writing a value of
     76 * 0xffffffff to the register, and reading it back.  Only
    7777 * 1 bits are decoded.
    7878 */
     
    9898#define PCI_CARDBUS_CIS         0x28
    9999#define PCI_SUBSYSTEM_VENDOR_ID 0x2c
    100 #define PCI_SUBSYSTEM_ID        0x2e 
     100#define PCI_SUBSYSTEM_ID        0x2e
    101101#define PCI_ROM_ADDRESS         0x30    /* Bits 31..11 are address, 10..1 reserved */
    102102#define  PCI_ROM_ADDRESS_ENABLE 0x01
     
    389389#define PCI_BRIDGE_RESOURCES 7
    390390#define PCI_NUM_RESOURCES 11
    391  
     391
    392392#define PCI_REGION_FLAG_MASK 0x0f       /* These bits of resource flags tell us the PCI region flags */
    393393
     
    517517 * simple PCI probing for drivers (drivers/pci/helper.c)
    518518 */
    519  
     519
    520520struct pci_simple_probe_entry;
    521521typedef int (*pci_simple_probe_callback) (struct pci_dev *dev, int match_num,
  • GPL/trunk/include/linux/time.h

    r442 r479  
    4646        value->tv_sec = jiffies / HZ;
    4747}
    48  
     48
    4949struct timeval {
    5050        time_t          tv_sec;         /* seconds */
     
    9494static __inline__ unsigned int jiffies_to_msecs(const unsigned long j)
    9595{
    96         if (HZ <= 1000 && !(1000 % HZ))
     96#if (HZ <= 1000 && !(1000 % HZ))
    9797                return (1000 / HZ) * j;
    98         else if (HZ > 1000 && !(HZ % 1000))
     98#elif (HZ > 1000 && !(HZ % 1000))
    9999                return (j + (HZ / 1000) - 1)/(HZ / 1000);
    100         else
     100#else
    101101                return (j * 1000) / HZ;
     102#endif
    102103}
    103104static __inline__ unsigned long msecs_to_jiffies(const unsigned int m)
     
    105106        if (m > jiffies_to_msecs(MAX_JIFFY_OFFSET))
    106107                return MAX_JIFFY_OFFSET;
    107         if (HZ <= 1000 && !(1000 % HZ))
     108#if (HZ <= 1000 && !(1000 % HZ))
    108109                return (m + (1000 / HZ) - 1) / (1000 / HZ);
    109         else if (HZ > 1000 && !(HZ % 1000))
     110#elif (HZ > 1000 && !(HZ % 1000))
    110111                return m * (HZ / 1000);
    111         else
     112#else
    112113                return (m * HZ + 999) / 1000;
     114#endif
    113115}
    114116#endif
Note: See TracChangeset for help on using the changeset viewer.