Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2133242pxa; Mon, 17 Aug 2020 01:28:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKk2Qvzza2YoKG97DTwp5PerLBrXPAjeZYgA0yc7Eriyq2JefN32PhP/lVRHum7k9dhocg X-Received: by 2002:a17:906:1c84:: with SMTP id g4mr13864402ejh.59.1597652905417; Mon, 17 Aug 2020 01:28:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597652905; cv=none; d=google.com; s=arc-20160816; b=GeJtd5rVXXpTRYOs8LdUphIAbknaDlO9JRe+k0gbM3LZju7kAgbWpvMExP6Gc7JnXG knSNHihM0klm5X0oh7irjU8KFZ1MzOu1vTyA5u3kjdlZKqcpBvtv461lQNEuh/siCWiy /y8LoEMhzrlFr9YUcTjQiyN5RhqvBerkG/v9cLauUSCK87Gf37ABN5kvwUhwO4A3LzXg NJdLI4nhrQ5RPhrLWa0gf4BHqQboWYjGFYkFStPFUpWkxeaildl7u//2qq2Sc7n/fV1l fnybGkPaMVPM+5Kbulj/VaOE5Xf1kuP0j1OQHiPRbdOMHH7QvMsI2MAoPvBHyOLed2qh WtNQ== 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=EB784NjPICkYR6SWnOZXgVJnpSq6x26Bh+bf4QaSgmE=; b=i9D4BhwIYPY+vJfb3D1lbc/RCpeSP/1xUulHYdXtb6beJm/XfmfbCOd2UpxgVVkNj/ FNbhv473gGmrDDdZeIAIC/D1T1htRTKZ9lpjI/lavTmC2b7zqdJ6Uu+5sdYvR6Pbpgok PF3oZOXKrzSzi1VoeGvd06sa3otoF+TUfhpypQYgszy7dutN9boyYgywBgN87UjJylea mPOp2NxZQCOUOmc98WkZgF5YdrrXxeGRqpFn8hMIZUkqZZLS1Yf2PEPSwpNK4YepBVmy uHvqHJhBurZiN5LaGBa3uvMuM2UY3IGln1GefowNaCH2lx1u7jtEJIVN7JsbD3Ch/22e +MYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=WW6BjLlH; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b19si4406008ejk.429.2020.08.17.01.28.02; Mon, 17 Aug 2020 01:28:25 -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; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=WW6BjLlH; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727949AbgHQI1d (ORCPT + 99 others); Mon, 17 Aug 2020 04:27:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728406AbgHQI0T (ORCPT ); Mon, 17 Aug 2020 04:26:19 -0400 Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8943EC06138A for ; Mon, 17 Aug 2020 01:26:19 -0700 (PDT) Received: by mail-ed1-x544.google.com with SMTP id i26so11598341edv.4 for ; Mon, 17 Aug 2020 01:26:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=EB784NjPICkYR6SWnOZXgVJnpSq6x26Bh+bf4QaSgmE=; b=WW6BjLlHMZolL6jV9wGUJ2Nqna4uXwJlebSkTA9urlIi6Sa4Pa/NFLVlhsaFlRrn9E XQngChT6EYMcGX3cA8zMULqnTs8j60bTV+lfjDankwdHtdAkUKN1PbSGAMxLTWewd3c0 abf5dN1kL9l6jxvEgxS3raK9zw14TFbm9RQxo= 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=EB784NjPICkYR6SWnOZXgVJnpSq6x26Bh+bf4QaSgmE=; b=qPyfn9E1M3kSW6IJgsqg0C0HmP5iYtsC2svwhg25eyCanvYRr4jGI9Xtkjv3rusNYL pajjQXkpCKqIEbzQ1lieMCjuXyhLgkgaiI9Hl5ccNSRYRa2MQfHHfr9proImTBWXCW38 jiX/zW0XnubcPupKC+Bz0cgUrgOnaMTHXWJCwO/VEcba18bxkZiK68V2m7U5PTJ3IUUh H+t6T8D9aArgMxMejP/8PTbqfK4g1N6DRD4L5BHCVeOAKg/3VWYW9gkwdEpLzVKaZ4n6 zj+5iram3352DtG7PEje+kFlKGhrfgsyRFsg8yDcyNzTobvwdf+2Zju7knohGQNjtSR/ G6Uw== X-Gm-Message-State: AOAM533hVAYrnvP7DEdqjvyDWEB1hBpnkh87XZ7/FGAf8LGrs9+/AbLI Pi6yByJkvtiQCodf24VsxqYQUQ== X-Received: by 2002:a50:c3c4:: with SMTP id i4mr13899573edf.244.1597652778082; Mon, 17 Aug 2020 01:26:18 -0700 (PDT) Received: from [172.16.11.132] ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id v13sm14170727edl.9.2020.08.17.01.26.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Aug 2020 01:26:17 -0700 (PDT) Subject: Re: [PATCH 08/30] net: wireless: ath: carl9170: Mark 'ar9170_qmap' as __maybe_unused To: Christian Lamparter , 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> <7ef231f2-e6d3-904f-dc3a-7ef82beda6ef@gmail.com> From: Rasmus Villemoes Message-ID: <9776eb47-6b83-a891-f057-dd34d14ea16e@rasmusvillemoes.dk> Date: Mon, 17 Aug 2020 10:26:16 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <7ef231f2-e6d3-904f-dc3a-7ef82beda6ef@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14/08/2020 17.14, Christian Lamparter wrote: > 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. In this case it seems one could replace the table lookup with a static inline u8 ar9170_qmap(u8 idx) { return 3 - idx; } gcc doesn't warn about unused static inline functions (or one would have a million warnings to deal with). Just my $0.02. Rasmus