Skip to content

Commit

Permalink
char: misc: Move EXPORT_SYMBOL immediately next to the functions/vari…
Browse files Browse the repository at this point in the history
…bles

According to checkpatch: EXPORT_SYMBOL(foo); should immediately follow its
function/variable.

This patch fixes the following checkpatch.pl issues in drivers/char/misc.c:
WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable

Signed-off-by: Naveen Kumar Parna <parna.naveenkumar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Naveen Kumar Parna authored and Greg Kroah-Hartman committed May 24, 2019
1 parent dc3e0aa commit e89bec3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/char/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ int misc_register(struct miscdevice *misc)
mutex_unlock(&misc_mtx);
return err;
}
EXPORT_SYMBOL(misc_register);

/**
* misc_deregister - unregister a miscellaneous device
Expand All @@ -249,8 +250,6 @@ void misc_deregister(struct miscdevice *misc)
clear_bit(i, misc_minors);
mutex_unlock(&misc_mtx);
}

EXPORT_SYMBOL(misc_register);
EXPORT_SYMBOL(misc_deregister);

static char *misc_devnode(struct device *dev, umode_t *mode)
Expand Down

0 comments on commit e89bec3

Please sign in to comment.