Changeset 720


Ignore:
Timestamp:
Sep 4, 2022, 12:53:31 AM (3 years ago)
Author:
Paul Smedley
Message:

Fix warnings

Location:
GPL/branches/uniaud32-next
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/alsa-kernel/pci/ens1370.c

    r713 r720  
    749749
    750750        mutex_lock(&ensoniq->src_mutex);
     751#ifndef TARGET_OS2
    751752        freq = DIV_ROUND_CLOSEST(rate << 15, 3000);
     753#else
     754        freq = ((rate << 15) + 1500) / 3000;
     755#endif
    752756        r = (snd_es1371_wait_src_ready(ensoniq) & (ES_1371_SRC_DISABLE |
    753757                                                   ES_1371_DIS_P2 | ES_1371_DIS_R1)) |
     
    770774
    771775        mutex_lock(&ensoniq->src_mutex);
     776#ifndef TARGET_OS2
    772777        freq = DIV_ROUND_CLOSEST(rate << 15, 3000);
     778#else
     779        freq = ((rate << 15) + 1500) / 3000;
     780#endif
    773781        r = (snd_es1371_wait_src_ready(ensoniq) & (ES_1371_SRC_DISABLE |
    774782                                                   ES_1371_DIS_P1 | ES_1371_DIS_R1)) |
  • GPL/branches/uniaud32-next/alsa-kernel/pci/hda/patch_realtek.c

    r716 r720  
    51995199}
    52005200
     5201#ifndef TARGET_OS2
    52015202/* toggle GPIO2 at each time stream is started; we use PREPARE state instead */
    52025203static void alc274_hp_envy_pcm_hook(struct hda_pcm_stream *hinfo,
     
    52155216}
    52165217
    5217 #ifdef NOT_USED
    52185218static void alc274_fixup_hp_envy_gpio(struct hda_codec *codec,
    52195219                                      const struct hda_fixup *fix,
  • GPL/branches/uniaud32-next/include/linux/io.h

    r718 r720  
    77#include <linux/err.h>
    88
     9void __iomem *devm_ioremap(struct device *dev, resource_size_t offset,
     10                           resource_size_t size);
     11
    912#endif /* _LINUX_IO_H */
  • GPL/branches/uniaud32-next/include/linux/kernel.h

    r660 r720  
    1515#include <linux/types.h>
    1616#include <linux/log2.h>
     17#include <linux/string.h>
     18#include <linux/math.h>
    1719
    1820/* Optimization barrier */
  • GPL/branches/uniaud32-next/include/linux/rwsem.h

    r694 r720  
    1414#define up_read(x) up(x)
    1515#define up_write(x) up(x)
    16 #define downgrade_write
     16static inline void downgrade_write(struct rw_semaphore *sem) {}
    1717
    1818static inline int down_write_trylock(struct rw_semaphore *sem) {return 0;}
  • GPL/branches/uniaud32-next/include/linux/string.h

    r716 r720  
    2727        return dst;
    2828}
    29 ssize_t strscpy(char *, const char *, size_t);
     29
    3030#define vmemdup_user memdup_user
    3131#define scnprintf snprintf
  • GPL/branches/uniaud32-next/lib32/devres.c

    r719 r720  
    151151}
    152152
    153 #if 0 //2022-09-02
    154153static int remove_nodes(struct device *dev,
    155154                        struct list_head *first, struct list_head *end,
     
    264263                             flags);
    265264}
    266 #endif
    267265
    268266static struct devres *find_dr(struct device *dev, dr_release_t release,
     
    375373{
    376374        /* noop */
    377 }
    378 
    379 static int devm_kmalloc_match(struct device *dev, void *res, void *data)
    380 {
    381         return res == data;
    382375}
    383376
     
    427420{
    428421        iounmap(*(void __iomem **)res);
    429 }
    430 
    431 static int devm_ioremap_match(struct device *dev, void *res, void *match_data)
    432 {
    433         return *(void **)res == match_data;
    434422}
    435423
Note: See TracChangeset for help on using the changeset viewer.