Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 480148 | Differences between
and this patch

Collapse All | Expand All

(-)dahdi-linux-2.7.0.ORIG/drivers/dahdi/voicebus/voicebus.h (-1 / +1 lines)
Lines 98-104 Link Here
98
	void (*handle_receive)(struct voicebus *vb, struct list_head *buffers);
98
	void (*handle_receive)(struct voicebus *vb, struct list_head *buffers);
99
	void (*handle_transmit)(struct voicebus *vb, struct list_head *buffers);
99
	void (*handle_transmit)(struct voicebus *vb, struct list_head *buffers);
100
	void (*handle_error)(struct voicebus *vb);
100
	void (*handle_error)(struct voicebus *vb);
101
};
101
} __no_const;
102
102
103
/**
103
/**
104
 * struct voicebus_descriptor_list - A single descriptor list.
104
 * struct voicebus_descriptor_list - A single descriptor list.
(-)dahdi-linux-2.7.0.ORIG/drivers/dahdi/wctc4xxp/base.c (-1 / +1 lines)
Lines 3197-3203 Link Here
3197
	return ret;
3197
	return ret;
3198
}
3198
}
3199
3199
3200
static void wctc4xxp_setup_file_operations(struct file_operations *fops)
3200
static void wctc4xxp_setup_file_operations(file_operations_no_const *fops)
3201
{
3201
{
3202
	fops->owner = THIS_MODULE;
3202
	fops->owner = THIS_MODULE;
3203
	fops->read =  wctc4xxp_read;
3203
	fops->read =  wctc4xxp_read;
(-)dahdi-linux-2.7.0.ORIG/include/dahdi/kernel.h (-1 / +6 lines)
Lines 58-63 Link Here
58
58
59
#include <linux/poll.h>
59
#include <linux/poll.h>
60
60
61
#ifndef __no_const
62
#define __no_const
63
typedef struct file_operations file_operations_no_const;
64
#endif
65
61
#define dahdi_pci_module pci_register_driver
66
#define dahdi_pci_module pci_register_driver
62
67
63
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
68
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
Lines 1060-1066 Link Here
1060
	int numchannels;
1065
	int numchannels;
1061
	unsigned int srcfmts;
1066
	unsigned int srcfmts;
1062
	unsigned int dstfmts;
1067
	unsigned int dstfmts;
1063
	struct file_operations fops;
1068
	file_operations_no_const fops;
1064
	int (*allocate)(struct dahdi_transcoder_channel *channel);
1069
	int (*allocate)(struct dahdi_transcoder_channel *channel);
1065
	int (*release)(struct dahdi_transcoder_channel *channel);
1070
	int (*release)(struct dahdi_transcoder_channel *channel);
1066
	/* Transcoder channels */
1071
	/* Transcoder channels */

Return to bug 480148