Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5214221imm; Tue, 9 Oct 2018 11:24:08 -0700 (PDT) X-Google-Smtp-Source: ACcGV63ldQOOFMp+zEKlgLz+t52m96AAWlUn5cj2kJFSVmvnuuDa9+C7lU8ILh/k6/kwfB4hSY1C X-Received: by 2002:a62:41d6:: with SMTP id g83-v6mr31175635pfd.44.1539109448115; Tue, 09 Oct 2018 11:24:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539109448; cv=none; d=google.com; s=arc-20160816; b=YBvtf5TZhf3PcQ917fZiMWitow+K/3tCplF5Z0UruX6bmNx0LazOgHkTnw25ySAyx8 JnN/vjKgE7NpoxQPi1ReqOLsMWLG6lquZBMY5GVNQ0aXMeXEZkmJS6t1baNoTER9mvVI XSQxOOUU81skbnplGRh3yg6d4cjPdP6ZyAPNDuW7U7U+imC9XGMXHhj0ZzrAnKvrpYrI CCFb19gkwaVkyc7DN2ZddJ4NYAe5ulNBaKTmXoSs34YYPEf48Zn8tFLo3dSz8gYrmq7+ KDk3pJZu1eVCHbJfv32p0Khw96xbO4h/XinGJzK02pplV4oUj8Br6RSrQIuFIovkfuGf L7TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=8iIjJykf+v0et+8HAkie1szoAu0ROuUOh03AA6WAYTE=; b=JJxG5cT1HCGmUGpDL7m8a18pKedgIOKiPJ/xLZaHBKSN/ouKk/KwwWk8bpQzHlZ+3n 8ptyT0zXekemDRDmLkPwl+2hq09FrTxSnY9x0qqcdRGmFQkPLGcYJh7FPNYyt8nmid6o GO3ezDpcXd8FNHmpiierCG52bVvZ9freZ1JCjZQZ5cxXu5jWhSgfrzrDwtBbji06n/7i HYuMCd+BSj4vxO74w3ISCIu62nftks1n3KUGyyGCTn6lhAAYKOecvTNpD2wy5oaGZP8b r9Rage6zVZc4kDFDbk2FzGjegn/EGYfRsZPifBCHtgPgZdZOUwMrUDmfepVr5gEaQ9XY iVhg== 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 j19-v6si20380001pgh.198.2018.10.09.11.23.22; Tue, 09 Oct 2018 11:24:08 -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 S1726525AbeJJBki (ORCPT + 99 others); Tue, 9 Oct 2018 21:40:38 -0400 Received: from mail.skyhub.de ([5.9.137.197]:33092 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726427AbeJJBki (ORCPT ); Tue, 9 Oct 2018 21:40:38 -0400 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de Received: from mail.skyhub.de ([127.0.0.1]) by localhost (blast.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id jteq7IuEM6ko; Tue, 9 Oct 2018 20:22:22 +0200 (CEST) Received: from zn.tnic (p200300EC2BCA7500329C23FFFEA6A903.dip0.t-ipconnect.de [IPv6:2003:ec:2bca:7500:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 3CEDF1EC02B2; Tue, 9 Oct 2018 20:22:22 +0200 (CEST) Date: Tue, 9 Oct 2018 20:22:17 +0200 From: Borislav Petkov To: Anders Roxell Cc: geert@linux-m68k.org, Mark Fasheh , Joel Becker , ocfs2-devel@oss.oracle.com, Linux Kernel Mailing List , Andrew Morton Subject: Re: [PATCH] fs/ocfs2/dlmglue: lockdep_keys defined but not used Message-ID: <20181009182217.GA18663@zn.tnic> References: <20180704095318.19218-1-anders.roxell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.