Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751543AbdCBWCV (ORCPT ); Thu, 2 Mar 2017 17:02:21 -0500 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:53488 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751029AbdCBWCT (ORCPT ); Thu, 2 Mar 2017 17:02:19 -0500 Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=fb.com; Subject: Re: [PATCH] jump_label: Fix anonymous union initialization To: Steven Rostedt , Jason Baron References: <1488299542-30765-1-git-send-email-boris.ostrovsky@oracle.com> <1eba35cd-2b1f-64e5-0fe1-9756316b37b7@akamai.com> <20170302164200.143b10ff@gandalf.local.home> CC: Boris Ostrovsky , , , From: Chris Mason Message-ID: <36617bf1-acae-95ef-2917-9facb39e30f5@fb.com> Date: Thu, 2 Mar 2017 16:49:35 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <20170302164200.143b10ff@gandalf.local.home> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [2620:10d:c091:180::838f] X-ClientProxiedBy: MWHPR04CA0048.namprd04.prod.outlook.com (10.172.163.34) To MWHPR15MB1662.namprd15.prod.outlook.com (10.175.140.151) X-MS-Office365-Filtering-Correlation-Id: 6777e893-06e8-42e8-535f-08d461b6084d X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:MWHPR15MB1662; X-Microsoft-Exchange-Diagnostics: 1;MWHPR15MB1662;3:E10gy/HZKSZGMeTqoQdeLTcGcp2co9VtkzSxBbxkoAKKRPkk1KJraO12MPHtXs+HFu8dwKk5RXr1R+QrnRQ/MIrpv94jwhYz3/NuN1btDH5MyYi5OLEk3FFElC6uJ1x/4KerfEYl/+qqF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AFg+9T7xiu37na5kHp8P56MJM8BJcztBUSQzJcIUAPAzsIcJVZO5Ob5xhJtihmnjhxM8bMuSicNTGaPpfY6BoR4rxplQheIeKpBuID84TI6kUeDRdbbgUA39lmEWCKIE+wyWYWsNdLjNNSA+oicNpm3JJeeIqN34FBqtpxa8vHiYtv+Ov8jX8ILwW83zPs7C22Que8nRPstdoolEwmr4+p0W+ptfg9G1N6NxzYb2LADcsPSS5ylBniKIQ+K6DJlVpSPVJuoBNVbuYA11LHZ2hENhIGHvKg7r/R0SKUR4+6Bk5bJWepEDLguzGBSPLltelr6scHEDJ01JBUv8XmXAyg9/OmmPU1c2r3QSEUgJOICNmzWTFs5C9VyHLaGIPQdbquXXjKuJ2PmZUDyDnLFQijYlzM X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(67672495146484)(146099531331640)(17755550239193); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123560025)(20161123564025)(20161123562025)(20161123555025)(20161123558025)(6072148);SRVR:MWHPR15MB1662;BCL:0;PCL:0;RULEID:;SRVR:MWHPR15MB1662; X-Microsoft-Exchange-Diagnostics: 1;MWHPR15MB1662;4:K8m65ILgXZ0xpLagPUbq/vVg7XKb2wk6RQPI6wgntXgxmqiljuJFfxlQeu4nqS/Mrat3zL6iGTOdk+hPLTvbFgSCFZTYL0OaU0RxJibVSHvwMaKuQSb358Pmx/L2c3foe/8GT9RMf9MdkWiRcLnfCNpaLs8y2tVjW/3tEWMHwUkfpiKZzckjuS2LC/TiMlL5Uli9GlfpDF32P6GtHHFmdvlNJAdIyA1t1FdLZve/dARtAk6oJXOXX+7P7RIMcz8qYlP8KEK1JeM7EA6Vdk+Gjmu8+1mXbHbLZ2Ww2V2vbepMFJd7+08fJh4P3700eaKC4KBzu63Z6P83dSqdElY0Z8z53rCBJ3P+QJ5KW6wXn8nmdRsXmUbBt/Rda2YQP2WdhgC3fJWQdGlLHHG9HThLrrlAJ8Z5YgrJjDY2SIkr29gSgVBJaUMNzxm//Bljryb3tRpGujpX1QA3dl/aJPhCr22az+KejIaZoezQDMaUCYHPLm5aWlINDJD2i1mX80/rE+HquwXjUxS2ro5zHcVxwPDc0Hwm6JPzET7OZdomj0zvNL+XoEHM3rN2mmH3Nts1GCyfXrBumGb0I1r8cYEKlS2lJBdsr1+tkFl26y5HBJtGD2ufG0U0wajwRdPxFFGyCcOipDmbvC+G875oT6zLhvUmVSliBX9EQEagOBgyy1kY+GE0L5m50OTg7Ow6LqQNxBuRIJH/lNlfeBK+F9h3dY/eFcQ+yZt9hPdEhONEmWc= X-Forefront-PRVS: 023495660C X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(7916002)(39830400002)(39410400002)(39450400003)(51914003)(24454002)(377454003)(6116002)(47776003)(65956001)(25786008)(5660300001)(65806001)(64126003)(42186005)(31686004)(53936002)(2906002)(2950100002)(54906002)(6486002)(54356999)(23746002)(4001350100001)(6246003)(50986999)(38730400002)(230700001)(76176999)(33646002)(53546006)(229853002)(83506001)(50466002)(86362001)(81166006)(36756003)(7736002)(305945005)(4326008)(31696002)(8676002)(6666003)(189998001)(92566002)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHPR15MB1662;H:[IPv6:2620:10d:c0a1:1110::1016];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;MWHPR15MB1662;23:z2cvvx5fyaqEy0Ly2AVPfkhsjlgBB5iuxF0O9?= =?Windows-1252?Q?acQu/dbPrrgXKNus6jDOj2ED0dsN8JaaYtLLH0Mg9m3IMR38aqGm65XJ?= =?Windows-1252?Q?N+80rxBaJGbqaDD/JWZdLl22JuodmF7UxrTsNlNYkHOnpQEpjIW48X12?= =?Windows-1252?Q?LXtDoDyZ2WeRfjIfY2AoumPoJIKZD8trQ3QkjzTdvnSS6BnJcya1fwEs?= =?Windows-1252?Q?Ulu48ErSYo12UFNyNHcNXHhMmhV16/7kHUQncyuFLMV0xqgjydFUG8Qb?= =?Windows-1252?Q?oi5YoX2INk6h7wFbjqz2Tdpp4MRD3VQmZlDsp2YbtVEryN80DkE0adow?= =?Windows-1252?Q?aKcPcG4dn4wGWEzzV2uHSCB29dErM9B5hfDCMFIrg1tMfSsP6LpUgp7f?= =?Windows-1252?Q?qQOImUEs2a60Zp8VYUsvo1z95fy2LmwSr/fqLpUV85RI1f7KRdPm7C7X?= =?Windows-1252?Q?mzJSu7Ujy1OlLG2iH7D90PC1ZDmlBlpm2v7MhGCgA+Kv/+eyH7Z0oHkf?= =?Windows-1252?Q?pUxmOFRbevHSMulOoHoixlLWeKuyAsTY/DF1k0dnK2k7ZeiwRr5WM/q2?= =?Windows-1252?Q?CJHC2b1EUKpaSJQXrLd6lJxhDQ7W87OmESOqqzIRK9IaMKzOCCeXI9Ju?= =?Windows-1252?Q?Uubjk//Pqi1MkiLg/OuO7lJMVZOm1ULOcgp+MqUcOe51MTN/f9f54AP5?= =?Windows-1252?Q?k5wh32R+s759ktt8xapOnWcF1z1kC7nVZ7tFngdpS1pGMv9UOSJYJwZy?= =?Windows-1252?Q?fF0VOzMAjscapnouOmaeak1D3sVjsfoWzAcd9GnMP2qPCbmF5WZULpiQ?= =?Windows-1252?Q?QhHn2fMVmfka+4WUzfCxv2poqjJiCVyFwdaBlU2Bmn6LXbX2OXshXLZS?= =?Windows-1252?Q?WXRx4PLBF0VLbo7EbPuIDQpbD8cDG6L0tn1nbBsYgo++VeDeZPLVKDIm?= =?Windows-1252?Q?ok0N4vSz8TWia/1YvXTxlztXZniLI/a7vuCGygCn4De8CZ/pm5OZCnYj?= =?Windows-1252?Q?0iuRQupPNWXX/7ROvUzAgXXiYQazb3Tt4BZkB5sPvK7Nn/Vk60A0KMuy?= =?Windows-1252?Q?bpMFnlbhq4WNotThjtExtu0PqRjX3l7tHMU9PQ2Lk/m+i4ZUlqpgSHgY?= =?Windows-1252?Q?zdyfTFd9qrjUPTGtXV51X0dvnjNwozSbxn0l8gCCWIJP4ufHazgHQWVi?= =?Windows-1252?Q?gfQerejhdWpex3X2jUHwnFGJexoyUeQM/EDwZQXWymJAk3GVIHH2FRJm?= =?Windows-1252?Q?rczppQjiVilJ/ONxDCv9v/NLiWlokyFxNtX/XQ=3D?= X-Microsoft-Exchange-Diagnostics: 1;MWHPR15MB1662;6:9W3BoaH3204La1xhVv1Ao5kcD2EL3x8ueXY+bEqc9xe4iscVH/ACfqvZdnj5VzNnxLzjE5l7Ym4zFi46hhCuC6merRl2r2A3rmFVMMcB60Z3uo9RF0DQIYx7u3gslieG823zGkHPPdQPhIzUTUu0yEvkxyBOSgnI/19Ze9qXQxG1e1PLmmYQuW1uFBMZLmYC1C5Zz4j7tJ8FeqOd3itOeBZ3v3JN3rvnGiRFXac9C+aEA2/uS5VDluSVWE61SPFBOlzHtPU7wh+KLbh3YgPGg+cvkG28dLrmsaKxGpKLY93qhZ92+rdH3IEY302L/AKUbZf7Ptz2EejUJOMfYjek+f4Rd8Eq7CzKnC4yZZvJyAaaXo0eUsJmCrA6CZa/ZI73mGXoZiD7wb52zoNvzfqlig==;5:dx3L840+/6KfB7OYQc4Im+5FHv8olO7hQ7GgnCKdbDn91rVVpX9TSaIN1PnFQJoAAXaQNpI/y0dCV+PwugLKWlutaIE6er/KEY2keO5xX8amFj+iLDr3JZXDbq/T1StXZZEWbpnT4PeTCYoKcBvEEQ==;24:SGNDTbH7Ud7kNd9xHeHm5WjseMA8d0PEEJc1CYrK+kRhWn8tnIG1DTTI6JwAUdvKkgsNQciTEVCZmD+KzCyx4aKJRbSvVf4Msr05c/7MKWw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;MWHPR15MB1662;7:yl6shvZIfGUpzcNDU3fKfumJoQzDS8uHmjXWTY5VIHUat1XkfqAdW4kVUOJfERg0J/EUa87Plww7yr7wkUCnljjfi8YoOK6bwNT72iIkvaGKuydJpz6Uf98eSrE74GlyDgJsm/WWvjAS7JmuqfpZ3rGRzfWtA75XLjWqEiXrVvnuEwys8uTak4/cEBqeg+HXEz/N3sJ2UzVXP9vFxWEGDBspLSzltSiCkVvE/6qGkAMygHfbAbZ6BK5wLePTzOVQpLCCjc6NVP0zQuxO3AGbZzv8na2rh3DRr+hG1LwHfmxpNqtu7fhNS84cJh7QnVnTd2A3smzFSOnlRCRbcPVpqg==;20:ECfsuuRGpfi/dn3lx7bN5D5T6S0svGeC/v4nZXWDCd8d/A47h1GLnL7FeCyDEKSGLgfvmsKI95SXiw2QI2AZEDZA6WlUpM5f15PWjYzlasOlgJHBFlhI8b3eKAzV53DVZa+UwJPTGz8QzTT106p35LpKrlbMOO+mhqRuzZsRnjQ= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Mar 2017 21:49:40.5780 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR15MB1662 X-OriginatorOrg: fb.com X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-03-02_17:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2103 Lines: 57 On 03/02/2017 04:42 PM, Steven Rostedt wrote: > On Thu, 2 Mar 2017 16:07:19 -0500 > Jason Baron wrote: > >> On 02/28/2017 11:32 AM, Boris Ostrovsky wrote: >>> Pre-4.6 gcc do not allow direct static initialization of members of >>> anonymous structs/unions. After commit 3821fd35b58d ("jump_label: >>> Reduce the size of struct static_key") STATIC_KEY_INIT_{TRUE|FALSE} >>> definitions cannot be compiled with those older compilers. >>> >>> Placing initializers inside curved brackets works around this problem. >>> >>> Signed-off-by: Boris Ostrovsky >>> --- >>> include/linux/jump_label.h | 4 ++-- >>> 1 file changed, 2 insertions(+), 2 deletions(-) >>> >>> diff --git a/include/linux/jump_label.h b/include/linux/jump_label.h >>> index 8e06d75..518020b 100644 >>> --- a/include/linux/jump_label.h >>> +++ b/include/linux/jump_label.h >>> @@ -166,10 +166,10 @@ extern void arch_jump_label_transform_static(struct jump_entry *entry, >>> */ >>> #define STATIC_KEY_INIT_TRUE \ >>> { .enabled = { 1 }, \ >>> - .entries = (void *)JUMP_TYPE_TRUE } >>> + { .entries = (void *)JUMP_TYPE_TRUE } } >>> #define STATIC_KEY_INIT_FALSE \ >>> { .enabled = { 0 }, \ >>> - .entries = (void *)JUMP_TYPE_FALSE } >>> + { .entries = (void *)JUMP_TYPE_FALSE } } >>> >>> #else /* !HAVE_JUMP_LABEL */ >>> >>> >> >> (Adding Steve to 'cc) >> >> Thanks for the fix. >> >> Reviewed-by: Jason Baron > > Funny, Chris pinged me on IRC telling me that jump labels broke with my > latest tree. And we discovered it was because of anonymous unions and > he was using an older compiler (4.4 or something). I didn't know how to > make it work, and we were just going to say "tough, jump labels are not > for 4.4". Although, didn't goto asm get added into 4.5? Did someone > backport it to the gcc 4.4 compilers? I believe 4.5 handles anonymous > unions. > > Since the broken commit went through my tree, I'll take this patch. > I'm getting ready for another git pull request to Linus. > Compiled-by: Chris Mason -chris