Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2444434imm; Wed, 16 May 2018 13:00:17 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpYbi4advQ/Z0HFe3W/efeijp9uiyeWroide/tVZa5vrt2Z/zF+jejLPPMrkXNddDmJyl5g X-Received: by 2002:a65:4acd:: with SMTP id c13-v6mr1877841pgu.32.1526500816973; Wed, 16 May 2018 13:00:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526500816; cv=none; d=google.com; s=arc-20160816; b=JU5qBOCH6xTUprfXbMQ1XlefVLB9q3DOENLF5NMi+fF3mTv6B82hBxgmOQbhTnqAk/ BAcJud8GEKvq7GFZJXsVqsbUi3SztEHx7+dCXON085RPyz4Vhah6IpyA+Hwwhc34wbx3 mprmRYsGGbTkdPsZjTRZtHGKq0VBmolu322E057Wd9GM/HEx5DIKZIBwnsUEJ8juEzo7 xD9rvnBwb/85i9sQ/phnFGNEfrLmouYa63xzu0ftVfqQ9zLN7crQ80mvYy/5rBK5dsjX 58kXBaxo8AW6iQ+aTQYRWupuT/nhQ3OJwQcB3c9f2Jy68t0kC5YTNx4r/Dn2JKM4ccZZ VDrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=n0+cwOLUv5/0mQXk/gO6Ow0DMMqNLRRWx4qGhXzek8o=; b=FOSOHqTGxDbFmsKVIUv+EKAjzZ/A9bMCRyH32ty8JvaE550aLqqiHAPnPqWzGEc5UZ O7e6xf3CMrqtk6KOvXZ0sSRuSEe/CxOqd1+Ae5P2cj3aUSEQmcSPUmMHXc9YBPTgHpbO Bl1SUK2m1GjPtdXIWN6CwAH56PJCeZnYJyi2sDJVP0MxuGBFXNV9kd/mEwu0vLSW9SkL Rlrt1m5bVh9EZLFt/Tx5h3ttywYeoFSc7ualnWGpiTLi+McF/IAkTyweKC0HxYlbHdAz o3+1Ch7dnLuhwWZFlHa+KvMAD2YYFIKSaMnmjWn2Y5uMLjAzrbjs+Z84Fx0derj1TP+D f9sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ciNp2cDw; 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 r12-v6si3429146pfk.83.2018.05.16.13.00.01; Wed, 16 May 2018 13:00:16 -0700 (PDT) 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=fail header.i=@gmail.com header.s=20161025 header.b=ciNp2cDw; 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 S1751332AbeEPT7t (ORCPT + 99 others); Wed, 16 May 2018 15:59:49 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:52186 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751038AbeEPT7r (ORCPT ); Wed, 16 May 2018 15:59:47 -0400 Received: by mail-wm0-f67.google.com with SMTP id j4-v6so4377105wme.1 for ; Wed, 16 May 2018 12:59:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=n0+cwOLUv5/0mQXk/gO6Ow0DMMqNLRRWx4qGhXzek8o=; b=ciNp2cDw8HL8qhdaXN8W0jrNxawKEK7pLcnuWHg694GgGkYovVUbOPDMq4oSh7TGhE QMmcpqE4lywS5WsRJtpqoEYFkke5JhxP5JMWdsaWtWi6ymKZmVRU8ux227rgo4N3XdtE U7M2zyHLDPiH3i+h2CxXYvUZ3gP5mOkY963pe4AdiY1BOHi4MzZo6DvoJh/hZ7hGqdXG tJdC/bHt5fxY3b+SMAQnwg4swkWiIy409bufQUwsPZFBKAJvhCpV69kvkINxe3PwAGkR uTKcsNfvZT9GN4FA83tub5OKr2IuS1jtcsvMzP8oUwJ+YrylYQ43WtDWPj12cS0s7Bps S37g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=n0+cwOLUv5/0mQXk/gO6Ow0DMMqNLRRWx4qGhXzek8o=; b=r9tXr0CpAlY79d2jVWuBBQjA7fD5Nf8oONYPAx/qisVehem6cU69+CKzDdSU0v1K61 o/UrMMDE0N7jX3DQQh9ioSYyTe39AMsDI8Xt7jZsPn7jascKO/2BykN6jwwrDba6Y5Zt d4VgGfty7PC8KJmNxk3nmQ+6Y+RA/EFgcoAT3UjmaIMwM6FNzf3ga5gaCpuCAlCW7nmF nInNqKYQNLrTua1NvdmO36wlrg+7uxqDVnFeF81/WVcJuV/tXdSvvofAsQICBYlFRBqM ASGRC8uWxZ5425AsscJ3LE3F+c+VoWSs7Kxbyb9/7LW7R6fNviy8nMPE4c+Vd94+kXDj 79PQ== X-Gm-Message-State: ALKqPwe8MOSBHHct/iw5kcUMbrbt/YhdEsMMHl+bZnAypi7cZVmMgNhl z20i0/tSEebXE0f+HlteaD6BJJ6y X-Received: by 2002:a1c:d53:: with SMTP id 80-v6mr1690313wmn.138.1526500786444; Wed, 16 May 2018 12:59:46 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id z2-v6sm3712980wmg.46.2018.05.16.12.59.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 May 2018 12:59:45 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id A8E7510C058D; Wed, 16 May 2018 21:59:44 +0200 (CEST) From: Mathieu Malaterre To: John Stultz Cc: Mathieu Malaterre , Thomas Gleixner , Stephen Boyd , linux-kernel@vger.kernel.org Subject: [PATCH] clocksource: Move the inline keyword at the beginning of function declarations Date: Wed, 16 May 2018 21:59:43 +0200 Message-Id: <20180516195943.31924-1-malat@debian.org> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The inline keyword was not at the beginning of the function declarations. Fix the following warnings triggered when using W=1: kernel/time/clocksource.c:456:1: warning: ‘inline’ is not at beginning of declaration [-Wold-style-declaration] kernel/time/clocksource.c:457:1: warning: ‘inline’ is not at beginning of declaration [-Wold-style-declaration] Signed-off-by: Mathieu Malaterre --- kernel/time/clocksource.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c index 84f37420fcf5..e0ff8f94f237 100644 --- a/kernel/time/clocksource.c +++ b/kernel/time/clocksource.c @@ -453,8 +453,8 @@ static inline int __clocksource_watchdog_kthread(void) { return 0; } static bool clocksource_is_watchdog(struct clocksource *cs) { return false; } void clocksource_mark_unstable(struct clocksource *cs) { } -static void inline clocksource_watchdog_lock(unsigned long *flags) { } -static void inline clocksource_watchdog_unlock(unsigned long *flags) { } +static inline void clocksource_watchdog_lock(unsigned long *flags) { } +static inline void clocksource_watchdog_unlock(unsigned long *flags) { } #endif /* CONFIG_CLOCKSOURCE_WATCHDOG */ -- 2.11.0