Ignore:
Timestamp:
Jan 7, 2021, 8:54:42 PM (5 years ago)
Author:
David Azarewicz
Message:

Fix some easy warnings.

Location:
GPL/branches/uniaud32-next/include/linux
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/include/linux/bitops.h

    r615 r637  
    4141 * Undefined if no bit exists, so code should check against 0 first.
    4242 */
    43 static unsigned long __ffs(unsigned long word)
     43static inline unsigned long __ffs(unsigned long word)
    4444{
    4545        int num = 0;
     
    7878 * Undefined if no set bit exists, so code should check against 0 first.
    7979 */
    80 static unsigned long __fls(unsigned long word)
     80static inline unsigned long __fls(unsigned long word)
    8181{
    8282        int num = BITS_PER_LONG - 1;
  • GPL/branches/uniaud32-next/include/linux/kernel.h

    r615 r637  
    9797int strict_strtoul(const char *, unsigned int, unsigned long *);
    9898
    99 #define BUG_ON(condition) 
    100 #define WARN_ON(condition) 0
    101 #define WARN_ON_ONCE(condition) 0
     99#define BUG_ON(condition)
     100#define WARN_ON(condition) (void)0
     101#define WARN_ON_ONCE(condition) (void)0
    102102#define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))
    103103#define SIZE_MAX        (~(size_t)0)
  • GPL/branches/uniaud32-next/include/linux/platform_device.h

    r305 r637  
    9494                drv->driver.remove = snd_platform_driver_remove;
    9595        if (drv->suspend)
    96                 drv->driver.suspend = snd_platform_driver_suspend;
     96                drv->driver.suspend = (int(*)(struct device *,unsigned int))snd_platform_driver_suspend;
    9797        if (drv->resume)
    9898                drv->driver.resume = snd_platform_driver_resume;
  • GPL/branches/uniaud32-next/include/linux/printk.h

    r615 r637  
    88#define pr_warn pr_warning
    99#else
    10 #define pr_debug
    11 #define pr_err 
     10#define pr_debug(...)
     11#define pr_err(...)
    1212#define pr_info printk
    1313#define pr_warning printk
Note: See TracChangeset for help on using the changeset viewer.