Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp851395pxk; Thu, 17 Sep 2020 19:03:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwep1d8Oh2/jFf1qDjc4kISPNghGwW6tqEGtoPjulsKqR3nkdqikiL3uitEchHGsqt3LXkc X-Received: by 2002:a17:906:a981:: with SMTP id jr1mr32005855ejb.99.1600394626731; Thu, 17 Sep 2020 19:03:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600394626; cv=none; d=google.com; s=arc-20160816; b=oHu2c6BaJgBp9sNS6pT9IAcHLEG9yTNB4V0E4x03DqTJ5xGrGKU6aneiET9uhBDdoP OXH9ClGqpxKXwdn/eBDkvmawqf/9ybSySTcrBTwRw1l1LTD9DgrnZzezl6Pq+GzkYInb yuVfoAM4SmAxsIVhSVdNG5pBzi959VWUZg0aWjNQJIwx0t+QSgUDqTVucm+0oDJS8V6a anHHjv/OzhlOoQtbaE6JXA5DDpIpWnKrN9G+JJNZrkzhHpxO2rejEBWIraK5QxW2O7yt I7LOIUJNRiQ5RR7QtxpVL+rks6e92oAqO/2umYwM+gbB5LvS4aIKlzlhhnhn4TvRm85L UHPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/fNY8Mp24VJSe5K/G/csG9wK3WSjzQnL3c0gf+JZrMM=; b=fBq3Ll3x9cXxUMsrb11oSjcdYUvg2e+sZBi3bKwtTmnlBK8d+CbbrgBxf/P18SRwxM H/AYkLJoCDPKq02k4ZiMHkxYbeXDlijbL9Rg/fKz5pms35shvI7KnoToT5nji7bLSqVG wzQZaaW/hjCe5pBJSBQANvZ4t9hEslVmjXGSCA2dcSlPvXe4v800Rt6MHv/9SRiYLFJb HXr9d5ZoSs3q0SlyGY0S8dq4BEmgulD2C2Kqs/Uh7yAJgNZr179XG7sKYqOOYbZcxeQW KRF5Wm+nbwurxjPPn8DVBJBo04ow5TevQrNcRqMTzpPFa8xDYcXug9u1bi4NNysTcOd8 /ieg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AkEOqIet; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dr21si1371968ejc.186.2020.09.17.19.03.23; Thu, 17 Sep 2020 19:03:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AkEOqIet; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726564AbgIRCBz (ORCPT + 99 others); Thu, 17 Sep 2020 22:01:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:46446 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726496AbgIRCBu (ORCPT ); Thu, 17 Sep 2020 22:01:50 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 88C9521734; Fri, 18 Sep 2020 02:01:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600394509; bh=VvOb9MOaCBEjlKScL5k0MHaYmhPul/awoDD2zE/EiUU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AkEOqIetbTswIJm2poc3JLoyMk2HxNJTuRWMTsosTRtgkgYFqqV0W2DklOyqUDBLw KA+pvIS/sFD9ErP2xP0cnw108h0bs8KusRHb8xK4zbVcRpgmCg3Pu8cmbo0PLTpfZn 7suagIJ/jndfQDhlEW9kwf2rEGs+BZ79jkI7IPt8= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Dan Williams , kbuild test robot , Thomas Gleixner , "Rafael J . Wysocki" , Sasha Levin Subject: [PATCH AUTOSEL 5.4 032/330] dax: Fix alloc_dax_region() compile warning Date: Thu, 17 Sep 2020 21:56:12 -0400 Message-Id: <20200918020110.2063155-32-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200918020110.2063155-1-sashal@kernel.org> References: <20200918020110.2063155-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dan Williams [ Upstream commit 460370ab20b6cc174256e46e192adf01e730faf6 ] PFN flags are (unsigned long long), fix the alloc_dax_region() calling convention to fix warnings of the form: >> include/linux/pfn_t.h:18:17: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define PFN_DEV (1ULL << (BITS_PER_LONG_LONG - 3)) Reported-by: kbuild test robot Signed-off-by: Dan Williams Acked-by: Thomas Gleixner Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- drivers/dax/bus.c | 2 +- drivers/dax/bus.h | 2 +- drivers/dax/dax-private.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/dax/bus.c b/drivers/dax/bus.c index 8fafbeab510a8..eccdda1f7b71b 100644 --- a/drivers/dax/bus.c +++ b/drivers/dax/bus.c @@ -227,7 +227,7 @@ static void dax_region_unregister(void *region) struct dax_region *alloc_dax_region(struct device *parent, int region_id, struct resource *res, int target_node, unsigned int align, - unsigned long pfn_flags) + unsigned long long pfn_flags) { struct dax_region *dax_region; diff --git a/drivers/dax/bus.h b/drivers/dax/bus.h index 8619e32999436..9e4eba67e8b98 100644 --- a/drivers/dax/bus.h +++ b/drivers/dax/bus.h @@ -11,7 +11,7 @@ struct dax_region; void dax_region_put(struct dax_region *dax_region); struct dax_region *alloc_dax_region(struct device *parent, int region_id, struct resource *res, int target_node, unsigned int align, - unsigned long flags); + unsigned long long flags); enum dev_dax_subsys { DEV_DAX_BUS, diff --git a/drivers/dax/dax-private.h b/drivers/dax/dax-private.h index 6ccca3b890d6f..3107ce80e8090 100644 --- a/drivers/dax/dax-private.h +++ b/drivers/dax/dax-private.h @@ -32,7 +32,7 @@ struct dax_region { struct device *dev; unsigned int align; struct resource res; - unsigned long pfn_flags; + unsigned long long pfn_flags; }; /** -- 2.25.1