Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1045539imu; Wed, 9 Jan 2019 10:35:26 -0800 (PST) X-Google-Smtp-Source: ALg8bN5pKLANK4KDCRb4MwK8pH+iHEhjwxhkzq8TSK0B+0sxGUO+u2X557T6oZJxlQS3vKg6R6jw X-Received: by 2002:a17:902:c85:: with SMTP id 5mr7246216plt.339.1547058926475; Wed, 09 Jan 2019 10:35:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547058926; cv=none; d=google.com; s=arc-20160816; b=zmi4csThqUsx+hIPs0X1KEeesveAZHvvwo/VAH6GgB1LBaar8OvCeCPAZyBKtbMEUz iU8KwOVNFgRiuc80duCjUHXNcqkxMVK4PbbQA2fl00kXnl4yDcTJl+3R4cBCEbVJZJd/ T+s6OoipwWMs7h6gHJ2Z2ooyyyPdmTYsniBVoSSJlH5grwOnoyu3GfZrc70yo3Ppkuzz IqW5Qnn6MmYQyv2VLYlaEUdeMLjwIfHCgahRG41J1Z1XzMl7dHc6Wj13Am+7cEEPgK/e AXKZccXfpgdk8t72a2kL8yCA4Gni6zIHqjHrQien2RdiCSoco+HEXtYPz28H6KvOvdgS Ef6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=2ZHyQfZjd8TlXKXVdLreOQcBuxQUqyz9Pdg0+NQxots=; b=Ol/z50+WDTcVfkkMN5JMuK/F288tnKercYRvJ7puxCxlmSiTevvxdVyXuMq/X1dnsc 105Up9ealPkqAcRYLsk79S0J0EX3jc7oRQSKEF78lePiPFKWmLQRcjggGgh0jST7eEaQ quJFLleN5WVjXBKWZr6Hc93H0Dfbk22cAgHQgv2omfx+j3akoGuRVQmYDsoqeE3nJbPh aajiLMplvko7Smk0UW3trvxU7zYkql09TIAIyks+BRoF91auFLnm7TzoJqKlKSq3aLGI kNCQaQDvZ9W7zchq1SCgwH0eksl3ew7WfmUnQ4T3nzOxj/lrDi94Khkg/xuXWqvMFZ8K rsKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Wj7NTL98; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o7si34782073pgg.118.2019.01.09.10.35.10; Wed, 09 Jan 2019 10:35: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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Wj7NTL98; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727407AbfAISdo (ORCPT + 99 others); Wed, 9 Jan 2019 13:33:44 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:44835 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726558AbfAISdo (ORCPT ); Wed, 9 Jan 2019 13:33:44 -0500 Received: by mail-pl1-f196.google.com with SMTP id e11so3957857plt.11 for ; Wed, 09 Jan 2019 10:33:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=2ZHyQfZjd8TlXKXVdLreOQcBuxQUqyz9Pdg0+NQxots=; b=Wj7NTL982hx5lfg1Hxm51F3Kmy3829JOrh7mwwJ043w0PVjyDD8i8b7mWJyWgr2qUd uz5INFTySCo547U5UaJBZ7pjLp+Mt/Uc+53Hts7MWjDcdVRsFew35MUICbYH6kSUGnFt cHz3Eeq0BxWAGBHS+TodxEcKmJYl7Ri5G0YPgVkjlWvW6eQtGLZgzvb76M5lWixxapb+ X4zHkO1qJ5EJighj35MA1Hqrfo/6pxRxt3BmfdYd3AvHGMR66XUkTKgOBVAlcE7PwbF+ cwW0Fl+JFSQajE++A7QIjdRp9uE51tLFKK8MK8XGZSe2OAqCj0IkeyRfot2ryOgjzGiF 3MlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=2ZHyQfZjd8TlXKXVdLreOQcBuxQUqyz9Pdg0+NQxots=; b=PV4TCC0Jy+PsS9qw1PFIchdk80gRpEs2yJFHwxRS7vJD5msPdnHlgVSR9WbWL+VcYb uY5ET20AE8y/cS9XIfBXTu/T4aXknR3G6l1SlKWk8yGXoMeYmQB/kg3gEmzTwOARLCDR 6l7Oq7t9P2qNMkgWKnmxTE5DfUEIxnkM9dAu89zweqDUBQXCM5EeoNds+k/mWEJkctQc V8lHHfLRlrbm5hFPmmgHj0QvHNL696+e8T7NcgthMsiyev/vWNY57RHeOQEc1Qx1PuSu JHy1e7ObdEUZe5zW7WG03zKfK+G+P/vPzX1Ia3/o4a0tSK7h51t7iF586k/ZEo2l/Ij0 uLpA== X-Gm-Message-State: AJcUukew3WOCOJcsOjGHVmg/3qyNL/w5gL+eDtZkKyadw6m6ENhYThAe 0owXgACd82Rf3Q2GJOwNwtc= X-Received: by 2002:a17:902:680f:: with SMTP id h15mr7057704plk.40.1547058823058; Wed, 09 Jan 2019 10:33:43 -0800 (PST) Received: from jordon-HP-15-Notebook-PC ([49.207.49.233]) by smtp.gmail.com with ESMTPSA id v15sm104992776pfn.94.2019.01.09.10.33.41 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Jan 2019 10:33:42 -0800 (PST) Date: Thu, 10 Jan 2019 00:07:42 +0530 From: Souptick Joarder To: akpm@linux-foundation.org Cc: dave.hansen@linux.intel.com, luto@kernel.org, peterz@infradead.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, x86@kernel.org, linux-kernel@vger.kernel.org, willy@infradead.org Subject: [PATCH v2] x86/mm/fault.c: Convert to use vm_fault_t Message-ID: <20190109183742.GA24326@jordon-HP-15-Notebook-PC> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert to use vm_fault_t type for last argument of do_sigbus(). kbuild reported a warning during testing of final vm_fault_t patch integrated in mm tree. [auto build test WARNING on linus/master] [also build test WARNING on v5.0-rc1 next-20190109] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] https://github.com/0day-ci/linux/commits/Souptick-Joarder/ mm-Create-the-new-vm_fault_t-type/20190109-154216 All warnings: arch/x86/mm/fault.c:1051:39: warning: restricted vm_fault_t degrades to integer arch/x86/mm/fault.c:1057:29: warning: restricted vm_fault_t degrades to integer arch/x86/mm/fault.c:1059:29: warning: restricted vm_fault_t degrades to integer arch/x86/mm/fault.c:1094:62: warning: incorrect type in argument 4 (different base types) arch/x86/mm/fault.c:1094:62: expected unsigned int fault arch/x86/mm/fault.c:1094:62: got restricted vm_fault_t [usertype] fault This patch has fixed the warnings. Signed-off-by: Souptick Joarder --- v2: updated the change log. arch/x86/mm/fault.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c index 2ff25ad..dea3725 100644 --- a/arch/x86/mm/fault.c +++ b/arch/x86/mm/fault.c @@ -1031,7 +1031,7 @@ static inline bool bad_area_access_from_pkeys(unsigned long error_code, static void do_sigbus(struct pt_regs *regs, unsigned long error_code, unsigned long address, - unsigned int fault) + vm_fault_t fault) { struct task_struct *tsk = current; -- 1.9.1