Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp734800ybn; Wed, 2 Oct 2019 05:28:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqw30OqH6X2dNzQDCRuvYTQna7pT+PB1SPS8G2VY6y9tWqzdTxt0KV2YG8x3zg0A7P+ujIrt X-Received: by 2002:a50:fa09:: with SMTP id b9mr3436673edq.165.1570019288084; Wed, 02 Oct 2019 05:28:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570019288; cv=none; d=google.com; s=arc-20160816; b=iDDIwJbWKV/7Mb6ujNOXEDGm0sGIjUlKdUADVFUXqQr92QMIZvt3QIPNNMX+XFz2JV 4cRDu2meX/xa+q58hXBYcm/O9jLbWNLJSThMayoDh2gXOG4NAyA/DsM66nOT+kqhgsdP oWtybaJ6LVHiOuS29SAPlG4bnezvioPZokrxTv/paE/jDyimsUchK6+bMOU21khXPadU LmltZ2ByTz1m58VYYPpKFMxIQ0v9o98+CiHXqA25+PHOfhyZ+030Lsma8NCTxKYAq4KE cHJ1nAY34w0LoKaXe2E0C0en6Ymv/Y+8SZbcgQ51i9z0mHhP7LA/HNk0MU5kRuHHexOH Kh8g== 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 13si12280011edw.357.2019.10.02.05.27.43; Wed, 02 Oct 2019 05:28:08 -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 S1728370AbfJBMER (ORCPT + 99 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 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 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(-) 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]; -- 2.17.1