From nobody Fri Nov 22 19:39:20 2024 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=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1714087907; cv=none; d=zohomail.com; s=zohoarc; b=b7UrTXw1iWzgbj7To2f3bGd/rqns4FTgmGJWIB0s8DRfmbjpU9XyVDk//HGCQWCvPFgd/d3JTXHepQ8qEp87miPe30LF+afiW6v/UvLteoF0SljaITvnll8XHY2obJdOLqdc7KCk4j6uvqATWUpfUXqzk82iI55jCNR0Zkepa6M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1714087907; h=Content-Type:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=y9pOd8L89tgWDh5qSpg20dDHMwVsPQezpO/FGIj6bWs=; b=SOBXSmjvQkyvtG4UgZPmmYVnY5duoF00cvUMf08n8ULKnJ8vZJm6GYnX7gvd28wel6jIt3WcY8JeRhw1I4UYQ+rirxmcsK+Sjlttz6TDTS8lRwc6kQc7Z5nwT3nZETm73p0bZYPMIwZM650SxEg93c7K/xXxwr+kQURBOEcgGcA= 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 1714087907134304.44528379963697; Thu, 25 Apr 2024 16:31:47 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.712324.1112943 (Exim 4.92) (envelope-from ) id 1s08Yd-0001mo-MC; Thu, 25 Apr 2024 23:31:15 +0000 Received: by outflank-mailman (output) from mailman id 712324.1112943; Thu, 25 Apr 2024 23:31:15 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1s08Yd-0001mh-I7; Thu, 25 Apr 2024 23:31:15 +0000 Received: by outflank-mailman (input) for mailman id 712324; Thu, 25 Apr 2024 23:31:14 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1s08Yc-0001mL-D2 for xen-devel@lists.xenproject.org; Thu, 25 Apr 2024 23:31:14 +0000 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id e36bccef-035b-11ef-b4bb-af5377834399; Fri, 26 Apr 2024 01:31:07 +0200 (CEST) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id E68E661BD2; Thu, 25 Apr 2024 23:31:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6E53CC113CC; Thu, 25 Apr 2024 23:31:04 +0000 (UTC) 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: e36bccef-035b-11ef-b4bb-af5377834399 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714087865; bh=3hwlbemcdwx8Yy0QxfaWgHHGqAAgR057pv69Lpg+KfY=; h=Date:From:To:cc:Subject:From; b=rB57mkHLHQsy5X+aTUtZRWBZjUM6Ku/9cU68pkfIGuYhjwxGppSpP6AKielOqt23O 8WUItkyz3atKT/r0L0Yb0xZuTeTtXq6V5LkkT1gSyJ36t4f217PlIGpsAgccMV4ADD j/e8F3bbePAe5KpU1uyaQmGCLtpsmdpWz0goo9nieWAV5VSjSOjhezCeOtuLKxFEBL bi6/t4qgQjuFV8jrO5FP9xEHSlKgwEMYiziutDOinptnWIj9xMJUIZkdZayUzhmqYv SVHiy7wvp1KxtVEr1/4BiwRoQhHJQJF7B2PtA8IhJHRecMtktBO/j0rxytKa4aYlQv v+L6mB5Vs+jlg== Date: Thu, 25 Apr 2024 16:31:02 -0700 (PDT) From: Stefano Stabellini X-X-Sender: sstabellini@ubuntu-linux-20-04-desktop To: xen-devel@lists.xenproject.org cc: sstabellini@kernel.org, =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= , Jan Beulich , Andrew Cooper , Julien Grall , Bertrand Marquis , Michal Orzel Subject: [PATCH v2] docs/misra: add R21.6 R21.9 R21.10 R21.14 R21.15 R21.16 Message-ID: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 X-ZohoMail-DKIM: pass (identity @kernel.org) X-ZM-MESSAGEID: 1714087908029100001 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Signed-off-by: Stefano Stabellini --- Changes in v2: - remove trailing whitespaces - add rules 21.9 and 21.10 - remove deviations.rst deviations (to be done separately if required) - add a note explaning that Xen has no standard library --- docs/misra/rules.rst | 60 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/docs/misra/rules.rst b/docs/misra/rules.rst index b7b447e152..661879a3de 100644 --- a/docs/misra/rules.rst +++ b/docs/misra/rules.rst @@ -652,12 +652,72 @@ maintainers if you want to suggest a change. declared - See comment for Rule 21.1 =20 + * - `Rule 21.6 `_ + - Required + - The Standard Library input/output routines shall not be used + - Xen doesn't provide, use, or link against any Standard Library. + Xen implements itself a few functions with names that match the + corresponding function names of the Standard Library for + developers' convenience. These functions are part of the Xen code + and subject to analysis. + + * - `Rule 21.9 `_ + - Required + - The library functions bsearch and qsort of shall not be = used + - Xen doesn't provide, use, or link against any Standard Library. + Xen implements itself a few functions with names that match the + corresponding function names of the Standard Library for + developers' convenience. These functions are part of the Xen code + and subject to analysis. + + * - `Rule 21.10 `_ + - Required + - The Standard Library time and date routines shall not be used + - Xen doesn't provide, use, or link against any Standard Library. + Xen implements itself a few functions with names that match the + corresponding function names of the Standard Library for + developers' convenience. These functions are part of the Xen code + and subject to analysis. + * - `Rule 21.13 `_ - Mandatory - Any value passed to a function in shall be representable = as an unsigned char or be the value EOF - =20 + * - `Rule 21.14 `_ + - Required + - The Standard Library function memcmp shall not be used to compare + null terminated strings + - Xen doesn't provide, use, or link against any Standard Library. + Xen implements itself a few functions with names that match the + corresponding function names of the Standard Library for + developers' convenience. These functions are part of the Xen code + and subject to analysis. + + * - `Rule 21.15 `_ + - Required + - The pointer arguments to the Standard Library functions memcpy, + memmove and memcmp shall be pointers to qualified or unqualified + versions of compatible types + - Xen doesn't provide, use, or link against any Standard Library. + Xen implements itself a few functions with names that match the + corresponding function names of the Standard Library for + developers' convenience. These functions are part of the Xen code + and subject to analysis. + + * - `Rule 21.16 `_ + - Required + - The pointer arguments to the Standard Library function memcmp + shall point to either a pointer type, an essentially signed type, + an essentially unsigned type, an essentially Boolean type or an + essentially enum type + - void* arguments are allowed. Xen doesn't provide, use, or link + against any Standard Library. Xen implements itself a few + functions with names that match the corresponding function names + of the Standard Library for developers' convenience. These + functions are part of the Xen code and subject to analysis. + * - `Rule 21.17 `_ - Mandatory - Use of the string handling functions from shall not resu= lt in --=20 2.25.1