Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp289906rdf; Tue, 21 Nov 2023 02:54:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IH2ePAf1e97hJUd5Q26J5Wz+kpEDWZeaJoDi9qKOC2n46d1pa2TYpmcS5tUkKY3mqBRp5d9 X-Received: by 2002:a17:90b:4c08:b0:27d:1571:f683 with SMTP id na8-20020a17090b4c0800b0027d1571f683mr7532968pjb.44.1700564086900; Tue, 21 Nov 2023 02:54:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700564086; cv=none; d=google.com; s=arc-20160816; b=qxSl+VYDI9e//dxtSZdNTjxgUSTu/KniakFTauzeORJIuGG8E6Vd9hKBBjft8C76cd vGtvvNksdrwtCpytsvbeisujIERzeYwZNKzAsyfUikvmAiUghh0MyJdfVY/zytyLK2dV LBlQVS3iYQ6ru4yeDaG+e1njIkRgM61aowKF1oHdv+ZgDz+dOJnTSnbTX4s90i6+tIi7 25mEr4LfLBZq23W5gwBfAYGOb5OKSVinB1KMaMYnom2Mdp8ih/lwzj9BC6HZSN5zD2by S6VGxvqreZdwsfwM9Cn+7a6pu8p95BWlCEeTwly8y5HOI2qVQpx+W2+NaFdX48K22tqt LM0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=qsj3rIZeOAuNXZ0EvueOE00+LKfnpB0i3HgAHHnhF3E=; fh=a8rfO/ijwAswjjoKAqpJ0ejfPBmZ1uCdxOdieB9sT+o=; b=elacYOFFQ7Usl2n8Gj2hZi+tjyZa0fEc2eBJi8vzNUnQmSymWaOMWAbIPLW2/uzlDB VMqnRFfO0+5khokpCVisY/RJ8MVQdu2FeEmGLhLuoczYxyeyhUVSRI99Az2P9JolDPxC QjtU8VbrMvdp2KrzLQrzFBGZIg/NAK/qYz3Yr10jBeavx5pDlVYcoG3BIlFm4BwwtpfG V8w1fYW9+fmK2KaN+liyNYfx5nXf1Ej2cUI8cbjtmuJb2kX5T6ChnfIEgGUniN0FAIMv 0Zdl/C5fnGuVaqQUvVGPsQGP37IHAU89079yQMiETFeVStcH40ulE2X5hTshAnsuo1ei PN1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WfJoYSBk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id c11-20020a170902aa4b00b001c5fc13fb2dsi9547502plr.294.2023.11.21.02.54.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 02:54:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WfJoYSBk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id B4094810670C; Tue, 21 Nov 2023 02:54:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232683AbjKUKyl (ORCPT + 99 others); Tue, 21 Nov 2023 05:54:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229997AbjKUKyk (ORCPT ); Tue, 21 Nov 2023 05:54:40 -0500 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CFAF95; Tue, 21 Nov 2023 02:54:37 -0800 (PST) Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2c5087d19a6so65592941fa.0; Tue, 21 Nov 2023 02:54:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700564075; x=1701168875; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=qsj3rIZeOAuNXZ0EvueOE00+LKfnpB0i3HgAHHnhF3E=; b=WfJoYSBkhqfFoH3Ae8y3Q+s33oK4sbSmx57fRMHY+7TdDJ0K+7BUpHhaXbs4fcfB/3 IzfW8h/4Hv7DM81oerdIoU2NdCc5cFacOoizt7R36XP2ChfzsVRcxu3/ELrSy2z3hr3d IZBtSURsNIhhlJro6NleTfe15AvazvYvObc/4fFZYZ3+XzNnjU/lCtbyzkjOD6q5VZ8S H0yTbP4AKvRGwK5q7qwhTmHbcgt1Nrgrshbo+gW9QnimMzVm8PY/537EhDC+RzVDDb6+ DeZa/rYPlOzDriIgsc4wR09VnznKeDgvkuVJSH5kFnmPpoEtVpPCt+g7C6F5egt0yh5w 1gIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700564075; x=1701168875; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=qsj3rIZeOAuNXZ0EvueOE00+LKfnpB0i3HgAHHnhF3E=; b=q3/sH7fXm8zUuvo63zuse6fSk7XpKd9hyKQB6czkdUZKX5PQJN87CBqRlOZXlpMcA+ SCC40GEI5qQ9ZuxRxcvSEw0K+LA1AGjrDjftsCkdgQrNguvtFaUUrj62/IlG9rgPnOtD htry6X2YAqB3ByjCHUXN5ZAzMRlwMtoMAhRMNoUQUm9ztvn8jGhePq5kqsOirT/pnJd6 3SDrIsagoeleF2bUkKepPoS9vV3sS3ekKrmfx/V1Xd0tfjiPN4DxddsHewTBWOlOB9lG vQk4ZpmDNApV4DXLx2a1cHqMeUZkqjYd1nwiHifbldUByru2KbvCO4W50S+LhdDa8RP0 ozhQ== X-Gm-Message-State: AOJu0YwY/sLEm4bKWsAx75MdDvxYEZ0W6gCVZGjliKIwz9TJTB05H2fT Q+O54jm3akm0r80A/AKy0jo= X-Received: by 2002:a2e:81d6:0:b0:2c6:ec32:5b36 with SMTP id s22-20020a2e81d6000000b002c6ec325b36mr7156219ljg.31.1700564075106; Tue, 21 Nov 2023 02:54:35 -0800 (PST) Received: from ?IPV6:2001:7c0:2517:e:ec01:44e1:a4f0:c8? ([2001:7c0:2517:e:ec01:44e1:a4f0:c8]) by smtp.gmail.com with ESMTPSA id f19-20020a05600c4e9300b00405d9a950a2sm21233908wmq.28.2023.11.21.02.54.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Nov 2023 02:54:34 -0800 (PST) Message-ID: <8ee13525-74d1-4308-b7b5-c01daa5352e2@gmail.com> Date: Tue, 21 Nov 2023 11:54:34 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] firmware: qcom: qcm: fix unused qcom_scm_qseecom_allowlist To: Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Johan Hovold , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kernel test robot References: <20231120185623.338608-1-krzysztof.kozlowski@linaro.org> <2f14aab8-a5bb-4af4-9475-afe6b678a7fd@gmail.com> From: Maximilian Luz In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 21 Nov 2023 02:54:45 -0800 (PST) Am 11/21/2023 um 8:07 AM schrieb Krzysztof Kozlowski: > On 20/11/2023 20:56, Maximilian Luz wrote: >> On 11/20/23 19:56, Krzysztof Kozlowski wrote: >>> For !OF builds, the qcom_scm_qseecom_allowlist is unused: >>> >>> drivers/firmware/qcom/qcom_scm.c:1652:34: error: ‘qcom_scm_qseecom_allowlist’ defined but not used [-Werror=unused-const-variable=] >>> >>> Fixes: 00b1248606ba ("firmware: qcom_scm: Add support for Qualcomm Secure Execution Environment SCM interface") >>> Reported-by: kernel test robot >>> Closes: https://lore.kernel.org/oe-kbuild-all/202311191654.S4wlVUrz-lkp@intel.com/ >>> Signed-off-by: Krzysztof Kozlowski >>> --- >>> 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 520de9b5633a..ecdb367dc9b8 100644 >>> --- a/drivers/firmware/qcom/qcom_scm.c >>> +++ b/drivers/firmware/qcom/qcom_scm.c >>> @@ -1649,7 +1649,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", }, >>> { } >>> }; >> >> Thanks! Given that we're right now only allowing qseecom clients to load >> on devices within that list, maybe it would be cleaner to make >> QCOM_QSEECOM depend on OF explicitly instead? > > There is no code dependency here. Which is why I'm fine with this as well. It would just drop currently unused code on !OF configs. > The driver should already depend on > ARCH_QCOM which select OF. Are you saying it does not depend on > ARCH_QCOM? Why? QCOM_QSEECOM depends only on QCOM_SCM. QCOM_SCM does not have any dependencies. Instead, it is selected by ARCH_QCOM. Best regards, Max