From patchwork Fri Aug 16 22:58:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Anna X-Patchwork-Id: 171518 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp37698ily; Fri, 16 Aug 2019 15:58:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxgrt8qpQfrNvd4g4vwF/KUSdaTDBINBo0H8XYHmnbnRhrFjF2+xsQCOTUnxEb7LIjEEhpk X-Received: by 2002:aa7:8f29:: with SMTP id y9mr13648580pfr.27.1565996326633; Fri, 16 Aug 2019 15:58:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565996326; cv=none; d=google.com; s=arc-20160816; b=rDy5rlKzxephEwNAorJs0y1mLYhIRkuO2Y/XtNgADeuGEbXYBRvHQARWBSlz9TTJ0I bDj2O6jqZjg+tQkKEsvyTJeidmNiD9VuVgZT29BXS6HNvcuKzPVmDW0dS7myHxXd+kY1 CqMMrklloSb1YAqjN631qN/Xiuz1YhVrw4fuk0YBUCJ5UkRf1fVQ3HDeezaSZZdh3dqJ OojVIoyJ9g1JurRMs50xKxQdZQTCGixsYiaZAnLerFMDKUMhiflyjP/rFVqbkpLzKoZd 8ckDRBOGHKSCDWufovRnNTHNsxyezfxcwvXNVPrzTYFBYkTLGmRPogZyQN8kjkCkJMLH 02sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ZhrZRIol3LJne5DNWYX66jQ+190Rd1/PWrEfkR4gDCs=; b=a+NPG7wvKkiO2JsFSFnBuhsbPCKjXSNCcfYnqKTRbu8OWks09AofSLU4bB7RhJxF1W LJ6SqwlSsEJ5wQyesHzmtJtTI9sWUFu6sqrcfbM/SSgn3L5yQCXNSF9bdt/mMkG47a7r TUHoFVXfzeg02+xlf4xsndjvgA+BFU6LDoT21/gGiRV3E/mAvxUzshSQ1OICEhES7zDO 4sKTzmKwp6euJSI2Fkxbbc4DebipTvD7JjfzWz5m9VOYNwYbN0K4y+oeyzCa0kIe50aB H85VAGum/hV04T1wFCjCGLOrm5jBs1pB3Ow7XmAxAzIRP63OcGHwUP5HJg4ttkZD1n1Q ReDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=paBifWsE; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k22si5117928pfi.289.2019.08.16.15.58.46; Fri, 16 Aug 2019 15:58:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-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=@ti.com header.s=ti-com-17Q1 header.b=paBifWsE; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727766AbfHPW6p (ORCPT + 5 others); Fri, 16 Aug 2019 18:58:45 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:54724 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727696AbfHPW6p (ORCPT ); Fri, 16 Aug 2019 18:58:45 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x7GMweZw041435; Fri, 16 Aug 2019 17:58:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1565996320; bh=ZhrZRIol3LJne5DNWYX66jQ+190Rd1/PWrEfkR4gDCs=; h=From:To:CC:Subject:Date; b=paBifWsEEojK9yFtprRtARaF/wJ1qFvrKH+RnQuqVLIqJcClpj1LVGMtCO7sYRqnt FK9s1pwEY3pxmO36de062r4c6A9f3UAw/7WjRuGi2jpOyNDvZex3/+psk/beMDkb+j nAOmheH66XeP0cDH7wM9xtbaCB0nZ5GQpetI8WvQ= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x7GMwdC2031428 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 16 Aug 2019 17:58:40 -0500 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 16 Aug 2019 17:58:39 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Fri, 16 Aug 2019 17:58:39 -0500 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x7GMwdM8024932; Fri, 16 Aug 2019 17:58:39 -0500 Received: from localhost (irmo.dhcp.ti.com [128.247.58.153]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id x7GMwdZ24401; Fri, 16 Aug 2019 17:58:39 -0500 (CDT) From: Suman Anna To: Joerg Roedel CC: , , Suman Anna Subject: [PATCH] iommu/omap: Use the correct type for SLAB_HWCACHE_ALIGN Date: Fri, 16 Aug 2019 17:58:37 -0500 Message-ID: <20190816225837.6362-1-s-anna@ti.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org The macro SLAB_HWCACHE_ALIGN is of type slab_flags_t, but is currently assigned in the OMAP IOMMU driver using a unsigned long variable. This generates a sparse warning around the type check. Fix this by defining the variable flags using the correct type. Signed-off-by: Suman Anna --- drivers/iommu/omap-iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.22.0 diff --git a/drivers/iommu/omap-iommu.c b/drivers/iommu/omap-iommu.c index 99a9ff3e7f71..8645e9b175a3 100644 --- a/drivers/iommu/omap-iommu.c +++ b/drivers/iommu/omap-iommu.c @@ -1818,7 +1818,7 @@ static const struct iommu_ops omap_iommu_ops = { static int __init omap_iommu_init(void) { struct kmem_cache *p; - const unsigned long flags = SLAB_HWCACHE_ALIGN; + const slab_flags_t flags = SLAB_HWCACHE_ALIGN; size_t align = 1 << 10; /* L2 pagetable alignement */ struct device_node *np; int ret;