Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1315893yba; Tue, 2 Apr 2019 06:44:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUru8O0sdiwRzaQI1OTrRUh09SDnaELq4xuImtAy5snskYPJt03yW8GGKik3J93EHo2qpj X-Received: by 2002:a62:a515:: with SMTP id v21mr61883611pfm.41.1554212688094; Tue, 02 Apr 2019 06:44:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554212688; cv=none; d=google.com; s=arc-20160816; b=c0uajw4f2mQzKwo0sAeR0Hdj6EbYUSDZWO1wg8PiVHPNZEydkOr1TjdBPaFVxCmX8f rcTi/vCFCCSN2nshVIJ9FsaiLjUaAmQ2V4FsgWB1hUy7Uz6sfcmVgDeafQaP1x7FaFsp 09bUzf0Sy12kWhklUZYzWPQSCPyTNgvOSwttRl2blN4D8W0MQ1q5FOJBLiZ7Wjq506y0 rmy4FNmDGIeIAjYwTye2flOcGoioOQ8dNHhvG2SGroYAjavP8dXeJbxL2fXyC9H997B8 ufyNrpxf316q/SSI98IHkxDW1OyqsjYf/wCAoyY8qc7DHytsBMLxX+c7m7/qTyxfJv2t tmPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=M5IQdLAffy6rb/zITneJrdj7a40CcAwZqZoHTgG98hY=; b=PT2hKYCYS+emdfcbbPiWtOavivdUwSktg4hjvr1MdiPaeCq2ZGkJnrWajpaU+qH0qn sBV/9TqwXjrzr1NQkcU52UZbWdIjAC7Bf8ySFc1S0HkU8/Ln2323cYAzDnMpQAkNwjaI iOJWDegaBR4GDmXezeYwrp8YBococm3cbZ96CxJlyNkVXGf9nxpRIAvhgjbsvoLAy07/ nHZSSt1+/AeYV50IvaUHCpXuopO9mveRfN+x3QtijuqNzplBaNnmaFdYp0q2WrQ1GZhc oyFxiwolhvADC0uTAUP6g6OEdxStweLU0kymVY8HN7J2Ql6V81vZW09WHIpMqgQKQIhL B6wQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v4si11496203pgj.138.2019.04.02.06.44.32; Tue, 02 Apr 2019 06:44:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731916AbfDBNnZ (ORCPT + 99 others); Tue, 2 Apr 2019 09:43:25 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:43636 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731514AbfDBNkL (ORCPT ); Tue, 2 Apr 2019 09:40:11 -0400 Received: from [167.98.27.226] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hBJdw-0002nV-3v; Tue, 02 Apr 2019 14:40:00 +0100 Received: from ben by deadeye with local (Exim 4.92) (envelope-from ) id 1hBJdv-0004sl-4c; Tue, 02 Apr 2019 14:39:59 +0100 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, Denis Kirjanov , "Sasha Levin" , "Waiman Long" , tj@kernel.org, "Sasha Levin" , "Johannes Berg" , "Peter Zijlstra (Intel)" , "Bart Van Assche" , "Linus Torvalds" , "Thomas Gleixner" , johannes.berg@intel.com, "Ingo Molnar" Date: Tue, 02 Apr 2019 14:38:27 +0100 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) X-Patchwork-Hint: ignore Subject: [PATCH 3.16 29/99] tools/lib/lockdep: Rename "trywlock" into "trywrlock" In-Reply-To: X-SA-Exim-Connect-IP: 167.98.27.226 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.65-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Bart Van Assche commit 7f3c7952d111ac93573fb86f4d5aeff527a07fcc upstream. This patch avoids that the following compiler warning is reported while compiling the lockdep unit tests: include/liblockdep/rwlock.h: In function 'liblockdep_pthread_rwlock_trywlock': include/liblockdep/rwlock.h:66:9: warning: implicit declaration of function 'pthread_rwlock_trywlock'; did you mean 'pthread_rwlock_trywrlock'? [-Wimplicit-function-declaration] return pthread_rwlock_trywlock(&lock->rwlock) == 0 ? 1 : 0; ^~~~~~~~~~~~~~~~~~~~~~~ pthread_rwlock_trywrlock Signed-off-by: Bart Van Assche Signed-off-by: Peter Zijlstra (Intel) Cc: Johannes Berg Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Sasha Levin Cc: Sasha Levin Cc: Thomas Gleixner Cc: Waiman Long Cc: johannes.berg@intel.com Cc: tj@kernel.org Fixes: 5a52c9b480e0 ("liblockdep: Add public headers for pthread_rwlock_t implementation") Link: https://lkml.kernel.org/r/20181207011148.251812-6-bvanassche@acm.org Signed-off-by: Ingo Molnar Signed-off-by: Ben Hutchings --- tools/lib/lockdep/include/liblockdep/rwlock.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/tools/lib/lockdep/include/liblockdep/rwlock.h +++ b/tools/lib/lockdep/include/liblockdep/rwlock.h @@ -59,10 +59,10 @@ static inline int liblockdep_pthread_rwl return pthread_rwlock_tryrdlock(&lock->rwlock) == 0 ? 1 : 0; } -static inline int liblockdep_pthread_rwlock_trywlock(liblockdep_pthread_rwlock_t *lock) +static inline int liblockdep_pthread_rwlock_trywrlock(liblockdep_pthread_rwlock_t *lock) { lock_acquire(&lock->dep_map, 0, 1, 0, 1, NULL, (unsigned long)_RET_IP_); - return pthread_rwlock_trywlock(&lock->rwlock) == 0 ? 1 : 0; + return pthread_rwlock_trywrlock(&lock->rwlock) == 0 ? 1 : 0; } static inline int liblockdep_rwlock_destroy(liblockdep_pthread_rwlock_t *lock) @@ -78,7 +78,7 @@ static inline int liblockdep_rwlock_dest #define pthread_rwlock_unlock liblockdep_pthread_rwlock_unlock #define pthread_rwlock_wrlock liblockdep_pthread_rwlock_wrlock #define pthread_rwlock_tryrdlock liblockdep_pthread_rwlock_tryrdlock -#define pthread_rwlock_trywlock liblockdep_pthread_rwlock_trywlock +#define pthread_rwlock_trywrlock liblockdep_pthread_rwlock_trywrlock #define pthread_rwlock_destroy liblockdep_rwlock_destroy #endif