Thread (5 messages) flat view 5 messages, 3 authors, 2021-02-02

Re: [PATCH 1/1] arm64: hibernate: add __force attribute to gfp_t casting

From: Christoph Hellwig <hch@infradead.org>
Date: 2021-02-02 08:43:42
Also in: lkml

On Mon, Feb 01, 2021 at 10:03:06AM -0500, Pavel Tatashin wrote:
Two new warnings are reported by sparse:

"sparse warnings: (new ones prefixed by >>)"
quoted
quoted
arch/arm64/kernel/hibernate.c:181:39: sparse: sparse: cast to
   restricted gfp_t
quoted
quoted
arch/arm64/kernel/hibernate.c:202:44: sparse: sparse: cast from
   restricted gfp_t

gfp_t has __bitwise type attribute and requires __force added to casting
in order to avoid these warnings.

Fixes: 50f53fb72181 ("arm64: trans_pgd: make trans_pgd_map_page generic")
Reported-by: kernel test robot <redacted>
Signed-off-by: Pavel Tatashin <pasha.tatashin@soleen.com>
What about just passing the gfp_t value by reference which would be much
cleaner?

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help