mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-20 06:06:23 +00:00
RHEL 7 build fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5543 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -178,7 +178,8 @@ static ssize_t iscsi_get_initiator_ip(struct iscsi_conn *conn,
|
||||
"[%04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x]",
|
||||
NIP6(inet6_sk(sk)->daddr));
|
||||
#else
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0) && \
|
||||
(!defined(RHEL_MAJOR) || RHEL_MAJOR -0 < 7)
|
||||
pos = scnprintf(buf, size, "[%p6]", &inet6_sk(sk)->daddr);
|
||||
#else
|
||||
pos = scnprintf(buf, size, "[%p6]", &sk->sk_v6_daddr);
|
||||
|
||||
+2
-1
@@ -9749,7 +9749,8 @@ void scst_vfs_unlink_and_put(struct nameidata *nd)
|
||||
#else
|
||||
void scst_vfs_unlink_and_put(struct path *path)
|
||||
{
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0) && \
|
||||
(!defined(RHEL_MAJOR) || RHEL_MAJOR -0 < 7)
|
||||
vfs_unlink(path->dentry->d_parent->d_inode, path->dentry);
|
||||
#else
|
||||
vfs_unlink(path->dentry->d_parent->d_inode, path->dentry, NULL);
|
||||
|
||||
+1
-1
@@ -51,7 +51,7 @@
|
||||
#if defined(RHEL_MAJOR) && RHEL_MAJOR -0 == 5
|
||||
#define vlan_dev_vlan_id(dev) (panic("RHEL 5 misses vlan_dev_vlan_id()"),0)
|
||||
#endif
|
||||
#if defined(RHEL_MAJOR)
|
||||
#if defined(RHEL_MAJOR) && RHEL_MAJOR -0 <= 6
|
||||
#define __ethtool_get_settings(dev, cmd) (panic("RHEL misses __ethtool_get_settings()"),0)
|
||||
#endif
|
||||
#include <linux/rtnetlink.h>
|
||||
|
||||
Reference in New Issue
Block a user