lkml.org 
[lkml]   [2017]   [Jun]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.11 023/150] sparc/mm/hugepages: Fix setup_hugepagesz for invalid values.
    Date
    4.11-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: "Liam R. Howlett" <Liam.Howlett@Oracle.com>


    [ Upstream commit f322980b74a15e08f8c70a34a5864ecdbf957251 ]

    hugetlb_bad_size needs to be called on invalid values. Also change the
    pr_warn to a pr_err to better align with other platforms.

    Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    arch/sparc/mm/init_64.c | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    --- a/arch/sparc/mm/init_64.c
    +++ b/arch/sparc/mm/init_64.c
    @@ -358,7 +358,8 @@ static int __init setup_hugepagesz(char
    }

    if ((hv_pgsz_mask & cpu_pgsz_mask) == 0U) {
    - pr_warn("hugepagesz=%llu not supported by MMU.\n",
    + hugetlb_bad_size();
    + pr_err("hugepagesz=%llu not supported by MMU.\n",
    hugepage_size);
    goto out;
    }

    \
     
     \ /
      Last update: 2017-06-12 20:57    [W:5.412 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site