From patchwork Wed Oct 2 12:04:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 174980 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp663389ill; Wed, 2 Oct 2019 05:04:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqyP0XQifiZfpAvpgE7EZaCiO69YGXO0P5491Age0IlSQIm0161WcqyOCgIY+i28uZKMe5lY X-Received: by 2002:a17:906:d922:: with SMTP id rn2mr2676023ejb.124.1570017858770; Wed, 02 Oct 2019 05:04:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570017858; cv=none; d=google.com; s=arc-20160816; b=sn+94/fViUBJc8XnrsmsiUwNeIe/4OnACSCmIOyJg6TFA/Raa+lvWHCFLc0awYufCw 4+N9V/p7TdCaTAwX9ax6Yp7BrDcSDb7KiLrcoPL+zs8ZfLPfMi0ibqc7fsCVu/n2TOte LWD/RpJVAv6lQ92iFF859KLlVndP02g7qxOLoWQ64h1LbHCslTto+IDFsFUXh8lIs1rK 0f0CfEjAL1r4XYQYI8nN3HPAFSyMAa1oUk47HrqIETlLuZV1p9ycqslSQdwvNunXCRpe u7PO0gqrmy/PuS/6Da1fUBnA836IH1gXBsRob0qwGLj2kopjjcp6R7kCF0KZc/VFagLF OrNw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Y95OajR8Z4EhoKVV/d/GtPK38UmcXtK59LFx+wA+Kn4=; b=jLJjTNh+tDbYCN5rB0Yr6iRX+QnbiFoM/i6G9sIraABBoUAc8nNxnVoImLh4wpgjQj VtxHRv0cvjnzZi/zVV34uZ4kyozbuq0uRp5ihgNu2abYvfQ2xeec4W7ffIjW+tgJ9um6 BBT+7HDzecri6DMkSMbZ3ugzv16Wrw7hCIn73VLgUCRYcW7bgMqiaBvidcO2QTaFpOad RX268LOkHJkq/oprld3zq9Svwb0yfN7K2iF7JU9VRUOU4TBpU4OIkWr1jREp2oNcnU7l JliaizlmOeyCyLNMI5VgvAbee8XON/V1RpA+Fpo1f/31hQIEyUvQmSmt8cSMweWN4NgA 3h9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OmP5kq+z; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j7si10316919ejv.225.2019.10.02.05.04.18; Wed, 02 Oct 2019 05:04:18 -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=pass header.i=@linaro.org header.s=google header.b=OmP5kq+z; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728378AbfJBMER (ORCPT + 27 others); Wed, 2 Oct 2019 08:04:17 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:35473 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727257AbfJBMEQ (ORCPT ); Wed, 2 Oct 2019 08:04:16 -0400 Received: by mail-lj1-f194.google.com with SMTP id m7so16858331lji.2 for ; Wed, 02 Oct 2019 05:04:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Y95OajR8Z4EhoKVV/d/GtPK38UmcXtK59LFx+wA+Kn4=; b=OmP5kq+z+zbFpIxkBNzdy160yYdL/tMN7p+YDlhaPbcErQwKwPUXwv2VJg5sUXmyup ygBxLJXG5geeSgJTdIEycdXlvcJ4VTiDNeCAcPjC9oX6zR5voiv5Ww3rBRcWuZD7otui XmJuS4uPT/e5ZSoyF4+mdfA9VFyOem72gpoqPJVVo9aWJuI2LHax7Cs3gE8ErSWQazFK JaESnbyXsinx1R/cgxTvkqrAHVdAH6gFw5ZUBlVLwH3Uwfnogt6FlnURjAsPrds0wVmq reyXAR9+mGKS3WAcXU8dMUB8XLZ00ncKR8c6OPrSVvIyojBl/q0L730b+Ns7dEOXDGfS 0eeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Y95OajR8Z4EhoKVV/d/GtPK38UmcXtK59LFx+wA+Kn4=; b=KE6KCWiScmqSn72EeSKlgewvVTYsz9Yl5agzy9ChDlssf4WYoTDZpnbej86KkvjqPm THDr4QS80f8sGhYpK55vGDi4r3AthZF4xFm45i/j+S96059c74Z3XeKfvi6xHgvb/iO1 P4S3SKxjgFCb1xc5Yj8dRmr4Ypc44F7A7/QB/v0IqGnZfXvbSdgzEIKtayPaGhZQIzRl UKwGoTKEKYXIB+MYT9m+/hKtqb2gH4EG0GDsqfcMLnk/yPiMonXLhP40HCq5vfs8I33J f2YtiboKDcB4NAEqRIS8CLFmiOgYugJGbNuhiAt6bQKpmLbivUlxx1sqx+NMK+l/E9k4 xHzA== X-Gm-Message-State: APjAAAWSLNWpSoGFkwT2Fvask514m4nm+sxiGyKCwUlfuGAyMnmXfTwp GKZ3/l75c2bRpO/jYKYLhLkeDw== X-Received: by 2002:a2e:5c09:: with SMTP id q9mr2285090ljb.4.1570017853751; Wed, 02 Oct 2019 05:04:13 -0700 (PDT) Received: from localhost.localdomain (168-200-94-178.pool.ukrtel.net. [178.94.200.168]) by smtp.gmail.com with ESMTPSA id x2sm4833827ljj.94.2019.10.02.05.04.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Oct 2019 05:04:13 -0700 (PDT) From: Ivan Khoronzhuk To: shuah@kernel.org, ast@kernel.org, daniel@iogearbox.net Cc: kafai@fb.com, songliubraving@fb.com, yhs@fb.com, linux-kselftest@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, Ivan Khoronzhuk Subject: [PATCH bpf-next 1/2] selftests/bpf: add static to enable_all_controllers() Date: Wed, 2 Oct 2019 15:04:03 +0300 Message-Id: <20191002120404.26962-2-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191002120404.26962-1-ivan.khoronzhuk@linaro.org> References: <20191002120404.26962-1-ivan.khoronzhuk@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add static to enable_all_controllers() to get rid from annoying warn: samples/bpf/../../tools/testing/selftests/bpf/cgroup_helpers.c:44:5: warning: no previous prototype for ‘enable_all_controllers’ [-Wmissing-prototypes] int enable_all_controllers(char *cgroup_path) while samples/bpf build. Signed-off-by: Ivan Khoronzhuk --- tools/testing/selftests/bpf/cgroup_helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 Acked-by: Song Liu diff --git a/tools/testing/selftests/bpf/cgroup_helpers.c b/tools/testing/selftests/bpf/cgroup_helpers.c index e95c33e333a4..4d74f3c4619b 100644 --- a/tools/testing/selftests/bpf/cgroup_helpers.c +++ b/tools/testing/selftests/bpf/cgroup_helpers.c @@ -41,7 +41,7 @@ * * If successful, 0 is returned. */ -int enable_all_controllers(char *cgroup_path) +static int enable_all_controllers(char *cgroup_path) { char path[PATH_MAX + 1]; char buf[PATH_MAX];