dahdi: struct file.f_dentry macro was removed in kernel 3.19
This is necessary to build against kernel version 3.19 since commit
(78d28e651f97866d608d9b41 "kill f_dentry macro") [1]
[1] https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=78d28e651
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Signed-off-by: Russ Meyerriecks <rmeyerriecks@digium.com>
(cherry picked from commit 4d86a8f3f6
)
This commit is contained in:
parent
9d62e703fe
commit
701f633e0d
@ -98,7 +98,11 @@
|
|||||||
#define chan_to_netdev(h) ((h)->hdlcnetdev->netdev)
|
#define chan_to_netdev(h) ((h)->hdlcnetdev->netdev)
|
||||||
|
|
||||||
/* macro-oni for determining a unit (channel) number */
|
/* macro-oni for determining a unit (channel) number */
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20)
|
||||||
#define UNIT(file) MINOR(file->f_dentry->d_inode->i_rdev)
|
#define UNIT(file) MINOR(file->f_dentry->d_inode->i_rdev)
|
||||||
|
#else
|
||||||
|
#define UNIT(file) MINOR(file->f_path.dentry->d_inode->i_rdev)
|
||||||
|
#endif
|
||||||
|
|
||||||
EXPORT_SYMBOL(dahdi_transcode_fops);
|
EXPORT_SYMBOL(dahdi_transcode_fops);
|
||||||
EXPORT_SYMBOL(dahdi_init_tone_state);
|
EXPORT_SYMBOL(dahdi_init_tone_state);
|
||||||
|
Loading…
Reference in New Issue
Block a user