From patchwork Thu Feb 15 15:16:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 128480 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1859666ljc; Thu, 15 Feb 2018 07:17:31 -0800 (PST) X-Google-Smtp-Source: AH8x2268o9O/6orXh27q7AR78Aeji/vhE/t9alEshg1IJ6GI4bMjuMblCU5tbUNqW/NthDcE0bHo X-Received: by 2002:a17:902:6544:: with SMTP id d4-v6mr2788774pln.117.1518707851669; Thu, 15 Feb 2018 07:17:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518707851; cv=none; d=google.com; s=arc-20160816; b=tR7BYPn4pna3rxSG0Wl6kokvSxbVZVe45WVMyNAaFX/9jK20bPxAIglwi8PfkYj8JY wk+IM0lmQMBY6xiIhrhaTBnoZfrNvyRiG78btO7cNd0+9GI69hY0GUooBEveLIifr9UC hVFIXElCFEZqacqy54D5+KrCydwbPqwcDd1TPhZZBGM1b1oCdtmp5e/DQcH9GJhjEXZQ lUdZ2HMpl85gJ7m/fsnSJM1rRBrRTuAp+HtVXuK+zatIXCyf9HPtsb/Az06J0Z58q8G3 B1F6A8DpsQ5HxmQL6AS2C7JgbmMurNfK86+d0gXHk1gHfLf93lSlOFAENjr+UfjkduN/ uJsg== 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=c69ILCCXJLMb6aIP9tYrKqeBQ8ttesF3Kr1bes+iOfcXIHv6Ad3Wmy1QFd4wCsQ/S6 VlV9p3xw2lV+G947ySgNaEZDJIEQLABXCtjVMrPzueur53kN0HKoSFbcCmhUjOwRt6iI J2+yXR2Taeh/fNT1LWwiajwpDCe95kOUDE2E5AfavurAAnLbBSzVoNXcFz4p2KIT/F8L J4LcVwrSUnp4vu3+jIDyfmiWxM3iTGzDc8aU4AjRLX+FIpZy/EtcpNeDFY4gn5/WRdX/ HuiMLltShq0Z5mZxbACobvc1dzX9hvioZpbT5I7OXa+43slUYbFO1UwA5VrOBcw30OIP A0Zw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-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 o1-v6si5446046plb.280.2018.02.15.07.17.31; Thu, 15 Feb 2018 07:17:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of stable-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 stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1033584AbeBOPRa (ORCPT + 10 others); Thu, 15 Feb 2018 10:17:30 -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: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@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(-) -- 2.9.0 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; }