Ignore:
Timestamp:
Jan 2, 2021, 1:29:57 AM (5 years ago)
Author:
Paul Smedley
Message:

More code cleanups to eliminate warnings

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

Legend:

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

    r615 r622  
    7676  struct list_head      devres_head;
    7777  const struct attribute_group **groups;        /* optional groups */
    78         const struct dma_map_ops *dma_ops;
     78        struct dma_map_ops *dma_ops;
    7979        u64             *dma_mask;      /* dma mask (if dma'able device) */
    8080        u64             coherent_dma_mask; /* Like dma_mask, but for
  • GPL/branches/uniaud32-next/include/linux/dma-mapping.h

    r615 r622  
    108108
    109109static inline void set_dma_ops(struct device *dev,
    110                                const struct dma_map_ops *dma_ops)
     110                               struct dma_map_ops *dma_ops)
    111111{
    112112        dev->dma_ops = dma_ops;
  • GPL/branches/uniaud32-next/include/linux/list.h

    r615 r622  
    294294 * @head: the list to test.
    295295 */
    296 static inline int list_is_singular(const struct list_head *head)
     296static inline int list_is_singular(struct list_head *head)
    297297{
    298298        return !list_empty(head) && (head->next == head->prev);
  • GPL/branches/uniaud32-next/include/linux/log2.h

    r615 r622  
    1111{
    1212        return (n != 0 && ((n & (n - 1)) == 0));
    13 }
    14 
    15 /*
    16  * round up to nearest power of two
    17  */
    18 static inline
    19 unsigned long __roundup_pow_of_two(unsigned long n)
    20 {
    21         return 1UL << fls_long(n - 1);
    22 }
    23 
    24 /*
    25  * round down to nearest power of two
    26  */
    27 static inline
    28 unsigned long __rounddown_pow_of_two(unsigned long n)
    29 {
    30         return 1UL << (fls_long(n) - 1);
    3113}
    3214
  • GPL/branches/uniaud32-next/include/linux/refcount.h

    r615 r622  
    3737}
    3838
    39 static inline __must_check bool refcount_add_not_zero(unsigned int i, refcount_t *r)
    40 {
    41         return atomic_add_unless(&r->refs, i, 0);
    42 }
    43 
    4439static inline void refcount_add(unsigned int i, refcount_t *r)
    4540{
    4641        atomic_add(i, &r->refs);
    47 }
    48 
    49 static inline __must_check bool refcount_inc_not_zero(refcount_t *r)
    50 {
    51         return atomic_add_unless(&r->refs, 1, 0);
    5242}
    5343
Note: See TracChangeset for help on using the changeset viewer.