Skip to content

Commit

Permalink
Staging: vt665x: fix built-in compiling
Browse files Browse the repository at this point in the history
Fix this build error:
undefined reference to "__this_module"

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Alexander Beregalov authored and Greg Kroah-Hartman committed Sep 15, 2009
1 parent 48118b5 commit 14386fd
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 14 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/vt6655/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# TODO: all of these should be removed
EXTRA_CFLAGS += -DLINUX -D__KERNEL__ -DMODULE -D__NO_VERSION__
EXTRA_CFLAGS += -DLINUX -D__KERNEL__ -D__NO_VERSION__
EXTRA_CFLAGS += -DHOSTAP

vt6655_stage-y += device_main.o \
Expand Down
6 changes: 0 additions & 6 deletions drivers/staging/vt6655/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,7 @@
#ifndef __DEVICE_H__
#define __DEVICE_H__

#ifdef MODULE
#ifdef MODVERSIONS
#include <linux/modversions.h>
#endif /* MODVERSIONS */
#include <linux/module.h>
#endif /* MODULE */

#include <linux/types.h>
#include <linux/init.h>
#include <linux/mm.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/vt6656/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# TODO: all of these should be removed
EXTRA_CFLAGS += -DLINUX -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -D__NO_VERSION__
EXTRA_CFLAGS += -DLINUX -D__KERNEL__ -DEXPORT_SYMTAB -D__NO_VERSION__
EXTRA_CFLAGS += -DHOSTAP

vt6656_stage-y += main_usb.o \
Expand Down
6 changes: 0 additions & 6 deletions drivers/staging/vt6656/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,7 @@
#ifndef __DEVICE_H__
#define __DEVICE_H__

#ifdef MODULE
#ifdef MODVERSIONS
#include <linux/modversions.h>
#endif /* MODVERSIONS */
#include <linux/module.h>
#endif /* MODULE */

#include <linux/types.h>
#include <linux/init.h>
#include <linux/mm.h>
Expand Down

0 comments on commit 14386fd

Please sign in to comment.