All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] docs/core-api: memory-allocation: fix typo
@ 2019-10-21  0:38 Chris Packham
  2019-10-21  2:58 ` Matthew Wilcox
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Packham @ 2019-10-21  0:38 UTC (permalink / raw)
  To: corbet; +Cc: linux-doc, linux-kernel, trivial, Chris Packham

"on the safe size" should be "on the safe side".

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
---
 Documentation/core-api/memory-allocation.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/core-api/memory-allocation.rst b/Documentation/core-api/memory-allocation.rst
index 7744aa3bf2e0..e59779aa7615 100644
--- a/Documentation/core-api/memory-allocation.rst
+++ b/Documentation/core-api/memory-allocation.rst
@@ -88,7 +88,7 @@ Selecting memory allocator
 ==========================
 
 The most straightforward way to allocate memory is to use a function
-from the :c:func:`kmalloc` family. And, to be on the safe size it's
+from the :c:func:`kmalloc` family. And, to be on the safe side it's
 best to use routines that set memory to zero, like
 :c:func:`kzalloc`. If you need to allocate memory for an array, there
 are :c:func:`kmalloc_array` and :c:func:`kcalloc` helpers.
-- 
2.23.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] docs/core-api: memory-allocation: fix typo
  2019-10-21  0:38 [PATCH] docs/core-api: memory-allocation: fix typo Chris Packham
@ 2019-10-21  2:58 ` Matthew Wilcox
  0 siblings, 0 replies; 2+ messages in thread
From: Matthew Wilcox @ 2019-10-21  2:58 UTC (permalink / raw)
  To: Chris Packham; +Cc: corbet, linux-doc, linux-kernel, trivial

On Mon, Oct 21, 2019 at 01:38:32PM +1300, Chris Packham wrote:
> "on the safe size" should be "on the safe side".
> 
> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>

Yes, it should.  Acked-by: Matthew Wilcox (Oracle) <willy@infradead.org>

If you like, you could do a follow-up patch mentioning the use
of struct_size(), array_size() and array3_size().  I think this
document is the right place for those.  Their kernel-doc is included in
driver-api/basics.rst, but referencing those functions in this document
would draw peoples' attention to them.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-21  2:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-21  0:38 [PATCH] docs/core-api: memory-allocation: fix typo Chris Packham
2019-10-21  2:58 ` Matthew Wilcox

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.