Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754447AbdIRMqq (ORCPT ); Mon, 18 Sep 2017 08:46:46 -0400 Received: from mail-cys01nam02on0083.outbound.protection.outlook.com ([104.47.37.83]:4928 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753002AbdIRMqn (ORCPT ); Mon, 18 Sep 2017 08:46:43 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@cavium.com; Date: Mon, 18 Sep 2017 15:46:25 +0300 From: Yury Norov To: Randy Dunlap Cc: "linux-doc@vger.kernel.org" , Jonathan Corbet , LKML Subject: Re: [PATCH] Documentation: kernel-api: add bitmap operations from linux/bitmap.h Message-ID: <20170918124625.45tugxspqpb4y6jj@yury-thinkpad> References: <8dc0abb6-a138-29f8-f37c-27a1e545f098@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8dc0abb6-a138-29f8-f37c-27a1e545f098@infradead.org> User-Agent: NeoMutt/20170113 (1.7.2) X-Originating-IP: [176.59.117.132] X-ClientProxiedBy: VI1P189CA0024.EURP189.PROD.OUTLOOK.COM (2603:10a6:802:2a::37) To CY4PR0701MB3827.namprd07.prod.outlook.com (2603:10b6:910:94::33) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 71d347cd-0743-4c39-d995-08d4fe935022 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:CY4PR0701MB3827; X-Microsoft-Exchange-Diagnostics: 1;CY4PR0701MB3827;3:ro1AP6qVX+oK9ntq3S0Wg+nBDoadZmIBMNKVaLgtSi6xVPghvxkwK5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ozSXB/NHENUxuPBIrLAcMyNWHZuQFAmICbtmPA+Cn1LXTWc+rlS7DZEn71J/gZ0oD9ePw1uJuiUF4bisyIea6/FuK60BWPjGpOa4HjTeVZIqhV1+EGljcDi6sN2Xf/CU8+X2ExRQr/W8VydatGtCAiAD6uTEhSx6T62c7AcbaUZyirGCuN5WTHyZLTyb6AdtHQeu50ck2rg8jAja2AyUSRV0+SjNkcnZtjT0i4BC/FVxuBfQJ9DBVhpMLTmOHqcPA7kQAeslGyiR1l8ihkAzyUzdCOWq7SXUixYbCkO0JDs40R2qfX/NslL/wMvY/+/9y/3nz7aEJt6Ma2Oxvzaap82QKyDKr2CCH1u6Ex2ufQr4DjIXZ3XKciwWvgc/w9bQyqbgEOjZtMx9HQs//Mp8GBcTe34xTaDw=;4:mwuS1SuA/tOR5evOTG44mXAqJcVSubTwiKHgJ7DFUfY0W5rLb6bHmENwhkBy3dTvHoqElFD2KuOyDTOIlJdH4guwiLe3VbbbW0DGXPt9AtQm9eZsZYm3JkmPN28aSIh6GPN02+9eEjUnIfR9HkljJwfoPEQMGzsuOZIThvF0FYdQqS3gSV7QBGKGNkZqwzNqVZxq2gxLAPRn+xQRBAvPHnnNWk1Hlose7dEIImkRvkDJLWc2rZEM4DzDOZ+DyTWn X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(3002001)(93006095)(10201501046)(100000703101)(100105400095)(6041248)(20161123558100)(20161123555025)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CY4PR0701MB3827;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CY4PR0701MB3827; X-Forefront-PRVS: 04347F8039 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(6009001)(7916004)(376002)(346002)(199003)(189002)(24454002)(76506005)(97736004)(8676002)(6246003)(33716001)(8936002)(6496005)(33646002)(81156014)(81166006)(16586007)(3846002)(5660300001)(9686003)(58126008)(1076002)(54906002)(53936002)(316002)(6116002)(23726003)(110136004)(189998001)(47776003)(105586002)(106356001)(7736002)(4326008)(16526017)(66066001)(42882006)(2950100002)(83506001)(2906002)(6666003)(50466002)(6916009)(6486002)(54356999)(101416001)(305945005)(229853002)(50986999)(72206003)(68736007)(76176999)(25786009)(478600001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR0701MB3827;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY4PR0701MB3827;23:hdCgivJD1rTHGsA7Pglp3IWNaOQNbSOYUl8U+8s?= =?us-ascii?Q?lQiCxnzjUUKxDGFIiXtSkmxW08wgjSJ0ekedmqdrDebssdckK0YhVvgJ2uig?= =?us-ascii?Q?99wm4AHAV2tpMk6vRgbwpgRoIKqwaDv+sZBWBYUeE9XANXskzhN2XwF4T2S7?= =?us-ascii?Q?y5WOPLgmn7T9cK2crQaXReFvce9oKdqpHPb9+PoidNiZpdCSv1vCJMkFxwgL?= =?us-ascii?Q?x5DX+q7p4w/DAI/oX20U/m0TIDsYeJ9JEYex4Vjz8CzDrZp96e4yzMR4HVJS?= =?us-ascii?Q?bGs9OX0ZQrlWgxEw0cHApGows1rrs2l7iYS0JwIdtmagAUurU/3kwCfccVDq?= =?us-ascii?Q?CuY4AVL5+0WnOVzfZdWJF+rhuLaaEW5mJKW6eBZUJAvev44j3RdKabAYA5C6?= =?us-ascii?Q?u4tsO+uT5Z39Ajddlpyu2KshPGqPBMv9x9Tg/Z9zL+xhYxp9Omk9cCj97JW8?= =?us-ascii?Q?lQ8Cry5wGHyrpLP8Uhly610OGbLllX9SXHz8xT79ZIL1y66f1cccK1xOdc4J?= =?us-ascii?Q?jTpXQVPWHDmC93c5Kx2YPlrUIUg2wfCCEcglok4cWERztQAMFCllodpVBlKR?= =?us-ascii?Q?ARqcVdTprOSo74xqMbCIJClyDSNXAWeTXQpq4XowDBji9l0u0AHWIX32ZJcz?= =?us-ascii?Q?/LmP1LvdsyKOB3gitm5PyrPbheccGlXG9DGw0UElO/0anmFWfoeAf23+o6cb?= =?us-ascii?Q?4tOO/HNjCXD0yc8XvdjJDJQZAJhbo58H38wneJ2KZgMmPXFB9F36PZVjAYJn?= =?us-ascii?Q?SltSZ4jX6v1H3N/+oBmgcBDtHzmdHcHhqsoJbhEch/TazbuMB+jYGh/zJdoH?= =?us-ascii?Q?lB0kX1AY16ulaRXaMMPdUIqCPfuP0eosejqEPDQCHU/24Rj7i+PSLnBRfR29?= =?us-ascii?Q?vxuf27V/ol6ioOb2w4q1gm2q7vtq4iDHObII92motep5jY3j4kGUSNvejwjv?= =?us-ascii?Q?oCKZ8Leo3OC1IqDWuYYxfxC0tgpKyApFjjjfIU2IT6/UVplYIoaTTVpqSbEv?= =?us-ascii?Q?uQGM1mH2TkcqXCE6Um1N/61wCxBciaSXJUm2Unksh96GE2GeNGYFd0o6Oyrc?= =?us-ascii?Q?rBMmjrWWVEBsiSVSqbYYzyBVuUnwI02vGVPEAVlScIxQyb9irhosPUPvPESu?= =?us-ascii?Q?+Iv7+R6s0tTw6rAE4rmJNB7JgQc019gaU+CUBrPTNVr+IaAsykDIgfd5Gckh?= =?us-ascii?Q?iHQrLnmZ/M5McrVT0oWRPKCAsXcdvrDEKOkR9c1NzgwAAj+AxYygxJxRE7yy?= =?us-ascii?Q?QZ9p4EDYmPGBH0qrguQRuEm86CXL7CailasZxqIP3?= X-Microsoft-Exchange-Diagnostics: 1;CY4PR0701MB3827;6:8apQSsOJxNlb2I/AlPWT+rSdcoRkUuuQMRma+T84MsVc49ElYhR0r+6/IT2QBQS44uWCD6cPjvzzyWYxJ/5uFfED9gc+opcHlCBypBeA89qO6XqrHKXPm6gIR/FqAZD05l4aVvSETdh/WygaCm8TfxAU/Z3iKOme3JKOSIKlmofQVvVjww0JnLZ735vFWoAiIX3EBql7OS/PFdBMzmjEkTkDr3RbFqPR0tiiWUfKldGTCXRV7H5SzNnGhXCcj29NWBNGnHtXTL5qPZTqsw5FGTNCOv7wWb6x7lb9Lmyc60m89PbAMcrOjaRNReXSSHkhLM6Mnn/Ut90q/8uWpi2hsQ==;5:tJN9u5XWxicqtpzpy/IUx+54PdZlzH0/5YZuUwKerVrdUFSfeHqNzHS8aUhjlWfk4hoqIBPteHIIxEYy88PZ9CjZBorDfCHpftWiWnnj1UMRRrJAxkR+2iwF08CHZi+9R8ju1VHiDD5kH6uh6TeDjg==;24:ix1s0S91r6WA8re7wSzVkP9yFXb7vph6I5K/u6VbeYsKjSOJiC/BL8cjl+zF/vXgsOXeECnD3nZClNlMrUkbgZtesr+44qgXEWvBI8qkWr0=;7:X1aPQsh5qWPUseqfZxKwHzPwyKVs0gxXn/O/PCaL/DE4f6clzwScN7wloTMW5fIQzKCD8qis2qjIXjbhmCRpn4u39ukfq2PmIKIP7UHWww37GC4XaeNjeBe6tdhcvv6RmQX73gX+Gi3yual98lx6kYlu+jHqjCboNasFbgk7+8bc2K2Wav81DSIYeDzxieaU2ZA3rQT07ztxHNNY762492K4MVhYWXv8n8tMRxpl3ts= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Sep 2017 12:46:41.8097 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR0701MB3827 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2034 Lines: 60 On Sun, Sep 17, 2017 at 07:07:10PM -0700, Randy Dunlap wrote: > From: Randy Dunlap > > Add to kernel-api Bitmap Operations section. > Fix kernel-doc nitpicks in . > > Signed-off-by: Randy Dunlap > Cc: Yury Norov Acked-by: Yury Norov > --- > Documentation/core-api/kernel-api.rst | 3 +++ > include/linux/bitmap.h | 9 +++++---- > 2 files changed, 8 insertions(+), 4 deletions(-) > > --- lnx-414-rc1.orig/Documentation/core-api/kernel-api.rst > +++ lnx-414-rc1/Documentation/core-api/kernel-api.rst > @@ -59,6 +59,9 @@ Bitmap Operations > .. kernel-doc:: lib/bitmap.c > :internal: > > +.. kernel-doc:: include/linux/bitmap.h > + :internal: > + > Command-line Parsing > -------------------- > > --- lnx-414-rc1.orig/include/linux/bitmap.h > +++ lnx-414-rc1/include/linux/bitmap.h > @@ -360,8 +360,9 @@ static inline int bitmap_parse(const cha > return __bitmap_parse(buf, buflen, 0, maskp, nmaskbits); > } > > -/* > +/** > * BITMAP_FROM_U64() - Represent u64 value in the format suitable for bitmap. > + * @n: u64 value > * > * Linux bitmaps are internally arrays of unsigned longs, i.e. 32-bit > * integers in 32-bit environment, and 64-bit integers in 64-bit one. > @@ -392,14 +393,14 @@ static inline int bitmap_parse(const cha > ((unsigned long) ((u64)(n) >> 32)) > #endif > > -/* > +/** > * bitmap_from_u64 - Check and swap words within u64. > * @mask: source bitmap > * @dst: destination bitmap > * > - * In 32-bit Big Endian kernel, when using (u32 *)(&val)[*] > + * In 32-bit Big Endian kernel, when using ``(u32 *)(&val)[*]`` > * to read u64 mask, we will get the wrong word. > - * That is "(u32 *)(&val)[0]" gets the upper 32 bits, > + * That is ``(u32 *)(&val)[0]`` gets the upper 32 bits, > * but we expect the lower 32-bits of u64. > */ > static inline void bitmap_from_u64(unsigned long *dst, u64 mask) >