Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp862657ybt; Wed, 1 Jul 2020 11:51:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYXLPpFTbDORXmLGMNHjEj5jwpTbJM4PS2mo+nbv4YMj4behN6GYTmuZ4dFNOnAebTA3R3 X-Received: by 2002:a05:6402:1c10:: with SMTP id ck16mr13641766edb.72.1593629498721; Wed, 01 Jul 2020 11:51:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593629498; cv=none; d=google.com; s=arc-20160816; b=OBLuX7EcxPLWG+X0hZ9iWjD+OX3j4wV5Fw+ZtHYB5lyWQjt9Z1yQwpwoF0SEki2Day SbQ3XRNf4sSxJqadJs2/w+ger+dPgk3Uea1Btt96THnwHpg5zfmPFIAXfMS1Fs+4LEVM 0rPtMygUopkJuMMiLwPcnGgS3w6bMQUgx7N9TyhZYVScThvI/nsCMSfQtIuTQ/BF+peV Zrojx7cjSAFpnpCXmEezyP1cIxUQ9Xxt+gijQj4Yb0EzKPn8EFa0Q3CAMXRHV5NBAD9+ ttj470ITmkq1gi1GNxVak8LZs77isIUIN1CX8I+TRI4+1btfRog2d5Wgj8CUJUe9DhFz Mbuw== 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 :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=By+a32TRsCHFh2miZfE3Yoa8xqLTMIuPNpacLTNHvic=; b=aKU9HhNn/+hk/t2QmBy4BvpW7BGvNiWx9fzraqEXMV30zfk8s9PaRqOXZbyUTu9URk k/4uCaBXUpHgBglnPfD3+Aoe1+wK2loONGe+WpoBz+4JWSw8cOMYh8VDWdDz6gL0ntwg JFintxUk8Cr6D3vTMNemkCBr0fNgnA4J3gbYSpAWo2phZtnr8n+c9FUTp8fBsfzMsBCL gHD5pLEERpM6mwq9SCMw960c9HuM8XD71e87uBJ0Ox6Ktxtf8MLVpkR2FgMfv+BQfmzE y1f44ox1jrSSoJpZiUZmZxCilVPH/5dh17/BXDBDZYj2IpjugieigSiANT6tjjP5cLA1 Vc5w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e7si4296576edn.164.2020.07.01.11.51.15; Wed, 01 Jul 2020 11:51:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726353AbgGASsY (ORCPT + 99 others); Wed, 1 Jul 2020 14:48:24 -0400 Received: from mga04.intel.com ([192.55.52.120]:46504 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726100AbgGASsY (ORCPT ); Wed, 1 Jul 2020 14:48:24 -0400 IronPort-SDR: wAC1aanLtz6bsNsy2MgdND79oy80/njIqx0LE72cX3I79RmbhBMJLSvTHQc7xDM/afV2oT77ac v1c3fa2MzhZA== X-IronPort-AV: E=McAfee;i="6000,8403,9669"; a="144195057" X-IronPort-AV: E=Sophos;i="5.75,301,1589266800"; d="scan'208";a="144195057" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jul 2020 11:48:23 -0700 IronPort-SDR: aSOCtV9x7MtfgKy7FttALCYlGfxY+1d1G77RWRwld9EfTil8Yrcw78qevyCTXLpqDqAXgeckqj Ms7uQDMvClWQ== X-IronPort-AV: E=Sophos;i="5.75,301,1589266800"; d="scan'208";a="455207787" Received: from sawhitac-mobl.amr.corp.intel.com (HELO pbossart-mobl3.amr.corp.intel.com) ([10.254.111.76]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jul 2020 11:48:22 -0700 From: Pierre-Louis Bossart To: alsa-devel@alsa-project.org Cc: tiwai@suse.de, broonie@kernel.org, Pierre-Louis Bossart , kernel test robot , Paul Walmsley , Palmer Dabbelt , Albert Ou , Vincent Chen , linux-riscv@lists.infradead.org (open list:RISC-V ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] riscv: asm/gdb_xml.h: use __maybe_used to make W=1 warnings go away Date: Wed, 1 Jul 2020 13:47:49 -0500 Message-Id: <20200701184751.84008-1-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 0day/kbuild reports warnings with the ASoC codecs compiled with W=1. In file included from arch/riscv/include/asm/kgdb.h:109, from include/linux/kgdb.h:20, from include/linux/fb.h:5, from include/drm/drm_crtc.h:31, from sound/soc/codecs/hdmi-codec.c:19: arch/riscv/include/asm/gdb_xml.h:23:19: warning: 'riscv_gdb_stub_cpuxml' defined but not used [-Wunused-const-variable=] 23 | static const char riscv_gdb_stub_cpuxml[2048] = | ^~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/gdb_xml.h:16:19: warning: 'riscv_gdb_stub_target_desc' defined but not used [-Wunused-const-variable=] 16 | static const char riscv_gdb_stub_target_desc[256] = | ^~~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/gdb_xml.h:13:19: warning: 'gdb_xfer_read_cpuxml' defined but not used [-Wunused-const-variable=] 13 | static const char gdb_xfer_read_cpuxml[39] = | ^~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/gdb_xml.h:10:19: warning: 'gdb_xfer_read_target' defined but not used [-Wunused-const-variable=] 10 | static const char gdb_xfer_read_target[31] = "qXfer:features:read:target.xml:"; | ^~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/gdb_xml.h:7:19: warning: 'riscv_gdb_stub_feature' defined but not used [-Wunused-const-variable=] 7 | static const char riscv_gdb_stub_feature[64] = | ^~~~~~~~~~~~~~~~~~~~~~ Reported-by: kernel test robot Signed-off-by: Pierre-Louis Bossart --- I don't know if this is the right way of solving this issue but this error is now consistently thrown in kbuild compile-test reports w/ W=1. arch/riscv/include/asm/gdb_xml.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/riscv/include/asm/gdb_xml.h b/arch/riscv/include/asm/gdb_xml.h index 041b45f5b997..c28fc1a1d230 100644 --- a/arch/riscv/include/asm/gdb_xml.h +++ b/arch/riscv/include/asm/gdb_xml.h @@ -4,23 +4,23 @@ #define __ASM_GDB_XML_H_ #define kgdb_arch_gdb_stub_feature riscv_gdb_stub_feature -static const char riscv_gdb_stub_feature[64] = +static __maybe_unused const char riscv_gdb_stub_feature[64] = "PacketSize=800;qXfer:features:read+;"; -static const char gdb_xfer_read_target[31] = "qXfer:features:read:target.xml:"; +static __maybe_unused const char gdb_xfer_read_target[31] = "qXfer:features:read:target.xml:"; #ifdef CONFIG_64BIT -static const char gdb_xfer_read_cpuxml[39] = +static __maybe_unused const char gdb_xfer_read_cpuxml[39] = "qXfer:features:read:riscv-64bit-cpu.xml"; -static const char riscv_gdb_stub_target_desc[256] = +static __maybe_unused const char riscv_gdb_stub_target_desc[256] = "l" "" "" "" ""; -static const char riscv_gdb_stub_cpuxml[2048] = +static __maybe_unused const char riscv_gdb_stub_cpuxml[2048] = "l" "" "" -- 2.25.1