]> git.baikalelectronics.ru Git - kernel.git/commit
docs: printk-formats: update size-casting examples
authorCarlos Llamas <cmllamas@google.com>
Wed, 9 Jun 2021 19:50:58 +0000 (19:50 +0000)
committerJonathan Corbet <corbet@lwn.net>
Mon, 14 Jun 2021 14:12:01 +0000 (08:12 -0600)
commit3aa5aa987ca3cd1aa80a0fd224c0c04159c90cc9
tree86aa0849909914192428d21af330e020744774f1
parent2af3d2b6884ec01c910ff76c13104758b754cf34
docs: printk-formats: update size-casting examples

Since commit f755d669bda4 ("block: remove CONFIG_LBDAF") sector_t and
blkcnt_t types are no longer variable in size, making them unsuitable
examples for casting to the largest possible type. This patch replaces
such examples with cycles_t and blk_status_t types, whose sizes depend
on architecture and config options respectively.

Signed-off-by: Carlos Llamas <cmllamas@google.com>
Link: https://lore.kernel.org/r/20210609195058.3518943-1-cmllamas@google.com
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/core-api/printk-formats.rst