dahdi: Fix previous CentOS 6.5 commit.
The previous commit from earlier today to fix the backport of PDE_DATA was wrong in that it would not then process the other defines for older kernels if it detected it was running on a redhat release. Signed-off-by: Shaun Ruffell <sruffell@digium.com>
This commit is contained in:
parent
3707ee713e
commit
71c003ba49
@ -1404,18 +1404,18 @@ static inline short dahdi_txtone_nextsample(struct dahdi_chan *ss)
|
|||||||
/*! Maximum audio mask */
|
/*! Maximum audio mask */
|
||||||
#define DAHDI_FORMAT_AUDIO_MASK ((1 << 16) - 1)
|
#define DAHDI_FORMAT_AUDIO_MASK ((1 << 16) - 1)
|
||||||
|
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0)
|
||||||
#ifdef RHEL_RELEASE_VERSION
|
#ifdef RHEL_RELEASE_VERSION
|
||||||
# if RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(6, 5)
|
#if RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(6, 5)
|
||||||
# ifdef CONFIG_PROC_FS
|
#ifdef CONFIG_PROC_FS
|
||||||
#include <linux/proc_fs.h>
|
#include <linux/proc_fs.h>
|
||||||
static inline void *PDE_DATA(const struct inode *inode)
|
static inline void *PDE_DATA(const struct inode *inode)
|
||||||
{
|
{
|
||||||
return PDE(inode)->data;
|
return PDE(inode)->data;
|
||||||
}
|
}
|
||||||
# endif
|
#endif
|
||||||
# endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0)
|
|
||||||
#ifdef CONFIG_PROC_FS
|
#ifdef CONFIG_PROC_FS
|
||||||
#include <linux/proc_fs.h>
|
#include <linux/proc_fs.h>
|
||||||
static inline void *PDE_DATA(const struct inode *inode)
|
static inline void *PDE_DATA(const struct inode *inode)
|
||||||
|
Loading…
Reference in New Issue
Block a user