build: support for Linux 4.3

This commit is contained in:
Jan Engelhardt
2015-10-12 16:27:08 +02:00
parent 939fc901c1
commit 237fe7c660
4 changed files with 8 additions and 5 deletions

View File

@@ -63,9 +63,9 @@ if test -n "$kbuilddir"; then
echo "WARNING: Version detection did not succeed. Continue at own luck."; echo "WARNING: Version detection did not succeed. Continue at own luck.";
else else
echo "$kmajor.$kminor.$kmicro.$kstable in $kbuilddir"; echo "$kmajor.$kminor.$kmicro.$kstable in $kbuilddir";
if test "$kmajor" -gt 4 -o "$kmajor" -eq 4 -a "$kminor" -gt 1; then if test "$kmajor" -gt 4 -o "$kmajor" -eq 4 -a "$kminor" -gt 3; then
echo "WARNING: That kernel version is not officially supported yet. Continue at own luck."; echo "WARNING: That kernel version is not officially supported yet. Continue at own luck.";
elif test "$kmajor" -eq 4 -a "$kminor" -le 1; then elif test "$kmajor" -eq 4 -a "$kminor" -le 3; then
:; :;
elif test "$kmajor" -eq 3 -a "$kminor" -ge 7; then elif test "$kmajor" -eq 3 -a "$kminor" -ge 7; then
:; :;

View File

@@ -1,6 +1,8 @@
HEAD HEAD
==== ====
Enhancements:
- Support for Linux 4.3
v2.8 (2015-08-19) v2.8 (2015-08-19)

View File

@@ -66,7 +66,8 @@ static int condition_proc_show(struct seq_file *m, void *data)
{ {
const struct condition_variable *var = m->private; const struct condition_variable *var = m->private;
return seq_printf(m, var->enabled ? "1\n" : "0\n"); seq_printf(m, var->enabled ? "1\n" : "0\n");
return 0;
} }
static int condition_proc_open(struct inode *inode, struct file *file) static int condition_proc_open(struct inode *inode, struct file *file)

View File

@@ -67,9 +67,9 @@ static int quota_proc_show(struct seq_file *m, void *data)
int ret; int ret;
spin_lock_bh(&e->lock); spin_lock_bh(&e->lock);
ret = seq_printf(m, "%llu\n", e->quota); seq_printf(m, "%llu\n", e->quota);
spin_unlock_bh(&e->lock); spin_unlock_bh(&e->lock);
return ret; return 0;
} }
static int quota_proc_open(struct inode *inode, struct file *file) static int quota_proc_open(struct inode *inode, struct file *file)