summaryrefslogtreecommitdiffstats
path: root/patches
diff options
context:
space:
mode:
authorRichard Yao <ryao@gentoo.org>2013-08-08 04:30:55 -0400
committerBrian Behlendorf <behlendorf1@llnl.gov>2013-12-02 10:11:19 -0800
commit3e96de17d723d6f6c9e2fd04b059b50d4e0bbef0 (patch)
tree0a71a023c1690c86843961a6ff909bfb20298a5a /patches
parent30607d9b7b82dcb50eebe15d5b78cfd6deef07a5 (diff)
Linux 3.13 compat: Remove unused flags variable from __cv_init()
GCC 4.8.1 complained about an unused flags variable when building against Linux 2.6.26.8: /var/tmp/portage/sys-kernel/spl-9999/work/spl-9999/module/spl/../../module/spl/spl-condvar.c: In function ‘__cv_init’: /var/tmp/portage/sys-kernel/spl-9999/work/spl-9999/module/spl/../../module/spl/spl-condvar.c:39:6: error: variable ‘flags’ set but not used [-Werror=unused-but-set-variable] int flags = KM_SLEEP; ^ cc1: all warnings being treated as errors Additionally, the superfluous code uses a preempt_count variable that is no longer available on Linux 3.13. Deleting the unnecessary code fixes a Linux 3.13 compatibility issue. Signed-off-by: Richard Yao <ryao@gentoo.org> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #312
Diffstat (limited to 'patches')
0 files changed, 0 insertions, 0 deletions