Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2560430lqz; Wed, 3 Apr 2024 01:24:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU8fHUlWbU2b58mwcbCj69fMuhd6ukGHM7z8fDzR10tnS/AWpgPE5Ga+Hd4Sn5k+YH20m+hw0iUrAL5tdBIis+yQUe7kPuuP2bTw0QQSA== X-Google-Smtp-Source: AGHT+IFSGJszXszgWDAGah9Pe52HMwxWS+NgzVoLbly9vxembmRXhuKxFu0vX082YWLVzrapUSy2 X-Received: by 2002:a05:6a20:a122:b0:1a7:186:b83e with SMTP id q34-20020a056a20a12200b001a70186b83emr2532498pzk.28.1712132671750; Wed, 03 Apr 2024 01:24:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712132671; cv=pass; d=google.com; s=arc-20160816; b=ylVloCWDc1ZpyHycPeS/OlOfRuDXk1FnkJGcRHjggZFBZsE2aZQ9jqaa62n3tfoGSh Tq+ojeajX3KSaPEid8WNloLsgJr5mGcJVg6xSApE+xfXCU7E1Jyre8zUGKV0CcFu3Lzd LTTwr1gaFb6I3BrJV+b/tHAD96jd7gYfXz+c+ojRhiimSHCDo4OfYNVO5S/fLY2wj5vC wJCeNKy/qccpVzzujbfh1BVfZlTByWbnCLsJCMC3Rlav0Hz024G64HB+9tYVigJClqGw h3ieBrsKywqzTdkfYVcDn8RZAXxE46oXl6+cFW9LZu0qNCzL1geB7QE0WEkXp6XAH29h Usvg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=98iX2tGhFK/xS/yGF3JtifD0ClpBGKQyjJXeNEKCJtE=; fh=VoO1RoVllnliaNchbKavtRKLwkIaFV3xkOIEDHth+08=; b=CUWWLQan9nOuyAQ06++3k8qLU44gvRafUx+XQpYJZuS3sIv8n1sBE22508nnyphctQ FiqRGAYGNLzXfGmJmztjt13ArIDUeU/5ThX4sTFmtjkRqJepVKASzVoJRUvYk+KbhSsE P3lFdVbdpuTHAp8GvrJkoiznIHst6ps/DawwcDzIAc2h1JRnpqkfFpEoJAUe1raREB5Q 4pXN5rCcgkLR7cILjcSiIq9lDV9MzXeWXrY/GuJ63f86dYlUCNlWsBNFllPD5Xrtcf5t tk6Z3iNxamSoOu9trUOv6dN63LrmCZz3l//D/f+i30AU6MqwbCUMpvTF+ceq9Ej4U/qf +OCQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QxNDM2If; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-129294-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129294-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id v69-20020a638948000000b005d8c18c7c65si1742330pgd.671.2024.04.03.01.24.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 01:24:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129294-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QxNDM2If; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-129294-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129294-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 47B8E282CA9 for ; Wed, 3 Apr 2024 08:20:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 349F712B144; Wed, 3 Apr 2024 08:10:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QxNDM2If" 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 52F806EB5A; Wed, 3 Apr 2024 08:10:10 +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=1712131810; cv=none; b=u59flcTFd2Ao5W86Azb2aAbN9eWH8wEsKV6RMo2TdSAZ/e3O3iA0SiWWtzhoZaBsXQ7aOtUarPlLkBYks0QLkCUj6JKEBt+jMzn+3jKxa1zyPMPTTE62+5oMKcAMAj/5DJ63EoYfIOB/wHIfD80TVODqRw7tM8CoQpHaFgRJCkQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712131810; c=relaxed/simple; bh=YUxw+JSGkdgbd3oVvBLP3CDDX0jDK0CN6nzZN82wE/Q=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=b2sLcPCdWyyNcJzFO7HyFiwdk8Rfy2seCjqAm5EqbvkX5NcVxrc1CggJvPPPbIFNaSWGxZyuZvOx5KIlXfcxa5xk/0aehtU9aNENd7E9ttaq/QKMCD2bmaCPco/AMrpx931AIW31Wp5hzTFUGJ27/9uKKlr/FpImdvCGFMEVFPM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QxNDM2If; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60198C433C7; Wed, 3 Apr 2024 08:10:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712131809; bh=YUxw+JSGkdgbd3oVvBLP3CDDX0jDK0CN6nzZN82wE/Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QxNDM2IfgT/4LkCcNfSjOYfKZDCIRGle4NjtwhZAuoqhvWzogfXiRev/PqTRZhzDh k1vHDrkUkJeg913HGLd1qMPO3mkyUBeXasBYHJuAOrJt7hmMZpUx6xtnLKbB/wDAXf Cw+C1mKhcgvIrsfrRrF8t/RQ2fAz2r1hPIcs2l66EZI5HcfklM5F3QTYka7ATJtwTg kwzQHrn1JbnF67VZPrHr/RA8GOOJts3+KlUBRw3bDql0tKsoOS3MQSyexR+7wxMcHy pq+Vlmfro/x/aSUqT2H4tHU5Xvxuo7QXtj6Ir0PvOveBI96WjN8bXSV0M+yxOhuS43 bmPGJLUttko+w== From: Arnd Bergmann To: linux-kernel@vger.kernel.org, Vaibhav Hiremath , Johan Hovold , Alex Elder , Greg Kroah-Hartman , Viresh Kumar Cc: Arnd Bergmann , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Luca Ceresoli , Rob Herring , greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev Subject: [PATCH 17/34] greybus: arche-ctrl: move device table to its right location Date: Wed, 3 Apr 2024 10:06:35 +0200 Message-Id: <20240403080702.3509288-18-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240403080702.3509288-1-arnd@kernel.org> References: <20240403080702.3509288-1-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann The arche-ctrl has two platform drivers and three of_device_id tables, but one table is only used for the the module loader, while the other two seem to be associated with their drivers. This leads to a W=1 warning when the driver is built-in: drivers/staging/greybus/arche-platform.c:623:34: error: 'arche_combined_id' defined but not used [-Werror=unused-const-variable=] 623 | static const struct of_device_id arche_combined_id[] = { Drop the extra table and register both tables that are actually used as the ones for the module loader instead. Fixes: 7b62b61c752a ("greybus: arche-ctrl: Don't expose driver internals to arche-platform driver") Signed-off-by: Arnd Bergmann --- drivers/staging/greybus/arche-apb-ctrl.c | 1 + drivers/staging/greybus/arche-platform.c | 9 +-------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/staging/greybus/arche-apb-ctrl.c b/drivers/staging/greybus/arche-apb-ctrl.c index 8541995008da..aa6f266b62a1 100644 --- a/drivers/staging/greybus/arche-apb-ctrl.c +++ b/drivers/staging/greybus/arche-apb-ctrl.c @@ -466,6 +466,7 @@ static const struct of_device_id arche_apb_ctrl_of_match[] = { { .compatible = "usbffff,2", }, { }, }; +MODULE_DEVICE_TABLE(of, arche_apb_ctrl_of_match); static struct platform_driver arche_apb_ctrl_device_driver = { .probe = arche_apb_ctrl_probe, diff --git a/drivers/staging/greybus/arche-platform.c b/drivers/staging/greybus/arche-platform.c index 891b75327d7f..b33977ccd527 100644 --- a/drivers/staging/greybus/arche-platform.c +++ b/drivers/staging/greybus/arche-platform.c @@ -619,14 +619,7 @@ static const struct of_device_id arche_platform_of_match[] = { { .compatible = "google,arche-platform", }, { }, }; - -static const struct of_device_id arche_combined_id[] = { - /* Use PID/VID of SVC device */ - { .compatible = "google,arche-platform", }, - { .compatible = "usbffff,2", }, - { }, -}; -MODULE_DEVICE_TABLE(of, arche_combined_id); +MODULE_DEVICE_TABLE(of, arche_platform_of_match); static struct platform_driver arche_platform_device_driver = { .probe = arche_platform_probe, -- 2.39.2