Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

firmware: replace ALIGN(PAGE_SIZE) by PAGE_ALIGN

use mm.h definition

Cc: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Fabian Frederick and committed by
Greg Kroah-Hartman
a76040d8 6af6b163

+1 -1
+1 -1
drivers/base/firmware_class.c
··· 712 712 static int fw_realloc_buffer(struct firmware_priv *fw_priv, int min_size) 713 713 { 714 714 struct firmware_buf *buf = fw_priv->buf; 715 - int pages_needed = ALIGN(min_size, PAGE_SIZE) >> PAGE_SHIFT; 715 + int pages_needed = PAGE_ALIGN(min_size) >> PAGE_SHIFT; 716 716 717 717 /* If the array of pages is too small, grow it... */ 718 718 if (buf->page_array_size < pages_needed) {