[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] x86/vRTC: move and tidy convert_hour() and {to,from}_bcd()
- To: Jan Beulich <jbeulich@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
- Date: Thu, 20 Jul 2023 11:50:59 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xBiZllQ1ymSMddPnEAVyxLTZp6lUIpuNJ5zv/DmQQSI=; b=PleXQ86UOq973ew1gowj30H14FP/CHFsb4sGYJeCtgseg96IVZTZ0D2OinXRf8TzMzpylKcYTh5w6V6twGEZbJTRQ0azZp/nkcrMVU+UGaCQbWnQYf8Q38NXjGUbA9Dn3q09mN8lrVWj/3zE23JYC7TEam0GAhyXcWJZTwLyBV+BfZcDAUOxV8daU0k4uK/fmXlLe9BQzRaUEvSQAy6vCV/M5TdqwztlEng4a9KwrSOvplMg1ymnY3zFmFtxd+WDnIbbWHnvU6pVFq1apVV1PGAOQJem+aWij2f+oodAgUpY41smAujL6b8YaaKTeS3rC57VufDSc4N/VfOFkdsfJA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nXMHw7ujK7RM5qbgtCVyiQG5Zrix6aypOZpupOeReWXNopQS59fDe4jqHtqy5ffUFvPBNzmH8EHzDhkb1CXpRCQXLhWC7OoasIsMGVsfdAuEruIARdxO8tbuS6RFsmlsRB7TggC95YiRUi/xUys8chFggrcgomD1CoZngMszDQLSfvLi4taNEXunJ6C8vhx4vGTPc+VLzc1/84YuI93Ek86KUDkUb4S5tdXqmLE4qOVJPIM8qcwAhum3Obi5KAcOQWlP17mEQMMZjgi32qhZVIqb+cTAzEr/YlC4YCpFys9+Yc0VqPEgHv9sWNZzugtmtHLaOylMaMTUAturi0v/OQ==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Cc: Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Federico Serafini <federico.serafini@xxxxxxxxxxx>
- Delivery-date: Thu, 20 Jul 2023 10:51:38 +0000
- Ironport-data: A9a23:AyUlwaCV2Aab3RVW/+riw5YqxClBgxIJ4kV8jS/XYbTApDIh0mRSy zYZXT3QOfqINjHze4p/bY+19ElQuMXTx9U1QQY4rX1jcSlH+JHPbTi7wuUcHAvJd5GeExg3h yk6QoOdRCzhZiaE/n9BCpC48T8nk/nOHuGmYAL9EngZbRd+Tys8gg5Ulec8g4p56fC0GArIs t7pyyHlEAbNNwVcbCRMsspvlDs15K6p4GxC5gRnDRx2lAS2e0c9Xcp3yZ6ZdxMUcqEMdsamS uDKyq2O/2+x13/B3fv8z94X2mVTKlLjFVDmZkh+AsBOsTAbzsAG6Y4pNeJ0VKtio27hc+ada jl6ncfYpQ8BZsUgkQmGOvVSO3kW0aZuoNcrLZUj2CA6IoKvn3bEmp1T4E8K0YIw5PZ1Lz8Rr PsjDxcBPxC/ufuMmJWEVbw57igjBJGD0II3nFhFlWucNtB/BJfJTuPN+MNS2yo2ioZWB/HCa sEFaD1pKhPdfxlIPVRRA5U79AuqriCnL3sE9xTI+uxrvgA/zyQouFTpGPPTdsaHWoN+mUGAq 3id12/4HgsbJJqUzj/tHneE37aQx3OgB9lDfFG+3sFSi0/P4mswNAE5dEaEn6XggBKcVM0Kf iT4/QJr98De7neDTNPwQhm5q36spQMHVpxbFOhSwBGAzO/Y7hiUAkAATyVdc5o2uckuXzso2 1SV2dTzClRHr7m9WX+bsLCOoluaNyUZIHUDbihCVgYf6tfipoAbhA/AVdtlH+i+ididJN3r6 zWDrSx7nLNKi8cOj/+/5Qqf32/qoYXVRAko4AmRRnii8g5yeI+iYcqv9ETf6vFDao2eSzFto UQ5piRX18hWZbnlqcBHaLVl8G2BjxpdDADhvA==
- Ironport-hdrordr: A9a23:eNH5CqH7cNZBoPHmpLqF9ZLXdLJyesId70hD6qkvc3Fom52j/f xGws5x6faVslkssb8b6Km90dq7MBThHPlOkPQs1NaZLXPbUQ6TQL2KgrGSoAEIdxeOk9K1kJ 0QCJSWa+eAc2SS7/yb3ODQKb9Jrri6GeKT9J/jJh9WPH5XgspbnmNE42igYytLrUV9dPgE/M 323Ls6m9PsQwVeUiz9bUN1LdTrlpnurtbLcBQGDxko5E2nii6p0qfzF1y1zwoTSDRGxJYl6C zgnxbi7quunvmnwluEvlWjo6h+qZ/E8J9uFcaMgs8aJnHFjRupXp1oX/mvrS04u+am7XctiZ 3prw07N8p+xnvNdiWeoAfr2SPnzDEygkWShGOwsD/Gm4jUVTg6A81OicZwdQbY0VMpuJVZ3L hQ12yUmpJLBVeY9R6NreTgZlVPrA6ZsHAimekcgzh2VpYfUqZYqcg68FlOGJkNMSrm4MQMEf VoDuvb+PFKGGnqJEzxjy1K+piBT34zFhCJTgwrvdGU6SFfmDRDw04R1KUk7wA93aN4b6MBy/ XPM6xumr0LZNQRd7hBCOAIRtbyInDRQDrXWVjiYWjPJeUiATbgupT36LI66KWBY5oT1qY/n5 zHTRdxqXMyQUTzEseDtac7sywleF/NHwgF9/suoqSQ4tbHNf7W2Gy4OR4TevKb0rYi6paxYY f1BHpUa8WTWVcGV7w5mTEWYKMiWkX2YPdly+rTZGj+0v4jCreawNAzI8yjbYbFIHIDZl7VJE clcXzaGPhgh3rbL0MQxiKhFE/QRg==
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 20/07/2023 8:11 am, Jan Beulich wrote:
> This is to avoid the need for forward declarations, which in turn
> addresses a violation of MISRA C:2012 Rule 8.3 ("All declarations of an
> object or function shall use the same names and type qualifiers").
>
> While doing so,
> - drop inline (leaving the decision to the compiler),
> - add const,
> - add unsigned,
> - correct style.
>
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
|