Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2570435lqz; Wed, 3 Apr 2024 01:55:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWdvEwTdBQspKeSEe3zgmRikwyedClYzwwyxq8w2EOz6P5JdwcIbgPTM8THxwy5ItAsSaRT+qfPG/HW88Av89ncoyUHQ15H6qVMEpVnEw== X-Google-Smtp-Source: AGHT+IFvPqP1UzCqhyRDRQl5AxErRc0f3u9mWmRCyoDKzk+Ny4w5NVsk6HWdqXz3P6gGj51W2Aqo X-Received: by 2002:a05:6a20:6a0c:b0:1a3:50fb:4f7c with SMTP id p12-20020a056a206a0c00b001a350fb4f7cmr18148752pzk.29.1712134525273; Wed, 03 Apr 2024 01:55:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712134525; cv=pass; d=google.com; s=arc-20160816; b=sHvUiJLLrgF6I5lPA5COWpzqCnEz3KDyDF5mZQ0G768Wj8KoaaGdyNrW+SMZTI4YUW VCbO7PELtz5SxfWxQvWNzr4usaQgkFQFO6WEO0Px93S+//pQbTQKIrEAPX4Z4VgbB/Xf QzFGypTvkiVaV1+gqCOAUmiKIFQY6BGljSEuQrNBvSzi1cJs7WO8syktdNqF3p3vNdBG Nf3xAVXpgy9v1UNeKlkoNNlZ6zppx+Q0P99Rn96ZojRUhpkUdFqjCcCGDmhjsjdx9/j/ T+k3HTMkFnpObDnZrDS1fQo/wSYLn73O1/aOxA9o7Itm8NgLhebrL2Fi+FSN4rOFA6v/ zl5Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=MwQ3+7LNiShEFMFiYfU/Ec30usA5vkyDfm2XBj5UDNg=; fh=yKZiax9dFgYFEU2MMsMzTPqhpeuEedFLNNpUmx/RkO8=; b=mw2sRnV40x0oSblh/xlTA58OkoWremyYflabTZzMpjhSOWxfbA9Dz9GXbycY7xh9y/ Q5xouEef02QKYJfb8FCVSVPJR6JTybuOKPw8KqSURrZ/kHcl6MMQsSuwJOlRwqAQUdk9 nGiBx1jVL2/v95dDpGXusalMDJ2DigPzfvaZQlJBT7e+Q8CEPNWYQkkI7gaJuw+Yu5vO hiJoJ7kWZFcQIOT8jc+HIZ2EETrKwQ0tS9g8svmBrmQnnnmYuFV1XBiJ8l3XKpfWFKo+ la3T0A8Yv2fz+1/XGf7GMYO1MtS5Rwot0hF3+zUEUQ7TiLWAaxJISgyAr3YHdv7d7NpS iSKQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dieCWAWH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-129301-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129301-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id y39-20020a056a00182700b006e698118106si13244888pfa.286.2024.04.03.01.55.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 01:55:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129301-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dieCWAWH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-129301-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129301-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id F12D6B28B03 for ; Wed, 3 Apr 2024 08:21:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9156313F42F; Wed, 3 Apr 2024 08:11:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dieCWAWH" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BB05413F425; Wed, 3 Apr 2024 08:11:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712131865; cv=none; b=Lknr5SAy5IBDZYaz7k3mhYeGWqBdz4uP9wTv1RKQBHYYoU1tPbN3KYY7hK9f7+RTJM6ImZp7cwOIldz2WXDmnAn2ZOkx6geyE5k8qU2AtH55HeKtrg3wPMtWDnaT6rpzVoljj8qAjWx1aluyUQKWKcYNSLCd7dYRKU3/INHwgd4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712131865; c=relaxed/simple; bh=OaBdwzPyJFIVi5jKFEkNH3EGbx1qZe7R5hLgRTGjY10=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=FwPPEnQU9zn8JWchAgJiK7yd7v995zwC5an1nO86GxoJfFCz8KpfyIfRc3A2paY5I8dYATlNvvMYynmy5bvp7TkoTqs/yNfYkPRJXZjNIrrwh+LedqtrEBRw/URa2cmsJMVgVP1cf/kVTtll42sEqC4TPQ5NIqVyO5EtPo6TCLo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dieCWAWH; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15AACC433C7; Wed, 3 Apr 2024 08:11:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712131865; bh=OaBdwzPyJFIVi5jKFEkNH3EGbx1qZe7R5hLgRTGjY10=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dieCWAWH/t+S3gm1titmmfw34OmJo5p9YVMk9/1Uormtij8W8tceyOmrivytapWsX EWDdidDv0ySuc5gEaYhSAPgVLRs2ay5OrkdfzCCqlCb+/ozQCPOBUcyo5Gj8SmAiE+ v69JV3/J0lM/b/yPxxg1aL/52EHjl/ZvZjJKBR03fOfubxUAs/w38qjIVYjbCxSl7D LWM6F9ubJa83zsL/POmMM5MzLOSqHbsmkub6gk323IGZdTBd0uQ+rBmBgVKUuiGidF H5FfNUMRix2ROhta0ylKMDpDda+GsOGdVHaZpiJNo80zxMoscMhJlYyNSIvfAIAM6a /w68aScpztvDQ== From: Arnd Bergmann To: linux-kernel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio , Maximilian Luz , Johan Hovold Cc: Arnd Bergmann , Bartosz Golaszewski , Krzysztof Kozlowski , Kathiravan Thirumoorthy , Guru Das Srinagesh , Robert Marko , linux-arm-msm@vger.kernel.org Subject: [PATCH 23/34] firmware: qcom_scm: mark qcom_scm_qseecom_allowlist as __maybe_unused Date: Wed, 3 Apr 2024 10:06:41 +0200 Message-Id: <20240403080702.3509288-24-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240403080702.3509288-1-arnd@kernel.org> References: <20240403080702.3509288-1-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann When CONFIG_OF is disabled, there is no reference to this variable: drivers/firmware/qcom/qcom_scm.c:1655:34: error: unused variable 'qcom_scm_qseecom_allowlist' [-Werror,-Wunused-const-variable] static const struct of_device_id qcom_scm_qseecom_allowlist[] = { Mark it as __maybe_unused to hide this warning. Fixes: 00b1248606ba ("firmware: qcom_scm: Add support for Qualcomm Secure Execution Environment SCM interface") Signed-off-by: Arnd Bergmann --- drivers/firmware/qcom/qcom_scm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/qcom/qcom_scm.c b/drivers/firmware/qcom/qcom_scm.c index 49ddbcab0680..81c15aeff934 100644 --- a/drivers/firmware/qcom/qcom_scm.c +++ b/drivers/firmware/qcom/qcom_scm.c @@ -1652,7 +1652,7 @@ EXPORT_SYMBOL_GPL(qcom_scm_qseecom_app_send); * We do not yet support re-entrant calls via the qseecom interface. To prevent + any potential issues with this, only allow validated machines for now. */ -static const struct of_device_id qcom_scm_qseecom_allowlist[] = { +static const struct of_device_id qcom_scm_qseecom_allowlist[] __maybe_unused = { { .compatible = "lenovo,thinkpad-x13s", }, { } }; -- 2.39.2