Received: by 10.223.185.116 with SMTP id b49csp2150225wrg; Thu, 15 Feb 2018 07:18:27 -0800 (PST) X-Google-Smtp-Source: AH8x2265AQz1sWwDzuFXPPphu1AynWnrRhsUgTZxd6BTX5GgJQtx5JnfQk1lf6tqa+xZmnCtbxPl X-Received: by 2002:a17:902:d24:: with SMTP id 33-v6mr2872804plu.40.1518707907001; Thu, 15 Feb 2018 07:18:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518707906; cv=none; d=google.com; s=arc-20160816; b=jq5uGQSQLcf2BHgKkeHK9upyAsh0Zt9dZnTuQCDggWi2sRVwGGbUhN1PQAyciY8zHM qWTspZtM2vBNG16deBq4Qe8zHufCwSA6oc29xtDENq1j4ifz7YMkedCxHdp5l6BNdsNT 1180I1jj88588QZVZ8NjZYX5V4ATkTQmZ23XStESaiUulDyKCQL5ei1w0hGD/xhrX8un YVtKJeF/FTwobtpFO0PE/zzOQonQIweynC8PxIn6M1YhWhTny/CATEdY1zmCk67w4HzW CPXqpidGC+doLLiNBGU5jIkqs4j8tZcf34WKnPnFcF9UpQzQt7d/q3k5y+CtgVycV0Cg KbuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=6fZQWwXNgoKldEK81nRIh9exMF0Gby73+ZdE/s0PjM0=; b=Vk/LVPUd8x17loNbDbv5evwCb3f3Lqu43oec9GI1SlI2PeHJx16VMuslVriGKVav9i B6ju2nGeA/0QWLLRfNfQ+skaFX1dc6csoYSXfy92ucfxOQ64DFwkGSiMrIcpmQsuvFvb OtTCH37ZVhIpWl43ZSqW97uxV3JO2XSLHvScd/Oa0itks6knN4surWTDP+yN3ssPaI7d ncjG6hJlCV8VkeeQVLN1ZCM0X3pRy5LslYruQecB+Ou1YnbUe8/V1dnKioCoQSIxsSeB RBcTbS0J5g0WcMYvQf+D6sX8y2MbtVC0uZ+Uh4LeN7Ry8iz1DDQma9F214l2BEWXOTu2 QFHA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k136si30152pga.44.2018.02.15.07.18.12; Thu, 15 Feb 2018 07:18:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1033747AbeBOPRb (ORCPT + 99 others); Thu, 15 Feb 2018 10:17:31 -0500 Received: from mout.kundenserver.de ([217.72.192.74]:39797 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1033088AbeBOPR3 (ORCPT ); Thu, 15 Feb 2018 10:17:29 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.145]) with ESMTPA (Nemesis) id 0LdmXT-1eM39v1sBf-00j40W; Thu, 15 Feb 2018 16:17:20 +0100 From: Arnd Bergmann To: stable@vger.kernel.org Cc: x86@kernel.org, Dave Hansen , Ben Hutchings , Arnd Bergmann , Greg Kroah-Hartman , Hugh Dickins , Kees Cook , linux-kernel@vger.kernel.org Subject: [PATCH 2/2] [stable-4.9] x86: fix build warnign with 32-bit PAE Date: Thu, 15 Feb 2018 16:16:57 +0100 Message-Id: <20180215151710.1473117-2-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20180215151710.1473117-1-arnd@arndb.de> References: <20180215151710.1473117-1-arnd@arndb.de> X-Provags-ID: V03:K0:ZNEkpV+/34a5mlinGmWrfrlUi1bGOknfRjdA77UbQDa2uH/i4Ut YVnSnSvm1zVSZmd+q1Oki0n5u6trO1LhVxJcX2QxSEM2TRvDtzplT5iSoBB7ZMY1l7q265Q JyQ8oAg943pkonpdXoEaNm2itwd5urm042Cu+ofd8oQAQc9++0SUMWp7f1/0lp5ZqvcO9Gy eewWVWJUuSQ4cPuIVm6Xw== X-UI-Out-Filterresults: notjunk:1;V01:K0:rrq9rkZDoqw=:BPNt7asxlwirS73qWWlyug nUPxa1m9ApVs4VDMe45tljT9SwWQclGYHhPwXyUWy0F5iQKCk71pExzcuml2qXb2sG+9oPF6d RsoMBAM+Fwc7YGJ0GEWUh6h/0ArPmfOl+Yvv0WI9gzIJ0VSlY1cdqSpKjeEazmA19kDO5I1qZ Bt9HNydGFYU+reugr8xwtQtSETf6hpPUPhQYpvIq+4u7uO5VT25rS1HDEEcAtuyCeVq7U+Hfs d7O9gXFFigdSBjbiz8fEuwAlSKAinFerrCQVm2uWRlmychdzR5zc+zjDdCPwixchCsIqUmi/E JVHfxHb/D9locM1XJ4K5jc7vohmhlfGhITO5fQCs6N0mwYa4W9UybuCrbzs4M0+zWUcxRlGpd 5G8ESyVQw7SVDMUp0uGWJa79n2hrjkAFhFQsxh6mv7hT6ZCKTQcmp9XxXDyDEF3S9j9NE3+SV kWu+ZyFBPny4c7geh8lOHyKvYF34SQQ8B7qK63J4zg/SQIIC+3y+4/be4lC780yCMYXROOVRQ 9uAPYCS7ewghwf8tbKvNbwhkfE8C1JdFknmwCrW0CO9eNelXVuapp/FgBl55dD56q6368O3mZ tQE9LXqFAVAkOoOgSMoz07BJMklJpMLJoPodpJgNFZJI3GT8P0lUyHcVHZRMxPmNWiF2UzAmL 1RSOD5cwcvi7VRg600Dpdp0IqxuHyryCG9WielweezgVW9O+IpEHQriruO7lDcu8ANDd9fDvd MRysy63bmgTkwcd1+YbP9XxZo5ICUfDyogrxSw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I ran into a 4.9 build warning in randconfig testing, starting with the KAISER patches: arch/x86/kernel/ldt.c: In function 'alloc_ldt_struct': arch/x86/include/asm/pgtable_types.h:208:24: error: large integer implicitly truncated to unsigned type [-Werror=overflow] #define __PAGE_KERNEL (__PAGE_KERNEL_EXEC | _PAGE_NX) ^ arch/x86/kernel/ldt.c:81:6: note: in expansion of macro '__PAGE_KERNEL' __PAGE_KERNEL); ^~~~~~~~~~~~~ I originally ran into this last year when the patches were part of linux-next, and tried to work around it by using the proper 'pteval_t' types consistently, but that caused additional problems. This takes a much simpler approach, and makes the argument type of the dummy helper always 64-bit, which is wide enough for any page table layout and won't hurt since this call is just an empty stub anyway. Fixes: 8f0baadf2bea ("kaiser: merged update") Signed-off-by: Arnd Bergmann --- include/linux/kaiser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/kaiser.h b/include/linux/kaiser.h index 58c55b1589d0..b56c19010480 100644 --- a/include/linux/kaiser.h +++ b/include/linux/kaiser.h @@ -32,7 +32,7 @@ static inline void kaiser_init(void) { } static inline int kaiser_add_mapping(unsigned long addr, - unsigned long size, unsigned long flags) + unsigned long size, u64 flags) { return 0; } -- 2.9.0