From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fs7IS-0001pL-Rm for qemu-devel@nongnu.org; Tue, 21 Aug 2018 10:06:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fs7IO-0003fk-Jg for qemu-devel@nongnu.org; Tue, 21 Aug 2018 10:06:12 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:45174) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fs7IO-0003ee-1o for qemu-devel@nongnu.org; Tue, 21 Aug 2018 10:06:08 -0400 Received: by mail-wr1-f68.google.com with SMTP id 20-v6so10010407wrb.12 for ; Tue, 21 Aug 2018 07:06:06 -0700 (PDT) References: <20180817051853.23792-1-cota@braap.org> <20180817051853.23792-2-cota@braap.org> From: Paolo Bonzini Message-ID: Date: Tue, 21 Aug 2018 16:06:01 +0200 MIME-Version: 1.0 In-Reply-To: <20180817051853.23792-2-cota@braap.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/9] qsp: QEMU's Synchronization Profiler List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Emilio G. Cota" , qemu-devel@nongnu.org Cc: Fam Zheng , Peter Crosthwaite , Stefan Weil , "Dr. David Alan Gilbert" , Peter Xu , Markus Armbruster , Richard Henderson On 17/08/2018 07:18, Emilio G. Cota wrote: > + > +#define qemu_rec_trymutex_lock(m) ({ \ > + QemuRecMutexTrylockFunc _f; \ > + _f = atomic_read(&qemu_rec_mutex_trylock_func); \ > + _f(m, __FILE__, __LINE__); \ > + }) > + Obvious typo (found by clang's -Winfinite-recursion, how it detects it is left as an exercise to the reader; it's not obvious and I like this clang warning even though the first impression is "why would you need it"), fixed while applying. Paolo