diff options
108 files changed, 10620 insertions, 699 deletions
| @@ -113,3 +113,5 @@ Uwe Kleine-König <Uwe.Kleine-Koenig@digi.com> | |||
| 113 | Valdis Kletnieks <Valdis.Kletnieks@vt.edu> | 113 | Valdis Kletnieks <Valdis.Kletnieks@vt.edu> |
| 114 | Takashi YOSHII <takashi.yoshii.zj@renesas.com> | 114 | Takashi YOSHII <takashi.yoshii.zj@renesas.com> |
| 115 | Yusuke Goda <goda.yusuke@renesas.com> | 115 | Yusuke Goda <goda.yusuke@renesas.com> |
| 116 | Gustavo Padovan <gustavo@las.ic.unicamp.br> | ||
| 117 | Gustavo Padovan <padovan@profusion.mobi> | ||
diff --git a/Documentation/CodingStyle b/Documentation/CodingStyle index c58b236bbe04..cb9258b8fd35 100644 --- a/Documentation/CodingStyle +++ b/Documentation/CodingStyle | |||
| @@ -671,8 +671,9 @@ ones already enabled by DEBUG. | |||
| 671 | Chapter 14: Allocating memory | 671 | Chapter 14: Allocating memory |
| 672 | 672 | ||
| 673 | The kernel provides the following general purpose memory allocators: | 673 | The kernel provides the following general purpose memory allocators: |
| 674 | kmalloc(), kzalloc(), kcalloc(), vmalloc(), and vzalloc(). Please refer to | 674 | kmalloc(), kzalloc(), kmalloc_array(), kcalloc(), vmalloc(), and |
| 675 | the API documentation for further information about them. | 675 | vzalloc(). Please refer to the API documentation for further information |
| 676 | about them. | ||
| 676 | 677 | ||
| 677 | The preferred form for passing a size of a struct is the following: | 678 | The preferred form for passing a size of a struct is the following: |
| 678 | 679 | ||
| @@ -686,6 +687,17 @@ Casting the return value which is a void pointer is redundant. The conversion | |||
| 686 | from void pointer to any other pointer type is guaranteed by the C programming | 687 | from void pointer to any other pointer type is guaranteed by the C programming |
| 687 | language. | 688 | language. |
| 688 | 689 | ||
| 690 | The preferred form for allocating an array is the following: | ||
| 691 | |||
| 692 | p = kmalloc_array(n, sizeof(...), ...); | ||
| 693 | |||
