linux-stable/drivers/crypto/hisilicon
Kirill A. Shutemov 23baf831a3 mm, treewide: redefine MAX_ORDER sanely
MAX_ORDER currently defined as number of orders page allocator supports:
user can ask buddy allocator for page order between 0 and MAX_ORDER-1.

This definition is counter-intuitive and lead to number of bugs all over
the kernel.

Change the definition of MAX_ORDER to be inclusive: the range of orders
user can ask from buddy allocator is 0..MAX_ORDER now.

[kirill@shutemov.name: fix min() warning]
  Link: https://lkml.kernel.org/r/20230315153800.32wib3n5rickolvh@box
[akpm@linux-foundation.org: fix another min_t warning]
[kirill@shutemov.name: fixups per Zi Yan]
  Link: https://lkml.kernel.org/r/20230316232144.b7ic4cif4kjiabws@box.shutemov.name
[akpm@linux-foundation.org: fix underlining in docs]
  Link: https://lore.kernel.org/oe-kbuild-all/202303191025.VRCTk6mP-lkp@intel.com/
Link: https://lkml.kernel.org/r/20230315113133.11326-11-kirill.shutemov@linux.intel.com
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Reviewed-by: Michael Ellerman <mpe@ellerman.id.au>	[powerpc]
Cc: "Kirill A. Shutemov" <kirill@shutemov.name>
Cc: Zi Yan <ziy@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2023-04-05 19:42:46 -07:00
..
hpre crypto: hisilicon/hpre - Set DMA alignment explicitly 2022-12-09 18:45:00 +08:00
sec crypto: hisilicon - Use request_complete helpers 2023-02-13 18:34:49 +08:00
sec2 crypto: hisilicon - Use request_complete helpers 2023-02-13 18:34:49 +08:00
trng crypto: hisilicon/trng - fix local variable type 2022-06-17 17:19:20 +08:00
zip crypto: hisilicon/qm - modify the process of regs dfx 2022-11-18 16:59:34 +08:00
Kconfig crypto: hisilicon - remove redundant config PCI dependency for some CRYPTO_DEV_HISI configs 2023-01-20 18:29:31 +08:00
Makefile crypto: hisilicon/qm - split a debugfs.c from qm 2022-11-18 17:00:22 +08:00
debugfs.c crypto: hisilicon/qm - the command dump process is modified 2022-11-18 17:00:22 +08:00
qm.c Char/Misc and other driver subsystem changes for 6.3-rc1 2023-02-24 12:47:33 -08:00
qm_common.h crypto: hisilicon/qm - split a debugfs.c from qm 2022-11-18 17:00:22 +08:00
sgl.c mm, treewide: redefine MAX_ORDER sanely 2023-04-05 19:42:46 -07:00