Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750993AbdL2MuB (ORCPT ); Fri, 29 Dec 2017 07:50:01 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:35017 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750744AbdL2Mt7 (ORCPT ); Fri, 29 Dec 2017 07:49:59 -0500 X-Google-Smtp-Source: ACJfBosMc/d2bpcFJEHRugHiognDUUWJLdxifGQ51bruQxQ8obmh6elWwPB0QRWYGUg3lQI3l1qpmg== Date: Fri, 29 Dec 2017 13:49:55 +0100 From: Ingo Molnar To: Mathieu Malaterre Cc: Ard Biesheuvel , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-kernel@vger.kernel.org, Linus Torvalds , Andrew Morton Subject: Re: [PATCH 3/3] perf/core: Move inline keyword at the beginning of declaration Message-ID: <20171229124955.w2fntu777rw4qp4v@gmail.com> References: <20171226140922.16699-1-malat@debian.org> <20171228121509.wq7mdeh3v4jcbjn2@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 938 Lines: 33 * Mathieu Malaterre wrote: > Hi Ingo, > > On Thu, Dec 28, 2017 at 1:15 PM, Ingo Molnar wrote: > > > > * Mathieu Malaterre wrote: > > > >> Fix non-fatal warnings such as: > >> > >> kernel/events/ring_buffer.c:116:1: warning: ‘inline’ is not at beginning of declaration [-Wold-style-declaration] > >> static int __always_inline > >> ^~~~~~ > >> > >> Signed-off-by: Mathieu Malaterre > >> --- > >> kernel/events/ring_buffer.c | 6 +++--- > >> 1 file changed, 3 insertions(+), 3 deletions(-) > > > > Hm, never saw this warning before - is this a newly default GCC warning, or some > > distro CFLAGS build that enables it? > > Nope. Just compiling vanilla kernel with default options, defconfig > was pmac32. I used W=1. "W=1" is not a default build variant - it enables -Wall... This absolutely needs to be spelled out in the changelog! Thanks, Ingo