From patchwork Wed Nov 4 16:24:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 320543 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp5567870ilc; Wed, 4 Nov 2020 08:24:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJyBXDAOQdgCaRMpHQSW4IqugmGSO9UEzBjuOl9BBHon3bRia3SPtqfHD/pq+of5KEcm6rzc X-Received: by 2002:a05:6402:40e:: with SMTP id q14mr14278857edv.169.1604507095651; Wed, 04 Nov 2020 08:24:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604507095; cv=none; d=google.com; s=arc-20160816; b=0AAaYIRk/2RNzPRAstC1fMrE04F9l3RYoEqPwC7Og6OufxZbZ5PMiH3zT4H2MoVO8c al5bEMJPKhzzyJWMYyYM1s3RLPwHgUKizBVRXJW3U0IMPl93TE6FlOnT9RSIm30+Kwbs 7KTtxs26o03FhQKekdSVLhg3esVxUZa42jFqtST+sg5fxWxt3DFb2ULdRVbBokVJedgt oXXc10R+tOVF8UzrDqf6T1qNCDqWNGtbkjHazQb0NUeRk/kii2K52CAdTJOBWqxBd6Yi vd/J7C7JpVjLsSHof4tSa+I7L2mT8q0pEyvTuXBEJ/QQAtu+77cmHp4deyIs5sZvQWE2 G5VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PA3FVb+J4SclMKAlYY0ZMYvDath2dI2KOPbq273rzfU=; b=qIhRtriXvkvlNCIUrXH40mSKOGej0QvjpdLFJu/ligJEA3hVOvwyo0iZj8xEZWY6B1 sIRWpPNjrbY5qYy+Zr26MsDbhCwHOnCWkifxlF46YuML2VpfOU0zdgG8L5xxZ5C8gTBk md0/A0Cr8WgIQwyzoGACUacl5Tmy6nCGh7axxS+TuuZH1SsErklln7xnbDHaXRrcb4lc YXA4fwQNXx6AmxvOaIFLtJ4GLaYcIvSSh8YeMTcNgzTOIyAGLQ83607VPBD30dntTs6M RqkaPzIlZMJHZomQeVk2Iv9JVAlt02OaMsiK8CC71Hhv2H/WAW3J0nNs/wfCEgS29l3S dUQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h3mrDnBn; spf=pass (google.com: domain of linux-input-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-input-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a27si1693034ejd.485.2020.11.04.08.24.55; Wed, 04 Nov 2020 08:24:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-input-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=h3mrDnBn; spf=pass (google.com: domain of linux-input-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-input-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 S1730819AbgKDQYy (ORCPT + 1 other); Wed, 4 Nov 2020 11:24:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730906AbgKDQYw (ORCPT ); Wed, 4 Nov 2020 11:24:52 -0500 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87DC7C0613D4 for ; Wed, 4 Nov 2020 08:24:50 -0800 (PST) Received: by mail-wm1-x341.google.com with SMTP id e2so2901171wme.1 for ; Wed, 04 Nov 2020 08:24:50 -0800 (PST) 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=PA3FVb+J4SclMKAlYY0ZMYvDath2dI2KOPbq273rzfU=; b=h3mrDnBnxtdzKtq6qaH4Yz1GlgnTi+jA7inH14IUqkWjyA20QAPGpBiFc5cf9nym+c UKA2KLCEXqYJ+/I+mXu1z10VqS9jsWRdHfYMrB+XlRjv/TZ/maeIkMV3qMQiFzmqU6ow 8XZlmBPWezi1G23RYmGrnMtlKHgFerW9GLD34mvRWQwUXNQ5UobzGUUzmsnLGp8itYZY h0iL1qsbz4OLNS4fmSrER/WH5x0DLsEG+6diVr4hIvo/+D26b67sBDojSRbCfd1o4p9q S5mjIwswjmXCigpggCkdguU0N+WfNIydyl12UiqtKt6MrbwKUTUP9BqQqOoMabm17Ffa ZrEA== 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=PA3FVb+J4SclMKAlYY0ZMYvDath2dI2KOPbq273rzfU=; b=FJxykrIUUDcZ7XAgaAR5IopXQizgv3sRS5SmjFl++CEVQJmIjXIdvaV8E/SuFdM/+k HolOu4aXyNGJ3LjHrzaEdmEXz38WoXBIdUDwRNe8MkEW9AxvPv4vaGFataBpsH20bdyA Q5e/nwWSluE7uJj3AAiZ2m2DaKcmMPgXtxTdung3aCYd81gRZKWRH0Kl3lor6gE5fH6/ UxVNdmLIjXzYu75p/FQhVPalymTPnhjDGGlTKCu3erNWtuPAtEXIOviwQKLf7UbhE3Wq vAo4mK4c3oJoleYOajclzIdBIKonL5NacgIUMrvP5kCrak3wVUnnzJHL3PG8eSwa1GC+ /EfA== X-Gm-Message-State: AOAM530xbCTlrRXLWnEIQbyS7+c55kSCvlP2ql4f9q0rTfM0HiO6SXAA 51y1IEgzzEWCw28+iyBG49MiMw== X-Received: by 2002:a1c:b387:: with SMTP id c129mr5384063wmf.58.1604507089249; Wed, 04 Nov 2020 08:24:49 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id o129sm3008564wmb.25.2020.11.04.08.24.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 08:24:48 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Dmitry Torokhov , dusonlin@emc.com.tw, KT Liao , linux-input@vger.kernel.org Subject: [PATCH 06/20] include: input: elan-i2c-ids: Mark 'elan_acpi_id' as __maybe_unused Date: Wed, 4 Nov 2020 16:24:13 +0000 Message-Id: <20201104162427.2984742-7-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201104162427.2984742-1-lee.jones@linaro.org> References: <20201104162427.2984742-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Some drivers which include 'elan-i2c-ids.h' make use of 'elan_acpi_id', but not all do. Tell the compiler that this is expected behaviour. Fixes the following W=1 kernel build warning(s): include/linux/input/elan-i2c-ids.h:26:36: warning: ‘elan_acpi_id’ defined but not used [-Wunused-const-variable=] Cc: Dmitry Torokhov Cc: dusonlin@emc.com.tw Cc: KT Liao Cc: linux-input@vger.kernel.org Signed-off-by: Lee Jones --- include/linux/input/elan-i2c-ids.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 diff --git a/include/linux/input/elan-i2c-ids.h b/include/linux/input/elan-i2c-ids.h index 520858d126808..b6976d99b6b75 100644 --- a/include/linux/input/elan-i2c-ids.h +++ b/include/linux/input/elan-i2c-ids.h @@ -23,7 +23,7 @@ #include -static const struct acpi_device_id elan_acpi_id[] = { +static const struct acpi_device_id __maybe_unused elan_acpi_id[] = { { "ELAN0000", 0 }, { "ELAN0100", 0 }, { "ELAN0600", 0 },