gpu: gma500: remove unneeded DRIVER_LICENSE #define
Subsystems (3)
PATCH 1/1 gpu: gma500: remove unneeded DRIVER_LICENSE #define
There is no need to #define the license of the driver, just put it in the MODULE_LICENSE() line directly as a text string.
This allows tools that check that the module license matches the source code license to work properly, as there is no need to unwind the unneeded dereference, especially when the string is defined in a .h file far away from the .c file it is used in.
--- drivers/gpu/drm/gma500/psb_drv.c | 2 +- drivers/gpu/drm/gma500/psb_drv.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/gma500/psb_drv.c +1 -1
@@ -527,4 +527,4 @@ module_exit(psb_exit);MODULE_AUTHOR (DRIVER_AUTHOR );MODULE_DESCRIPTION (DRIVER_DESC ); -MODULE_LICENSE (DRIVER_LICENSE ); +MODULE_LICENSE ("GPL" );
drivers/gpu/drm/gma500/psb_drv.h +0 -1
@@ -36,7 +36,6 @@#include "mmu.h" #define DRIVER_AUTHOR "Alan Cox <[email protected]> and others" -#define DRIVER_LICENSE "GPL"#define DRIVER_NAME "gma500"#define DRIVER_DESC "DRM driver for the Intel GMA500, GMA600, GMA3600, GMA3650"
Signature · 6 lines
2.15.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 8 lines · Greg Kroah-Hartman
There is no need to #define the license of the driver, just put it in the
MODULE_LICENSE()line directly as a text string.This allows tools that check that the module license matches the source code license to work properly, as there is no need to unwind the unneeded dereference, especially when the string is defined in a .h file far away from the .c file it is used in.
Quoted 4 lines
Cc Patrik Jakobsson <[email protected]>Cc David Airlie <[email protected]>Reported-by Philippe Ombredanne <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>
Signature · 2 lines
Cordially Philippe Ombredanne
Daniel Vetter
AppliedQuoted 10 lines · Philippe Ombredanne
Quoted 8 lines · Greg Kroah-Hartman
There is no need to #define the license of the driver, just put it in the
MODULE_LICENSE()line directly as a text string.This allows tools that check that the module license matches the source code license to work properly, as there is no need to unwind the unneeded dereference, especially when the string is defined in a .h file far away from the .c file it is used in.
Quoted 6 lines
Quoted 4 lines
Cc Patrik Jakobsson <[email protected]>Cc David Airlie <[email protected]>Reported-by Philippe Ombredanne <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>Reviewed-by Philippe Ombredanne <[email protected]>
Queued for 4.16, it'll pop up in linux-next as soon as -rc1 is tagged. -Daniel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel