Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4155705ybg; Mon, 21 Oct 2019 04:46:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqz3aConvottdOhpqOXIn3bvCxoeB3amFOVSYvLfOpAswreJYpfWcRrrm6kS6w1O8FGR9beg X-Received: by 2002:a17:906:154a:: with SMTP id c10mr20911141ejd.238.1571658400037; Mon, 21 Oct 2019 04:46:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571658400; cv=none; d=google.com; s=arc-20160816; b=XK2Avfmt8EWvouOH7lYVCbbM+gkBOZcPhtwCJaAxZBj6B/4C4DpwHqwDyWqWkofbNS MnGW+OAwqzU9Ov+6PS/0sabQybMY/1CXxvFp7xN8wRBXQWSX9a/VgJ9xJrya8HOce98a /KadDZ/iYWdijvE1aFDxxTBuUwK63bF8hkb/62FILpwoLh8m1JyK7ZaJGwYVTQPHlqMP 0PaQ7CH1rYD+QrbHUu8wtonTBZJkt5zv5Yj+1LFgNqsXYqxpaio/BREmXYMDrUtRuytR opMoBFwP4ao4UdoRhy/4e/DLyGoo7R7w7ORKxTsaMIivCMssxFMpx/xbejZKhgxsHCIa C1fA== 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; bh=B/cZl8q68DTm/5LVRAB97sbSQkef2Be3GdfPQZndijg=; b=HGXWgNl4JmxGZKfzRZ64+12iaZ/VW4iT6eMAoCFSgWsTOMPJJv6pD9N7UZVPuasXSp gj9Nmrt5KFFzUCg44jgLs73IHlJbnRR53yUZmCQP9OwczmXfO8iLGTwPHckuRdJzORxC MgoUia31kjed+oRXtkpTtxbDQo6svrhlTFTTVLgnl+jVYKqUNDeiGgwWtP2+6CdEbepq mnQ/5kpIkv4cL0EXSAy3iMle0QiQINTev04FhRYmirPYRg8WxvCwGq+zqLOB1B/ZRidU ei+OeshacmnPvBiakLznuh+2DLyCmyq/PmU43vpoOkwNxL52uSy532NSsn08hW+awjxB VpxA== ARC-Authentication-Results: i=1; mx.google.com; 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 gy5si1063165ejb.223.2019.10.21.04.46.15; Mon, 21 Oct 2019 04:46:40 -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; 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 S1728597AbfJULpI convert rfc822-to-8bit (ORCPT + 99 others); Mon, 21 Oct 2019 07:45:08 -0400 Received: from mxhk.zte.com.cn ([63.217.80.70]:32320 "EHLO mxhk.zte.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728258AbfJULpI (ORCPT ); Mon, 21 Oct 2019 07:45:08 -0400 Received: from mse-fl1.zte.com.cn (unknown [10.30.14.238]) by Forcepoint Email with ESMTPS id 2B0DD870B525E6AC6AFD; Mon, 21 Oct 2019 19:45:06 +0800 (CST) Received: from notes_smtp.zte.com.cn (notes_smtp.zte.com.cn [10.30.1.239]) by mse-fl1.zte.com.cn with ESMTP id x9LBigDo090126; Mon, 21 Oct 2019 19:44:42 +0800 (GMT-8) (envelope-from wang.yi59@zte.com.cn) Received: from fox-host8.localdomain ([10.74.120.8]) by szsmtp06.zte.com.cn (Lotus Domino Release 8.5.3FP6) with ESMTP id 2019102119444801-57393 ; Mon, 21 Oct 2019 19:44:48 +0800 From: Yi Wang To: jhs@mojatatu.com Cc: xiyou.wangcong@gmail.com, jiri@resnulli.us, davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, xue.zhihong@zte.com.cn, wang.yi59@zte.com.cn, up2wing@gmail.com, wang.liang82@zte.com.cn Subject: [PATCH] net: sched: taprio: fix -Wmissing-prototypes warnings Date: Mon, 21 Oct 2019 19:47:04 +0800 Message-Id: <1571658424-4273-1-git-send-email-wang.yi59@zte.com.cn> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on SZSMTP06/server/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2019-10-21 19:44:48, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2019-10-21 19:44:44 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-MAIL: mse-fl1.zte.com.cn x9LBigDo090126 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get one warnings when build kernel W=1: net/sched/sch_taprio.c:1155:6: warning: no previous prototype for ‘taprio_offload_config_changed’ [-Wmissing-prototypes] Make the function static to fix this. Signed-off-by: Yi Wang --- net/sched/sch_taprio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/sched/sch_taprio.c b/net/sched/sch_taprio.c index 6719a65..2121187 100644 --- a/net/sched/sch_taprio.c +++ b/net/sched/sch_taprio.c @@ -1152,7 +1152,7 @@ void taprio_offload_free(struct tc_taprio_qopt_offload *offload) * offload state (PENDING, ACTIVE, INACTIVE) so it can be visible in dump(). * This is left as TODO. */ -void taprio_offload_config_changed(struct taprio_sched *q) +static void taprio_offload_config_changed(struct taprio_sched *q) { struct sched_gate_list *oper, *admin; -- 1.8.3.1