svn commit: r314920 - head/sys/compat/linuxkpi/common/src
Hans Petter Selasky
hselasky at FreeBSD.org
Wed Mar 8 21:28:55 UTC 2017
Author: hselasky
Date: Wed Mar 8 21:28:53 2017
New Revision: 314920
URL: https://svnweb.freebsd.org/changeset/base/314920
Log:
Fix compilation warning for powerpc64 by not using const keyword in
return types:
Type qualifiers ignored on function return type [-Wreturn-type]
Reported by: andreast @
MFC after: 1 week
Sponsored by: Mellanox Technologies
Modified:
head/sys/compat/linuxkpi/common/src/linux_work.c
Modified: head/sys/compat/linuxkpi/common/src/linux_work.c
==============================================================================
--- head/sys/compat/linuxkpi/common/src/linux_work.c Wed Mar 8 20:58:56 2017 (r314919)
+++ head/sys/compat/linuxkpi/common/src/linux_work.c Wed Mar 8 21:28:53 2017 (r314920)
@@ -63,7 +63,7 @@ static void linux_delayed_work_timer_fn(
* This function atomically updates the work state and returns the
* previous state at the time of update.
*/
-static const uint8_t
+static uint8_t
linux_update_state(atomic_t *v, const uint8_t *pstate)
{
int c, old;
@@ -84,7 +84,7 @@ linux_update_state(atomic_t *v, const ui
* again. Without this extra hint LinuxKPI tasks cannot be serialized
* accross multiple worker threads.
*/
-static const bool
+static bool
linux_work_exec_unblock(struct work_struct *work)
{
struct workqueue_struct *wq;
More information about the svn-src-all
mailing list