Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1295347lqt; Fri, 7 Jun 2024 13:58:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWWGAaYSA9dPkxNQXD5XEDjWIRC3WmMBhwLmiqAkXhycUVzjiJBTZzDxoNTL9ho6kp27v0Jq+g37+Y09j7I3KwOmd5FJ/hTC3Up9CKyyQ== X-Google-Smtp-Source: AGHT+IEGWtKXj84CDME2orSh9ImSL/Vt42OsYc2F+yCECulH5LUMpwRRQhWrvJK6L4UulXYY/Lbr X-Received: by 2002:a17:906:2989:b0:a68:733b:d419 with SMTP id a640c23a62f3a-a6cd561f10bmr223655166b.7.1717793938819; Fri, 07 Jun 2024 13:58:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717793938; cv=pass; d=google.com; s=arc-20160816; b=gLTIaoXFcDH2uc36hi0mqCQlqz6R4ZKgimbZ0QJ9PSp579vOWYCYD6ePizE6nrOW1I ldctkinkj+FTjiRgd6EuZ3ioFltpT0kmjtguVylUbwjbxlgYtItx/XEVQCwEWkMPEb2j fPSGO2OypKoBEGh1DoXNgjFXPLqq8s+YWSqBpWJCquYouyQ7NlHaPSYoreJczawJFAin KcFjfmndf5x4y2OOsMVvG7YgQXocbKpJLbtCxSEGdrGQ5VBjhlc1LZoH5L5mpzTO53KP SvonqSGXQgrJSkfu8kkKo7xXqdaqh08XwDWxlTi/+ZALEusim8Akb/YKKWASxqP0Wzrn w8ZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=bmjH9uZ7dKOwW5eDu1GVbx9ErW19+Z/Z7ndRTQTC2ac=; fh=Uvh7w1u7sHUAgU4IKv2dixh7e+tvmfcU1HqBeghjfM4=; b=xplyPOWIxBTVODR1SsNpz4cWqihzyUE7sJec4TiQ7wQKcFET27Okc6hNTC5n5Vq1w4 J05f95Ts6vg6rtTDRFhmVvDGe9s88cXjJnPuwIXOY+Jpdc2lvYwxhTnmwee8dJsBczbg NEho03U+zek8sEKUsjqcirVLtpKsZgAPDXYzFqAjgSiuWakysl66Byb/lIl62qt8woRk XH5DsM+9dVSAmS8CPCQ05UPuMginIdX2UudVxYawuim9ZKQaUdpWstPgduiYQiVotSle QHbdCP3C3j70m/tCVcS53+6t5O2VIo8Jhigu98pec/DoEluvXSJQ+2+2G+OkJXi69l9r b5xA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=h1Acb6qt; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linuxfoundation.org dmarc=pass fromdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-206749-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206749-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c806daab3si218350066b.345.2024.06.07.13.58.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 13:58:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206749-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=h1Acb6qt; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linuxfoundation.org dmarc=pass fromdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-206749-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206749-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1FE941F21B9B for ; Fri, 7 Jun 2024 20:58:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EB5D21552EB; Fri, 7 Jun 2024 20:58:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="h1Acb6qt" Received: from mail-io1-f53.google.com (mail-io1-f53.google.com [209.85.166.53]) (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 8A59F33EE for ; Fri, 7 Jun 2024 20:58:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717793932; cv=none; b=ldnwkJSOWKekMIEOhmy0YiSh2ppFvcx4kcJeR6OzGT/Iya6apZgA77WJdLqWzTQB/nS/JycDXjZ99XlAiXpqbb2A5hufDPFSIybEf3ITQgPd2IjLMYVrnaEoqiyvUzCTEivLc6AQdjDylQ8AZso17MgnQILnf19Zyy12Fo0Gx2g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717793932; c=relaxed/simple; bh=FAIKXg8ng7SkKYvCPIbsuz9ldAnNs4NGYA60+JUIfyU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=lrBA8wKtJ4cRghDCytnce2fZYGdKqiSq3fZ+LsuWG9u300Hv+TU5ZPU+nlb3/cRtvxXCmOu91prbZYgJyi1xJgBq2olZwGFfIcFhgtYrH6lJRiUmcCSRG8ok5eYcG68K5PgzSjNjtrjrWqoto6aIOztvzWS0QPCwruQjy00FWT4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=h1Acb6qt; arc=none smtp.client-ip=209.85.166.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-io1-f53.google.com with SMTP id ca18e2360f4ac-7eb5cab55faso2524539f.3 for ; Fri, 07 Jun 2024 13:58:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1717793929; x=1718398729; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=bmjH9uZ7dKOwW5eDu1GVbx9ErW19+Z/Z7ndRTQTC2ac=; b=h1Acb6qtaE/2Q3h5q399HU+kqEXss2xhg7uapaiVB5OQLgy9IHF9tY0Ucbq6t0g2hT Vx8e4BUyDM+g0+foBQPWo1BkF7XbGl8/OEvHnqWB+xzzOkglXxiKy+gqw9MNOplm0BMC a3zWVI67ujIrjLGkpaio4fXbcWdNQT/H+jRwk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717793929; x=1718398729; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bmjH9uZ7dKOwW5eDu1GVbx9ErW19+Z/Z7ndRTQTC2ac=; b=Z1u02r9tp0nM4lbvIXYwaPOcslxQVkAu6BEoR1X08SrHl0+t1G+I0a65Td4J1I3Bsv iIjTZuLXnaMPDEWeghzjdOl5krQ47p6YePmCHjd1ruvUghy19nmbCCEb/cNRJ0Z0vNHS Iv0VCWDTO4i7tNgvghWS3Woyqgz0nEx/y7aYRyjXSf0HHWxlkTsEf1nv7Vc/jNYgUO3x o0ZzRpW1SLrOpkNUil2x/+iL4f78HduV8d8OjzTQGkzBuVgZ0sQY7KNJF41bKRJqHMoA qbyufJQUUVfFm/LoC8XjFYecxLz2Psj1AaION8Nz5V++qrzXvHRV4foJDjdxstwi0Wo6 Y/qQ== X-Forwarded-Encrypted: i=1; AJvYcCWIEUyLXQyJ6Yz9bIP8kvHBEtkH4L0fXyN+3Si18kS9kShsO5l6kz3vrrzh2JZyaVoQ9b1EIm7sVED6Ds++hUX5xYSp6eycx2uJgEEE X-Gm-Message-State: AOJu0YyTvXLmD1wci303iKCwUai8TlSWCXsbcMe66dyZ6M12S0ygFO9k fFX15Ml2SsNC4n9Lrjk5et7BBkEFi1XLCpYWu2wfUbIzdDscpwztdh2A9wN2dBs= X-Received: by 2002:a05:6e02:1a8d:b0:374:9cfb:ee13 with SMTP id e9e14a558f8ab-37580236023mr39498985ab.0.1717793928617; Fri, 07 Jun 2024 13:58:48 -0700 (PDT) Received: from [192.168.1.128] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-374bc12e6f9sm9780065ab.12.2024.06.07.13.58.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 07 Jun 2024 13:58:47 -0700 (PDT) Message-ID: Date: Fri, 7 Jun 2024 14:58:47 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] selftests: seccomp: fix format-zero-length warnings To: Amer Al Shanawany , Kees Cook , Andy Lutomirski , Will Drewry , Shuah Khan , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Javier Carrasco , kernel test robot , Shuah Khan References: <20240607124117.66769-2-amer.shanawany@gmail.com> Content-Language: en-US From: Shuah Khan In-Reply-To: <20240607124117.66769-2-amer.shanawany@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 6/7/24 06:41, Amer Al Shanawany wrote: > fix the following errors by removing empty print statements: > 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 > --- > Changes v1 -> v2: > removed empty print statements Kees, Is this change okay with you. I didn't see any use for these empty ksft_print_msg(). I will take this patch if you are okay with the change. > --- > tools/testing/selftests/seccomp/seccomp_benchmark.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/tools/testing/selftests/seccomp/seccomp_benchmark.c b/tools/testing/selftests/seccomp/seccomp_benchmark.c > index b83099160fbc..6fe34be6c693 100644 > --- a/tools/testing/selftests/seccomp/seccomp_benchmark.c > +++ b/tools/testing/selftests/seccomp/seccomp_benchmark.c > @@ -194,14 +194,11 @@ int main(int argc, char *argv[]) > ksft_set_plan(7); > > ksft_print_msg("Running on:\n"); > - 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(""); > system("grep -H . /proc/sys/net/core/bpf_jit_enable"); > - ksft_print_msg(""); > system("grep -H . /proc/sys/net/core/bpf_jit_harden"); > > affinity(); thanks, -- Shuah