Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp912394lqj; Mon, 3 Jun 2024 05:02:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU2U8ejBGCQg7GpNzRHAozVgigjvTSJ6Z+hjuYMDGVR5AsnoEXdZRKaRs7CrD1GvZ9FWkizxf+FPz5GAgS6kdWW5tRoNUfvuMVagq/d9A== X-Google-Smtp-Source: AGHT+IGBl5J0t7SoU+n0dhiPZCsvjxxEd2BY0edsB6F34egvk2jAlC2DrHUaV8AUm9BAnKMT/ukS X-Received: by 2002:a17:90a:7784:b0:2bd:d4be:82d5 with SMTP id 98e67ed59e1d1-2c1dc5b9d75mr7552565a91.37.1717416059345; Mon, 03 Jun 2024 05:00:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717416059; cv=pass; d=google.com; s=arc-20160816; b=B/TqBfTAGLeFchz85DrM1Ut/fyH4sRsooNK08SUQIFuNEONuEt91jEmKt4O61Mea4s fj9BOcSiUjVVZ2Y8ZgKjrUP+bEiU8+LYQV3zy8GtQmTK5B4UO7SHU+HOBRt+DHRFMOcD tJU/5LiKu1TdtyqoeJtP0tKuIdZVBfAxj17ZOFLdgdAFFKLt9z/+YOAF0HkHEoF03vWG uveCLFKfd/wjIXGgZm9rqdEYSNpBZv3Cw7uoamqVD1SEtghO/+jc8v0G4ymZYJ0/Co30 m8MC/ES6p1ROHyhb75zrtf26aQ8iNC/A6BTPC0fSVQOD35N0+259HHDL8eeQ3WhUfXvQ mXqA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=HArPik3I7izu+6WonMf03QX2STUValM6DQn6IUu4hhc=; fh=mZD7fFok5hjrsnaOvpy4yaVjt7CPGClrP41KnT1kM4E=; b=z8+c7rIYFLIDUe3Jyr1duDNerm4MqPXqT5KOgqy6oMe8CU2QIKxRweAEjWNfP2gU1j IB4E1hnFEnw43UMZ6jJdWzs4tdKmsoXH0W5Jpjl/GKZkboXffTGHxG2+p6AbuGFB9rnV RH7t+i39tmM5igAS3mMTxC7TgAu/Z7KtZp809ESn3xnUEPfMGZfekc1uOzdw2y5AOmDM OTLSeWi98nPDCDhYDvu5MfwJT3MSrupMc02WMgeRnqKWKeTw9TkB78dz2xG3WnF7t+H9 XzTP4u+EAlt0eO3AYxGlwwXYemr+fP3Fo/Bwfz75L3UX7Rj+Rem2bIPAJJQKwX0cqQBf Dcxw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RIApz2ST; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-199071-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199071-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c1c25cece4si6562606a91.0.2024.06.03.05.00.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 05:00:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199071-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RIApz2ST; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-199071-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199071-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 111A8B214C1 for ; Mon, 3 Jun 2024 11:56:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F66C126F0D; Mon, 3 Jun 2024 11:56:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RIApz2ST" Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E2C886AE9; Mon, 3 Jun 2024 11:56:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717415806; cv=none; b=A6cfqExfiKU3tRC4WVeceLV11A6edBdfjiCnRWiU0PzKEeHLeIPypCOkdeYcVtOEgxQBuiY8+bLnaxD4e6Umq5QDWOnPqQ4gq2Qz+28k4blUrQRrqv9gloOjU7SMngQ6bCZ15a8dwjguynPG1shH/bcxEonaVie21qDC3IDs1sk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717415806; c=relaxed/simple; bh=QKTql34O8lDaqYmigvPLMWgqpx5wUV6YZyBk/TNIcmg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=C+sPyG2rREkeJOOavSBhRuOe11LdFK8VqGqo75iyPa78Y+FVAPW66L7a5IXtuDpraGiXwNgUErURXJFcD7b53MIas0gD+uSA1KALMIjl+uiBqyPECi61XaPU3WtWzzqYPnqmJdethuvdh+rXhl4YWnNpnL6mfBtk+GdeDkxys84= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=RIApz2ST; arc=none smtp.client-ip=209.85.218.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a63359aaaa6so558099566b.2; Mon, 03 Jun 2024 04:56:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717415803; x=1718020603; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=HArPik3I7izu+6WonMf03QX2STUValM6DQn6IUu4hhc=; b=RIApz2STa+9paTWsNVbMjOckujyMuiSRv1NC34V4NYDUJ5JxjP3VhRzLdUbBkF6pTm lIxiQCa7cUUv5rhynexUCtWkiZVdAQ+95dnQABiJNNApP0X4iJ8XCX3lL5hh+pAJkr8R NhwBV7g70ETcj81MQdO/HrkVWyi183Pg+QlJqEF5kZC3Vp0WMGrVqPaQ3axftcx0kpGB LiMkaCNyyEN84T9f/FNqTC4WwWMBaZOKzJGCTlJo+OnD/Sk2NNQpMtdEt4kGYKy1V2j5 7cSMfpgKxiI22m7D2knsjnCIsH3rMuIp/SaK6FxPvoSHIWY/uB/HYS6QQKxoj8P+RsGI GlzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717415803; x=1718020603; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HArPik3I7izu+6WonMf03QX2STUValM6DQn6IUu4hhc=; b=IxQB3SEenqQamvJSWywRBnKf2ZljA/BEhg9drqwlkQHeFUEQHqhklfX5bczzUG2BVA qx/wBYEt8WAxAqXR3cpptfksLHUpkGj60WxZ8A/eGI75tHBAFTXMIK8dAHlmNwD460EU GzN4sAs705mFQmLT/9m+cTmdJNxhVXJ1TQDNdOfha+gzULFTvWB+i+vfiiBwy+j8VLR0 KTzgqeGX0ZXA9qXP13axoj9maj3LuIlfp/molMgUcgDUdObjMrfOjNfO51g+DtjjW2Rc lIx/WV3+wAGw6g7oi/SNxdaIuEqqEJQ0FRwO5H4P6IylQpP2wTCAa8luQSmQ3jMIlf+K IMBg== X-Forwarded-Encrypted: i=1; AJvYcCW0yODtfH6MjySmVL8ioRAIYtvTXNNeGOhj/QYP7EciLFPFQqG6i8Xn/Vl0ow7BpJ8tPkG18LTvW6xFmw19ge2BfeliqH8VNRy+IoVUfexNyaZRisBfdHA/i9UAHD/xAS0QWzbmInxzJI9uFZDk X-Gm-Message-State: AOJu0YxdXMQVb+cMsmlxR2ZT+zTvv0S439Yn4hCzpZUo7QqcBNnKW18J I5jnBvVkS0uKMxClyUj/lYvVVxpP3099/me+5nGqtn65kueaa7Nb X-Received: by 2002:a17:906:1dcc:b0:a55:b272:ea02 with SMTP id a640c23a62f3a-a682244a89amr660656166b.75.1717415803420; Mon, 03 Jun 2024 04:56:43 -0700 (PDT) Received: from xps-15.. ([91.90.123.30]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-a68f39b9294sm229634166b.180.2024.06.03.04.56.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 04:56:42 -0700 (PDT) From: Amer Al Shanawany To: Kees Cook , Andy Lutomirski , Will Drewry , Shuah Khan , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Javier Carrasco , Amer Al Shanawany , kernel test robot Subject: [PATCH] selftests: seccomp: fix format-zero-length warnings Date: Mon, 3 Jun 2024 13:54:47 +0200 Message-ID: <20240603115447.30279-1-amer.shanawany@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit seccomp_benchmark.c:197:24: warning: zero-length gnu_printf format string [-Wformat-zero-length] 197 | ksft_print_msg(""); | ^~ seccomp_benchmark.c:202:24: warning: zero-length gnu_printf format string [-Wformat-zero-length] 202 | ksft_print_msg(""); | ^~ seccomp_benchmark.c:204:24: warning: zero-length gnu_printf format string [-Wformat-zero-length] 204 | ksft_print_msg(""); | ^~ Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202312260235.Uj5ug8K9-lkp@intel.com/ Signed-off-by: Amer Al Shanawany --- tools/testing/selftests/seccomp/seccomp_benchmark.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/seccomp/seccomp_benchmark.c b/tools/testing/selftests/seccomp/seccomp_benchmark.c index b83099160fbc..ed04b89de9c6 100644 --- a/tools/testing/selftests/seccomp/seccomp_benchmark.c +++ b/tools/testing/selftests/seccomp/seccomp_benchmark.c @@ -194,14 +194,14 @@ int main(int argc, char *argv[]) ksft_set_plan(7); ksft_print_msg("Running on:\n"); - ksft_print_msg(""); + ksft_print_msg(" "); system("uname -a"); ksft_print_msg("Current BPF sysctl settings:\n"); /* Avoid using "sysctl" which may not be installed. */ - ksft_print_msg(""); + ksft_print_msg(" "); system("grep -H . /proc/sys/net/core/bpf_jit_enable"); - ksft_print_msg(""); + ksft_print_msg(" "); system("grep -H . /proc/sys/net/core/bpf_jit_harden"); affinity(); -- 2.43.0