Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp640914imi; Fri, 22 Jul 2022 06:27:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tBiXm769QhCNf1XBNEgHPMysKSNl0IsaiwdF9FGe9uUs5FB/ny6YqD6en3POXlPwqcS4ur X-Received: by 2002:a05:6830:4a9:b0:61c:9db7:bb9e with SMTP id l9-20020a05683004a900b0061c9db7bb9emr245312otd.199.1658496421571; Fri, 22 Jul 2022 06:27:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658496421; cv=none; d=google.com; s=arc-20160816; b=ugSTxHUZ8BH8f32FyhuC4ORpYgihvAsROEQxFwKgUjUkUbHB6HtK385tAuHae+u8bv 0VxPQZnUNrqF/ptdhPKJirLntzmGdftXvzue7nwz7i/xmzf30qJw+KQ8dSmw2S1jgjXB 4A56jU8Ch05JRYsq/Hstwnf3pxS8Mj1rLS8jNtalIrsEhGG8fJ5Gu3iM0odLLPHmWrCh WSVEpsukwYT2naDjwqB4DeX8gH1esXbxjds/E/y9cD8sbEJ74+vIUlKmBlKlnL8KOhin slP4OeIlCX581PuR0DmqQgGRBgWfEVzsbrj2AgK8KYjobU9xxb37z1e1Cqke3GAg58l2 Divw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=mb3F8P1S1H2uJj/SA4D8uZbSlb2PqIeIsYDzjO7nha0=; b=SpWDFoYfdG2PcjLgw41RI0xWeeHqoTWz2Y24vi0k8jbLcS4b5dokXJ2zmMdeI5yaVp tkHl+eev6U3mv1YpR8TuEFCNthVm06MaKkZ57SYv7gjhLVKjsy5itUkovy5ZGfA+Pgqo JiiM1zK3jj7flfDCYnVqAGOuLh3CaD/R+tLmqBE5iRfztlFvn+btiFjUCGpB7FYD8LIo kKOueT7rZ4QF+rBpMRdSyU3D9+g3+4++FDF72XY8aMfv3D0652DQqOYroU4xGTiaZif5 xlnT+kxWOFGDbFjoduqvs/yy0En+/gm+dzQFTpYPxEOK6Nq4HWiR1HLH0Lqa9RWakZw9 vMig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="OvXe/Qyi"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l15-20020a9d4c0f000000b0061c4d777ef3si4148960otf.40.2022.07.22.06.26.46; Fri, 22 Jul 2022 06:27:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="OvXe/Qyi"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235529AbiGVNEs (ORCPT + 99 others); Fri, 22 Jul 2022 09:04:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235445AbiGVNEX (ORCPT ); Fri, 22 Jul 2022 09:04:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C4C1AFB45; Fri, 22 Jul 2022 06:04:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1DE4361F0C; Fri, 22 Jul 2022 13:04:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 179ECC341C6; Fri, 22 Jul 2022 13:04:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658495061; bh=LlFCSEN1b4eCAl4kQVKpesxHnF3XtrdrYgvhd2XWf3Y=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=OvXe/QyiK5qCfKUOSnHasdGez0dFqoK8EuRRwSfXaNAGAsARXsguvbk9wsZnBgrWt LqCKC5E77tiA1oFYzlZB1wsAFI4HlOcmEOAcSkH1EWfZWVnLoXOOLqbE6VpJPeE0bt hVQxqkpoXbaMx8BW1WAh2xjwp1AouB1cF3nGBDuY1ecW30/UA4zxfOlFCo7/gn84lQ kXJj1PlxUT9XDHdoxi/qqh4ng9UW3NZmlbWYBHqmROZ7/NptVxtL7reaFSkkZxoroO gIxLP6idtZ9X4dpwvMFRcteyNJ7KTgtXLx8+2wzFj7C4K+CEXuj8mM8lJn5LVcN+n8 gSaODKJyg+fqA== Date: Fri, 22 Jul 2022 15:04:17 +0200 (CEST) From: Jiri Kosina To: Aashish Sharma cc: "Daniel J . Ogorchock " , Benjamin Tissoires , Guenter Roeck , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] HID: nintendo: Fix unused-const-variable compiler warning In-Reply-To: <20220720054225.1623875-1-shraash@google.com> Message-ID: References: <20220720054225.1623875-1-shraash@google.com> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 20 Jul 2022, Aashish Sharma wrote: > The following compiler warning is produced when CONFIG_NINTENDO_FF > is not set: > > >> drivers/hid/hid-nintendo.c:405:29: warning: 'JC_RUMBLE_ZERO_AMP_PKT_CNT' > defined but not used [-Wunused-const-variable=] > > To fix this, move the variable 'JC_RUMBLE_ZERO_AMP_PKT_CNT' under the > CONFIG_NINTENDO_FF's conditional compilation block. > > Signed-off-by: Aashish Sharma Applied to for-5.20/ninitendo. Thanks, -- Jiri Kosina SUSE Labs