Received: by 10.223.185.116 with SMTP id b49csp969914wrg; Wed, 21 Feb 2018 09:51:40 -0800 (PST) X-Google-Smtp-Source: AH8x224kezmeprqra++kT+3ADNF/xex6pVxjsbLwwZUxGIrmZvyBJ07zEAKSdCAeB6doihVebZlC X-Received: by 10.98.110.202 with SMTP id j193mr4080803pfc.19.1519235499888; Wed, 21 Feb 2018 09:51:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519235499; cv=none; d=google.com; s=arc-20160816; b=oE5Y82WUQNv9jMAQ3Ygl/J+I4OE7x5Z/EGWCK7ENVz9fLZ5DGc3qoWW66febUKUccI ZnFg3m8rkr1GWSLtS5NvKIOTihrDseuY5dHUiv8UmUvbj+Yu2zszJPjUctsFF65SPj4E IT8c/6+Jzwuv7jFBw3Zt04XPSoYiHk/Vtk8K3WR0Q4sOMmL+dL68vPo0K21DbsZD1gJJ R0ZEVm3Mxb6ZiMv2HNUNRXLCflFQ1nWmB9N+OYzz1pPK+TRX+Gi+baej/TI5D/FVwp2g hGovEXH/FkJ0+7vLAcEYs5c006k6L/QjnvWbvcHxSi81yrZaCHVYmibRRNaAE6Fd9ix/ ZtOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=GKBUQ1kCT4cMQpI0kc5H79F6ZQ2K6kDWTpn+F2gX7Fc=; b=p4S1E8E47bnbUWVSr746vJumNiYEiCuDlrkeYzKoVcM7xmfX/XEu+IKraSnmOmZKbn 6tptbubrFQJl5PwjCfx0VkATgYQ7m0PDCufSfVrXC5ULuls+uJuYpqa/MkLnOUkWjIHr h/pVJS0UhztkM7LLlnXj1cu7fdujFL8EnXvLZiC9ilZrcye01wHoi/GM6nM2WzZZMDqJ Y7YksgQ05aFN0LJZsWIZsw0MXux1QAguHAI7OBlNcIhZWVb0Glr2AGCW0tgugL9rxfJx /k70v4zGm7yVI4R5EZ4HjerDt0QBwg7z2FyPun2L0fbqaTzhhsFTvuB3whS10uvMzic6 pG/A== 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 a2-v6si1415936plp.544.2018.02.21.09.51.24; Wed, 21 Feb 2018 09:51:39 -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 S934018AbeBUMrq (ORCPT + 99 others); Wed, 21 Feb 2018 07:47:46 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:59872 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933929AbeBUMqd (ORCPT ); Wed, 21 Feb 2018 07:46:33 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 318F5C8D; Wed, 21 Feb 2018 12:46:33 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Greg Kroah-Hartman , Arnd Bergmann , Kees Cook , Hugh Dickins Subject: [PATCH 4.4 29/33] x86: fix build warnign with 32-bit PAE Date: Wed, 21 Feb 2018 13:45:12 +0100 Message-Id: <20180221124411.086079188@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180221124409.564661689@linuxfoundation.org> References: <20180221124409.564661689@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ 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 Acked-by: Kees Cook Acked-by: Hugh Dickins Signed-off-by: Greg Kroah-Hartman --- include/linux/kaiser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 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; }