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},