From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753499Ab3IZTqI (ORCPT ); Thu, 26 Sep 2013 15:46:08 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:43647 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752925Ab3IZTqG (ORCPT ); Thu, 26 Sep 2013 15:46:06 -0400 Message-ID: <1380224763.3165.208.camel@edumazet-glaptop> Subject: Re: [PATCH 1/4] [RFC] net: Explicitly initialize u64_stats_sync structures for lockdep From: Eric Dumazet To: John Stultz Cc: LKML , Thomas Petazzoni , Mirko Lindner , Stephen Hemminger , Roger Luethi , Patrick McHardy , Rusty Russell , "Michael S. Tsirkin" , Alexey Kuznetsov , James Morris , Hideaki YOSHIFUJI , Wensong Zhang , Simon Horman , Julian Anastasov , Jesse Gross , Mathieu Desnoyers , Steven Rostedt , Peter Zijlstra , Ingo Molnar , Thomas Gleixner , "David S. Miller" , netdev@vger.kernel.org, netfilter-devel@vger.kernel.org Date: Thu, 26 Sep 2013 12:46:03 -0700 In-Reply-To: <52448D58.9060503@linaro.org> References: <1380220464-28840-1-git-send-email-john.stultz@linaro.org> <1380220464-28840-2-git-send-email-john.stultz@linaro.org> <1380223585.3165.205.camel@edumazet-glaptop> <52448C46.2050107@linaro.org> <52448D58.9060503@linaro.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2013-09-26 at 12:39 -0700, John Stultz wrote: > > No objection, though I worry that will obscure the lockdep key name, > > causing all the u64_stat_sync locks to appear the same. > > > > I'll give it a quick shot to see if the compiler inlines it well enough > > to preserve the name. > Yea, unfortunately this causes the reports to all look like: > > > So I suspect using the macro is the best approach here. Is that ok? Oh well, right :)