From patchwork Mon Apr 9 00:35:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Levin X-Patchwork-Id: 10328991 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 34FBB6037F for ; Mon, 9 Apr 2018 00:40:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 237A9289E0 for ; Mon, 9 Apr 2018 00:40:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 17E91289F3; Mon, 9 Apr 2018 00:40:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8027B289E0 for ; Mon, 9 Apr 2018 00:40:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kXAb5/20m9Onv6YAbMKXzg0Qg9VCYDQYEP2TLcDM/O4=; b=VVlcvmLa/fha28 3ouKJc0ogefwK592t3yfHCaMnPjoExIX+cgA3DAoyS39b/S0WUXH/EfZ1+yxpEjJP9He78Rv7uN2a OgRjjoUrtq+TajctZhVb5sVzlt6CMUNJEcE3jISANmd5TVgwfzAcEu73MOvMisuTuZkc3crrgg+8G Af5kX4jJ7SoTLP2DOt8tOgh2uKl2pIKQEoWi/9I8/nrFiVzrHrgfQPVf2DtFu4nF7yXkWZ6QblFVG 2qLOoO9DQWTf7s/R5K4opiO2Lovyd2JJLOc3ZK3FhdDdH5lElpipeW2dH5ZSU75GVcniYgRgv2vnV jmYSovnpeSFqBLfEpDNw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f5KrM-0003FJ-CJ; Mon, 09 Apr 2018 00:40:36 +0000 Received: from mail-sn1nam02on0129.outbound.protection.outlook.com ([104.47.36.129] helo=NAM02-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f5KrJ-0003Ce-3H for linux-arm-kernel@lists.infradead.org; Mon, 09 Apr 2018 00:40:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=vbXH2WGSWUc0YGknpOZziAtTRj9DlpDGFks5/qhXuj4=; b=SRstj7cs4pQVW2mAvY4xF3rbbVLtfVF0uk3WKNIsm7igI9U2lBeytjsCAOG9AoyyoJptwrYR7P7ISAGHDasE9KbdzM+wl1D4qNSYzubjmHW5M7B7lYCvEwGlqQBhcHmjNJAIWkubNkrSqr/gMwZ6nH9lJRcFXZ9tzoHGnLnhjls= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0870.namprd21.prod.outlook.com (10.167.110.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:40:20 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:40:20 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: [PATCH AUTOSEL for 3.18 040/101] arm64: pass machine size to sparse Thread-Topic: [PATCH AUTOSEL for 3.18 040/101] arm64: pass machine size to sparse Thread-Index: AQHTz5q0fvV7F/b4TEeyN3wl+hLkDA== Date: Mon, 9 Apr 2018 00:35:49 +0000 Message-ID: <20180409003505.164715-40-alexander.levin@microsoft.com> References: <20180409003505.164715-1-alexander.levin@microsoft.com> In-Reply-To: <20180409003505.164715-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DM5PR2101MB0870; 7:QTSh2VzS7jOnIWaUcnPXH07DrotesHf7fVvUwU55YN0bsAYgO0YHyeOMonwegNmbpsiwSxeoQB/2lwzbCTmsJbepZA/Pq1bw2D1wnrG8xJCUyhOr0Vqm7i2Dv09TDyGxVrlSqUlJjkwBIXOlpB3oawAod641yJ2ZjsPPbqkWjcnwiRQuNA2jh0aKZqVN003r/0vsGPYhtCH88SSy9Vf6PyMW9nXkreYKtEegDOFi38H8hZPWI+7yL3sAJspTlcCJ; 20:dYHilwRoG2Yu2EyUpS2Z5UytjO15MmHWnXgOxelL0zSXuE+kyKAwFGQeuXdmXOun0DrZurQY3/+i319GlFQdUfxKBHREWa2wmfogi2HU33cqYJ5QMdy+tgR5Uc+epPValnWr6sA4+YGkxZfdXV7vc56QumvsA7QJlpcsoo5KTLs= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 36568074-57c1-41f4-b07a-08d59db278e9 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020); SRVR:DM5PR2101MB0870; x-ms-traffictypediagnostic: DM5PR2101MB0870: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(180628864354917)(89211679590171)(85827821059158)(258649278758335); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231221)(944501327)(52105095)(93006095)(93001095)(6055026)(61426038)(61427038)(6041310)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:DM5PR2101MB0870; BCL:0; PCL:0; RULEID:; SRVR:DM5PR2101MB0870; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(39380400002)(396003)(366004)(376002)(39860400002)(346002)(199004)(189003)(5250100002)(5660300001)(26005)(10290500003)(2501003)(478600001)(68736007)(8676002)(8936002)(81156014)(81166006)(22452003)(3846002)(86362001)(36756003)(575784001)(1076002)(305945005)(54906003)(72206003)(186003)(316002)(4326008)(25786009)(6486002)(110136005)(7736002)(446003)(10090500001)(76176011)(14454004)(11346002)(476003)(2900100001)(97736004)(107886003)(39060400002)(486006)(59450400001)(2906002)(6512007)(53936002)(102836004)(2616005)(86612001)(6116002)(3280700002)(6666003)(6506007)(66066001)(6436002)(3660700001)(105586002)(99286004)(106356001)(22906009)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR2101MB0870; H:DM5PR2101MB1032.namprd21.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: NyXPqufwRC6CJORoQBGhYdVz6YM3fGN1eai5t6IoxBRa/7Tbp+FDfdHUayFyNABBL0pv6fXz7egwMBGN1apKwY+n4ubqhVB6bI/oWOMxP/PqsRxY06ypvZwqAPJiejr2dt7FDpUm4YCg97BqovzHJCcqhSLplfRy4VFm4wbvVVfpB3lFA7DR/ygwfgUNETHWkxJpdBIDz9++PRSYRWHLZkPJXebnhKQYOIACIoNCfwweF7Bi+2GROUhLTPPN0SlzY8sX5/N8Ih6xRRKsF+aVJSeJYAM7jQMDGn+GfpJLf6hgQZYYBju/UFZiPUGA+8ZD0PKlM9+w+J5iY53fhhyx3NhIldTR4Uj8o8x5MQfV+ws/mZLfupvJ41aCiYTE+rg4Mz53sxAkUhCEjLdcmuLmkBQGSpyqhcGWjNs+6tztJLI= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 36568074-57c1-41f4-b07a-08d59db278e9 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:35:49.2672 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0870 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180408_174033_201185_17FDE3C6 X-CRM114-Status: GOOD ( 13.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sasha Levin , Catalin Marinas , Will Deacon , "linux-arm-kernel@lists.infradead.org" , Luc Van Oostenryck Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Luc Van Oostenryck [ Upstream commit f5d284900c0f960e318a063f4c40826b6e3aa6a8 ] When using sparse on the arm64 tree we get many thousands of warnings like 'constant ... is so big it is unsigned long long' or 'shift too big (32) for type unsigned long'. This happens because by default sparse considers the machine as 32bit and defines the size of the types accordingly. Fix this by passing the '-m64' flag to sparse so that sparse can correctly define longs as being 64bit. CC: Catalin Marinas CC: Will Deacon CC: linux-arm-kernel@lists.infradead.org Signed-off-by: Luc Van Oostenryck Signed-off-by: Will Deacon Signed-off-by: Sasha Levin --- arch/arm64/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index 37c4fd6aeb7a..3e2f6590666a 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -32,7 +32,7 @@ AS += -EL LD += -EL endif -CHECKFLAGS += -D__aarch64__ +CHECKFLAGS += -D__aarch64__ -m64 ifeq ($(CONFIG_ARM64_ERRATUM_843419), y) KBUILD_CFLAGS_MODULE += -mcmodel=large