From patchwork Sun Mar 12 13:26:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13171453 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 601B5C6FD1F for ; Sun, 12 Mar 2023 13:26:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230204AbjCLN0t (ORCPT ); Sun, 12 Mar 2023 09:26:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229636AbjCLN0p (ORCPT ); Sun, 12 Mar 2023 09:26:45 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE77E1A672 for ; Sun, 12 Mar 2023 06:26:27 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id o12so38570976edb.9 for ; Sun, 12 Mar 2023 06:26:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678627586; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Bh0gYoy5qUPCzAnHJW2JcAjlXQZm3YAviGSJNEQBYZQ=; b=AE8WXyIsIJt5ke8dzRYox1xQcFkZ28l6Zo3mfMVVqmNUwbxVROLa6c3pvO9qmeljqY E/xYtw9DqE/iUiHlJOWrNNSzyI9DZIxk4tpHawu+sAulRGiTwI4A/XHXd5qzS7DSr4HF dK4L7LyAgFSjAvBF+MNFJaIlTdxSuokRbi8yq7tfreZChgXQUvgt2357t1NfHHxHKIM+ xmzG0KxIU32mWu9HAmCV2csig/JBVVwqg/+RWgv6iZHh0ch/qkq4A2ri5oZT3BkJFnUJ msFNMLX1BQjXfxOFoVFU69JDipyDcxPwegz+7vqtIf6/mMId5fS3dlNaRGzvT8Cd87Vo Ja9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678627586; 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=Bh0gYoy5qUPCzAnHJW2JcAjlXQZm3YAviGSJNEQBYZQ=; b=KW2QHqg88t6ZsSYu4jnL+FpjkikN7BhUJjMmY5L26rPgkwkxaTdXX7/A7RXbbgLrby j9GR0lL/x2uJdPcQxJo3wfcIqHVkbfbAHeQLLUvYtZ/FxEqjvFEtxb5bpanO0sr1ou7u vyCk/Z9Hhz6OA4LZgcDiHrOT5RqIV5jPqCANOaYmbbQxAgytdDMzzspE6xVx1Po9iFre YGTwu9Ob95W2+tfkGDXU47hTDaDD/XbB5CLSrEdAAEONlpXHzAts5F5cDnWcPIISuSCx pB6GUHwuTotzxNJkE3C+HsfTb01Bi4LfPCRu4WNWt1T8DKZwwKDwrL9f2pLx6RSHyckd BZ4g== X-Gm-Message-State: AO0yUKVZBmSQ4AodZtAQGMrKl6VFhDyIteaWKczfHpOLg/S1roPNCMih G6+FMM2ZRkmxW9sXngK+aOkSfw== X-Google-Smtp-Source: AK7set/VqG0ty4Kc1o9DfSV+u+OvuwlIBSANdt81OhIZuVLgoU+YDCAO63rRY8F6xlJQ3YGugXrpVA== X-Received: by 2002:a17:906:8506:b0:920:38f:b6ce with SMTP id i6-20020a170906850600b00920038fb6cemr4461649ejx.33.1678627586208; Sun, 12 Mar 2023 06:26:26 -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.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Mar 2023 06:26:25 -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 1/3] platform: olpc: mark SPI related data as maybe unused Date: Sun, 12 Mar 2023 14:26:22 +0100 Message-Id: <20230312132624.352703-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 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/olpc/olpc-xo175-ec.c:737:35: error: ‘olpc_xo175_ec_id_table’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/platform/olpc/olpc-xo175-ec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/olpc/olpc-xo175-ec.c b/drivers/platform/olpc/olpc-xo175-ec.c index 4823bd2819f6..04573495ef5a 100644 --- a/drivers/platform/olpc/olpc-xo175-ec.c +++ b/drivers/platform/olpc/olpc-xo175-ec.c @@ -734,7 +734,7 @@ static const struct of_device_id olpc_xo175_ec_of_match[] = { }; MODULE_DEVICE_TABLE(of, olpc_xo175_ec_of_match); -static const struct spi_device_id olpc_xo175_ec_id_table[] = { +static const struct spi_device_id olpc_xo175_ec_id_table[] __maybe_unused = { { "xo1.75-ec", 0 }, {} }; 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}, From patchwork Sun Mar 12 13:26:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13171455 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 4ECCFC74A4B for ; Sun, 12 Mar 2023 13:26:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230372AbjCLN04 (ORCPT ); Sun, 12 Mar 2023 09:26:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230232AbjCLN0t (ORCPT ); Sun, 12 Mar 2023 09:26:49 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60FE72A176 for ; Sun, 12 Mar 2023 06:26:29 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id x3so38509754edb.10 for ; Sun, 12 Mar 2023 06:26:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678627588; 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=+BDbceQOAYQgK567jHrWA72I3uGpkeTXZrFRx2w9d3o=; b=cL1a8hHuMXeYkEGX3LBxkMgBkge8437xuLFULeTSVWmsUkdbORF0gWFoJZZA192NAR 9oIaJkGaTrtoCvQlz2pCKgv3tXlwwYYNOh8ikLjLO53XnPxTLGlelYjkr9p8CC/ryt2l hZYN3OvN5htU4GO7/1hrZqxET/S7hRdW6l401MzVNKBZ2CtqJj1QTzQxDXCP6+WyCiJ1 yBW1KVxSflb4ytp4NdVqBZQRlJxRqPy9Hb2+OrHvZicH14WSLUgIS84O7ALh4R43WWk/ +51ed5LCGOUiWg5yErC7NNltpUeE5xTqvoW+N/a/8UYja+VU52oN2CZzitqdi4a/6aom cCKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678627588; 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=+BDbceQOAYQgK567jHrWA72I3uGpkeTXZrFRx2w9d3o=; b=2nBSTby1+ESJRt2rtdIh7wq7iF1iWCXJ6ZQO0CqT7QyhQKCUQr6dh9uwnOEP9ZZlZq rV8/nxRjHMRJrExy3gPsEvxoR8b7ySfNdVTudWGh7hZ5AugsorytIwDGUnoKlnpo7LpR FJVMJCsYyAhqWrhsC0M69i8Ba6RWx+GR45fNvQD0qPBV0CFn/NED6CfRNDsbkfpOQE0l znk5luY4k+5vgtk6cvq/Yz3DGk6BFg7AK/sWZ6K6qELR0haX79tSI+q7ytIS+J+jimAh Mg7VPAgUexdGXIFfpLYgW+wYi/lGqz8Y9O4DUw6vhTC89zzC2kVbaA+g0+KBf6D1g5mk kU2w== X-Gm-Message-State: AO0yUKWTWAMPw0xGY+yFWnnewviea96ytxx2tZiQbo9aMlIYSyLDuyY2 MZEhjfaMLzkAJKc7/jDv8ZNZ0A== X-Google-Smtp-Source: AK7set++lTLlA8S8P3AdKGyhzI1mOg+z+mc5k7KsLLhrAjG3EMSUe5pGtmzlOeA3xn52a1KyfrwqyQ== X-Received: by 2002:a17:907:7205:b0:8b2:fa6d:45d5 with SMTP id dr5-20020a170907720500b008b2fa6d45d5mr40522268ejc.71.1678627587914; 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.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Mar 2023 06:26:27 -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 3/3] platform: sony: mark SPI related data as maybe unused Date: Sun, 12 Mar 2023 14:26:24 +0100 Message-Id: <20230312132624.352703-3-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/sony-laptop.c:3290:36: error: ‘sony_device_ids’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/platform/x86/sony-laptop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c index 537d6a2d0781..9569f11dec8c 100644 --- a/drivers/platform/x86/sony-laptop.c +++ b/drivers/platform/x86/sony-laptop.c @@ -3287,7 +3287,7 @@ static void sony_nc_remove(struct acpi_device *device) dprintk(SONY_NC_DRIVER_NAME " removed.\n"); } -static const struct acpi_device_id sony_device_ids[] = { +static const struct acpi_device_id sony_device_ids[] __maybe_unused = { {SONY_NC_HID, 0}, {SONY_PIC_HID, 0}, {"", 0},