From patchwork Sun Mar 12 13:26:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13171454 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34DEAC6FD1F for ; Sun, 12 Mar 2023 13:26:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229700AbjCLN0v (ORCPT ); Sun, 12 Mar 2023 09:26:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230202AbjCLN0t (ORCPT ); Sun, 12 Mar 2023 09:26:49 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91A071CF72 for ; Sun, 12 Mar 2023 06:26:28 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id cy23so38473266edb.12 for ; Sun, 12 Mar 2023 06:26:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678627587; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=TZPa32XDAtEd//9G2V1ruB1ZRmNf36m//VgqDPSR18c=; b=fGHFWIYuNn9gbGCjNvlOque7tlzFchZcflzL1JUIQmGtLimdtfL58AQzYeKyqV5euo KnPAW3nyWKR3gO+CH93I9XtRl9ByC4/e9PdD5X0cbeCMqDFfkDiNW1wYQpc0h7GEoqZr w+3Gsxx1wMqxAs68njvZ4QXH7aH9FiVyIdWDDYXBIDw/cg0iZm3Zy2EaFsF1K+lw8bvU 6UxYRduRxQWbvU+BDKjtXFnOXNBcE2YmIcdY+NEasqU8xQpfxNbxpeSUX4OGq0lEMQvu nxpEyW226qW/Z9UUr81bPahOIpCR3+xvWKLPUXzPTZRrT6/7vf/2pOHuPLAF5+NrW83W fVcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678627587; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TZPa32XDAtEd//9G2V1ruB1ZRmNf36m//VgqDPSR18c=; b=uPvEP13FMittBKQC5Hae8o49dJD7CdZZEaImESL1x0jg0uHag/5q/ZPH3MSHyTaBJS 8NJ+QVXJnRrTC3BBcGymqovy1v9KoKmvhRrYyBesa5hpoNRBwHdBN23R3p6WCySWAbic hHxh3F+orz/JZKkz0kLQZu1mcIVhB2Wv/TDugQFSSGhk/6DyoJvArmluOdQaSMqSRXSJ lAV/gDeqM+7zIthmmpJsrdz6qINEtiDAztsqoWcUBEgQQ7Wxl5xdhRFtM9jIPSk+lbjK cJbll/y0au9pXS8ocktX0NariGwAuDtPiVILJ9KFiG8y1YzcEwAUkLIduDmptqJBwmdC RAEQ== X-Gm-Message-State: AO0yUKUqg/ApDqqOAfry1ZHUUkLOkofD18dYXcm63dp7AOKNjQ6QX6V0 GllzqyZi2I0NrNxDkU9O+Q1HOA== X-Google-Smtp-Source: AK7set/p7DxoA7h4HAcjHCU92RSGdcCsiGfR59LiRYT5XXBweuJJBnuOJSLgJAX3Sx7SNILqSwqQzA== X-Received: by 2002:a17:907:9719:b0:8ed:a0ea:29ee with SMTP id jg25-20020a170907971900b008eda0ea29eemr7736801ejc.22.1678627587072; Sun, 12 Mar 2023 06:26:27 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:d9f6:3e61:beeb:295a]) by smtp.gmail.com with ESMTPSA id xc14-20020a170907074e00b008b904cb2bcdsm2262530ejb.11.2023.03.12.06.26.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Mar 2023 06:26:26 -0700 (PDT) From: Krzysztof Kozlowski To: Hans de Goede , Mark Gross , Thadeu Lima de Souza Cascardo , Daniel Oliveira Nascimento , Mattia Dongili , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/3] platform: classmate: mark SPI related data as maybe unused Date: Sun, 12 Mar 2023 14:26:23 +0100 Message-Id: <20230312132624.352703-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230312132624.352703-1-krzysztof.kozlowski@linaro.org> References: <20230312132624.352703-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org The driver can be compile tested as built-in making certain data unused: drivers/platform/x86/classmate-laptop.c:1137:36: error: ‘cmpc_device_ids’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/platform/x86/classmate-laptop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/classmate-laptop.c b/drivers/platform/x86/classmate-laptop.c index 8b6a14611859..2edaea2492df 100644 --- a/drivers/platform/x86/classmate-laptop.c +++ b/drivers/platform/x86/classmate-laptop.c @@ -1134,7 +1134,7 @@ static void cmpc_exit(void) module_init(cmpc_init); module_exit(cmpc_exit); -static const struct acpi_device_id cmpc_device_ids[] = { +static const struct acpi_device_id cmpc_device_ids[] __maybe_unused = { {CMPC_ACCEL_HID, 0}, {CMPC_ACCEL_HID_V4, 0}, {CMPC_TABLET_HID, 0},