Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions modules/exasock/exasock-bonding-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,17 @@ exabond_get_sysfs_namespace(struct class *cls,
#endif

static ssize_t
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0)
exabond_masters_show(struct class *c,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 34)
struct class_attribute *cattr,
#endif
char *buf)
#else
exabond_masters_show(const struct class *c,
const struct class_attribute *cattr,
char *buf)
#endif
{
ssize_t outstrlen=0;
unsigned long irqf;
Expand Down Expand Up @@ -71,11 +77,17 @@ exabond_masters_show(struct class *c,
}

static ssize_t
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0)
exabond_masters_store(struct class *c,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 34)
struct class_attribute *cattr,
#endif
const char *buf, size_t count)
#else
exabond_masters_store(const struct class *c,
const struct class_attribute *cattr,
const char *buf, size_t count)
#endif
{
char command;
struct exabond_master *master;
Expand Down
4 changes: 4 additions & 0 deletions modules/exasock/exasock-tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1427,7 +1427,11 @@ static void exasock_tcp_dead(struct kref *ref)
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 36)
static DECLARE_MUTEX(update_biglock);
#else
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0)
static DEFINE_SEMAPHORE(update_biglock);
#else
static DEFINE_SEMAPHORE(update_biglock,1);
#endif
#endif
int exasock_tcp_update(struct exasock_tcp *tcp,
uint32_t local_addr, uint16_t local_port,
Expand Down