From patchwork Tue Aug 22 07:57:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 715892 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 B03E8EE4996 for ; Tue, 22 Aug 2023 07:57:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232868AbjHVH5f (ORCPT ); Tue, 22 Aug 2023 03:57:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231759AbjHVH5e (ORCPT ); Tue, 22 Aug 2023 03:57:34 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51673E9 for ; Tue, 22 Aug 2023 00:57:32 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-68a41031768so1197414b3a.3 for ; Tue, 22 Aug 2023 00:57:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692691052; x=1693295852; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Szhn++uT+SYj6J/tWZZP4rlg/L1C49hUSBzJ8Ssqt1g=; b=RwpH8vrb6VXQRxM/AlIPIJ3VCMlJXsiU+Jcy3mFvihkxBc/+v1RBQUv7SNMyGrkl/D /xcBWM3c1AwUhJnHiCRGykcoKXlkvoSqLgtwB6ejCl5+n+Dy9sSRlw9VJ29YS3QtGe4W d7wTXSsyiVe6wN8r6GkS02Uyet+N/mnKsumsrv99Qs5d6BQENfwgpP8KpEmbpUMOeceE R6Us9SlhfYj9xN23v4HAnav2GNfbgFhzW8BrvhoiMES8xeotx/ikpw5+sWWK2zdzR79J jJuFVIxMqkTT7tPFpXsO6jHlh9lYngkbTWYFMShq7ZTbPyfl/Kv0JpSkEVqkhYa0okQ6 P7eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692691052; x=1693295852; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Szhn++uT+SYj6J/tWZZP4rlg/L1C49hUSBzJ8Ssqt1g=; b=Rm7qiZMGqqrH915p0gtbGeemT21t/M7zDEwNsGl367Th6UQJMyBIS0N2wKq5dVC5Bn ZOhsUA/6XeNmlbBi5AxDBS7XS7m9xd+SCdyn+94YBIc3+kudkZrbBQl24/Yu5wDRcxAr 2ftG/U8ipcAIkRaJO2N/I4P9BBtdSWMJKbZEzLGA1GMvSWuJtvx5m74UNf2VY5G+MWs6 0p74WrF/SX336PmVI3+c0ZP0/hTd29GUqjlM7dTp2r+4WW+hLSl2W0gj3g3n421gIuz1 SzCrH1prAdj1hrrQt0MiwbzW3zch6LAidj6VVbF8OJ8KWRvUx1NeVExJiXO5zFcrADs/ mX3g== X-Gm-Message-State: AOJu0YwHox2jqIkjn+kmI+bW5G1P9Z5tItuE1os5ivSdTWRMM4Zwydqj 5YC0KHZ3y6grNRBa1AbHV2NK2Q== X-Google-Smtp-Source: AGHT+IHzuGh/GnrDJJmgwJkjKkhWD5Y5FpL9RMw8HSrxsNKp4Lswt/hx5zRYFeFIXQOOu9oFht/7qg== X-Received: by 2002:a05:6a00:15d0:b0:687:3f06:5939 with SMTP id o16-20020a056a0015d000b006873f065939mr8626740pfu.32.1692691051736; Tue, 22 Aug 2023 00:57:31 -0700 (PDT) Received: from localhost ([122.172.87.195]) by smtp.gmail.com with ESMTPSA id c3-20020aa78c03000000b00640dbbd7830sm7551763pfd.18.2023.08.22.00.57.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Aug 2023 00:57:31 -0700 (PDT) From: Viresh Kumar To: Rob Herring , Frank Rowand Cc: Viresh Kumar , kernel test robot , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] of: Move of_skipped_node_table within #ifdef CONFIG_OF_ADDRESS Date: Tue, 22 Aug 2023 13:27:22 +0530 Message-Id: <73dea4f4b389359a8beadbc77b00eb26853f9ab5.1692691032.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The `struct of_skipped_node_table` is used only when CONFIG_OF_ADDRESS is defined, move it within the #ifdef/#endif to avoid warnings on configurations where CONFIG_OF_ADDRESS isn't defined. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202308212037.YopffWSU-lkp@intel.com/ Signed-off-by: Viresh Kumar --- drivers/of/platform.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/of/platform.c b/drivers/of/platform.c index 051e29b7ad2b..3f7bdf7bc2f8 100644 --- a/drivers/of/platform.c +++ b/drivers/of/platform.c @@ -31,11 +31,6 @@ const struct of_device_id of_default_bus_match_table[] = { {} /* Empty terminated list */ }; -static const struct of_device_id of_skipped_node_table[] = { - { .compatible = "operating-points-v2", }, - {} /* Empty terminated list */ -}; - /** * of_find_device_by_node - Find the platform_device associated with a node * @np: Pointer to device tree node @@ -55,6 +50,11 @@ struct platform_device *of_find_device_by_node(struct device_node *np) EXPORT_SYMBOL(of_find_device_by_node); #ifdef CONFIG_OF_ADDRESS +static const struct of_device_id of_skipped_node_table[] = { + { .compatible = "operating-points-v2", }, + {} /* Empty terminated list */ +}; + /* * The following routines scan a subtree and registers a device for * each applicable node.