Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp544409rdb; Thu, 19 Oct 2023 11:31:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE8nzOHUSDwU3CM3g+5MhbsDkJfWRiBg7rkV+0IgP/tZIY7+Ut4bJrpoxLEDDDc9TA/zTdB X-Received: by 2002:a9d:7746:0:b0:6cd:a4f:3dab with SMTP id t6-20020a9d7746000000b006cd0a4f3dabmr2401008otl.29.1697740278093; 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 Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id w8-20020a63f508000000b005b64e8336casi137221pgh.464.2023.10.19.11.31.17 (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 D8CCA8057D9C; Thu, 19 Oct 2023 11:30:41 -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 S1345214AbjJSSaa (ORCPT + 99 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 Content-Transfer-Encoding: 8bit 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:42 -0700 (PDT) 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 --- 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); -- 2.42.0