Ignore:
Timestamp:
Mar 18, 2021, 8:57:36 PM (4 years ago)
Author:
David Azarewicz
Message:

Merge changes from Paul's uniaud32next branch.

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/include/linux/moduleparam.h

    r305 r679  
    102102#define param_check_ushort(name, p) __param_check(name, p, unsigned short)
    103103
    104 extern int param_set_int(const char *val, struct kernel_param *kp);
    105 extern int param_get_int(char *buffer, struct kernel_param *kp);
     104static inline int param_set_int(const char *val, const struct kernel_param *kp) {return 0;};
     105static inline int param_get_int(char *buffer, const struct kernel_param *kp) {return 0;};
    106106#define param_check_int(name, p) __param_check(name, p, int)
    107107
     
    138138                          &__param_arr_##name, perm)
    139139
    140 #ifndef TARGET_OS2
    141 #define module_param_array(name, type, nump, perm)              \
    142         module_param_array_named(name, name, type, nump, perm)
    143 #endif
     140#define module_param_array(name, type, nump, perm)
     141#define module_param(name, type, perm)
    144142extern int param_array_set(const char *val, struct kernel_param *kp);
    145143extern int param_array_get(char *buffer, struct kernel_param *kp);
     
    165163extern void module_param_sysfs_remove(struct module *mod);
    166164
     165struct kernel_param_ops {
     166        /* Returns 0, or -errno.  arg is in kp->arg. */
     167        int (*set)(const char *val, const struct kernel_param *kp);
     168        /* Returns length written or -errno.  Buffer is 4k (ie. be short!) */
     169        int (*get)(char *buffer, const struct kernel_param *kp);
     170        /* Optional function to free kp->arg when module unloaded. */
     171        void (*free)(void *arg);
     172};
     173
     174#define module_param_hw_array(name, type, hwtype, nump, perm)
     175#define module_param_hw(name, type, hwtype, perm)               
     176#define MODULE_PARM(var,type)
     177#define MODULE_PARM_DESC(var,desc)
     178
    167179#endif /* _LINUX_MODULE_PARAMS_H */
Note: See TracChangeset for help on using the changeset viewer.