Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2424743rdb; Mon, 20 Nov 2023 10:20:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IEw6/HOFUDz2n0yMrgkpTOKRLd+dhLClC5LkwMYcMAtNMbqQ+g05HJtT8fdaGK3VKXgmaN0 X-Received: by 2002:a17:902:f68a:b0:1cf:6704:4340 with SMTP id l10-20020a170902f68a00b001cf67044340mr2152412plg.22.1700504407003; Mon, 20 Nov 2023 10:20:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700504406; cv=none; d=google.com; s=arc-20160816; b=f2xT7JSht6kgVCipTcPtmFznRGlibfX4cEBbS93XuBJaXxRZ3CDBj8jS+jYXxj3nB2 5kkGbNmNsu1PsM8aplaBsoStWHrWQaMa012Wet04jVtidx2xNzS+1NO3ustMe2a9EG8s kXInjiSNlNY0AjNLN82JVBOw6y0AVfshXaWuFlv4KoASZzl57Z3f+fLyCASWx4PJgmGh O3/1fmHlCfXtqDK3CCGEEtIvTKrVt7fKltsqBgOD+aHk03y4gfctDdEvIHwC5lAFiarl kp76wKYw2TXzja5wZGER6Wr0H5KxWyZlyzup+R/yQBQPNs9tKsurD4W/V13K1jvFbIsV vk1w== 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:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=IkMvHwzXha8iL76L0Ewto8Z1j8l4Dl9NfZnV40iU1Vk=; fh=lipogUAbX6RGoddKSdJQ7m0qEvVDO/cO0wqsrmBK+Io=; b=c4Llv4wo1JNByMk5btwELMqUFWS8/tldlw+xjc1xYs2QObYAfnCe9i/4jyvc5GJHkq aBKg4Q8Gdca98GZW9bEvpDQ6SCNMDZj71LjTWOreu4A51QPh5fe6UtMmT6Y/DgPNb4mN J2VzxONOnQ27vHqB9VvNY6l4qMeFpHE/MVPvBel9aPJz1PKtj4BSBuy0haANVYjBgsbN d+v5Exn/puH6iA7rGXR4cZ3VmO9G1EwY9VHd6DaK+QwlR6Hb8LTDeH1F3bmmZk79JxEe mBNcNF1e4xqLmqDD9ArV/47Qcxh+qgG2f/SHEFixsVrL97Oi8bLCXGW4SsHxqbcTp8rt vFRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Ix/CFrpM"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id q7-20020a17090311c700b001c75866c987si8784405plh.584.2023.11.20.10.19.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 10:20:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Ix/CFrpM"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 255A4806920E; Mon, 20 Nov 2023 10:19:47 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231659AbjKTSTi (ORCPT + 99 others); Mon, 20 Nov 2023 13:19:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229570AbjKTSTh (ORCPT ); Mon, 20 Nov 2023 13:19:37 -0500 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3162DB9 for ; Mon, 20 Nov 2023 10:19:34 -0800 (PST) Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-40838915cecso18682315e9.2 for ; Mon, 20 Nov 2023 10:19:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700504372; x=1701109172; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=IkMvHwzXha8iL76L0Ewto8Z1j8l4Dl9NfZnV40iU1Vk=; b=Ix/CFrpMBeaKeodHBwdMN5PTa3F/4Xqxlq7fsUSHlhz4XoZwd2Z/Dd/qposYw1MuaK hVDrkthBOtFPdrydWE9xKSUfyZ9UXVOVkJOthlByam1OpOX9kbmZjFAGv1itZg6ubITt MfIJx2idWX85lW2l7WamA3jGeiY4JEIA408YoO0ZQQYOMBhInqmUVuXBWZNQQYrcGeRu cvFCu6c2c3lBOlvJr7LDrW3oXwVtgJde+k0Uc0k4o5afZotENAn9Hyy1aK1/g0WVU2ei L5+TDP5vVLdUNJiMIfOUGCwdU/eh7c4bOOmG3GYZlpcGOkSnAlJPMKK67BAWdOLwurOV 3rnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700504372; x=1701109172; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=IkMvHwzXha8iL76L0Ewto8Z1j8l4Dl9NfZnV40iU1Vk=; b=F4V5PoPhYzvnYBAE97yV8NREcu69VPlKdDj0ePJu8d66C2biL2OgMy8qcF4aa23WRW ptlKjMZFCaD7xh88nW8cva5UT/PqoEF0ccK+w1L1FOL2iUrgLHrPgy+/37UsyGPhoSMH a7+cI6M7FU42nZQUAHgtWU3lpokPRtM1x16SiUVOyWzwsT2Uv24B9mRQazH7gl+juMpW 1gveBCj93vTi0Dg1tPLDYRaQIDe34N9gFY94w0zE65u4sondX2AKKgWsg0FDDJKKpURe sSmjJfC9wToHnaFdYRTf3gjQ6GpUIGyfPCp2cLXpvOLZPCOfe7+SAPoAy2Hlk+FfL1Qn 4ZrQ== X-Gm-Message-State: AOJu0YxArwKUOuGDnONqox30fJQhjda4DExaM0PH6ei/3bC99ShIyGnh h9gREwZfEnRs1ZevxW/RU1I= X-Received: by 2002:a05:600c:4e87:b0:401:bcd9:4871 with SMTP id f7-20020a05600c4e8700b00401bcd94871mr6395663wmq.21.1700504372119; Mon, 20 Nov 2023 10:19:32 -0800 (PST) Received: from ?IPV6:2a02:8071:b783:140:927c:82ba:d32d:99c1? ([2a02:8071:b783:140:927c:82ba:d32d:99c1]) by smtp.gmail.com with ESMTPSA id v6-20020a05600c470600b0040a5290dceesm14553760wmo.0.2023.11.20.10.19.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Nov 2023 10:19:31 -0800 (PST) Message-ID: Date: Mon, 20 Nov 2023 19:19:29 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: drivers/firmware/qcom/qcom_scm.c:1652:34: warning: unused variable 'qcom_scm_qseecom_allowlist' Content-Language: en-US To: Bjorn Andersson Cc: llvm@lists.linux.dev, Bartosz Golaszewski , oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , kernel test robot References: <202311191654.S4wlVUrz-lkp@intel.com> From: Maximilian Luz In-Reply-To: <202311191654.S4wlVUrz-lkp@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Mon, 20 Nov 2023 10:19:47 -0800 (PST) On 11/19/23 10:13, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: 037266a5f7239ead1530266f7d7af153d2a867fa > commit: bdac188ec3c71800dd8419620224ee74ef37732a firmware: qcom: move Qualcomm code into its own directory > date: 4 weeks ago > config: s390-randconfig-002-20231119 (https://download.01.org/0day-ci/archive/20231119/202311191654.S4wlVUrz-lkp@intel.com/config) > compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231119/202311191654.S4wlVUrz-lkp@intel.com/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot > | Closes: https://lore.kernel.org/oe-kbuild-all/202311191654.S4wlVUrz-lkp@intel.com/ > > All warnings (new ones prefixed by >>): [...] >>> drivers/firmware/qcom/qcom_scm.c:1652:34: warning: unused variable 'qcom_scm_qseecom_allowlist' [-Wunused-const-variable] > 1652 | static const struct of_device_id qcom_scm_qseecom_allowlist[] = { > | ^ Any ideas why this is supposedly unused? It should be accessed through qcom_scm_qseecom_init() and qcom_scm_qseecom_machine_is_allowed(). Especially if CONFIG_QCOM_QSEECOM=y. > 13 warnings generated. > > > vim +/qcom_scm_qseecom_allowlist +1652 drivers/firmware/qcom/qcom_scm.c > > 00b1248606ba39 drivers/firmware/qcom_scm.c Maximilian Luz 2023-08-27 1647 > 00b1248606ba39 drivers/firmware/qcom_scm.c Maximilian Luz 2023-08-27 1648 /* > 00b1248606ba39 drivers/firmware/qcom_scm.c Maximilian Luz 2023-08-27 1649 * We do not yet support re-entrant calls via the qseecom interface. To prevent > 00b1248606ba39 drivers/firmware/qcom_scm.c Maximilian Luz 2023-08-27 1650 + any potential issues with this, only allow validated machines for now. > 00b1248606ba39 drivers/firmware/qcom_scm.c Maximilian Luz 2023-08-27 1651 */ > 00b1248606ba39 drivers/firmware/qcom_scm.c Maximilian Luz 2023-08-27 @1652 static const struct of_device_id qcom_scm_qseecom_allowlist[] = { > 00b1248606ba39 drivers/firmware/qcom_scm.c Maximilian Luz 2023-08-27 1653 { .compatible = "lenovo,thinkpad-x13s", }, > 00b1248606ba39 drivers/firmware/qcom_scm.c Maximilian Luz 2023-08-27 1654 { } > 00b1248606ba39 drivers/firmware/qcom_scm.c Maximilian Luz 2023-08-27 1655 }; > 00b1248606ba39 drivers/firmware/qcom_scm.c Maximilian Luz 2023-08-27 1656 > > :::::: The code at line 1652 was first introduced by commit > :::::: 00b1248606ba3979ccae30ed11df8cdc1a84245a firmware: qcom_scm: Add support for Qualcomm Secure Execution Environment SCM interface > > :::::: TO: Maximilian Luz > :::::: CC: Bjorn Andersson > Regards Max