Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2828171imm; Fri, 24 Aug 2018 06:08:42 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYiOc1V2kPprOijyKrnHt7QlLGxogkzbP8ptRRAHG4R3TYSj9R1pb5/ytR9v+yf8WAKeKoH X-Received: by 2002:a63:4c07:: with SMTP id z7-v6mr1733192pga.312.1535116122214; Fri, 24 Aug 2018 06:08:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535116122; cv=none; d=google.com; s=arc-20160816; b=A1yjHWHd+XpNcHJpM6XPbhnRk+5hSTibiNgmufcGyc+FstbBxwzKL858qJkGgKE854 qZo4JkzXlEhzUMOds6mId/WyDic4Vf0nu6k0LzkqwLw8ES3L6CJcsN7iYjLBNvyfFU5W 75omCX/D3j/qugQa5V2pUgVAFps9iNg2sNYEFhWoQcTLGaieNpf6llMUsElAiwQaAjHF LQU+OlD85wBzBgc/JtIY88ebEf0lQ3BSutZpewRSAn15RlwjfY4mciTmytve3kzPphEC ppeKSxxpbSpir81k2OjLvohoO6fQSWKU26hl+4ofoNCiy7EEvQvinQFn6HC+r24BQtbg h56A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature:arc-authentication-results; bh=tAkxiQVhB/4oXk51I1meUDbL60OAuk736CDQik6Ywqo=; b=q87g2lmt1CTMq8QZngdKJ+5qnYicaDHfh2CH4xKNmwVT5L+GytZVQ552ZcupdzgiR2 BUZg+0ZFo2d+3ZhBaz77QK7Ed4K+X6Rtkimro8btK3c6Aji5vNbbKFxTB068sC4elgd5 87aBF89bgAbx0DHzEPJq+tF1Wz5EvZoNsX46vQdLWAP3lbtW6/1VIRwOGX1gShowGSEo EKhviTxA7p7s7C/vugg6NUyKEpOYcKc55w7DlaBd6t/35ZI2RX0/7WUGXSUPImTZkFT2 ELALADqWE8jq3U29C5EVBNmJr+MMpLS8Svllff7UgpzAQurrWGocqQXCg9F7sGQI8hji m+Rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EBus8tRn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33-v6si6948998ply.251.2018.08.24.06.08.25; Fri, 24 Aug 2018 06:08:42 -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; dkim=pass header.i=@linaro.org header.s=google header.b=EBus8tRn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727582AbeHXQlu (ORCPT + 99 others); Fri, 24 Aug 2018 12:41:50 -0400 Received: from mail-yb0-f196.google.com ([209.85.213.196]:40359 "EHLO mail-yb0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726556AbeHXQlu (ORCPT ); Fri, 24 Aug 2018 12:41:50 -0400 Received: by mail-yb0-f196.google.com with SMTP id f4-v6so3444361ybp.7 for ; Fri, 24 Aug 2018 06:07:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=tAkxiQVhB/4oXk51I1meUDbL60OAuk736CDQik6Ywqo=; b=EBus8tRnG+EzJxSk8Yv/gm1oCSB2X0UJkzN/2/sAlODqHFxgP5D9B5ju97oipHc/1a dKFgbBXNgA5rnfvo1x7bZTaWtUj9HSuS/YLIe4Y7sijH051Mf5BX51DeXS2757EHHwnW tE4yFuU6Dt1QyYO2/rS1zJMfOGpmm3W2m/lLg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=tAkxiQVhB/4oXk51I1meUDbL60OAuk736CDQik6Ywqo=; b=BZCKze45Vw2DfcrhmgNlAWl/sodeTuCGiRkHK3OsBzvLNJTHFHXMtmxwyiJenW62US qwWT0vnX6JWKgZ2mwNPzS1zZ1QKl9gS4xOKYqMYVROZEX3vNH+yskrDwfJmrUnNT6NVF endiY4752aFX0zP9ZNmwQDfc0z5YEMJ0JuvFdUTK87Om6smWh223+LZeb2hOPXtUPwAP KVZfuETHbYKcHhlcIeA+3eZPeOqdpQpSN156TLcQQa7Tm7lT6PWbur6YmaB7ZK3O9j3d 1+pz04xbLREruPxoUUP1db4lOmgAB6kqXmizdeLn/jW0hBHBG23zkTko10Jqjx4ojfpu HVag== X-Gm-Message-State: APzg51AK19evMMi9eF1k7Xjnc4QOvldgTdKSBeid00wXLn++k3QEk91y bBdBSQpnQUmIT1ey5RhhyKqiBeUu6Vo2V96F0E0BPA== X-Received: by 2002:a25:ad01:: with SMTP id y1-v6mr881436ybi.195.1535116034837; Fri, 24 Aug 2018 06:07:14 -0700 (PDT) MIME-Version: 1.0 References: <20180704095318.19218-1-anders.roxell@linaro.org> In-Reply-To: From: Anders Roxell Date: Fri, 24 Aug 2018 15:07:03 +0200 Message-ID: Subject: Re: [PATCH] fs/ocfs2/dlmglue: lockdep_keys defined but not used To: geert@linux-m68k.org Cc: Mark Fasheh , Joel Becker , ocfs2-devel@oss.oracle.com, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 23 Aug 2018 at 23:07, Geert Uytterhoeven wro= te: > > Hi Anders, > > On Wed, Jul 4, 2018 at 11:54 AM Anders Roxell = wrote: > > When CONFIG_DEBUG_LOCK_ALLOC isn't enabled lockdep_keys isn't used and > > we get a warning: > > fs/ocfs2/dlmglue.c:99:30: warning: =E2=80=98lockdep_keys=E2=80=99 defin= ed but not used > > [-Wunused-variable] > > static struct lock_class_key lockdep_keys[OCFS2_NUM_LOCK_TYPES]; > > ^~~~~~~~~~~~ > > Adding __maybe_unused to the declaration hids the warning. > > Thanks for your patcj! > > > Fixes: 1cd75cdb8fbb ("ocfs2: make several functions and variables stati= c (and some const)") > > Fixes: 480bd56485b77c36 ("ocfs2: make several functions and variables > static (and some const)") Thanks, thats correct. > > Presumably the branch got rebased? probably. Mark, Joel, do you want me to send a new patch where I correct the sha in the "Fixes" part of the changelog or can you fix that? Cheers, Anders > > > Signed-off-by: Anders Roxell > > Acked-by: Geert Uytterhoeven > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m6= 8k.org > > In personal conversations with technical people, I call myself a hacker. = But > when I'm talking to journalists I just say "programmer" or something like= that. > -- Linus Torvalds