Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2095938imm; Thu, 23 Aug 2018 14:08:35 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb2fpE8sxGuV1h6kSKcEsWxXrxvfbwpEaUwQl3duOAyAtzRM6pUZv1EqWz0TymNfQXQXMis X-Received: by 2002:a17:902:24a5:: with SMTP id w34-v6mr3295785pla.122.1535058515048; Thu, 23 Aug 2018 14:08:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535058515; cv=none; d=google.com; s=arc-20160816; b=wmFT01ahKZuBjXId7eYqYg/JWf62Mp/YeEDKeMLoRF+FXNZCNQAbHlGtFU4D1O1jge y2HRH5QF/Xn0uzmqWAcgHF1KT8Unn0zsLvwjc1usDdR6h3wgQg5ViCgsJUOUYXDZZAEk 96JSX+E0VfLtXpUHJn/WZ+sEYk2hDhkvXJ9E1PfvO91iT/u7dLX1mVuIo+7DNDUmgMvT GSUJn/bhZiK7Zu2pi0FnK8j9S5QqNW/l0MUxf9jeCajbAyEXJKpyuFqF/egdGIAkpkmM hII/woR++CIFxrQw09CUv4qR2yVDtMrG0STzsMB7WH15EJzX1jyTukyh2cNP87VAdtrJ TKoQ== 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 :arc-authentication-results; bh=nVf30epnc+0UxIEhcady0xHX2bQxEjllbvS8av29Kg4=; b=zhbj62HBJpvWe+TYdoCiWwjRlp9pflJyFsAmCnW/t5V26HxEvAyCKroInlkUxxeYeu tKFTR7xaA4ZwJBKEl8AaJ5Z1HDck1XGmd9kBLIYuOt/iLDhtWA/8Ji133ksrVFUrbjq3 Lyff8BgmWVCuztdhNDShb+kmXJrre+1j+8gBQDf6MqYWSN+PASlvilWj3pVzplrduWmy 4wkRzlrnbOmNG3a0MNlSnd2QV/uDa4exaEFzF7kYk7hrLS+I0Gp8Na95La9lF0o/tkTf lL5IONmVwVbp7vtJqlTuGNMyOQNyivOXWs8zSoJZmSA/G+Js+ncLvmhTD+iPHGwbFRhY 2T+g== 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 l63-v6si5580092pfg.326.2018.08.23.14.08.19; Thu, 23 Aug 2018 14:08:35 -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 S1728683AbeHXAip convert rfc822-to-8bit (ORCPT + 99 others); Thu, 23 Aug 2018 20:38:45 -0400 Received: from mail-vk0-f66.google.com ([209.85.213.66]:35080 "EHLO mail-vk0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728258AbeHXAip (ORCPT ); Thu, 23 Aug 2018 20:38:45 -0400 Received: by mail-vk0-f66.google.com with SMTP id w193-v6so3310667vke.2 for ; Thu, 23 Aug 2018 14:07:16 -0700 (PDT) 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=2rAsC/ZB3su5qCOHQ2F87WGgD6U5NWKu92dZGJDB0Q0=; b=FyKJwiyFAPkW1GplEnR7p61SxQcHTE7Vu5PUThyMg1ZkHk9KAE3JgsX1kUxNPMNqsv mcQGk8ly65SAP/mxMs+IjzguQ+KzRoroO8vKvK9ZiCBTFp88EiaFgphpqruOUY+aUtL1 HkBfeVNmchOSVhTbAzeoYZgK0oj/aBct9hRrbtqtfBeIBUjr1TTH8Gp/750t6LY/8Y90 DySSd0nP+tgtvo12Q7ODOnFbMldehJt23/t057as9baw9ljnv2CypMrQfS1xy/P6DhCi idAmJ1OZBHCJCWZzIb6rdPQ++BjEs25KuJT6cKrTSEGzcATgt3bars83042zZi0Da+nP 24Vw== X-Gm-Message-State: AOUpUlGqevuA7yzkr2OoffFb4IUhstSlWt3PMQA3ViHTuvMi650+0AaG Ax9bvGunzDT5K64fodwDugXeqztwvSUai7tvN+E= X-Received: by 2002:a1f:8948:: with SMTP id l69-v6mr40570142vkd.132.1535058435639; Thu, 23 Aug 2018 14:07:15 -0700 (PDT) MIME-Version: 1.0 References: <20180704095318.19218-1-anders.roxell@linaro.org> In-Reply-To: <20180704095318.19218-1-anders.roxell@linaro.org> From: Geert Uytterhoeven Date: Thu, 23 Aug 2018 23:07:02 +0200 Message-ID: Subject: Re: [PATCH] fs/ocfs2/dlmglue: lockdep_keys defined but not used To: anders.roxell@linaro.org Cc: mark@fasheh.com, Joel Becker , ocfs2-devel@oss.oracle.com, Linux Kernel Mailing List 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 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)") Presumably the branch got rebased? > 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-m68k.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