Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752242AbdCBUUX (ORCPT ); Thu, 2 Mar 2017 15:20:23 -0500 Received: from mail-it0-f51.google.com ([209.85.214.51]:38330 "EHLO mail-it0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750989AbdCBUUR (ORCPT ); Thu, 2 Mar 2017 15:20:17 -0500 MIME-Version: 1.0 In-Reply-To: References: <51e768e7-91af-86c5-3732-2e529364d376@redhat.com> <20170225081810.GA1364@x4> <20170225110928.GB1364@x4> <4AD8C33C-8B3F-4FE5-993B-C73F334B2507@linaro.org> <3b82c2d6-7abc-d533-0a65-6e72298cf639@redhat.com> <20170302101115.GB293@x4> From: Linus Torvalds Date: Thu, 2 Mar 2017 12:19:48 -0800 X-Google-Sender-Auth: bkFS8mKLX5DYUprQctA7n5o-AH0 Message-ID: Subject: Re: gcc7 log2 compile issues in kernel/time/timekeeping.c To: Ard Biesheuvel Cc: Markus Trippelsdorf , Laura Abbott , Will Deacon , John Stultz , Thomas Gleixner , Linux Kernel Mailing List Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 350 Lines: 9 I can't take this compiler braindamage any more, so I just decided to remove the ____ilog2_NaN checks, and return 0 for any constant value < 2. It's commit 474c90156c8d ("give up on gcc ilog2() constant optimizations") in my tree. I'll push it out later after my usual build tests (and I have a few other pulls to do). Linus