diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-17 15:33:17 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-17 15:33:17 +0100 |
| commit | a431c0902c6a9c8ca02fc519c75a487ace5e1682 (patch) | |
| tree | ae6e31f122b018436d7ecda20c10576eb869a31f /0001-gpu-gma500-remove-unneeded-DRIVER_LICENSE-define.patch | |
| parent | b2e3df6421e77c5f5f6248d19160b3d1950d78e8 (diff) | |
| download | patches-a431c0902c6a9c8ca02fc519c75a487ace5e1682.tar.gz | |
some new patches added so I don't loose them.
Diffstat (limited to '0001-gpu-gma500-remove-unneeded-DRIVER_LICENSE-define.patch')
| -rw-r--r-- | 0001-gpu-gma500-remove-unneeded-DRIVER_LICENSE-define.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/0001-gpu-gma500-remove-unneeded-DRIVER_LICENSE-define.patch b/0001-gpu-gma500-remove-unneeded-DRIVER_LICENSE-define.patch new file mode 100644 index 00000000000000..35b02a3315c82f --- /dev/null +++ b/0001-gpu-gma500-remove-unneeded-DRIVER_LICENSE-define.patch @@ -0,0 +1,42 @@ +From ab5deab751fd7812ae4e28adb31d0b79381098a1 Mon Sep 17 00:00:00 2001 +From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> +Date: Fri, 17 Nov 2017 15:00:45 +0100 +Subject: [PATCH 1/7] 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. + +Cc: Patrik Jakobsson <patrik.r.jakobsson@gmail.com> +Cc: David Airlie <airlied@linux.ie> +Cc: dri-devel@lists.freedesktop.org +Cc: linux-kernel@vger.kernel.org +Reported-by: Philippe Ombredanne <pombredanne@nexb.com> +Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> +--- + drivers/gpu/drm/gma500/psb_drv.c | 2 +- + drivers/gpu/drm/gma500/psb_drv.h | 1 - + 2 files changed, 1 insertion(+), 2 deletions(-) + +--- a/drivers/gpu/drm/gma500/psb_drv.c ++++ b/drivers/gpu/drm/gma500/psb_drv.c +@@ -527,4 +527,4 @@ module_exit(psb_exit); + + MODULE_AUTHOR(DRIVER_AUTHOR); + MODULE_DESCRIPTION(DRIVER_DESC); +-MODULE_LICENSE(DRIVER_LICENSE); ++MODULE_LICENSE("GPL"); +--- a/drivers/gpu/drm/gma500/psb_drv.h ++++ b/drivers/gpu/drm/gma500/psb_drv.h +@@ -36,7 +36,6 @@ + #include "mmu.h" + + #define DRIVER_AUTHOR "Alan Cox <alan@linux.intel.com> and others" +-#define DRIVER_LICENSE "GPL" + + #define DRIVER_NAME "gma500" + #define DRIVER_DESC "DRM driver for the Intel GMA500, GMA600, GMA3600, GMA3650" |
