Message ID | 20200715082634.3024816-10-lee.jones@linaro.org |
---|---|
State | Accepted |
Commit | a7b909376d3994ffb983a4037dd12689159fd4fb |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp412636ilg; Wed, 15 Jul 2020 01:27:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9eY+cEuAKQPpdswo360z8QW70+RK9Fafc9+iT8hls0eCphib0Sl4P6Z7rAHMsb4wXUnol X-Received: by 2002:a17:906:82d2:: with SMTP id a18mr8089533ejy.522.1594801634913; Wed, 15 Jul 2020 01:27:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594801634; cv=none; d=google.com; s=arc-20160816; b=AMBLWD23tBLtAPrCeC9RYGhiSXXryzd4wy7+VlS1Pso2SF42ZomumFo6RvTfDKzn+M c1nRfBg7RkAF1g1A0JI6P38V1jKRKmyBU11F4JWy3AmyXn7Io6jzprrFavnXM+yXdM39 XBsJHJXW2GelDffgUgvlZ//MAsyQ/lbzC1cy3R0YFZfPzsKagpL/Q2uwdV8vwOGrFfC4 76AetbZfL+HjEjj4g2fVFBnR8hLQHYVeAFOFYk+8hTypG6cYQmiuXySndbgWddoH+iue Ce0D2WDglEVYcTwmd3bGm9hfw/QWsdkqmMetY+tZ7Hz35W+P1i5tewOdiqNpt+ol6XwK 2eWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8zTw93zoLeDrW9YVUykvWKpkCsGvq1SvpdvOV91LIDI=; b=qR2UWkJFcsF7bCPuruX202Ko7pwJHtziX9dW10ATPsYz/HsY6pZXK20IoW8zzK4+Yt AMEsdUQedXIQlDx4iV11yoh89YmhlWy5Oi5DbGBJTDiVLCb+5HB+njeg+Xl018x1QsvE zFzwWD9WhitxTuqZwldnGhPWklkgG8+M5zidJjO7Mu1U1oWgPMYOyUjFaiktOM5gSSsv HJwuZn/gZZRdElT74v38BLCoDNze17+8aCZyJRBEjalxMJ6HufN3i7zBgKNM9cegO+Ca Usx2gvcoNlvqXO+2fpWdpdOgkKEOFMZxeC0UlknUvGIdoEuV4aU1CPUye3f2k/knwoWY eCDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PoZeCokh; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <linux-pm-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b10si818166ejv.385.2020.07.15.01.27.14; Wed, 15 Jul 2020 01:27:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PoZeCokh; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725932AbgGOI1N (ORCPT <rfc822; jun.nie@linaro.org> + 10 others); Wed, 15 Jul 2020 04:27:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729908AbgGOI0v (ORCPT <rfc822;linux-pm@vger.kernel.org>); Wed, 15 Jul 2020 04:26:51 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8D2AC061755 for <linux-pm@vger.kernel.org>; Wed, 15 Jul 2020 01:26:50 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id z15so1459993wrl.8 for <linux-pm@vger.kernel.org>; Wed, 15 Jul 2020 01:26:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8zTw93zoLeDrW9YVUykvWKpkCsGvq1SvpdvOV91LIDI=; b=PoZeCokh14NVCVrG+W6OCssjbdxlYt+BY2RPI8eovLbhPzaLoVu6hY0++nOStWvk7G AC5m93nmVlLOGmyl+yyOzhE20jZByNmfhTjC3f1OsE+xOaSFhOEZD1adMHSUY86nUcdq 003S8WLfCC4kJUQP3B7nLpwZLoeL5quxpYHznQprltVCVB12xkwl1x6YvqBSR6n+AvvB J+eTnxP7lytE9JrfPxVYJ8Bsd1LHlvRP6P3N0Qlk+cD+UXDt4V9NfWmwaf8F2Bq4MSZ2 NpHfQwClEX7SFhVB8TSaoxSOf1g6l4dy6IsfsJoDadjfzaKDqNqTFIWTX6+6I08pYoo4 qDMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8zTw93zoLeDrW9YVUykvWKpkCsGvq1SvpdvOV91LIDI=; b=KlYMKijiUgd75Vp55960FkD/PAPDm/pMgFbkOpWiXWgCMxLiQnzxVaKDbSyJ6WJS4P 5MaHzcewN8VplC0qfic3tHE/zOaXDmmIPpxTMN6QJCLq6a/QRoldzLv0nGxrKS9pzVda 0okaI3hwOg85YaO9ChDUO5vKNOZMvoXoaUzUDWzkGBrGbmY/GLGGBV3GVy20IBJj5UBF vqG+W0Ge9WnwyWy61PtnSxsMwQ27z02ErFuS7EBQsiWDDQA9E7m62Aij7kxfJvu5R9RH DJF0U5SpDiJ7zM6iSOGw4efxy9uPD+Xs8kefdWiKtarCX6lBXb8QMiVsZkxLEeapKm/o BJUQ== X-Gm-Message-State: AOAM53123odX8lFpmL0QT/7KYyHiSb1PcMX5iIrVO8XrhXE8Ie89lRy9 hoV7gXOL4eBWSKiP2jy9EpZqyw== X-Received: by 2002:adf:9062:: with SMTP id h89mr9316099wrh.285.1594801609515; Wed, 15 Jul 2020 01:26:49 -0700 (PDT) Received: from localhost.localdomain ([2.31.163.61]) by smtp.gmail.com with ESMTPSA id h13sm2400361wml.42.2020.07.15.01.26.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 01:26:48 -0700 (PDT) From: Lee Jones <lee.jones@linaro.org> To: rjw@rjwysocki.net, viresh.kumar@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Lee Jones <lee.jones@linaro.org>, Andy Grover <andrew.grover@intel.com>, Paul Diefenbaugh <paul.s.diefenbaugh@intel.com>, Dominik Brodowski <linux@brodo.de>, Denis Sadykov <denis.m.sadykov@intel.com> Subject: [PATCH v2 09/13] cpufreq: acpi-cpufreq: Mark sometimes used ID structs as __maybe_unused Date: Wed, 15 Jul 2020 09:26:30 +0100 Message-Id: <20200715082634.3024816-10-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200715082634.3024816-1-lee.jones@linaro.org> References: <20200715082634.3024816-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: <linux-pm.vger.kernel.org> X-Mailing-List: linux-pm@vger.kernel.org |
Series |
Rid W=1 warnings in CPUFreq
|
expand
|
diff --git a/drivers/cpufreq/acpi-cpufreq.c b/drivers/cpufreq/acpi-cpufreq.c index 6b3d8355c8dea..65bdedcc7f142 100644 --- a/drivers/cpufreq/acpi-cpufreq.c +++ b/drivers/cpufreq/acpi-cpufreq.c @@ -993,14 +993,14 @@ MODULE_PARM_DESC(acpi_pstate_strict, late_initcall(acpi_cpufreq_init); module_exit(acpi_cpufreq_exit); -static const struct x86_cpu_id acpi_cpufreq_ids[] = { +static const struct x86_cpu_id __maybe_unused acpi_cpufreq_ids[] = { X86_MATCH_FEATURE(X86_FEATURE_ACPI, NULL), X86_MATCH_FEATURE(X86_FEATURE_HW_PSTATE, NULL), {} }; MODULE_DEVICE_TABLE(x86cpu, acpi_cpufreq_ids); -static const struct acpi_device_id processor_device_ids[] = { +static const struct acpi_device_id __maybe_unused processor_device_ids[] = { {ACPI_PROCESSOR_OBJECT_HID, }, {ACPI_PROCESSOR_DEVICE_HID, }, {},
Not used when MODULE is not defined. Fixes the following W=1 kernel build warning(s): drivers/cpufreq/acpi-cpufreq.c:1004:36: warning: ‘processor_device_ids’ defined but not used [-Wunused-const-variable=] 997 | static const struct x86_cpu_id acpi_cpufreq_ids[] = { | ^~~~~~~~~~~~~~~~ drivers/cpufreq/acpi-cpufreq.c:997:32: warning: ‘acpi_cpufreq_ids’ defined but not used [-Wunused-const-variable=] 619 | static const struct acpi_device_id processor_device_ids[] = { | ^~~~~~~~~~~~~~~~~~~~ Cc: Andy Grover <andrew.grover@intel.com> Cc: Paul Diefenbaugh <paul.s.diefenbaugh@intel.com> Cc: Dominik Brodowski <linux@brodo.de> Cc: Denis Sadykov <denis.m.sadykov@intel.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/cpufreq/acpi-cpufreq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.25.1