lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201611161846.akqzjMbO%fengguang.wu@intel.com>
Date:   Wed, 16 Nov 2016 18:20:48 +0800
From:   kbuild test robot <fengguang.wu@...el.com>
To:     Peter Zijlstra <peterz@...radead.org>
Cc:     kbuild-all@...org, linux-kernel@...r.kernel.org,
        tipbuild@...or.com, Ingo Molnar <mingo@...nel.org>
Subject: [tip:locking/core 12/12]
 drivers/gpu/drm/msm/msm_gem_shrinker.c:23:2: warning:
 'mutex_trylock_recursive' is deprecated

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking/core
head:   0f5225b024d4bffd682aab008c35862e8fdc1865
commit: 0f5225b024d4bffd682aab008c35862e8fdc1865 [12/12] locking/mutex, drm: Introduce mutex_trylock_recursive()
config: arm64-defconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 0f5225b024d4bffd682aab008c35862e8fdc1865
        # save the attached .config to linux build tree
        make.cross ARCH=arm64 

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/msm/msm_gem_shrinker.c: In function 'msm_gem_shrinker_lock':
>> drivers/gpu/drm/msm/msm_gem_shrinker.c:23:2: warning: 'mutex_trylock_recursive' is deprecated [-Wdeprecated-declarations]
     switch (mutex_trylock_recursive(&dev->struct_mutex)) {
     ^~~~~~
   In file included from include/linux/notifier.h:13:0,
                    from include/linux/clk.h:17,
                    from drivers/gpu/drm/msm/msm_drv.h:22,
                    from drivers/gpu/drm/msm/msm_gem_shrinker.c:18:
   include/linux/mutex.h:215:1: note: declared here
    mutex_trylock_recursive(struct mutex *lock)
    ^~~~~~~~~~~~~~~~~~~~~~~

vim +/mutex_trylock_recursive +23 drivers/gpu/drm/msm/msm_gem_shrinker.c

     7	 * the Free Software Foundation.
     8	 *
     9	 * This program is distributed in the hope that it will be useful, but WITHOUT
    10	 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    11	 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
    12	 * more details.
    13	 *
    14	 * You should have received a copy of the GNU General Public License along with
    15	 * this program.  If not, see <http://www.gnu.org/licenses/>.
    16	 */
    17	
    18	#include "msm_drv.h"
    19	#include "msm_gem.h"
    20	
    21	static bool msm_gem_shrinker_lock(struct drm_device *dev, bool *unlock)
    22	{
  > 23		switch (mutex_trylock_recursive(&dev->struct_mutex)) {
    24		case MUTEX_TRYLOCK_FAILED:
    25			return false;
    26	
    27		case MUTEX_TRYLOCK_SUCCESS:
    28			*unlock = true;
    29			return true;
    30	
    31		case MUTEX_TRYLOCK_RECURSIVE:

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Download attachment ".config.gz" of type "application/gzip" (31923 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ