Received: by 10.223.164.202 with SMTP id h10csp4147394wrb; Wed, 29 Nov 2017 01:35:07 -0800 (PST) X-Google-Smtp-Source: AGs4zMZwrcj0F3J9/U99K9BjMGLCa51mRKUqAGmFGNgMY+26F4Dh6fJOTpZiFBxPYPaAglyMVbJv X-Received: by 10.99.172.25 with SMTP id v25mr2151140pge.182.1511948107288; Wed, 29 Nov 2017 01:35:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511948107; cv=none; d=google.com; s=arc-20160816; b=PwBEEKIPXbQJJjg7ZCHXGrGg2N2+v2j/YvEO6soTDxKXomkqbkc7/aEQuNcrB8OPrd 8upwKt+AnWTPfz5ZT77KWSKSJxv0MkDOxsQ/7GsOhUD6GPzboitNSy02z4heeOCIErvQ T8o2724pSQLWYy9Z2OSEOznQI9T9z+htYDc4cC+zx8PGkRJ9DyZH+BBfxGpUYlUUAbJO 2OZF4g3s0faxiE73pIcvNTjaOTVLy/iFc8JzGVultvuCsrzt6vPgfZS16ucAHJ/MZEDM 6qagHfwf5sQvMg6fHGdaaavYcxC9NmvvZV4Yj48WdUZUXfsClgrjdTgBr8fEYwdu/zZk q+pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=BYAFm2kPyuTqxWdgV/U1Mj4w8nBp+ruliQpZw8eCr7w=; b=FSNtCumCwnv91lGmVf7ZOMQMU/ZxRDc5WJr4MpSt9fHS/j4fStGpgqs5edK+LrM/jt +qGiQ3r3wEg49s/EnIqycWYjhXy2Tqz1s3/GljbnohJJRXDmz9NNGhNKh1c8FslRNVua I1rjxWVbVuWzpYJTEdLZiun0nqsXGCeB13MKjNa8Zcn02QdYp5x60Wso1AggzQzbWOHi 0HNZpcdZo0sV0x1v/+yna0lOwnJaeARm8kLn30gvDeN6qhZxVjgfxrKikeUrX+3Vy1oB rAx7g4CCvrdtwah92xzF7AdU7LKzP2oEZ9qfLx+6QkRhjEGFyOYXThUFP42+Z7vYRBor OUhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=jPkZdrOw; 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 1si960356plz.262.2017.11.29.01.34.56; Wed, 29 Nov 2017 01:35:07 -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=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=jPkZdrOw; 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 S1753975AbdK2Jcx (ORCPT + 70 others); Wed, 29 Nov 2017 04:32:53 -0500 Received: from mail-by2nam01on0081.outbound.protection.outlook.com ([104.47.34.81]:11712 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752728AbdK2Jct (ORCPT ); Wed, 29 Nov 2017 04:32:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=BYAFm2kPyuTqxWdgV/U1Mj4w8nBp+ruliQpZw8eCr7w=; b=jPkZdrOwKNxt5PlQgoSwvAeEIiliz0GfEzdc5SGSo+zbNsjaBaCsY6PIXHbV6LmjK573lYv96tghU8XuaG7JUhJhe47qv3KwqoCDRTCAuvLdg4i/ejPyIbN4lGxdb1PEXJcwI7H3HMh9OGyHlNj5pgdrMl2nqwI6JMu6iqcO+SE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@cavium.com; Received: from localhost (111.93.218.67) by CY4PR0701MB3825.namprd07.prod.outlook.com (2603:10b6:910:94::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Wed, 29 Nov 2017 09:32:45 +0000 Date: Wed, 29 Nov 2017 12:32:25 +0300 From: Yury Norov To: Will Deacon Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Alex Matveev , Alexander Potapenko , Andi Kleen , Ard Biesheuvel , Catalin Marinas , Kees Cook , Mark Rutland , Maxim Kuvyrkov , Nick Desaulniers , Peter Zijlstra , Sami Tolvanen , Stephen Boyd Subject: Re: [PATCH] arm64: fix missing 'const' qualifiers Message-ID: <20171129093225.tq2cbg6l6yupkeit@yury-thinkpad> References: <20171125094127.7536-1-ynorov@caviumnetworks.com> <20171128183355.GO9266@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20171128183355.GO9266@arm.com> User-Agent: NeoMutt/20170113 (1.7.2) X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: VI1PR08CA0112.eurprd08.prod.outlook.com (2603:10a6:800:d4::14) To CY4PR0701MB3825.namprd07.prod.outlook.com (2603:10b6:910:94::31) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cd6cca02-a43a-41ad-86fa-08d5370c26eb X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603199);SRVR:CY4PR0701MB3825; X-Microsoft-Exchange-Diagnostics: 1;CY4PR0701MB3825;3:L2ZMvINCCgsspuhcxAxUMbl1Gob2WgJE2NSRZBgi83A2IT+kFE8/y2gPjy4FH4rjGgGgpwDs7kx6r2aKVvFFm9fMm9MYCxgLvgyr6RyKIw1nCnTNfgEwA1hjinr32Ubz2IG6njQYoafm5C+if57oNjQxNDrXYimPNrAVkcQ56lfAny2kE+2u3Bgu7I2kD+XGRCtpGwLK10gZXr6F62+4nOOcRkyGNNv7q/38M117q8tVMghVJSXlNGM/VxXPfiUA;25:XYdN5oWS+Y1oneDl2zdM6FcFY38vSicGhjCxAA8DMQumB0s6U3GQhLGPmOpPh6zxxCv7Ly09JkIMOiYNdXLKcnd+A9VZh8dvdjxotNq9m0nD3ee0CSa3jtLkutmGRq7AL2nPHGDE0prZBRcwhlSvZ/A22JrlTBsiowMKvwQr42u5F4WArGs+hPoo8V9KksgAQjDDb8cFeUp3XyRSemVCENY923yeJod9vGitlYoTUaA0Rv0wWpygSdQFzE1NHiPH/fQRokw9dlkrANrKDYAOixivUgDB5g3Sb9yLeSEdOXxgTOKFMD80dYNE/EAQlKzdFETf20WNqPFU552Oobymew==;31:BM56wxUewr31dhcGzJJLQ8IrWDLUCDUAgs+h0uFmMWuoQALbO3LopOtX/jG+4UdJ9r00tk2wHfzruEGxNrdReSfILhbPM7hb244y9aDr8jt7uez6B887iw0lQiU6ZculJSnc1irZHxvMOIkMbH+A1SgVxcvegBGFD/inmMZ2sQDvKLuAXkk/iMiKnfNoMCP7QXN9vS+CyvBUFZPDJZLlJAWhrDnS/Ru2uUOslni5juQ= X-MS-TrafficTypeDiagnostic: CY4PR0701MB3825: X-Microsoft-Exchange-Diagnostics: 1;CY4PR0701MB3825;20:BF0WbVNGT83S4MJ6zGjGZ+EMZob10b+62VmNLfRYotlhV6qIPs3dBLqrjvcEsHO4Vf+Ej9qkoB0s4HLv8ye2YcN06dbmR+NxGXPv5bDjlAYdHSi1AO4/rQknYbyRU7criHhgD3ngrK3YPgUrX3X1sRFWHfiR5QSlYLlU4AMUcU6CpuUB34BCP+GyDv7aMjd8eJi0Nqs6ricl+6t9Thxmy0H7h28rX/jw2f1Liv9pN5zhoC9fZkcpqAd51o80YFK0I8uuJMW30u0N+OwXBQkMqX8M2CPsypyX4YLmFbyLK+9/ShbE5oVZE6YpMQKaC0fkIWwgCoLA3XY4qKEUPl+3C0pp+cRt04NnIKVznyr0t8SDFBm7RvaQCin28jyoH1NkDLDAZ1+cc9t6I4dsCmL3glB215XZ+9npxLmWL+yPULUz9IzD5Pm51ceidhiN/PMx8Mv5T+XafMfXDkROJxSw5kmvEK2Da14N/Kdsg3PiU1CoWoTHDyhb+ZGMEIN9u0524MmVBmCaOryLII4tlIRTRGoQRCWRbCEt+SN14EmpKjnOHXyPLxybEj+D+nUtMDJXZwe1sXPVe1bOcH88smAB1ku1NYyJduaNkgXoSW9Sjvw=;4:DfQbOcjsTM3FWcrylnj3gJVRHN+afW5nRDwQyYe8KgZwD3kx+KhQ1k217udTmAZR2Jslin5KqQImwsdearGNc9sQL+ewzv8/jYCPlnpDEuVLXe5wXFPPMEgc5fg+xsjnWsC22IxRnseL8eOUb9ninaLPFSk8Icg7J/fyLoEWiTTW0yRoxtNJC6B3bSh3QJgpAADiqtzP01Q9/TLMYB4y2R88wAj3T++LKi2v/uKWzZjZ4R6O06vaMC46Zpp8Oq+1M4XtAT3vEqeJ4N4nKqYv/zq10M4SR9rtwBMEfgXnQ/19Up3Mj4z2QQWtkdbIrjQW X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(166708455590820); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231022)(93006095)(6041248)(20161123555025)(20161123560025)(20161123562025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(201708071742011);SRVR:CY4PR0701MB3825;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:CY4PR0701MB3825; X-Forefront-PRVS: 05066DEDBB X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6009001)(6069001)(7916004)(346002)(376002)(366004)(199003)(189002)(24454002)(54534003)(2906002)(2870700001)(3846002)(8676002)(4326008)(16526018)(101416001)(83506002)(6486002)(23676004)(5009440100003)(33716001)(6496006)(54906003)(58126008)(81156014)(6116002)(81166006)(1076002)(52116002)(316002)(52146003)(2486003)(105586002)(106356001)(6666003)(54356999)(50986999)(76176999)(6246003)(33646002)(5660300001)(68736007)(97736004)(478600001)(6916009)(189998001)(7736002)(2950100002)(47776003)(42882006)(7416002)(76506005)(53936002)(25786009)(72206003)(305945005)(966005)(39060400002)(229853002)(50466002)(6306002)(8936002)(66066001)(9686003);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR0701MB3825;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTRQUjA3MDFNQjM4MjU7MjM6RUk4ak1RUzFjeEdTd2d4cHhqMUVKWWpF?= =?utf-8?B?QTZ6SWpSanFobEUwRk1wbmNPMUhQajV4RlBLRWlZL2FFTE5FdlJwbENZdzdx?= =?utf-8?B?L2tRT1IzZjRtRTNmL09jNGQzQWNQaWhFYk5NUEVFbHBFZUJQdE80QVF4SnNG?= =?utf-8?B?R1RYNUF5b0F4ZWpkeFhCQ2lxT0tvZ1huOEhHL3lFKzl6YS9Rb2s3c1MrUW5C?= =?utf-8?B?Q0FJaHBHcy8rckkzYTdWWFRqQjRCcFVnRklBRElhVnNQVU15cEY1WnVGMXcx?= =?utf-8?B?T1c0ZU9iLzNGMEo5Wi9LWS9YZ0pCYmFOQmNSOWZSZ1dLYUVZY3MrVDNPYkVL?= =?utf-8?B?eXZNZGQreFd5dThtdmFMN3RZdE1UaEtBbW82TGR4SW1EQjRTYkhuUWtCNnp3?= =?utf-8?B?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k0nGfnT2ba1SCSlQq1P8SlCpNzp9L0HMewLFStC2NSLMUmFdHdbGzWoMNd81YF66v06H5nTKZQK32YbvfCpwbcxWcfqWPVKyWYHDIV3I+VrTw0f+j+vNGMuSYIDjiEIVPrroZrO0IuMpAyyC0z6voCuVosBxLcAsTz+ZP/8dUK1DEirAhGWgPJ1bMIOb7tqwDkflniE9Oc4=;5:TK7fG7R6DMoaZ2LQuuWTvlEFkZMgVHj1r5QmcEmQGSkY0m0YjAGu4i47uU7VE5KQXdD74pNFm+amr4Vv03Fw/0qhNXmXZ6pJiGtGh8golHKiycAnPYhN6P/YtvV0ZtKEH2lpXoUDxIXVEcXQmtMaxRbqY8M02uPTeH/bGneZ7KY=;24:sgsAadC7Qv+6FvMYzTOUlQK+yTEz6cDLTaEw1GMCKAfBUmC7dJ4iMpsmYGILQ4LPLPKkUJHm0BbB/sQDo8JLDnW7TAWu06vv7JWBQzUaxpY=;7:zmCqw/TjQp9MamjigobhkJkvhnEW5VRuOAYSbAdWPzdPs30jojLPjfVkdra/NxFVIIPox6SEvpob8fBmKs7iQdUwV9VU7xKSC8N9A69LmjICoYx4cg8JMsCtuUYu7WbIiZPKKN5itzD1G29Q5B8uzT8vOwKYRKhhBw/o2VjTfWy3ys3mo+IcrMW+/0lbbpEvUresLwKc6EiHVpB6y53Gbc5E/OIjpY6kshAZHTAhddkZ4E7YEVvwNITvmWs7ZUF8 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Nov 2017 09:32:45.1616 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cd6cca02-a43a-41ad-86fa-08d5370c26eb X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR0701MB3825 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 28, 2017 at 06:33:55PM +0000, Will Deacon wrote: > On Sat, Nov 25, 2017 at 12:41:27PM +0300, Yury Norov wrote: > > It was discovered during LTO-enabled compilation with gcc/ld.bfd. > > What was discovered? Could you provide a bit more information in the > changelog, please? I'm happy to take this as a fix if it's actually fixing > something. Yes it does. There's inconsistency in variable declaration and section type. GCC doesn't throw error for usual build, but if LTO enabled, build becomes broken, like this: mm/percpu.c:2168:20: error: pcpu_fc_names causes a section type conflict with dt_supported_cpu_ops const char * const pcpu_fc_names[PCPU_FC_NR] __initconst = { ^ arch/arm64/kernel/cpu_ops.c:34:37: note: ‘dt_supported_cpu_ops’ was declared here static const struct cpu_operations *dt_supported_cpu_ops[] __initconst = { And so on. Let me know if you need full error log, then I'll resend the patch with it. You can also try it yourself, the very dirty and unfinished branch is here: https://github.com/norov/linux/tree/lto Yury From 1585335853128098173@xxx Tue Nov 28 18:34:46 +0000 2017 X-GM-THRID: 1585030578918772458 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread