Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2415959imm; Wed, 16 May 2018 12:31:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqO25ZlwffCJaYdRDLrPv/s7agkoonqexTJvNyAsjWSguHkT481gwTQbwTqYD0IfuN34ugW X-Received: by 2002:a17:902:d681:: with SMTP id v1-v6mr2194012ply.16.1526499069422; Wed, 16 May 2018 12:31:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526499069; cv=none; d=google.com; s=arc-20160816; b=xO9y2+wijUtWNNN1+q0eQoMXwTqZ+8xjXPOdzeluBQGgUHhW1BsDVU06KrAUTq06/t Ozg5CoodVpEpVttzecxHWdncUxD2/rMsRqTz7SStTH8Re93RYYaihDK11MGUVb2mV5gv HgP4v93sigrrwirqcedqjLiCrShI0Kmz2f3Hq3Np2SVdKac++BgoOyO+TH2Lq1MeCaEK QkE1N6PEzDySYMECzN3eVAlc4jhcuCbqaGrvUUk2d8726cCaWreCIWNTMQTkiTcUcIrl ZpbmryAl8N5PFej2O0uvdmRhC04hkgg+ycT7qyJ28BQWIVbB/KhBTmNPxRnvkfc42xhk bUtA== 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=pfulLYX06O7wkVfx7OCs4M6QvRdj22/0rxmYfI17yjA=; b=Cg8pfKzRRY5sAZdzoAJfmogj858/xY/2qvOcxYEM2RYMcT65gf1IOK9mJT+V3Ixw1r gcF0llfchDV8qmkNg+uyYPZuX+Jknin4vhhkJw8M3NJGDJsQahIE7t7bwNKQk79Ez7cJ huvOLwvJy9i5COxE5xOFlR36kGWKKCrAzRpC1W7XxPvps8D/IeHD6zpp0QXqftmzv+jK GrZf631dlRnwVOUcx8szB9szcu5N7RObhm1A+bX1BCYwnjD+pNOmjmu8X6/L4S5j7RLM /qSg79pgMZyaEnnZRE1FSNleI9ATZylrVPviY1JgZCME2s/pWBKGcvgv3qdCk8FaC+4T wgdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=AUccRZfm; 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 u11-v6si2445799pgp.480.2018.05.16.12.30.53; Wed, 16 May 2018 12:31:09 -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=AUccRZfm; 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 S1751370AbeEPTaT (ORCPT + 99 others); Wed, 16 May 2018 15:30:19 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:39836 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750835AbeEPTaS (ORCPT ); Wed, 16 May 2018 15:30:18 -0400 Received: by mail-wr0-f195.google.com with SMTP id q3-v6so2951139wrj.6 for ; Wed, 16 May 2018 12:30:17 -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=pfulLYX06O7wkVfx7OCs4M6QvRdj22/0rxmYfI17yjA=; b=AUccRZfmfHbpQ33bpsVyfIwNinmh++llFm+RMIATPwRbIA0CzT6r9Aosc5U2uyI4yG DZvMlbfqVCQXA9OKy0KbA0Pdib8J+fC1IgoeLfE7iV3Ap1+nGXz9Oof/F1bFeEvnrVfF D/Ey2tuFTZQK7q5zRUWemRIWsL1D1sENAy50c2Hmg2xDWXDS/APidRQsHrUdvEUQbfus MEK2cpbzjrnZvijDYasJon2rgDkH/keuakj2v2qpub6gB73vfdXZ4CYANXw3giaKGvwp BigZs0t5WNJVjP5ObANqsxIa/wkh5VF4njOqpFAI+33XVBMs0HKpCN3MgO00MVyo1Xm7 tvug== 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=pfulLYX06O7wkVfx7OCs4M6QvRdj22/0rxmYfI17yjA=; b=Wf8WgCstZock/mpAIdC91dfKn2UjCHbMphDHqwHnn2FPCYvcnZEdIDwbyjVoqui+xm VxOMER29QcUdK8xrftzXbm5J0ioSrdTuK62RZlRTkucy4a/0s5M3p5PzKkJKf4N1JBLE 6x575/qMBjegmFX4a5adf08bgD9ZZJNT4NmwSLvLrRtQqIxVH/Fn4gzcenJXjl4Cu5ST 5uzFTNX0bo61SqWkSc6jF20B4wleTrypQY59zkknnmKojsbP1VT/NHL0TgI1cbTYZo2V 6nD4JKsKAC5l+3rQPF0Fp+qJB12Dk/s3t82/L/Tl0CeN2HFDcoU1VKpTe2rKY40PMNCl fdAg== X-Gm-Message-State: ALKqPwfYL1aRCpFXz9OG0CazqA5ZwTZQQ4Og+siCnEE19+DaI8NvIYQL bisoosOKaVliBSo8YlUcFK0= X-Received: by 2002:adf:b190:: with SMTP id q16-v6mr1694020wra.221.1526499016826; Wed, 16 May 2018 12:30:16 -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 q2-v6sm3692428wrm.26.2018.05.16.12.30.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 May 2018 12:30:16 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id E94F610C058D; Wed, 16 May 2018 21:30:14 +0200 (CEST) From: Mathieu Malaterre To: Chunyan Zhang Cc: Mathieu Malaterre , Steven Rostedt , Ingo Molnar , linux-kernel@vger.kernel.org Subject: [PATCH] =?UTF-8?q?tracing:=20make=20function=20=E2=80=98ftrace=5F?= =?UTF-8?q?exports=E2=80=99=20static?= Date: Wed, 16 May 2018 21:30:12 +0200 Message-Id: <20180516193012.25390-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 In commit 478409dd683d ("tracing: Add hook to function tracing for other subsystems to use"), a new function ‘ftrace_exports’ was added. Since this function can be made static, make it so. Silence the following warning triggered using W=1: kernel/trace/trace.c:2451:6: warning: no previous prototype for ‘ftrace_exports’ [-Wmissing-prototypes] Signed-off-by: Mathieu Malaterre --- kernel/trace/trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 414d7210b2ec..76b96f453cf7 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -2448,7 +2448,7 @@ static inline void ftrace_exports_disable(void) static_branch_disable(&ftrace_exports_enabled); } -void ftrace_exports(struct ring_buffer_event *event) +static void ftrace_exports(struct ring_buffer_event *event) { struct trace_export *export; -- 2.11.0