Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp170401imm; Tue, 9 Oct 2018 15:53:27 -0700 (PDT) X-Google-Smtp-Source: ACcGV61CVja4vzPlug0G5ww1vf5+XIdB/BY8r2iMyEEMzyK7+fN/w+P4BzVcbFjTcQ0m1eoKjHJD X-Received: by 2002:a17:902:6546:: with SMTP id d6-v6mr30557639pln.139.1539125607456; Tue, 09 Oct 2018 15:53:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539125607; cv=none; d=google.com; s=arc-20160816; b=smJjP4JWgNk40MF73Osa7ldiscswPleARxPi2WS0w9IDyfbe/ah5vQRyDU5NVnFIdu MayScPCuabrXHmuEkwkjwrJe6gQl119foKjxh1L0VnJK+sdMOgveFWSGbzofmWXyHPsN 7euV4CqCfXkXMNtnpa5LiqiCAeg1/u68P/SGB5V4vVLg15iN+YMtW4TtO+zlhSp1UaWv KZahKpbvhMkTxEycBvXoMeQYWbwerzeUiU7Uvs4A2FtMGzUVS7YxTQj3iMr/V0bTFNn2 +qlAQPCR0KsU5lF3X02XN/QV6a54MeLFg9+42xCYbzDyqrswyAQt3ErSL8TiBP+56lZs zhMw== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=ZSUZGAv0yF54G9iuQRmRDk0dpmbMlvQ31XRmxGn1fsw=; b=lxj4RjTmz9yozRBvYDqbh5VWqL1XZ646LzFD4HdF2BKvjptIu+Y0l9a0nvrMPG2nPW I3ieRZu7agOpLdN+L1iZ+ClMKAU79PaXCBdIgiVlNcZ0pGfrKoUNeK9aFw8v0H6GEpb7 F3bf1WfM7jrBwIG/yx20DEcG0bzDK8OBkgNKRHppONPaagRRM7VR7x3Rs2rFAq0Y5qFh SL6bUrcqwaD54WSiD3PQTd+xYsH4gWfaDyU8tC8fOVaVYGRH8SzOLsKlm5Gk3T4TQT7e eSBOcpoN7K4Pi4//Fcw4gvi+AHRcVBlYaeU20VgLiYi+KFVN0Mygp7OjMxhYu1fhwWkR Q44w== 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 n10-v6si22491787pgr.291.2018.10.09.15.53.12; Tue, 09 Oct 2018 15:53:27 -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 S1727454AbeJJF70 (ORCPT + 99 others); Wed, 10 Oct 2018 01:59:26 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:37152 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725837AbeJJF70 (ORCPT ); Wed, 10 Oct 2018 01:59:26 -0400 Received: from akpm3.svl.corp.google.com (unknown [104.133.8.65]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id DD917C6C; Tue, 9 Oct 2018 22:40:17 +0000 (UTC) Date: Tue, 9 Oct 2018 15:40:16 -0700 From: Andrew Morton To: Borislav Petkov Cc: Anders Roxell , geert@linux-m68k.org, Mark Fasheh , Joel Becker , ocfs2-devel@oss.oracle.com, Linux Kernel Mailing List Subject: Re: [PATCH] fs/ocfs2/dlmglue: lockdep_keys defined but not used Message-Id: <20181009154016.5f5d044111e14bc38a7313c8@linux-foundation.org> In-Reply-To: <20181009182217.GA18663@zn.tnic> References: <20180704095318.19218-1-anders.roxell@linaro.org> <20181009182217.GA18663@zn.tnic> X-Mailer: Sylpheed 3.6.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 9 Oct 2018 20:22:17 +0200 Borislav Petkov wrote: > On Fri, Aug 24, 2018 at 03:07:03PM +0200, Anders Roxell wrote: > > On Thu, 23 Aug 2018 at 23:07, Geert Uytterhoeven wrote: > > > > > > 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: ‘lockdep_keys’ defined 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 static (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? > > FWIW, I'm still seeing this in randconfig builds here. > > Adding akpm in case no one picks this up. > https://ozlabs.org/~akpm/mmots/broken-out/ocfs2-fix-a-gcc-compiled-warning.patch is queued for 4.20-rc1. I'll see if we can squeeze it into 4.19.