Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp441728pxa; Fri, 14 Aug 2020 08:16:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxl0XWLzmwXj5G6M0ENxUGg1QTb3epk+VUhUX1B6uvbVFgmYqNdszeOas9QjrjQ3mNZ3yj X-Received: by 2002:a17:906:6bc9:: with SMTP id t9mr2780523ejs.372.1597418199167; Fri, 14 Aug 2020 08:16:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597418199; cv=none; d=google.com; s=arc-20160816; b=L7KsOBeFvWYObNRrBzo3dZDDXS58ADh0c2zDz2TvlYKMPh66tBgI8axvINI3LBcX32 u6ax4ZZlM1ItZmt2YIzCvUlTprRhIdV/Mc5Fvbu8H36ie/Pxwozqk6nhte7Ld6bkIud7 2JrNJycStPR7QIslzB43zHLF8nyP7Rs3vyRA7embHUiOWfAilUGa1ttEs5B6CnN3SZt1 l6i4MZhufj/KLj22xhI1/Wc/ADf5Y+TXnThfRrADv0OOF2LXZTCtNOZgrdu3lhPL199X iJmeKs8ICkenxIjsA6JTOy2GWyr0ThSm8LLiN9AvYXS0gmcVRAWBj9AEXiGZWwi+PrHQ dWGQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=YfxBvA2aWYrgE+5pWWC12w5X51+Qhmlb7pIk34TG7p0=; b=H8ekfa75aZaS5fqgbqHRT+o69pla1Z62tCLi2pRITT6uukwLn5f1o7JxqvBMH9nyHo HlEW/8VNvQFmXzWukAx0KtW8VFZcboe8jIy7EGP3QPHwHpysU1dlBdMaQLglOue+1ZFS 5YsfNqqwdKFcUK4bDVbO4FlbV/SrrJpdrkfUXHqBpdjWpoy+SymFu4u4XUnm+qHJNtAK nDSz5pQRCDwLW2pBqhWodsIcHgPulGoANh5HViHpGb2r0x8zpHLW3qik/Paq7KPxe0JA FrSMHdGGGPnQaXyDLMlFFiTQvOI9yxeZnu/t60jyh6Q5l8Rufyvbmrf/h3iiKNdYE/Fi U7mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jVBoK0ay; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n12si5334718ejg.253.2020.08.14.08.16.15; Fri, 14 Aug 2020 08:16:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@gmail.com header.s=20161025 header.b=jVBoK0ay; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726811AbgHNPOk (ORCPT + 99 others); Fri, 14 Aug 2020 11:14:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726297AbgHNPOi (ORCPT ); Fri, 14 Aug 2020 11:14:38 -0400 Received: from mail-ej1-x643.google.com (mail-ej1-x643.google.com [IPv6:2a00:1450:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 317ECC061384; Fri, 14 Aug 2020 08:14:38 -0700 (PDT) Received: by mail-ej1-x643.google.com with SMTP id o18so10291114eje.7; Fri, 14 Aug 2020 08:14:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=YfxBvA2aWYrgE+5pWWC12w5X51+Qhmlb7pIk34TG7p0=; b=jVBoK0ayiDeTelEO57sqcmDDqZLwjimjPMGEOK+yRJvJPLCPM+Ge3kM3KqRutrsUFw PPDBhSMUz3xDL6SSFkQR9AlASsZzYMe3vmMXeWRcgBDJzzixXdiVM69JoZ928OgrcZMv XZwsZEgx9zFBnziHsDtw/+TN33ZuePc9pF5Sma2tIbopcl+JfOyEwmY0Obi6uZ8MtaCj K2DjkJJwLHMKG4QH1Tz+HgM8BlxV2/KRMe1bR8sE7xFBujRwyZZldvuYPk816xx9EYpz jLMKTaRvdtwCg2oLe1CsViiCze+bxp+dLSUa92CTWjGeDsx56bHvn1/5bSRUi70bVSnz oq+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=YfxBvA2aWYrgE+5pWWC12w5X51+Qhmlb7pIk34TG7p0=; b=rRjWUHpzBCj/nvZ1VjfHjYsQG9x8brlI9yrr2oLWHGUjgJ8pyiO02L93lk6YPPwNPU oXTexR5Rmc6qPgNdfk1hSPBlnxG1FaiG9ARDmhYotInrBoYjdase6pERECGb94e2JMKL MkDXiLClOs4x2tEUVMAml6weZe1I9XJzuoMQBtPJ/EH+Q+Wo+nkWWbXyHLczjcQRXQlL /qWU1WRkhlP7kkkteeWb2MXvp1TOqi5bRvOyn67YlxIrGwvB9IvXHWND9uwvvotKMbqV CdawQwd0WZ/7ruOCSfhQVKo3Q/xMU9v4pFSN/MqXJk114VrqmV+ghtfQGVCTU+PtLRTu 8jjw== X-Gm-Message-State: AOAM533xKVC15sAJ/W76Gk/pRJKY3ljKL4PjDuEP//i80aZaSXaIjtTc C8BS/lm1bgrJgffEiubU0tM= X-Received: by 2002:a17:906:a141:: with SMTP id bu1mr2779462ejb.303.1597418076922; Fri, 14 Aug 2020 08:14:36 -0700 (PDT) Received: from debian64.daheim (pd9e292cf.dip0.t-ipconnect.de. [217.226.146.207]) by smtp.gmail.com with ESMTPSA id g27sm6854911edf.57.2020.08.14.08.14.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Aug 2020 08:14:36 -0700 (PDT) Received: from localhost.daheim ([127.0.0.1]) by debian64.daheim with esmtp (Exim 4.94) (envelope-from ) id 1k6bPa-0002da-Rw; Fri, 14 Aug 2020 17:14:32 +0200 Subject: Re: [PATCH 08/30] net: wireless: ath: carl9170: Mark 'ar9170_qmap' as __maybe_unused To: Lee Jones , davem@davemloft.net, kuba@kernel.org Cc: linux-kernel@vger.kernel.org, Christian Lamparter , Kalle Valo , Johannes Berg , linux-wireless@vger.kernel.org, netdev@vger.kernel.org References: <20200814113933.1903438-1-lee.jones@linaro.org> <20200814113933.1903438-9-lee.jones@linaro.org> From: Christian Lamparter Message-ID: <7ef231f2-e6d3-904f-dc3a-7ef82beda6ef@gmail.com> Date: Fri, 14 Aug 2020 17:14:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20200814113933.1903438-9-lee.jones@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2020-08-14 13:39, Lee Jones wrote: > '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) Is this W=1 really a "must" requirement? I find it strange having __maybe_unused in header files as this "suggests" that the definition is redundant. > 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=] > > > 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(-) > > 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 > >