From patchwork Thu Oct 19 18:30:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 155677 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2010:b0:403:3b70:6f57 with SMTP id fe16csp577015vqb; Thu, 19 Oct 2023 11:31:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGhgaSkZpk+kT4JYzfPGOYM8sqC9Zt4miVLFDzOdYicSsZvkubzrQBH8p1y8xm+IXc5gvy8 X-Received: by 2002:a05:6359:1b0c:b0:139:d5d5:7a8f with SMTP id up12-20020a0563591b0c00b00139d5d57a8fmr2011552rwb.30.1697740278601; Thu, 19 Oct 2023 11:31:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697740278; cv=none; d=google.com; s=arc-20160816; b=LfTUTQQBYDIaIWHeHemDBAisha4m2pp3Bb+gQi+JyIVPDmBrspYaqW9NBJV/F4qwTm ZWyfZU+8IPsapTSxUrNu0qDZC+jnAOSRis0VArV9E2mVj82Q+6O4XSaAlBJBdvMlaHgE 2zliTPNWs0/r72PGsiBDZSjaDBvAeCh6SZsGrenRGlAv8YlkopeyEFEDk45Bqanz0Sik V/mpWrPUZEivdliUxDbSaEKb//j2OP4KwEmc3D/gCQcfQHm8JclYV0Zkes8CslmHwBP4 KQ6HpefXM1GGI5P+BFsLzf8SU/JApb/LwF72L0+42fAdQ7HUhPu9Q0lFczWLXhpfh6qQ S0ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=4OlisRR/7jSUpcBpgGyXz1Fjy44KjCthVAKQggQWimY=; fh=8G6wnddWZ9rDSsp2bPxYE70/eCYImn8sLMPxSVEO1/Y=; b=eZTQzFbXRU4ckj2JcZCpjVPQ9ONWwTrwo9ZxywCoNrUFysQ6X4uIcT7X0dHy0ApFPQ XojzUz8yZNQngLNks3JkG0WNwyoQAGEvG7oSl3TGF+ax+f7zokNpxZ3KT0m5R5kXPtDM J6RTT2gAZrwtNDoX6G0XD1PUmjyDEkUODSTshzeqrtmWWk28LY8dGbzzNEIIj1sPo+mt LGVJ6FyDu0xJR4feCGgaxB5lWNnO5Xvn9RCxzctMgTEWsCu4Eiqiw7rXag//9TdMuvsI R12R/BHoM4iBrr3LV1uklhZ+39t07eWCPXQbLB/s7EDgqCQLJrIDU+hRNr/Z7lqLLvC1 UQTQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id k14-20020a62840e000000b0068e3f3c6250si186806pfd.343.2023.10.19.11.31.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 11:31:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 7014C8053677; Thu, 19 Oct 2023 11:30:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345284AbjJSSaa (ORCPT + 26 others); Thu, 19 Oct 2023 14:30:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233316AbjJSSa3 (ORCPT ); Thu, 19 Oct 2023 14:30:29 -0400 Received: from mail-ot1-f53.google.com (mail-ot1-f53.google.com [209.85.210.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2E11CA; Thu, 19 Oct 2023 11:30:22 -0700 (PDT) Received: by mail-ot1-f53.google.com with SMTP id 46e09a7af769-6ce2c5b2154so5373a34.3; Thu, 19 Oct 2023 11:30:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697740222; x=1698345022; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4OlisRR/7jSUpcBpgGyXz1Fjy44KjCthVAKQggQWimY=; b=pEZz9CVc5QLdOFi5dMxS/RV7K7EZhQhvJpyPcAogvZm4tGJX2XVwiae8RLl7+iZK5l CcIvpWNxtpssrpR9OKCHIc7O0OGRwIoNxEsKxAKHNvTFIlhvoAe/KFCdEZYNHrU7jF/J Do066qXjzYRpMHkA3gmqSh2n0tWv9xKurGoOWqFiISvCEhEK3be4X8mWTki2WBr6rwma 4GMH8n9zzI9LkDcRlVW2muEVF4CVQNno5ZFNyFj7AgvGOmluYDrDfj4QSfFEn1H21kbe wLXbq377zdTJt0S93K0b4VkYsxuixoA85Ci7UpzbwCq9BsxfAsPfGBfo1bjBk0AMEZSy mMGw== X-Gm-Message-State: AOJu0YzxZSS7O3K7oJaeM42kJiflYvggKg83wTpkO9eVrhmEOM5D7Q6d NfbYGFHVJ3yLxNgaCzRdiQYXuJeHEA== X-Received: by 2002:aca:1112:0:b0:3a8:83df:d5a4 with SMTP id 18-20020aca1112000000b003a883dfd5a4mr2707867oir.59.1697740221913; Thu, 19 Oct 2023 11:30:21 -0700 (PDT) Received: from herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id o13-20020a05680803cd00b003b2df32d9a9sm20077oie.19.2023.10.19.11.30.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 11:30:20 -0700 (PDT) Received: (nullmailer pid 841631 invoked by uid 1000); Thu, 19 Oct 2023 18:30:20 -0000 From: Rob Herring To: Peter Chen , Greg Kroah-Hartman Cc: kernel test robot , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] usb: chipidea: Fix unused ci_hdrc_usb2_of_match warning for !CONFIG_OF Date: Thu, 19 Oct 2023 13:30:15 -0500 Message-ID: <20231019183015.841460-1-robh@kernel.org> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 19 Oct 2023 11:30:48 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780209710052022742 X-GMAIL-MSGID: 1780209710052022742 Commit 14485de431b0 ("usb: Use device_get_match_data()") dropped the unconditional use of ci_hdrc_usb2_of_match resulting in this warning: drivers/usb/chipidea/ci_hdrc_usb2.c:41:34: warning: unused variable 'ci_hdrc_usb2_of_match' [-Wunused-const-variable] The fix is to drop of_match_ptr() which is not necessary because DT is always used for this driver. Fixes: 14485de431b0 ("usb: Use device_get_match_data()") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202310131627.M43j234A-lkp@intel.com/ Signed-off-by: Rob Herring Acked-by: Peter Chen --- drivers/usb/chipidea/ci_hdrc_usb2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/chipidea/ci_hdrc_usb2.c b/drivers/usb/chipidea/ci_hdrc_usb2.c index 180a632dd7ba..97379f653b06 100644 --- a/drivers/usb/chipidea/ci_hdrc_usb2.c +++ b/drivers/usb/chipidea/ci_hdrc_usb2.c @@ -119,7 +119,7 @@ static struct platform_driver ci_hdrc_usb2_driver = { .remove_new = ci_hdrc_usb2_remove, .driver = { .name = "chipidea-usb2", - .of_match_table = of_match_ptr(ci_hdrc_usb2_of_match), + .of_match_table = ci_hdrc_usb2_of_match, }, }; module_platform_driver(ci_hdrc_usb2_driver);