]> git.baikalelectronics.ru Git - kernel.git/commit
mm/shmem.c: suppress shift warning
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 25 May 2022 22:17:09 +0000 (15:17 -0700)
committerakpm <akpm@linux-foundation.org>
Fri, 27 May 2022 16:33:47 +0000 (09:33 -0700)
commit8c2f65f1d7bb104dc5b384f03f4d1acc9cdaf3b7
tree9209d063f5946af9072077afa8cda19a2bc54f6f
parentfe79a4c8ca75a95d2cb1e2e5b78f2d0a2eddbad2
mm/shmem.c: suppress shift warning

mm/shmem.c:1948 shmem_getpage_gfp() warn: should '(((1) << 12) / 512) << folio_order(folio)' be a 64 bit type?

On i386, so an unsigned long is 32-bit, but i_blocks is a 64-bit blkcnt_t.

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Jessica Clarke <jrtc27@jrtc27.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/shmem.c