From patchwork Fri Aug 14 11:39:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 247724 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp295281ilo; Fri, 14 Aug 2020 04:44:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOxuwMkcxhiC3ii/pd1/+n7k2sUmVt78zqdxeggLAIcm2dQAyCu3cltROr4ZqGNz3gu3uO X-Received: by 2002:a17:906:95d4:: with SMTP id n20mr2068466ejy.485.1597405449555; Fri, 14 Aug 2020 04:44:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597405449; cv=none; d=google.com; s=arc-20160816; b=Gm1YgSFQ24rrflsWQ1rQvHR1kyiOFixhrXS7qbaAbmcYmT8JZn8L/ocqUKm6RZKtv1 mq6HdOxFmDzcJJh5chJBNDK8I5YGaMer9SQW5581DgTb7HPrEOY9Vd3FcAqjt4wKU+oR 8lKOeoEuUijNMlenSWVz9XgJ1/xvJzrOlvUhIepFaxSUzgu5X7PRTJYmucRNFO67jNpQ SW4MbXUUFE9YWXJb6jbcgo0TJsvcpfYCUkLVVX0M8G8GpaBxA7eB8sPS86viyFvRWHbd 6DuEylD5H/HrNFA1mgv61KPyv8/LunkcQDPlxAbPOgbLfK+0S8g9VbJwOf33dIsLuWHh Dfyw== 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:date:subject:cc:to:from :dkim-signature; bh=3CIaL9kwctZltECceeOkMasHCAXmIM+a/cYObSy4ff4=; b=Azm7TFrx380eE0P41Qkva0kFe9zKa37LerkUdESnX5fGoiwimprQoiD3NYfUVjYwOj Z+04HrlMFQiqpw3EH+d3i+iPUiFSKHiRANSI9/yWWEqDQJSRNMe8PgQ0HiNfhkXL9UpS JY8fjDSE8OnnAOp0Jp/45ZAH+acjpyoS5dN+fkuPyWnOeEp8ws5mGpHXItlkJXm6Ac3u 2CrJ/tFD6IijosCbXYEooR2y2ODmj/o9GnFC83wFR9tO7o/MfhFPUJWDarg6dyZPLIKB TZKKkJAJrLSM8X5AT9VDk0HV3MBCvpJnqPufjo8fAuEu8A3Ci4ugA9aaJi1qsr56hG4d FsxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MmCFyrgl; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-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. [23.128.96.18]) by mx.google.com with ESMTP id c21si5120952ejm.385.2020.08.14.04.44.09; Fri, 14 Aug 2020 04:44:09 -0700 (PDT) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MmCFyrgl; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-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 S1728008AbgHNLoF (ORCPT + 9 others); Fri, 14 Aug 2020 07:44:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728060AbgHNLjy (ORCPT ); Fri, 14 Aug 2020 07:39:54 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01A16C061386 for ; Fri, 14 Aug 2020 04:39:54 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id r4so8041107wrx.9 for ; Fri, 14 Aug 2020 04:39:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3CIaL9kwctZltECceeOkMasHCAXmIM+a/cYObSy4ff4=; b=MmCFyrglks64su5tIBCIBbKp02c/3IxLmE2VWCQNGkN+nu7SA1AiyusR5q/f41X9pW cArMJ9rMffav9+UF5+u7lq5rZtTrZI0W0KMBmWTMsb605BjYmW7sXr1A/dYMJz6vrUla 4dPxEAssYLx9/SKjKI/9sDVekVpdNLwgmiDVb4EuYYeoqBAlV8aT7rWGGynALuJzeBiT i0JGOrO1Nj9aWClAcmFhvE9J59UF3SnDGDhv8TBukXzNiCGCYcU4DmNn3BL1Ddob1D8F oRZm0lzH6JcJ/d4JALvBoF0iSnyuXaRQrGgzSY7zWqspHBA7fRAw1rfVdUWcyoqfZAth mUoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3CIaL9kwctZltECceeOkMasHCAXmIM+a/cYObSy4ff4=; b=Ey0nsW8oovEFGdwDeM803T9rP8mmfcYRaI4KAzqr8GL7i+BJWKlWY4bcjv5/vfSu+G YqTCSTs6OsF/62JCnqFozZ0NQxGeu7SqFK0AxjS0GPzEE6uta5iv+0wer7mNrrpUs2Bg ijKTBlwOrDHZgwj1Zc7W5ilBcPcyizOyHHedcLgecpAEqVtwPt17RIP+IRZaua0o8Z5p Ao5MvOTHhlLuvtlMJ+hKfQ7o4w6a4TxmgrqATxrdCZvLvX1Jvo4iGsDNCKCOV9G3LR3g V1BoaRfPyuCzqJRshak/EXN5CoAbx4S2/NlX2gPo8cTWrSfla4qMAJobXMkO2Owgm61h K0kA== X-Gm-Message-State: AOAM5305L0EFScxY9Wyl7/J3hkZSu06aRigpnWZYmLI91qFL71ouBmKY 2uUW0Kwj2OYJpcHc7Zz2niawRLfaAsYd7g== X-Received: by 2002:a5d:4b0c:: with SMTP id v12mr2338935wrq.199.1597405192700; Fri, 14 Aug 2020 04:39:52 -0700 (PDT) Received: from dell.default ([95.149.164.62]) by smtp.gmail.com with ESMTPSA id 32sm16409129wrh.18.2020.08.14.04.39.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Aug 2020 04:39:52 -0700 (PDT) From: Lee Jones To: davem@davemloft.net, kuba@kernel.org Cc: linux-kernel@vger.kernel.org, Lee Jones , Christian Lamparter , Kalle Valo , Johannes Berg , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 08/30] net: wireless: ath: carl9170: Mark 'ar9170_qmap' as __maybe_unused Date: Fri, 14 Aug 2020 12:39:11 +0100 Message-Id: <20200814113933.1903438-9-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200814113933.1903438-1-lee.jones@linaro.org> References: <20200814113933.1903438-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 'ar9170_qmap' is used in some source files which include carl9170.h, but not all of them. Mark it as __maybe_unused to show that this is not only okay, it's expected. Fixes the following W=1 kernel build warning(s) from drivers/net/wireless/ath/carl9170/carl9170.h:57, In file included from drivers/net/wireless/ath/carl9170/carl9170.h:57, drivers/net/wireless/ath/carl9170/carl9170.h:71:17: warning: ‘ar9170_qmap’ defined but not used [-Wunused-const-variable=] NB: Snipped - lots of these repeat Cc: Christian Lamparter Cc: Kalle Valo Cc: "David S. Miller" Cc: Jakub Kicinski Cc: Johannes Berg Cc: linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org Signed-off-by: Lee Jones --- drivers/net/wireless/ath/carl9170/carl9170.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 diff --git a/drivers/net/wireless/ath/carl9170/carl9170.h b/drivers/net/wireless/ath/carl9170/carl9170.h index 237d0cda1bcb0..9d86253081bce 100644 --- a/drivers/net/wireless/ath/carl9170/carl9170.h +++ b/drivers/net/wireless/ath/carl9170/carl9170.h @@ -68,7 +68,7 @@ #define PAYLOAD_MAX (CARL9170_MAX_CMD_LEN / 4 - 1) -static const u8 ar9170_qmap[__AR9170_NUM_TXQ] = { 3, 2, 1, 0 }; +static const u8 __maybe_unused ar9170_qmap[__AR9170_NUM_TXQ] = { 3, 2, 1, 0 }; #define CARL9170_MAX_RX_BUFFER_SIZE 8192