Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp2010252rdf; Mon, 6 Nov 2023 01:49:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IFRiTny3Y7F+3B7p82xmeg/TPaBRtp8aRT/qwhdOuGkNymH/PzWhCLH5MGRt7QDMHm2p/U2 X-Received: by 2002:a05:6808:2a76:b0:3b5:6462:3191 with SMTP id fu22-20020a0568082a7600b003b564623191mr17443036oib.48.1699264157830; Mon, 06 Nov 2023 01:49:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699264157; cv=none; d=google.com; s=arc-20160816; b=0FAB2JKxgbG37WMBbhrctbzriK/Go0wE8HxSqgszf6523Td40LxPSZOuxGFoKGJpzX XqPrCL9HxAp/V4fLuIYCHzTQgQwJAl4X5jjpVsdKUrqv4Cte3uLHgdezNnoTj8DeNpvc E1mo7PhQUUiYYaA8ebrAJw4Km41mQylHYRIw0OHh4NMVttZEvGrhklSsE5pkKhx9FwA9 DvPtnvdOhiIsB/d5bg7z9LLKTC5ELBzjat8R9RADoAwfOWa8tVAnTmb4vSpDzq+JvE96 oxwbtcWqXfmaN+ngUykoq+99pupRRZ9zDAQDqCmL3+aonjEjfNZ/xrUs6qDC3g/EQ5li HRtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5dSkJUdssc+qtTzGyYWNcCtask+4I7QSAUwTl7nWodk=; fh=m+cerAwp3nf3Aj6l6k3EoXa8JC7wZtCBwRvmyN8MLlE=; b=qM1MEdEngmZVAY6qd7XX7oaJNErpr4txfGsiCKuHT9sq7Ohrm0qWA8J/sui11lvXwm eU7od9KIJ7KK4tlEJjfJ2Ad4Dj6Sex9v5xvyYKCdVceYdGIFgirysqnOGZyXgDo9B7pV qJab6IbF0n2W04GvProevzAgvM7iKKNsNVLe2tLAgf1WkU5O4ppbzWoGkHIMfH/j8pGe 1XrutJtANiqS3d/M7UpCEkZOJZ00awDruGJLAnOF20nu3O+ke9cUo/lir+iZPZ4T4wpy kWpINtQoil/ganixaMVrxhCrakBzvFmOvT2WudZDUnXErBQIrRRIl4P3HWzCRtRdRRsy mC5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JkSdq7Vk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id bw28-20020a056a02049c00b005b106cd44d1si8623377pgb.486.2023.11.06.01.49.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 01:49:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JkSdq7Vk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id F351C80A220E; Mon, 6 Nov 2023 01:49:14 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231414AbjKFJtE (ORCPT + 99 others); Mon, 6 Nov 2023 04:49:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230086AbjKFJtD (ORCPT ); Mon, 6 Nov 2023 04:49:03 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99597DB for ; Mon, 6 Nov 2023 01:49:00 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8EB2C433C8; Mon, 6 Nov 2023 09:48:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1699264140; bh=J+UtUK5jNoTnUce3qF2KYAJHZLqEpd1q/Qp29qYt+yA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JkSdq7VkM8dlXDHxaqQYrG0/fvr+C44VpLGTtGRsaAwWT2/Cm4B1LtqBX8b1tJf3d GkYTm2UHMwEM8K0Wz9+0gMdDN9lVWF8rFQL0RaGpfh30xLjklg8YJF+IXqguDxC/Ia fWkXCvji8Ts3biavFrXnGcGE0RaaQ3KoAl05Gn6g= Date: Mon, 6 Nov 2023 10:48:57 +0100 From: Greg Kroah-Hartman To: Yujie Liu Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: drivers/comedi/drivers/tests/../ni_stc.h:1140:35: warning: 'range_ni_E_ao_ext' defined but not used Message-ID: <2023110639-overbuilt-caliber-28ef@gregkh> References: <202311060001.aEuf1q9y-lkp@intel.com> <2023110641-profusely-factor-b3c5@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 06 Nov 2023 01:49:15 -0800 (PST) On Mon, Nov 06, 2023 at 05:31:26PM +0800, Yujie Liu wrote: > Hi Greg, > > On Mon, Nov 06, 2023 at 10:00:14AM +0100, Greg Kroah-Hartman wrote: > > On Mon, Nov 06, 2023 at 04:49:17PM +0800, kernel test robot wrote: > > > Hi Greg, > > > > > > kernel test robot noticed the following build warnings: > > > > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > > > head: 1c41041124bd14dd6610da256a3da4e5b74ce6b1 > > > commit: 8ffdff6a8cfbdc174a3a390b6f825a277b5bb895 staging: comedi: move out of staging directory > > > date: 2 years, 7 months ago > > > > Have you tested a newer kernel? Testing a 2 1/2 year old commit feels > > odd to me, was this intentional? > > We did test new kernels with W=1, and the issue was captured by the > bot, then bisected to this 2 years 7 months ago commit that was likely > to introduce this issue initially. This commit is a "move files around" commit, so it obviously was not the original problem commit here :) > We have no intention of directly > testing a very old commit, and we're sorry that the date info may > cause some misunderstanding. > > This can be reproduced by allyesconfig build on v6.6 with W=1: > > $ git checkout v6.6 > HEAD is now at ffc253263a13 Linux 6.6 > > $ make ARCH=x86_64 allyesconfig > > $ make W=1 ARCH=x86_64 drivers/comedi/drivers/tests/ni_routes_test.o > ... > CC drivers/comedi/drivers/tests/ni_routes_test.o > In file included from drivers/comedi/drivers/tests/ni_routes_test.c:22: > drivers/comedi/drivers/tests/../ni_stc.h:1140:35: error: ‘range_ni_E_ao_ext’ defined but not used [-Werror=unused-const-variable=] > 1140 | static const struct comedi_lrange range_ni_E_ao_ext; > | ^~~~~~~~~~~~~~~~~ > cc1: all warnings being treated as errors This is odd in that a static constant is being defined in a .h file, so anything that happens to include it, like this test, will then need to use it in order to silence this warning. I don't think that's going to happen any time soon, so it's good that we don't really care aobut W=1 just yet :) thanks, greg k-h