From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753219AbbFHPxH (ORCPT ); Mon, 8 Jun 2015 11:53:07 -0400 Received: from mail.eperm.de ([89.247.134.16]:46133 "EHLO mail.eperm.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752052AbbFHPw5 (ORCPT ); Mon, 8 Jun 2015 11:52:57 -0400 From: Stephan Mueller To: Peter Zijlstra Cc: Herbert Xu , Andy Shevchenko , Jim Davis , Stephen Rothwell , linux-next , linux-kernel , "David S. Miller" , linux-crypto , Waiman Long , Ingo Molnar , "x86@kernel.org" Subject: Re: randconfig build error with next-20150529, in crypto/jitterentropy.c Date: Mon, 08 Jun 2015 17:52:49 +0200 Message-ID: <2190933.vdB90a64Et@tauon.atsec.com> User-Agent: KMail/4.14.7 (Linux/4.0.4-303.fc22.x86_64; KDE/4.14.8; x86_64; ; ) In-Reply-To: <1433766990.1495.39.camel@twins> References: <20150608122502.GA29454@gondor.apana.org.au> <1433766990.1495.39.camel@twins> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Monday 08 June 2015, 14:36:30 schrieb Peter Zijlstra: Hi Peter, > >Would something like > >#pragma GCC push_options >#pragma GCC optimize ("-O0") >static __u64 jent_fold_time(struct rand_data *ec, __u64 time, > __u64 *folded, __u64 loop_cnt) >{ > ... >} >#pragma GCC pop_options > >Be an option to allow the file to be compiled with regular optimizations >enabled? After doing some tests, I see that neither the min entropy nor the Shannon Entropy of the raw noise is affected by using the mentioned pragmas at the right locations. So I will prepare a patch tonight. Just for my edification: why does an -O0 on a self contained file break the compile run? Any why do the pragmas work? Thanks Stephan