Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1996114lqe; Tue, 9 Apr 2024 06:58:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXoAhrKxWwEq9Pl3Kqz8qQLSxJYv4RLakDyQO+7p5fSJ5KPzDn1jyxrxrjhoL29goUDbPy9CVrQS/3CWRrbV4BZlSTE+n4XMnLILwOmTA== X-Google-Smtp-Source: AGHT+IHFz0w7lxdsbStmmHhaJMcn+yXb1FG8s0g+65T2GwGJsnRwOKeabQHOL0y2oT4AETh4zAWm X-Received: by 2002:a05:6a20:3949:b0:1a7:a445:670b with SMTP id r9-20020a056a20394900b001a7a445670bmr3739083pzg.19.1712671120641; Tue, 09 Apr 2024 06:58:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712671120; cv=pass; d=google.com; s=arc-20160816; b=RmUrO49DH5ROOJnAzJf+VL8LLmIEPmIghjSM4O6UZBn/3c5ONg2URC61F67DJJ1q9t 6IYS2K6zElgbO+Rh+0L6hGEtzC+lKaKh6O1/rFtsGve6TdBwfsLnO3UPjD+uD2eOBf5l jrqYuys97ytLDI10z54m1YA3xRfVE6+UrxGmXFFxMcAi2+D+nQ1o6igAPEi0Wvq09wjJ AQhrJnXrJbTx+sYH8pJdvVu5OgzJH2fLRoMlqyLhfF/sd4bJhy7Qu5kSGOAHKO48dfct 66VhN5xT9wbn+bc3cMIM6d+Eld60eF4ygeoyRpOWGx1QNK/RMPs+3o/G5QcJmFnKHJag uVFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zoqvo0SkVe7FZCEdtc0ikknFKhEE8JSeCzy+LHsrsMM=; fh=yfGKh/KBHu/2NS9pIqipOqz3nPpT2c7hi8W+aYM1hBM=; b=pgjW1Vae/bLRUmp/yfQz0xiKNEecfFBqSe0wSh39a3y2Z0B/9OP8Jyd8wq00v7XBs8 ZLUzEQPSDFPNVW0wJ9lWfNwSppLAOT74xwq0MFb4SbsY9gx9xnPeUKvexjrFFiFowuxA l/WAMScdm8TUtt99JcqqVkXEk+LrHnJy/YwuxhpAVCh81Zou6BV7cEQmfcznJ3dIZRlh GeuZpRuym2jZSoYcdluRmwiMtBvBzmVt3ix087cC78//9ge7UgY2JoXyXIH7dK5miRgV 2A5haSxqXSP0RCgv3ju89rU15+MGI6gnWX98ziHb3KO7aNBGXpE2lPD+xXNzpd6GupB/ jMmw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="jk/4sfVz"; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-137024-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137024-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id v12-20020a63f84c000000b005ee3f1a19c2si8672569pgj.244.2024.04.09.06.58.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 06:58:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-137024-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="jk/4sfVz"; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-137024-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137024-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 394B62842B3 for ; Tue, 9 Apr 2024 13:54:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 42901131BD3; Tue, 9 Apr 2024 13:48:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="jk/4sfVz" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 17D10130E47; Tue, 9 Apr 2024 13:48:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712670512; cv=none; b=puMoAlSsR0M7Avc1e9YJGeBV32yNL7a/CB3yyAgH7a8SRf7W/soqv76FDfi4/TnJ3m1dUgIBLGvJSopnorGzrdK13HoVK27l+RszdsArvOPobPDOWDVwuALPaJd445vf/qD5jZTCzSzW46w+gEYzkVJ19uS46MBYc0uBWzMcuIk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712670512; c=relaxed/simple; bh=lY/4wKOh/DIkoH73lXxAFPUPx0Fw/2iox1dE6fYg0V4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WKOkVx6CJCij7ToaAzas08ZvRO3hl8jAJ0c6RwraY2gCypi9iIzYUBmxI0One/inPv57BFQTB8QJPnLKNtkRR9FpYFzvuyA5pL5BfV3h2aAMCJW5PCxl9RFRiFPeqVZW0XpaplPY/bsuktjguK1Wr8ZEvssnMSbG1JFXKTxpkoY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jk/4sfVz; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8499DC433C7; Tue, 9 Apr 2024 13:48:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712670511; bh=lY/4wKOh/DIkoH73lXxAFPUPx0Fw/2iox1dE6fYg0V4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jk/4sfVzp/FqUu/E9Kv984LFB+BDnS4hpA6X7Xur98C4l2OpU0LQqrhXzdPxhLC5g maOM8QLXXPrlFxo+/o9nCh64QqB7E3dqEk4OBCFZ6kUJK0CQyaBup3A2HduHoP68sP nI956a18HBaBun5llmCJ9uH74oCtXxtH8ceqT1oI= Date: Tue, 9 Apr 2024 15:48:28 +0200 From: Greg Kroah-Hartman To: Arnd Bergmann Cc: linux-kernel@vger.kernel.org, Corey Minyard , Peter Huewe , Jarkko Sakkinen , Vinod Koul , Moritz Fischer , Wu Hao , Xu Yilun , Jiri Kosina , Benjamin Tissoires , Michael Hennerich , Peter Rosin , Dmitry Torokhov , Iyappan Subramanian , Keyur Chudgar , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Yisen Zhuang , Salil Mehta , Tony Lindgren , Liam Girdwood , Mark Brown , Alexandre Belloni , Xiang Chen , "James E.J. Bottomley" , "Martin K. Petersen" , Russell King , Jiri Slaby , Jacky Huang , Shan-Chun Hung , Arnd Bergmann , Jason Gunthorpe , Tom Rix , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Randy Dunlap , Rob Herring , Linus Walleij , openipmi-developer@lists.sourceforge.net, linux-integrity@vger.kernel.org, dmaengine@vger.kernel.org, linux-fpga@vger.kernel.org, linux-input@vger.kernel.org, linux-i2c@vger.kernel.org, netdev@vger.kernel.org, linux-omap@vger.kernel.org, linux-rtc@vger.kernel.org, linux-scsi@vger.kernel.org, linux-staging@lists.linux.dev, linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 33/34] drivers: remove incorrect of_match_ptr/ACPI_PTR annotations Message-ID: <2024040921-propose-scorer-a319@gregkh> References: <20240403080702.3509288-1-arnd@kernel.org> <20240403080702.3509288-34-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240403080702.3509288-34-arnd@kernel.org> On Wed, Apr 03, 2024 at 10:06:51AM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > When building with CONFIG_OF and/or CONFIG_ACPI disabled but W=1 extra > warnings enabled, a lot of driver cause a warning about an unused > ID table: > > drivers/char/tpm/tpm_ftpm_tee.c:356:34: error: unused variable 'of_ftpm_tee_ids' [-Werror,-Wunused-const-variable] > drivers/dma/img-mdc-dma.c:863:34: error: unused variable 'mdc_dma_of_match' [-Werror,-Wunused-const-variable] > drivers/fpga/versal-fpga.c:62:34: error: unused variable 'versal_fpga_of_match' [-Werror,-Wunused-const-variable] > drivers/i2c/muxes/i2c-mux-ltc4306.c:200:34: error: unused variable 'ltc4306_of_match' [-Werror,-Wunused-const-variable] > drivers/i2c/muxes/i2c-mux-reg.c:242:34: error: unused variable 'i2c_mux_reg_of_match' [-Werror,-Wunused-const-variable] > drivers/memory/pl353-smc.c:62:34: error: unused variable 'pl353_smc_supported_children' [-Werror,-Wunused-const-variable] > drivers/regulator/pbias-regulator.c:136:34: error: unused variable 'pbias_of_match' [-Werror,-Wunused-const-variable] > drivers/regulator/twl-regulator.c:552:34: error: unused variable 'twl_of_match' [-Werror,-Wunused-const-variable] > drivers/regulator/twl6030-regulator.c:645:34: error: unused variable 'twl_of_match' [-Werror,-Wunused-const-variable] > drivers/scsi/hisi_sas/hisi_sas_v2_hw.c:3635:36: error: unused variable 'sas_v2_acpi_match' [-Werror,-Wunused-const-variable] > drivers/staging/pi433/pi433_if.c:1359:34: error: unused variable 'pi433_dt_ids' [-Werror,-Wunused-const-variable] > drivers/tty/serial/amba-pl011.c:2945:34: error: unused variable 'sbsa_uart_of_match' [-Werror,-Wunused-const-variable] > > The fix is always to just remove the of_match_ptr() and ACPI_PTR() wrappers > that remove the reference, rather than adding another #ifdef just for build > testing for a configuration that doesn't matter in practice. > > I considered splitting up the large patch into per subsystem patches, but since > it's really just the same thing everywhere it feels better to do it all at once. > > Signed-off-by: Arnd Bergmann Acked-by: Greg Kroah-Hartman