Merge tag 'modules-for-v4.15' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux
Pull module updates from Jessica Yu:
"Summary of modules changes for the 4.15 merge window:
- treewide module_param_call() cleanup, fix up set/get function
prototype mismatches, from Kees Cook
- minor code cleanups"
* tag 'modules-for-v4.15' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux:
module: Do not paper over type mismatches in module_param_call()
treewide: Fix function prototypes for module_param_call()
module: Prepare to convert all module_param_call() prototypes
kernel/module: Delete an error message for a failed memory allocation in add_module_usage()
This commit is contained in:
@@ -72,12 +72,12 @@ static const char *dma_mode_name(unsigned int mode)
|
||||
}
|
||||
}
|
||||
|
||||
static int tw686x_dma_mode_get(char *buffer, struct kernel_param *kp)
|
||||
static int tw686x_dma_mode_get(char *buffer, const struct kernel_param *kp)
|
||||
{
|
||||
return sprintf(buffer, "%s", dma_mode_name(dma_mode));
|
||||
}
|
||||
|
||||
static int tw686x_dma_mode_set(const char *val, struct kernel_param *kp)
|
||||
static int tw686x_dma_mode_set(const char *val, const struct kernel_param *kp)
|
||||
{
|
||||
if (!strcasecmp(val, dma_mode_name(TW686X_DMA_MODE_MEMCPY)))
|
||||
dma_mode = TW686X_DMA_MODE_MEMCPY;
|
||||
|
||||
Reference in New Issue
Block a user