staging: vt6656: vt6655: removing unused macros definition Makefiles
authorMatej Dujava <mdujava@kocurkovo.cz>
Wed, 13 May 2020 19:15:50 +0000 (21:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 May 2020 13:49:13 +0000 (15:49 +0200)
This patch is removing definition of CFLAGS in Makefile of vt6656 and
vt6655, as those are defining macros that are not used. This will remove
undef of one macro from vt6655/device_main.c, as it is only undef and it is
not used anywhere else, so it is safe to remove it.

Macros are removed from vt665x/Makefile and vt6655/device_main.c.

Signed-off-by: Matej Dujava <mdujava@kocurkovo.cz>
Link: https://lore.kernel.org/r/1589397351-24655-2-git-send-email-mdujava@kocurkovo.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/Makefile
drivers/staging/vt6655/device_main.c
drivers/staging/vt6656/Makefile

index a151f30fc46f193bd68e09ff49f2764b679f38e0..e70357ec0af8a1e229b9e3fa9259a0b0e6cef52b 100644 (file)
@@ -1,7 +1,4 @@
 # SPDX-License-Identifier: GPL-2.0
-# TODO: all of these should be removed
-ccflags-y := -DLINUX -D__KERNEL__ -D__NO_VERSION__
-ccflags-y += -DHOSTAP
 
 vt6655_stage-y +=      device_main.o \
        card.o \
index 5889023d19c45c3da2ccfc22c98080cee5a70f76..41cbec4134b03227422f24f30997312f61c21355 100644 (file)
@@ -32,7 +32,6 @@
  *
  * Revision History:
  */
-#undef __NO_VERSION__
 
 #include <linux/file.h>
 #include "device.h"
index a0f3862dea7523d58a7b42a0c76a3ce605e73db0..f696a9d7a143d42dfa4821c42d6b6bfff523e1f7 100644 (file)
@@ -1,7 +1,4 @@
 # SPDX-License-Identifier: GPL-2.0
-# TODO: all of these should be removed
-ccflags-y := -DLINUX -D__KERNEL__ -DEXPORT_SYMTAB -D__NO_VERSION__
-ccflags-y += -DHOSTAP
 
 vt6656_stage-y +=      main_usb.o \
                        card.o  \