From owner-svn-src-head@freebsd.org Wed Mar 8 21:28:55 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 20637D03203; Wed, 8 Mar 2017 21:28:55 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E13851E0D; Wed, 8 Mar 2017 21:28:54 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v28LSrDt062940; Wed, 8 Mar 2017 21:28:53 GMT (envelope-from hselasky@FreeBSD.org) Received: (from hselasky@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v28LSrMF062939; Wed, 8 Mar 2017 21:28:53 GMT (envelope-from hselasky@FreeBSD.org) Message-Id: <201703082128.v28LSrMF062939@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: hselasky set sender to hselasky@FreeBSD.org using -f From: Hans Petter Selasky Date: Wed, 8 Mar 2017 21:28:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r314920 - head/sys/compat/linuxkpi/common/src X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Mar 2017 21:28:55 -0000 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;