I am trying to modify code for a usb thermometer prob for linux. I have the source code and the makefile used to compile. When i use make to compile, it will compile and work just fine no problem. I am trying to setup eclipse so i can modify the code. I gave eclipse the /lib/modules/2.6.24-18-generic/build/include directory for headers needed, which is the same path that the makefile uses. I dont understand why make works and builing in eclipse fails.

gotemp.c

#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/usb.h>

#define VENDOR_ID	0x08f7
#define PRODUCT_ID	0x0002

/* table of devices that work with this driver */
static struct usb_device_id id_table [] = {
	{ USB_DEVICE(VENDOR_ID, PRODUCT_ID) },
	{ },
};
MODULE_DEVICE_TABLE(usb, id_table);

struct gotemp {
	struct usb_device *udev;
	int temp;
	unsigned char *int_in_buffer;	/* the buffer to receive data */
	struct urb *int_in_urb;
};

struct measurement_packet {
	u8	measurements_in_packet;
	u8	rolling_counter;
	__le16	measurement0;
	__le16	measurement1;
	__le16	measurement2;
} __attribute__ ((packed));

#define CMD_ID_START_MEASUREMENTS	0x18
#define CMD_ID_INIT			0x1A

struct output_packet {
	u8	cmd;
	u8	params[7];
} __attribute__ ((packed));

static int send_cmd(struct gotemp *gdev, u8 cmd)
{
	struct output_packet *pkt;
	int retval;

	pkt = kmalloc(sizeof(*pkt), GFP_KERNEL);
	if (!pkt)
		return -ENOMEM;
	memset(pkt, 0x00, sizeof(*pkt));
	pkt->cmd = cmd;

	retval = usb_control_msg(gdev->udev,
				 usb_sndctrlpipe(gdev->udev, 0),
				 0x09,		/* bRequest = SET_REPORT */
				 0x21,		/* bRequestType = 00100001 */
				 0x0200,	/* or is it 0x0002? */
				 0x0000,	/* interface 0 */
				 pkt, sizeof(*pkt), 10000);
	if (retval == sizeof(*pkt))
		retval = 0;

	kfree(pkt);
	return retval;
}

static void init_dev(struct gotemp *gdev)
{
	int retval;

	/* First send an init message */
	send_cmd(gdev, CMD_ID_INIT);

	/* kick off interrupt urb */
	retval = usb_submit_urb(gdev->int_in_urb, GFP_KERNEL);
	if (retval)
		dev_err(&gdev->udev->dev, "%s - Error %d submitting interrupt urb\n",
			__FUNCTION__, retval);

	/* Start sending measurements */
	send_cmd(gdev, CMD_ID_START_MEASUREMENTS);
}

static ssize_t show_temp(struct device *dev, struct device_attribute *attr, char *buf)
{
	struct usb_interface *intf = to_usb_interface(dev);
	struct gotemp *gdev = usb_get_intfdata(intf);

	return sprintf(buf, "%d\n", gdev->temp);
}
static DEVICE_ATTR(temp, S_IRUGO, show_temp, NULL);

static void read_int_callback(struct urb *urb, struct pt_regs *regs)
{
	struct gotemp *gdev = urb->context;
	struct measurement_packet *measurement = urb->transfer_buffer;
	int retval;

	switch (urb->status) {
	case 0:
		/* success */
		break;
	case -ECONNRESET:
	case -ENOENT:
	case -ESHUTDOWN:
		/* this urb is terminated, clean up */
		dbg("%s - urb shutting down with status: %d",
		    __FUNCTION__, urb->status);
		return;
	default:
		dbg("%s - nonzero urb status received: %d",
		    __FUNCTION__, urb->status);
		goto exit;
	}

	dev_info(&urb->dev->dev, "counter %d, temp=%d\n",
		 measurement->rolling_counter,
		 measurement->measurement0);
	gdev->temp = le16_to_cpu(measurement->measurement0);

exit:
	retval = usb_submit_urb(urb, GFP_ATOMIC);
	if (retval)
		dev_err(&urb->dev->dev, "%s - Error %d submitting interrupt urb\n",
			__FUNCTION__, retval);
}

static int gotemp_probe(struct usb_interface *interface, const struct usb_device_id *id)
{
	struct usb_device *udev = interface_to_usbdev(interface);
	struct gotemp *gdev;
	struct usb_endpoint_descriptor *endpoint;
	size_t buffer_size;

	gdev = kmalloc(sizeof(struct gotemp), GFP_KERNEL);
	if (gdev == NULL) {
		dev_err(&interface->dev, "Out of memory\n");
		return -ENOMEM;
	}
	memset(gdev, 0x00, sizeof(*gdev));

	gdev->udev = usb_get_dev(udev);

	/* find the one control endpoint of this device */
	endpoint = &interface->cur_altsetting->endpoint[0].desc;
	buffer_size = le16_to_cpu(endpoint->wMaxPacketSize);
	gdev->int_in_buffer = kmalloc(buffer_size, GFP_KERNEL);
	if (!gdev->int_in_buffer) {
		dev_err(&interface->dev, "Could not allocate buffer");
		goto error;
	}

	gdev->int_in_urb = usb_alloc_urb(0, GFP_KERNEL);
	if (!gdev->int_in_urb) {
		dev_err(&interface->dev, "No free urbs available\n");
		goto error;
	}
	usb_fill_int_urb(gdev->int_in_urb, udev,
			 usb_rcvintpipe(udev,
					endpoint->bEndpointAddress),
			 gdev->int_in_buffer, buffer_size,
			 read_int_callback, gdev,
			 endpoint->bInterval);

	usb_set_intfdata(interface, gdev);

	init_dev(gdev);

	device_create_file(&interface->dev, &dev_attr_temp);

	dev_info(&interface->dev, "USB GoTemp device now attached\n");
	return 0;
error:
	usb_free_urb(gdev->int_in_urb);
	kfree(gdev->int_in_buffer);
	kfree(gdev);
	return -ENOMEM;
}

static void gotemp_disconnect(struct usb_interface *interface)
{
	struct gotemp *gdev;

	gdev = usb_get_intfdata(interface);
	usb_set_intfdata(interface, NULL);

	device_remove_file(&interface->dev, &dev_attr_temp);

	usb_put_dev(gdev->udev);

	usb_kill_urb(gdev->int_in_urb);
	usb_free_urb(gdev->int_in_urb);
	kfree(gdev->int_in_buffer);
	kfree(gdev);

	dev_info(&interface->dev, "USB GoTemp now disconnected\n");
}

static struct usb_driver gotemp_driver = {
	.name =		"gotemp",
	.probe =	gotemp_probe,
	.disconnect =	gotemp_disconnect,
	.id_table =	id_table,
};

static int __init gotemp_init(void)
{
	return usb_register(&gotemp_driver);
}

static void __exit gotemp_exit(void)
{
	usb_deregister(&gotemp_driver);
}

module_init(gotemp_init);
module_exit(gotemp_exit);

MODULE_AUTHOR("My name here");
MODULE_DESCRIPTION("Simple driver");
MODULE_LICENSE("GPL");

makefile

obj-m	:= gotemp.o

KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD       := $(shell pwd)

all:
	$(MAKE) -C $(KERNELDIR) M=$(PWD)

clean:
	rm -f *.o *~ core .depend .*.cmd *.ko *.mod.c
	rm -rf .tmp_versions Modules.symvers

error output

/usr/include/string.h:67: error: storage class specified for parameter ‘memchr’
/usr/include/string.h:85: error: storage class specified for parameter ‘strcpy’
/usr/include/string.h:89: error: storage class specified for parameter ‘strncpy’
/usr/include/string.h:93: error: storage class specified for parameter ‘strcat’
/usr/include/string.h:96: error: storage class specified for parameter ‘strncat’
/usr/include/string.h:100: error: storage class specified for parameter ‘strcmp’
/usr/include/string.h:103: error: storage class specified for parameter ‘strncmp’
/usr/include/string.h:107: error: storage class specified for parameter ‘strcoll’
/usr/include/string.h:111: error: storage class specified for parameter ‘strxfrm’
/usr/include/string.h:131: error: storage class specified for parameter ‘strdup’
/usr/include/string.h:168: error: storage class specified for parameter ‘strchr’
/usr/include/string.h:171: error: storage class specified for parameter ‘strrchr’
/usr/include/string.h:185: error: storage class specified for parameter ‘strcspn’
/usr/include/string.h:189: error: storage class specified for parameter ‘strspn’
/usr/include/string.h:192: error: storage class specified for parameter ‘strpbrk’
/usr/include/string.h:195: error: storage class specified for parameter ‘strstr’
/usr/include/string.h:200: error: storage class specified for parameter ‘strtok’
/usr/include/string.h:208: error: storage class specified for parameter ‘__strtok_r’
/usr/include/string.h:212: error: storage class specified for parameter ‘strtok_r’
/usr/include/string.h:243: error: storage class specified for parameter ‘strlen’
/usr/include/string.h:256: error: storage class specified for parameter ‘strerror’
/usr/include/string.h:270: error: storage class specified for parameter ‘strerror_r’
/usr/include/string.h:294: error: storage class specified for parameter ‘__bzero’
/usr/include/string.h:299: error: storage class specified for parameter ‘bcopy’
/usr/include/string.h:302: error: storage class specified for parameter ‘bzero’
/usr/include/string.h:306: error: storage class specified for parameter ‘bcmp’
/usr/include/string.h:310: error: storage class specified for parameter ‘index’
/usr/include/string.h:314: error: storage class specified for parameter ‘rindex’
/usr/include/string.h:318: error: storage class specified for parameter ‘ffs’
/usr/include/string.h:332: error: storage class specified for parameter ‘strcasecmp’
/usr/include/string.h:336: error: storage class specified for parameter ‘strncasecmp’
/usr/include/string.h:356: error: storage class specified for parameter ‘strsep’
In file included from /lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:86,
                 from /lib/modules/2.6.24-18-generic/build/include/linux/percpu.h:8,
                 from /lib/modules/2.6.24-18-generic/build/include/asm/local_64.h:4,
                 from /lib/modules/2.6.24-18-generic/build/include/asm/local.h:4,
                 from /lib/modules/2.6.24-18-generic/build/include/linux/module.h:19,
                 from ../gotemp.c:3:
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:85: error: storage class specified for parameter ‘__bitmap_empty’
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:86: error: storage class specified for parameter ‘__bitmap_full’
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:88: error: storage class specified for parameter ‘__bitmap_equal’
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:90: error: storage class specified for parameter ‘__bitmap_complement’
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:92: error: storage class specified for parameter ‘__bitmap_shift_right’
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:94: error: storage class specified for parameter ‘__bitmap_shift_left’
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:96: error: storage class specified for parameter ‘__bitmap_and’
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:98: error: storage class specified for parameter ‘__bitmap_or’
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:100: error: storage class specified for parameter ‘__bitmap_xor’
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:102: error: storage class specified for parameter ‘__bitmap_andnot’
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:104: error: storage class specified for parameter ‘__bitmap_intersects’
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:106: error: storage class specified for parameter ‘__bitmap_subset’
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:107: error: storage class specified for parameter ‘__bitmap_weight’
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:110: error: storage class specified for parameter ‘bitmap_scnprintf’
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:112: error: storage class specified for parameter ‘__bitmap_parse’
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:114: error: storage class specified for parameter ‘bitmap_parse_user’
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:116: error: storage class specified for parameter ‘bitmap_scnlistprintf’
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:118: error: storage class specified for parameter ‘bitmap_parselist’
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:120: error: storage class specified for parameter ‘bitmap_remap’
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:122: error: storage class specified for parameter ‘bitmap_bitremap’
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:123: error: storage class specified for parameter ‘bitmap_find_free_region’
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:124: error: storage class specified for parameter ‘bitmap_release_region’
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:125: error: storage class specified for parameter ‘bitmap_allocate_region’
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:134: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:144: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:155: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:166: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:175: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:184: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:193: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:202: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:211: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:220: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:229: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:237: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:245: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:253: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:261: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:270: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:279: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
In file included from /lib/modules/2.6.24-18-generic/build/include/linux/percpu.h:8,
                 from /lib/modules/2.6.24-18-generic/build/include/asm/local_64.h:4,
                 from /lib/modules/2.6.24-18-generic/build/include/asm/local.h:4,
                 from /lib/modules/2.6.24-18-generic/build/include/linux/module.h:19,
                 from ../gotemp.c:3:
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:88: error: expected specifier-qualifier-list before ‘DECLARE_BITMAP’
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:88: error: storage class specified for parameter ‘cpumask_t’
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:89: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_unused_cpumask_arg_’
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:92: warning: type defaults to ‘int’ in declaration of ‘cpumask_t’
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:92: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:98: warning: type defaults to ‘int’ in declaration of ‘cpumask_t’
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:98: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:104: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:110: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:119: error: expected declaration specifiers or ‘...’ before ‘cpumask_t’
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:120: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:125: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:132: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:139: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:147: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:154: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:161: warning: type defaults to ‘int’ in declaration of ‘cpumask_t’
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:161: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:168: warning: type defaults to ‘int’ in declaration of ‘cpumask_t’
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:168: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:175: warning: type defaults to ‘int’ in declaration of ‘cpumask_t’
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:175: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:182: warning: type defaults to ‘int’ in declaration of ‘cpumask_t’
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:182: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:188: warning: type defaults to ‘int’ in declaration of ‘cpumask_t’
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:188: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:194: warning: type defaults to ‘int’ in declaration of ‘cpumask_t’
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:194: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:201: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:209: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:271: warning: type defaults to ‘int’ in declaration of ‘cpumask_t’
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:271: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:279: error: expected declaration specifiers or ‘...’ before ‘cpumask_t’
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:280: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:287: warning: type defaults to ‘int’ in declaration of ‘cpumask_t’
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:287: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:293: error: expected declaration specifiers or ‘...’ before ‘cpumask_t’
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:294: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:301: warning: type defaults to ‘int’ in declaration of ‘cpumask_t’
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:301: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:308: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:380: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cpu_possible_map’
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:381: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cpu_online_map’
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:382: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cpu_present_map’
In file included from /lib/modules/2.6.24-18-generic/build/include/asm/local_64.h:4,
                 from /lib/modules/2.6.24-18-generic/build/include/asm/local.h:4,
                 from /lib/modules/2.6.24-18-generic/build/include/linux/module.h:19,
                 from ../gotemp.c:3:
/lib/modules/2.6.24-18-generic/build/include/linux/percpu.h:65: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/percpu.h:68: error: expected declaration specifiers or ‘...’ before ‘cpumask_t’
/lib/modules/2.6.24-18-generic/build/include/linux/percpu.h:69: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/percpu.h:72: error: expected declaration specifiers or ‘...’ before ‘gfp_t’
/lib/modules/2.6.24-18-generic/build/include/linux/percpu.h:74: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/percpu.h:78: error: expected declaration specifiers or ‘...’ before ‘gfp_t’
/lib/modules/2.6.24-18-generic/build/include/linux/percpu.h:79: error: expected declaration specifiers or ‘...’ before ‘cpumask_t’
/lib/modules/2.6.24-18-generic/build/include/linux/percpu.h:80: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/percpu.h:84: error: expected declaration specifiers or ‘...’ before ‘gfp_t’
/lib/modules/2.6.24-18-generic/build/include/linux/percpu.h:84: error: expected declaration specifiers or ‘...’ before ‘cpumask_t’
/lib/modules/2.6.24-18-generic/build/include/linux/percpu.h:85: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/percpu.h:90: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
In file included from /lib/modules/2.6.24-18-generic/build/include/asm/cmpxchg.h:4,
                 from /lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:5,
                 from /lib/modules/2.6.24-18-generic/build/include/asm/atomic.h:4,
                 from /lib/modules/2.6.24-18-generic/build/include/asm/local_64.h:5,
                 from /lib/modules/2.6.24-18-generic/build/include/asm/local.h:4,
                 from /lib/modules/2.6.24-18-generic/build/include/linux/module.h:19,
                 from ../gotemp.c:3:
/lib/modules/2.6.24-18-generic/build/include/asm/cmpxchg_64.h:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/asm/cmpxchg_64.h:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/asm/cmpxchg_64.h:63: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/asm/cmpxchg_64.h:96: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
In file included from /lib/modules/2.6.24-18-generic/build/include/asm/atomic.h:4,
                 from /lib/modules/2.6.24-18-generic/build/include/asm/local_64.h:5,
                 from /lib/modules/2.6.24-18-generic/build/include/asm/local.h:4,
                 from /lib/modules/2.6.24-18-generic/build/include/linux/module.h:19,
                 from ../gotemp.c:3:
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:25: error: storage class specified for parameter ‘atomic_t’
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:53: error: expected declaration specifiers or ‘...’ before ‘atomic_t’
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:54: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:68: error: expected declaration specifiers or ‘...’ before ‘atomic_t’
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:69: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:85: error: expected declaration specifiers or ‘...’ before ‘atomic_t’
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:86: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:102: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:116: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:132: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:151: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:171: error: expected declaration specifiers or ‘...’ before ‘atomic_t’
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:172: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:189: error: expected declaration specifiers or ‘...’ before ‘atomic_t’
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:190: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:199: error: expected declaration specifiers or ‘...’ before ‘atomic_t’
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:200: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:209: error: storage class specified for parameter ‘atomic64_t’
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:238: error: expected declaration specifiers or ‘...’ before ‘atomic64_t’
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:239: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:253: error: expected declaration specifiers or ‘...’ before ‘atomic64_t’
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:254: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:270: error: expected declaration specifiers or ‘...’ before ‘atomic64_t’
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:271: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:287: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:301: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:317: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:336: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:356: error: expected declaration specifiers or ‘...’ before ‘atomic64_t’
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:357: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:374: error: expected declaration specifiers or ‘...’ before ‘atomic64_t’
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:375: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:384: error: expected declaration specifiers or ‘...’ before ‘atomic64_t’
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:385: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:407: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:433: error: expected ‘)’ before ‘*’ token
In file included from /lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:465,
                 from /lib/modules/2.6.24-18-generic/build/include/asm/atomic.h:4,
                 from /lib/modules/2.6.24-18-generic/build/include/asm/local_64.h:5,
                 from /lib/modules/2.6.24-18-generic/build/include/asm/local.h:4,
                 from /lib/modules/2.6.24-18-generic/build/include/linux/module.h:19,
                 from ../gotemp.c:3:
/lib/modules/2.6.24-18-generic/build/include/asm-generic/atomic.h:141: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘atomic_long_t’
/lib/modules/2.6.24-18-generic/build/include/asm-generic/atomic.h:144: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/asm-generic/atomic.h:151: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/asm-generic/atomic.h:158: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/asm-generic/atomic.h:165: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/asm-generic/atomic.h:172: error: expected declaration specifiers or ‘...’ before ‘atomic_long_t’
/lib/modules/2.6.24-18-generic/build/include/asm-generic/atomic.h:173: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/asm-generic/atomic.h:179: error: expected declaration specifiers or ‘...’ before ‘atomic_long_t’
/lib/modules/2.6.24-18-generic/build/include/asm-generic/atomic.h:180: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/asm-generic/atomic.h:186: error: expected declaration specifiers or ‘...’ before ‘atomic_long_t’
/lib/modules/2.6.24-18-generic/build/include/asm-generic/atomic.h:187: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/asm-generic/atomic.h:193: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/asm-generic/atomic.h:200: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/asm-generic/atomic.h:207: error: expected declaration specifiers or ‘...’ before ‘atomic_long_t’
/lib/modules/2.6.24-18-generic/build/include/asm-generic/atomic.h:208: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/asm-generic/atomic.h:214: error: expected declaration specifiers or ‘...’ before ‘atomic_long_t’
/lib/modules/2.6.24-18-generic/build/include/asm-generic/atomic.h:215: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/asm-generic/atomic.h:221: error: expected declaration specifiers or ‘...’ before ‘atomic_long_t’
/lib/modules/2.6.24-18-generic/build/include/asm-generic/atomic.h:222: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/asm-generic/atomic.h:228: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/asm-generic/atomic.h:235: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/asm-generic/atomic.h:242: error: expected ‘)’ before ‘*’ token
In file included from /lib/modules/2.6.24-18-generic/build/include/asm/local.h:4,
                 from /lib/modules/2.6.24-18-generic/build/include/linux/module.h:19,
                 from ../gotemp.c:3:
/lib/modules/2.6.24-18-generic/build/include/asm/local_64.h:9: error: expected specifier-qualifier-list before ‘atomic_long_t’
/lib/modules/2.6.24-18-generic/build/include/asm/local_64.h:10: error: storage class specified for parameter ‘local_t’
/lib/modules/2.6.24-18-generic/build/include/asm/local_64.h:17: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/asm/local_64.h:25: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/asm/local_64.h:33: error: expected declaration specifiers or ‘...’ before ‘local_t’
/lib/modules/2.6.24-18-generic/build/include/asm/local_64.h:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/asm/local_64.h:41: error: expected declaration specifiers or ‘...’ before ‘local_t’
/lib/modules/2.6.24-18-generic/build/include/asm/local_64.h:42: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/asm/local_64.h:58: error: expected declaration specifiers or ‘...’ before ‘local_t’
/lib/modules/2.6.24-18-generic/build/include/asm/local_64.h:59: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/asm/local_64.h:77: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/asm/local_64.h:96: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.24-18-generic/build/include/asm/local_64.h:116: error: expected declaration specifiers or ‘...’ before ‘local_t’
/lib/modules/2.6.24-18-generic/build/include/asm/local_64.h:117: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/asm/local_64.h:134: error: expected declaration specifiers or ‘...’ before ‘local_t’
/lib/modules/2.6.24-18-generic/build/include/asm/local_64.h:135: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/asm/local_64.h:144: error: expected declaration specifiers or ‘...’ before ‘local_t’
/lib/modules/2.6.24-18-generic/build/include/asm/local_64.h:145: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
In file included from /lib/modules/2.6.24-18-generic/build/include/asm/module.h:4,
                 from /lib/modules/2.6.24-18-generic/build/include/linux/module.h:21,
                 from ../gotemp.c:3:
/lib/modules/2.6.24-18-generic/build/include/asm/module_64.h:4: warning: empty declaration
In file included from ../gotemp.c:3:
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:37: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:43: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:45: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:48: error: field ‘attr’ has incomplete type
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:55: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:59: error: field ‘kobj’ has incomplete type
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:62: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:65: error: storage class specified for parameter ‘init_module’
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:66: error: storage class specified for parameter ‘cleanup_module’
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:69: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:165: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:477: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:483: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:489: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:494: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:504: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:508: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:513: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:523: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:528: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:533: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:540: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:545: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:550: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:556: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:563: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:568: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:573: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:589: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:596: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:601: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:606: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:618: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:621: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
In file included from /lib/modules/2.6.24-18-generic/build/include/linux/usb.h:4,
                 from ../gotemp.c:4:
/lib/modules/2.6.24-18-generic/build/include/linux/mod_devicetable.h:21: error: expected specifier-qualifier-list before ‘kernel_ulong_t’
/lib/modules/2.6.24-18-generic/build/include/linux/mod_devicetable.h:22: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/mod_devicetable.h:36: error: expected specifier-qualifier-list before ‘kernel_ulong_t’
/lib/modules/2.6.24-18-generic/build/include/linux/mod_devicetable.h:38: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/mod_devicetable.h:119: error: expected specifier-qualifier-list before ‘kernel_ulong_t’
/lib/modules/2.6.24-18-generic/build/include/linux/mod_devicetable.h:120: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/mod_devicetable.h:143: error: expected specifier-qualifier-list before ‘kernel_ulong_t’
/lib/modules/2.6.24-18-generic/build/include/linux/mod_devicetable.h:144: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/mod_devicetable.h:157: error: expected specifier-qualifier-list before ‘kernel_ulong_t’
/lib/modules/2.6.24-18-generic/build/include/linux/mod_devicetable.h:158: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/mod_devicetable.h:167: error: expected specifier-qualifier-list before ‘kernel_ulong_t’
/lib/modules/2.6.24-18-generic/build/include/linux/mod_devicetable.h:168: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/mod_devicetable.h:175: error: expected specifier-qualifier-list before ‘kernel_ulong_t’
/lib/modules/2.6.24-18-generic/build/include/linux/mod_devicetable.h:176: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/mod_devicetable.h:180: error: expected specifier-qualifier-list before ‘kernel_ulong_t’
/lib/modules/2.6.24-18-generic/build/include/linux/mod_devicetable.h:184: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/mod_devicetable.h:194: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/mod_devicetable.h:207: error: expected specifier-qualifier-list before ‘kernel_ulong_t’
/lib/modules/2.6.24-18-generic/build/include/linux/mod_devicetable.h:209: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/mod_devicetable.h:215: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/mod_devicetable.h:240: error: expected specifier-qualifier-list before ‘kernel_ulong_t’
/lib/modules/2.6.24-18-generic/build/include/linux/mod_devicetable.h:251: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/mod_devicetable.h:294: error: expected specifier-qualifier-list before ‘kernel_ulong_t’
/lib/modules/2.6.24-18-generic/build/include/linux/mod_devicetable.h:312: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/mod_devicetable.h:321: error: expected specifier-qualifier-list before ‘kernel_ulong_t’
/lib/modules/2.6.24-18-generic/build/include/linux/mod_devicetable.h:322: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/mod_devicetable.h:331: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/mod_devicetable.h:346: error: expected specifier-qualifier-list before ‘kernel_ulong_t’
/lib/modules/2.6.24-18-generic/build/include/linux/mod_devicetable.h:347: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/mod_devicetable.h:354: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/mod_devicetable.h:367: warning: empty declaration
In file included from /lib/modules/2.6.24-18-generic/build/include/linux/usb.h:5,
                 from ../gotemp.c:4:
/lib/modules/2.6.24-18-generic/build/include/linux/usb/ch9.h:146: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/usb/ch9.h:198: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/usb/ch9.h:220: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/usb/ch9.h:268: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/usb/ch9.h:286: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/usb/ch9.h:306: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/usb/ch9.h:326: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/usb/ch9.h:360: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/usb/ch9.h:371: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/usb/ch9.h:387: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/usb/ch9.h:402: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/usb/ch9.h:416: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/usb/ch9.h:430: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/usb/ch9.h:446: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/usb/ch9.h:458: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/usb/ch9.h:467: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/usb/ch9.h:495: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/usb/ch9.h:516: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/usb/ch9.h:532: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/usb/ch9.h:544: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/usb/ch9.h:555: warning: empty declaration
/lib/modules/2.6.24-18-generic/build/include/linux/usb/ch9.h:578: warning: empty declaration
../gotemp.c:10: error: storage class specified for parameter ‘id_table’
../gotemp.c:10: error: parameter ‘id_table’ is initialized
../gotemp.c:11: warning: braces around scalar initializer
../gotemp.c:11: warning: (near initialization for ‘id_table’)
../gotemp.c:11: warning: implicit declaration of function ‘USB_DEVICE’
../gotemp.c:11: warning: initialization makes pointer from integer without a cast
../gotemp.c:12: warning: braces around scalar initializer
../gotemp.c:12: warning: (near initialization for ‘id_table’)
../gotemp.c:12: error: empty scalar initializer
../gotemp.c:12: error: (near initialization for ‘id_table’)
../gotemp.c:12: warning: excess elements in scalar initializer
../gotemp.c:12: warning: (near initialization for ‘id_table’)
../gotemp.c:14: error: expected declaration specifiers before ‘;’ token
../gotemp.c:21: warning: empty declaration
../gotemp.c:24: error: expected specifier-qualifier-list before ‘u8’
../gotemp.c:29: warning: empty declaration
../gotemp.c:35: error: expected specifier-qualifier-list before ‘u8’
../gotemp.c:37: warning: empty declaration
../gotemp.c:39: error: expected declaration specifiers or ‘...’ before ‘u8’
../gotemp.c:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
../gotemp.c:65: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
../gotemp.c:81: warning: ‘struct device_attribute’ declared inside parameter list
../gotemp.c:81: warning: its scope is only this definition or declaration, which is probably not what you want
../gotemp.c:81: warning: ‘struct device’ declared inside parameter list
../gotemp.c:82: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
../gotemp.c:88: error: expected ‘)’ before ‘(’ token
../gotemp.c:91: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
../gotemp.c:125: warning: ‘struct usb_interface’ declared inside parameter list
../gotemp.c:126: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
../gotemp.c:177: warning: ‘struct usb_interface’ declared inside parameter list
../gotemp.c:178: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
../gotemp.c:196: error: storage class specified for parameter ‘gotemp_driver’
../gotemp.c:196: error: parameter ‘gotemp_driver’ is initialized
../gotemp.c:197: error: unknown field ‘name’ specified in initializer
../gotemp.c:197: warning: excess elements in struct initializer
../gotemp.c:197: warning: (near initialization for ‘gotemp_driver’)
../gotemp.c:198: error: unknown field ‘probe’ specified in initializer
../gotemp.c:198: error: ‘gotemp_probe’ undeclared (first use in this function)
../gotemp.c:198: error: (Each undeclared identifier is reported only once
../gotemp.c:198: error: for each function it appears in.)
../gotemp.c:198: warning: excess elements in struct initializer
../gotemp.c:198: warning: (near initialization for ‘gotemp_driver’)
../gotemp.c:199: error: unknown field ‘disconnect’ specified in initializer
../gotemp.c:199: error: ‘gotemp_disconnect’ undeclared (first use in this function)
../gotemp.c:199: warning: excess elements in struct initializer
../gotemp.c:199: warning: (near initialization for ‘gotemp_driver’)
../gotemp.c:200: error: unknown field ‘id_table’ specified in initializer
../gotemp.c:200: warning: excess elements in struct initializer
../gotemp.c:200: warning: (near initialization for ‘gotemp_driver’)
../gotemp.c:204: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
../gotemp.c:209: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
../gotemp.c:213: error: storage class specified for parameter ‘__initcall_gotemp_init6’
../gotemp.c:213: error: parameter ‘__initcall_gotemp_init6’ is initialized
../gotemp.c:213: warning: ‘__used__’ attribute ignored
../gotemp.c:213: error: section attribute not allowed for ‘__initcall_gotemp_init6’
../gotemp.c:213: error: ‘gotemp_init’ undeclared (first use in this function)
../gotemp.c:213: error: expected declaration specifiers before ‘;’ token
../gotemp.c:214: error: storage class specified for parameter ‘__exitcall_gotemp_exit’
../gotemp.c:214: error: parameter ‘__exitcall_gotemp_exit’ is initialized
../gotemp.c:214: warning: ‘__used__’ attribute ignored
../gotemp.c:214: error: section attribute not allowed for ‘__exitcall_gotemp_exit’
../gotemp.c:214: error: ‘gotemp_exit’ undeclared (first use in this function)
../gotemp.c:214: error: expected declaration specifiers before ‘;’ token
../gotemp.c:216: error: expected declaration specifiers before ‘;’ token
../gotemp.c:217: error: expected declaration specifiers before ‘;’ token
../gotemp.c:218: error: expected declaration specifiers before ‘;’ token
../gotemp.c:214: error: declaration for parameter ‘__exitcall_gotemp_exit’ but no such parameter
../gotemp.c:213: error: declaration for parameter ‘__initcall_gotemp_init6’ but no such parameter
../gotemp.c:196: error: parameter ‘gotemp_driver’ has incomplete type
../gotemp.c:196: error: declaration for parameter ‘gotemp_driver’ but no such parameter
../gotemp.c:10: error: declaration for parameter ‘id_table’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:163: error: declaration for parameter ‘search_exception_tables’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:77: error: declaration for parameter ‘sort_main_extable’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:76: error: declaration for parameter ‘sort_extable’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:74: error: declaration for parameter ‘search_extable’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:66: error: declaration for parameter ‘cleanup_module’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/module.h:65: error: declaration for parameter ‘init_module’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/asm/local_64.h:10: error: declaration for parameter ‘local_t’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:209: error: declaration for parameter ‘atomic64_t’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/asm/atomic_64.h:25: error: declaration for parameter ‘atomic_t’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/cpumask.h:88: error: declaration for parameter ‘cpumask_t’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:125: error: declaration for parameter ‘bitmap_allocate_region’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:124: error: declaration for parameter ‘bitmap_release_region’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:123: error: declaration for parameter ‘bitmap_find_free_region’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:122: error: declaration for parameter ‘bitmap_bitremap’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:120: error: declaration for parameter ‘bitmap_remap’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:118: error: declaration for parameter ‘bitmap_parselist’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:116: error: declaration for parameter ‘bitmap_scnlistprintf’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:114: error: declaration for parameter ‘bitmap_parse_user’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:112: error: declaration for parameter ‘__bitmap_parse’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:110: error: declaration for parameter ‘bitmap_scnprintf’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:107: error: declaration for parameter ‘__bitmap_weight’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:106: error: declaration for parameter ‘__bitmap_subset’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:104: error: declaration for parameter ‘__bitmap_intersects’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:102: error: declaration for parameter ‘__bitmap_andnot’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:100: error: declaration for parameter ‘__bitmap_xor’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:98: error: declaration for parameter ‘__bitmap_or’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:96: error: declaration for parameter ‘__bitmap_and’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:94: error: declaration for parameter ‘__bitmap_shift_left’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:92: error: declaration for parameter ‘__bitmap_shift_right’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:90: error: declaration for parameter ‘__bitmap_complement’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:88: error: declaration for parameter ‘__bitmap_equal’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:86: error: declaration for parameter ‘__bitmap_full’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/bitmap.h:85: error: declaration for parameter ‘__bitmap_empty’ but no such parameter
/usr/include/string.h:356: error: declaration for parameter ‘strsep’ but no such parameter
/usr/include/string.h:336: error: declaration for parameter ‘strncasecmp’ but no such parameter
/usr/include/string.h:332: error: declaration for parameter ‘strcasecmp’ but no such parameter
/usr/include/string.h:318: error: declaration for parameter ‘ffs’ but no such parameter
/usr/include/string.h:314: error: declaration for parameter ‘rindex’ but no such parameter
/usr/include/string.h:310: error: declaration for parameter ‘index’ but no such parameter
/usr/include/string.h:306: error: declaration for parameter ‘bcmp’ but no such parameter
/usr/include/string.h:302: error: declaration for parameter ‘bzero’ but no such parameter
/usr/include/string.h:299: error: declaration for parameter ‘bcopy’ but no such parameter
/usr/include/string.h:294: error: declaration for parameter ‘__bzero’ but no such parameter
/usr/include/string.h:270: error: declaration for parameter ‘strerror_r’ but no such parameter
/usr/include/string.h:256: error: declaration for parameter ‘strerror’ but no such parameter
/usr/include/string.h:243: error: declaration for parameter ‘strlen’ but no such parameter
/usr/include/string.h:212: error: declaration for parameter ‘strtok_r’ but no such parameter
/usr/include/string.h:208: error: declaration for parameter ‘__strtok_r’ but no such parameter
/usr/include/string.h:200: error: declaration for parameter ‘strtok’ but no such parameter
/usr/include/string.h:195: error: declaration for parameter ‘strstr’ but no such parameter
/usr/include/string.h:192: error: declaration for parameter ‘strpbrk’ but no such parameter
/usr/include/string.h:189: error: declaration for parameter ‘strspn’ but no such parameter
/usr/include/string.h:185: error: declaration for parameter ‘strcspn’ but no such parameter
/usr/include/string.h:171: error: declaration for parameter ‘strrchr’ but no such parameter
/usr/include/string.h:168: error: declaration for parameter ‘strchr’ but no such parameter
/usr/include/string.h:131: error: declaration for parameter ‘strdup’ but no such parameter
/usr/include/string.h:111: error: declaration for parameter ‘strxfrm’ but no such parameter
/usr/include/string.h:107: error: declaration for parameter ‘strcoll’ but no such parameter
/usr/include/string.h:103: error: declaration for parameter ‘strncmp’ but no such parameter
/usr/include/string.h:100: error: declaration for parameter ‘strcmp’ but no such parameter
/usr/include/string.h:96: error: declaration for parameter ‘strncat’ but no such parameter
/usr/include/string.h:93: error: declaration for parameter ‘strcat’ but no such parameter
/usr/include/string.h:89: error: declaration for parameter ‘strncpy’ but no such parameter
/usr/include/string.h:85: error: declaration for parameter ‘strcpy’ but no such parameter
/usr/include/string.h:67: error: declaration for parameter ‘memchr’ but no such parameter
/usr/include/string.h:63: error: declaration for parameter ‘memcmp’ but no such parameter
/usr/include/string.h:59: error: declaration for parameter ‘memset’ but no such parameter
/usr/include/string.h:53: error: declaration for parameter ‘memccpy’ but no such parameter
/usr/include/string.h:44: error: declaration for parameter ‘memmove’ but no such parameter
/usr/include/string.h:40: error: declaration for parameter ‘memcpy’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/smp.h:142: error: declaration for parameter ‘smp_setup_processor_id’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/smp.h:11: error: declaration for parameter ‘cpu_idle’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/asm/bitops_64.h:341: error: declaration for parameter ‘find_next_zero_string’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/asm/bitops_64.h:308: error: declaration for parameter ‘find_next_bit’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/asm/bitops_64.h:307: error: declaration for parameter ‘find_first_bit’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/asm/bitops_64.h:306: error: declaration for parameter ‘find_next_zero_bit’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/asm/bitops_64.h:305: error: declaration for parameter ‘find_first_zero_bit’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/asm/alternative_64.h:157: error: declaration for parameter ‘text_poke’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/thread_info.h:31: error: declaration for parameter ‘do_no_restart_syscall’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/marker.h:127: error: declaration for parameter ‘marker_get_private_data’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/marker.h:126: error: declaration for parameter ‘marker_disarm’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/marker.h:125: error: declaration for parameter ‘marker_arm’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/marker.h:123: error: declaration for parameter ‘marker_probe_unregister_private_data’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/marker.h:119: error: declaration for parameter ‘marker_probe_unregister’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/marker.h:114: error: declaration for parameter ‘marker_probe_register’ but no such parameter
/lib/modules/2.6.24-18-generic/build/include/linux/marker.h:107: error: declaration for parameter ‘__mark_empty_function’ but no such parameter
../gotemp.c:218: error: expected ‘{’ at end of input
make: *** [gotemp.o] Error 1

not an appropriate question for a c-language forum. this is not a c-code problem --the code obviously works as designed.

your problem is an IDE problem, and not one that is commonly used.

the fact that an open source IDE isnt working for you the way you expect it to is about par for the course. you need to go to Eclipse tech forums and find out what you're configuring incorrectly.

why dont you just continue to use the make file to rebuild your changes? seems like less work to me.

---

cool icon by the way :)


.

why dont you just continue to use the make file to rebuild your changes? seems like less work to me.

Some programmers write libraries for several different compilers and operating systems. I don't know but possibly this is the case here.

you're probably right. t'was just a suggestion.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.