From nobody Mon Feb 9 11:23:10 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1655911003; cv=none; d=zohomail.com; s=zohoarc; b=nV6A+90eXhsFRJSicmS37jTxm0an4BDSQbRSmygmNLXtukk4WLYV2q5di30qfNDzXHg0YQBTBJhpqYpRfIWHv+RCvKoT9/qnDwFC7Mnmqw/f17RGQGfpcjAJtgHBZCL6mE4qyHjeruIPSG8+vbbIlEtQwODHUvq29cxdqaKaXxw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1655911003; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=Glmdpk5hXbczqNv+ac/nkmkigm6yLxJMUpuRVh2TjsI=; b=jmwLnDBB5NdDL+mDr1aeJD2p/nR6nRhAn42qz06wy+60679WvxOkxEd+3hvWuaDqU2NIuMrLvBvqeJKuiQUmIc4pc7g5q2ED2XDLQGoXXnaWli5ICe7DDJ+wGD9n5VGJo5nph7sSaEXBTQSccBJUljVB6NR+hlptlMtpa2Soblw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1655911003567720.6891885735834; Wed, 22 Jun 2022 08:16:43 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.354124.581170 (Exim 4.92) (envelope-from ) id 1o425T-0000UN-BU; Wed, 22 Jun 2022 15:16:11 +0000 Received: by outflank-mailman (output) from mailman id 354124.581170; Wed, 22 Jun 2022 15:16:11 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1o425T-0000UG-8b; Wed, 22 Jun 2022 15:16:11 +0000 Received: by outflank-mailman (input) for mailman id 354124; Wed, 22 Jun 2022 15:16:10 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1o425S-0007QM-A0 for xen-devel@lists.xenproject.org; Wed, 22 Jun 2022 15:16:10 +0000 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [2a00:1450:4864:20::429]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 3e20e090-f23e-11ec-bd2d-47488cf2e6aa; Wed, 22 Jun 2022 17:16:08 +0200 (CEST) Received: by mail-wr1-x429.google.com with SMTP id j24so3170909wrb.11 for ; Wed, 22 Jun 2022 08:16:08 -0700 (PDT) Received: from uni.. (adsl-190.37.6.169.tellas.gr. [37.6.169.190]) by smtp.googlemail.com with ESMTPSA id r17-20020a05600c35d100b0039c8d181ac6sm28227360wmq.26.2022.06.22.08.16.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jun 2022 08:16:07 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 3e20e090-f23e-11ec-bd2d-47488cf2e6aa DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Glmdpk5hXbczqNv+ac/nkmkigm6yLxJMUpuRVh2TjsI=; b=oS26zn8SKFQT+EdvV/SiugpAYS4v+7adUzfaWx5rWDjqg1e6SHtKaIcg2D6N1iJaqT B/NJhKYEYRffgo0msSSv9zMe3Estxd2p3pd1+7HXv/YDLjVHLEduhG7Z8fsv5vJcQOCP kcZ3JmnNHq6zItj/QIQ62Ls+gU2oWOC2FD2gIgm1KfTzq1mT+CaRmd8xA94X4fBGIXHv vlKtUB//cHBu8Nd22WGVUSJ9iBgr1DuCHSDRBN2BXCxk31UHw5P1acKd3ooqQP6uHESC Qf44atBQysoreFHzm09j6siYaN4St2jWG9bx/w8Fei6K8J0sjmeFH5DpeygaDHmuemU7 AruA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Glmdpk5hXbczqNv+ac/nkmkigm6yLxJMUpuRVh2TjsI=; b=JhDeFkZ9fNyibDxzUYzRjUxMb/O6B03SVj+xWuXm4GYCyC6CiYfwry/39azYS1p0JR RZ0/LzLExK9ndReqDiqSTcaoKO0loNr/R+8E0X1OHOoF4datUtUHtD7vdh1yO/DQY248 Uy79IDs2iaD8nvlZwQWwtB4hBxxEIkY4NROOAjJMcDUNeAne3N5dE/c0Nkb0Yq/u3/da RIR9+RszM6vJfoz7JOWrI1jy7EnwXiWlq17OdASAtF8uOe7S2lb3SJBU4iOpjmG2/gKu hh/5vbacCzswOlZoOgx3Hv07S0VtUIwK0a8pQuoQ1Bz+uFbK4wDrZrCY5gGtw9uy1zUO 3OWw== X-Gm-Message-State: AJIora8Og4iXrZVL3auikJNT13VBviJyU7BZd0Qa5fEaPP+eMej3OwXa 8ws0NB3aQYgntdEUp87XuZ17e+KHWmw= X-Google-Smtp-Source: AGRyM1v6gsmmUBYmBcgDGD86yHRTJRC88HCtNFamITn6v2arofRI4+Z95XLvLyRko8Ail9P7TlAI8g== X-Received: by 2002:a5d:47a1:0:b0:218:423a:de8f with SMTP id 1-20020a5d47a1000000b00218423ade8fmr4008747wrb.420.1655910968031; Wed, 22 Jun 2022 08:16:08 -0700 (PDT) From: Xenia Ragiadakou To: xen-devel@lists.xenproject.org Cc: Xenia Ragiadakou , Stefano Stabellini , Julien Grall Subject: [PATCH] xen/common: device_tree: Fix MISRA C 2012 Rule 8.7 violation Date: Wed, 22 Jun 2022 18:15:57 +0300 Message-Id: <20220622151557.545880-1-burzalodowa@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1655911005795100003 Content-Type: text/plain; charset="utf-8" The function __dt_n_size_cells() is referenced only in device_tree.c. Change the linkage of the function from external to internal by adding the storage-class specifier static to the function definition. This patch aims to resolve indirectly a MISRA C 2012 Rule 8.4 violation warning. Signed-off-by: Xenia Ragiadakou Reviewed-by: Stefano Stabellini --- xen/common/device_tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/common/device_tree.c b/xen/common/device_tree.c index 0e8798bd24..6c9712ab7b 100644 --- a/xen/common/device_tree.c +++ b/xen/common/device_tree.c @@ -496,7 +496,7 @@ static int __dt_n_addr_cells(const struct dt_device_nod= e *np, bool_t parent) return DT_ROOT_NODE_ADDR_CELLS_DEFAULT; } =20 -int __dt_n_size_cells(const struct dt_device_node *np, bool_t parent) +static int __dt_n_size_cells(const struct dt_device_node *np, bool_t paren= t) { const __be32 *ip; =20 --=20 2.34.1