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
This commit is contained in:
Hans Petter Selasky 2017-03-08 21:28:53 +00:00
parent 43597fd575
commit 43ee32f7df
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=314920

View File

@ -63,7 +63,7 @@ static void linux_delayed_work_timer_fn(void *);
* 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 uint8_t *pstate)
* 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;