From patchwork Fri Oct 6 18:39:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Kacur X-Patchwork-Id: 730206 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 43BFD1A29F for ; Fri, 6 Oct 2023 18:41:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZfJmuBJj" Received: from mail-yb1-xb30.google.com (mail-yb1-xb30.google.com [IPv6:2607:f8b0:4864:20::b30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A834B6 for ; Fri, 6 Oct 2023 11:41:24 -0700 (PDT) Received: by mail-yb1-xb30.google.com with SMTP id 3f1490d57ef6-d81b42a3108so2787179276.1 for ; Fri, 06 Oct 2023 11:41:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696617683; x=1697222483; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=abc9jH7p9op4GCd1YvdShfPjRo+5a1KLFVgcNDm4/nA=; b=ZfJmuBJj467m3/p3ncaQn/bKPYXZoS+p43Jr92FbFxC5elU24G6cBhnDlQzV0TuYsv ZYCOrC6hOXeiFOtO+cRdKgCWN3ZA67AQnaacoFXmTnuOD64KS4Yf2Wqle7OjgmBI7MTk GzlEuJPMkADAqQBw6EsLdL1SPHiEOc6CN3xFOydLVhnd7OwT+n/5W1bTTHxklUtMxAn6 mXzPTZtkisVp4UsGjhL0BQOLQBmFkIJmpsJkGGTM8FhWQi0Uk60eaMHIQm6q3/Lg0Rcz PgGYbvRvjZfivF351Nrik2qlS/bII1BqzzpxpbnM+ddJ4tXcv/qSkuIh7jwYV8ADP7FI EFQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696617683; x=1697222483; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=abc9jH7p9op4GCd1YvdShfPjRo+5a1KLFVgcNDm4/nA=; b=tTBghbPaSNMx11cqgpJntz2tFDaRrk+Wg75wzGo8+kzukD/dMFom5vQyRmUhwbcNRs m6TbCt1IfyReQjjbDAecs9jYvsgzsW7PXRdYjIcSxgLXkrUZV/Vk+A0qv0U5Sga5NDaq KwBlYYB6UtmQCGmHvVpIgzAYPjdsQBnvlPf2D1PPVt19u7Cc1nz7VxPwrmpbyfePP9FH UMHIhadRWF0HdpOGf9Pd2g0ah8/eAxLXDK7QGYi1kmDV41vjvo5bciiCMnppLPxiACQ3 6SxoR70KFlAYVX/IxxSl3q+t3GXhyWmp/csGwXTQR1xRsEwQus1C3hqAoGt8G99B5xZK NzMQ== X-Gm-Message-State: AOJu0YxtT/e6fF9alVzufBLNkYHwgopN+C49eHNVDlf/aLgSKPvEaNbp MSu/JU9TgSHfhvPl3WVB2thkuG1K5jc= X-Google-Smtp-Source: AGHT+IEt+K5JvZ7Gm21ec365gRb0m1/5H0RQLNSqaEBmShGTNjE41NZEJ3TlpmFT12SiNCGAsFm+hQ== X-Received: by 2002:a25:8441:0:b0:d78:134:9477 with SMTP id r1-20020a258441000000b00d7801349477mr8597388ybm.58.1696617682702; Fri, 06 Oct 2023 11:41:22 -0700 (PDT) Received: from fionn.redhat.com ([174.88.88.29]) by smtp.gmail.com with ESMTPSA id y8-20020a0ce048000000b0065b11053445sm1593012qvk.54.2023.10.06.11.41.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 11:41:22 -0700 (PDT) Sender: John Kacur From: John Kacur To: RT Cc: Clark Williams , Eder Zulian , John Kacur Subject: [PATCH 01/17] rt-tests: cyclictest: Remove warnings due different signedness in comparison Date: Fri, 6 Oct 2023 14:39:55 -0400 Message-Id: <20231006184011.26699-1-jkacur@redhat.com> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-rt-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net From: Eder Zulian Type casting used to remove compiler warnings due to comparison of integer expressions of different signedness. Signed-off-by: Eder Zulian Signed-off-by: John Kacur --- src/cyclictest/cyclictest.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c index 4a7108ea2c8f..179ae8b2004b 100644 --- a/src/cyclictest/cyclictest.c +++ b/src/cyclictest/cyclictest.c @@ -317,8 +317,10 @@ static int raise_soft_prio(int policy, const struct sched_param *param) return err; } - soft_max = (rlim.rlim_cur == RLIM_INFINITY) ? policy_max : rlim.rlim_cur; - hard_max = (rlim.rlim_max == RLIM_INFINITY) ? policy_max : rlim.rlim_max; + soft_max = (rlim.rlim_cur == RLIM_INFINITY) ? (unsigned int)policy_max + : rlim.rlim_cur; + hard_max = (rlim.rlim_max == RLIM_INFINITY) ? (unsigned int)policy_max + : rlim.rlim_max; if (prio > soft_max && prio <= hard_max) { rlim.rlim_cur = prio; From patchwork Fri Oct 6 18:39:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Kacur X-Patchwork-Id: 730639 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C429230FB2 for ; Fri, 6 Oct 2023 18:41:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="eUddZDEj" Received: from mail-ot1-x331.google.com (mail-ot1-x331.google.com [IPv6:2607:f8b0:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE688BE for ; Fri, 6 Oct 2023 11:41:24 -0700 (PDT) Received: by mail-ot1-x331.google.com with SMTP id 46e09a7af769-6c4f1f0774dso1597010a34.2 for ; Fri, 06 Oct 2023 11:41:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696617684; x=1697222484; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=xt+poQxdN+xngJ4xdMsOAO7ftfUcllaWtK9Cx+5ctKc=; b=eUddZDEjsjcFOoS9hEdDL9rLcWzBxlwEMRxqGIxoZttuEL2hpijOP1WjarbAVI47Fc Ur8ipkgHB9aE/h+LqBplkc0yaYFYOHDfwwg7CPbv7JroUTZrQH7CaL9ei0jta73MC0i2 Joiz/A+2/9zGAXGSOVIXp9UiRc3X+mQwB1DCf2MiD754YQKTq6q2j/+zx+20mwVYl8GV 2rxbOSlhY6bp/rd4oMOqbz0OQvYSmu3Qi4nUU4DypVdfHCl2y0Oo86JrSF8Ur78wjn1o xiMAktwaC2gbAhltcD9ySdpRUEkqEFq5oY7GPTzAnyXPNcryl3fBJepsqE4i51AQ/ZD8 0NkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696617684; x=1697222484; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=xt+poQxdN+xngJ4xdMsOAO7ftfUcllaWtK9Cx+5ctKc=; b=AFBCx9xDx5yz5o3DlHHlSpr9DhuAOQw6MQzgD7zj4SIucTEGV/6bj3P2rqEWz/2wd4 zhQOnFaEdph99F0Zu5jG33sWfRPO8VcAzWEnHw1RXmG6da2fvSnl/ek+81e63wmbziLL pAvBiCR0pUqtxFGOzYF70SR3pJPPkdYB3MSds4qmP6Z+azo6xBUkoqo+qMuX8tNzbcZB cEK3Fn9ySe3S3rHOGJnqJCVQQfUzmTUm5MmZ27e6uZbcBbQM9EzEakVWO2ymHItvptkI AyCiAtYhowCPPkTwhVLSvk0TkwdoUh/Aedqr2q0WhCQ+qj76iuT1wnNvrKkqkAAArvqB Yh4w== X-Gm-Message-State: AOJu0YyyU/z0L4iOnDpcAhX7Z09aNBelIpE8wVtIO/H0tUZ8N/pF89xN LVNg3cGMWGOAnXTM2OWeN7JRNvvWVUQ= X-Google-Smtp-Source: AGHT+IHF2kXTdtops9zm9Rda6X9VmjigvpMsvmXv051tj4zpBRqPzuNF0c5YTslhYtortVcmlxwIrw== X-Received: by 2002:a05:6870:d1d3:b0:1d6:5b09:1584 with SMTP id b19-20020a056870d1d300b001d65b091584mr10197132oac.5.1696617683836; Fri, 06 Oct 2023 11:41:23 -0700 (PDT) Received: from fionn.redhat.com ([174.88.88.29]) by smtp.gmail.com with ESMTPSA id y8-20020a0ce048000000b0065b11053445sm1593012qvk.54.2023.10.06.11.41.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 11:41:23 -0700 (PDT) Sender: John Kacur From: John Kacur To: RT Cc: Clark Williams , John Kacur Subject: [PATCH 02/17] rt-tests: cyclictest: Suppress unused parameters warning Date: Fri, 6 Oct 2023 14:39:56 -0400 Message-Id: <20231006184011.26699-2-jkacur@redhat.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231006184011.26699-1-jkacur@redhat.com> References: <20231006184011.26699-1-jkacur@redhat.com> Precedence: bulk X-Mailing-List: linux-rt-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Suppress unused parameters warning in cyclictest with __attribute__ ((unused)) Signed-off-by: John Kacur --- src/cyclictest/cyclictest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c index 179ae8b2004b..2542cb5ecdce 100644 --- a/src/cyclictest/cyclictest.c +++ b/src/cyclictest/cyclictest.c @@ -1616,7 +1616,7 @@ static void rstat_print_stat(struct thread_param *par, int index, int verbose, i * thread that creates a named fifo and hands out run stats when someone * reads from the fifo. */ -static void *fifothread(void *param) +static void *fifothread(void *param __attribute__ ((unused))) { int ret; int fd; @@ -1797,7 +1797,7 @@ rstat_err: return; } -static void write_stats(FILE *f, void *data) +static void write_stats(FILE *f, void *data __attribute__ ((unused))) { struct thread_param **par = parameters; unsigned int i, j, comma; From patchwork Fri Oct 6 18:39:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Kacur X-Patchwork-Id: 730205 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E82861A29F for ; Fri, 6 Oct 2023 18:41:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mk0HmTyd" Received: from mail-oa1-x36.google.com (mail-oa1-x36.google.com [IPv6:2001:4860:4864:20::36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97E44BF for ; Fri, 6 Oct 2023 11:41:26 -0700 (PDT) Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-1dd1714b9b6so1573856fac.0 for ; Fri, 06 Oct 2023 11:41:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696617685; x=1697222485; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=iWhzDvKh0xVCCh7ema8mg7INwO+/SotONhh1TeXO3uw=; b=mk0HmTydjj2athF+ARWORw+RyeitbUT3O5tGKTqNaTqjb/9JdWgYQenJ2+4rvv8GLn 28V9EGw+kvg9uBkJmEBKG6BaijKztM2Ff+85CLvwOeRS3IcQ31Hgu1jef7G/k+QnwMp+ uyjeG7Uj8X6GM90ak929DOLMyJIZgjx3fRlOCeoEfvcXUjHPVCGGNrPC+Jy+Z1w6D62S Q6q1CVlKaczW0Sr8v5Z0uPcUQVvKF2IMzPFCKfmLfDkDBzVce8u9cW12z2MRdcfA89X+ UKogUe7mEE3NnoRBbb2uaO+ip3GjUPincAR18RCJKjfy+8FlA4wd5lkH/tNgaoxoOB1d ceqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696617685; x=1697222485; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=iWhzDvKh0xVCCh7ema8mg7INwO+/SotONhh1TeXO3uw=; b=HJ4LCaXImtbWXQC9woY/MuMWhFATAGeoio3Vod5RzVvEfRsz19HePaNr08TPKjbzrB uOjzfNTNABS6ummN31vajWDm+yhsVMF8SdukTS8uBKhYdTTi03zvNngGXkQSYi5Mn7gg zvK3Iz1N9tgUM1H+l2jTi+xopJngaQEtrLMzCj4kjMwGyusbc4n8iY8PKwYVknJb6mNU FqngeoS0AHStSWB6C1U3oNStfbfbj4Pyday2NVtIl4jtq/BbvnqM7CbtIrP0MD6mAWNO 3sZNCsYLd3ccJWQxlnMOfXqXlY5eiM0eHy2qhaoD4zxnkLcErFojAhYndUedhhbO5lOm S1LQ== X-Gm-Message-State: AOJu0YyfKpW2a9qY0ElrdsLt6wGybMJwQDQ+NJ3b7SEDYS+7xlOOgVek 7J/ib8p0SPtphoAhu5E6mE8759FhqR4= X-Google-Smtp-Source: AGHT+IFwf/0DIFMr8DoLhypMSo28kP8QWu6i++IBFqyR8+nq1oIZuc+O7oVKdESyuYtOQZpPTJJZ5w== X-Received: by 2002:a05:6870:14c1:b0:1bf:df47:7b5e with SMTP id l1-20020a05687014c100b001bfdf477b5emr9915072oab.16.1696617684825; Fri, 06 Oct 2023 11:41:24 -0700 (PDT) Received: from fionn.redhat.com ([174.88.88.29]) by smtp.gmail.com with ESMTPSA id y8-20020a0ce048000000b0065b11053445sm1593012qvk.54.2023.10.06.11.41.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 11:41:24 -0700 (PDT) Sender: John Kacur From: John Kacur To: RT Cc: Clark Williams , John Kacur Subject: [PATCH 03/17] rt-tests: ssdd: Suppress unused parameters warning Date: Fri, 6 Oct 2023 14:39:57 -0400 Message-Id: <20231006184011.26699-3-jkacur@redhat.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231006184011.26699-1-jkacur@redhat.com> References: <20231006184011.26699-1-jkacur@redhat.com> Precedence: bulk X-Mailing-List: linux-rt-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Suppress unused parameters warning in ssdd with __attribute__ ((unused)) Signed-off-by: John Kacur --- src/ssdd/ssdd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ssdd/ssdd.c b/src/ssdd/ssdd.c index c5307648a82d..cad901b563d8 100644 --- a/src/ssdd/ssdd.c +++ b/src/ssdd/ssdd.c @@ -64,8 +64,6 @@ static const char *get_state_name(int state) return state_name[state]; } -#define unused __attribute__((unused)) - static int quiet; static char jsonfile[MAX_PATH]; @@ -154,7 +152,7 @@ static pid_t parent; static int nforks = 10; static int nsteps = 10000; -static void sigchld(int sig, unused siginfo_t *info, unused void *arg) +static void sigchld(int sig __attribute__ ((unused)), siginfo_t *info __attribute__ ((unused)), void *arg __attribute__ ((unused))) { got_sigchld = 1; } From patchwork Fri Oct 6 18:39:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Kacur X-Patchwork-Id: 730638 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CB4F437C95 for ; Fri, 6 Oct 2023 18:41:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="eUrRU8/x" Received: from mail-qv1-xf30.google.com (mail-qv1-xf30.google.com [IPv6:2607:f8b0:4864:20::f30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 019B6B6 for ; Fri, 6 Oct 2023 11:41:27 -0700 (PDT) Received: by mail-qv1-xf30.google.com with SMTP id 6a1803df08f44-65b0c9fb673so12838066d6.1 for ; Fri, 06 Oct 2023 11:41:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696617685; x=1697222485; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=UeMSAFzQ1UToFRPwQ8pnGusBeLD2OJJdVLWknq1yrrs=; b=eUrRU8/xst2dd0mvOwQMULFSYItg5zQvHMxSuMWXjeeud3ndEJguZVfmGgtvMFxoFM xKLQ69IP80a2oi26D0eaw2HHS3Qq9m6cPYDFG7RgeN6J2F9L8/v+pB7NwPeStziN8fhQ 1g42XGUmKK7BK8GyAvwvKYV2gaO5NxXHzgeF0Ze6TGu9WqSaMyjttBx/avYQW1OR8mPV gylOjNDeuI0S0Zt7rWhbksFPeh6efHqRMxCyluYboFbzqEAr81oW8UBgx2hQsOlE/M+R aRiG1Jb30GvtmI3vwyNfFhl0MUOGvi73eu1Tl6HeD9Z4K2l7gNnQ+363UeaeTu2vG+IW +t5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696617685; x=1697222485; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=UeMSAFzQ1UToFRPwQ8pnGusBeLD2OJJdVLWknq1yrrs=; b=thoL8iOcTRBQatPJQyzX6cEOBQi3kJWCNQ5p/APdvtWlaKNAUy7H97LzGKNEyvRW6F 3SMNQnbcJo/6Bedcrkr5sWqxUkwwilaG9CMFQRXX0I/AT+OJ1St3eHg36f2R+ufgi4Jh X0Vzi+OY4dOKbGEuOdVIRtqmUk2oiqB2kczjzOrZJoOUlE5WbczQmmzdSLzkuKU7ty2N N7zjLBbxppKUHHrVELVAFFMlNErIfJTHoLnI4WXWIvPmUSJLzA3+1q1a/c7tEqrby9Vq 0lZ1YK1eCDF5MKXAbMuYX5K7R0RI/+0CMyGZkFlUlLFqTWjo9xVp4CNBkwewST2H0ipW w2gg== X-Gm-Message-State: AOJu0YyX3/R98WvODxB4zViKr1leCObySXWCTT4VFu7a46q3ToD5zLd0 dV6oAoukODzze6XFpyFtmkyePHzJUew= X-Google-Smtp-Source: AGHT+IGlx1P9Y5/kGg9mszXLWi3eWViKO9m3Ij+2VzMMQK2T7+TJ4Lj1xCXYz0tJDgsKgMNBBlN8KQ== X-Received: by 2002:a05:6214:807:b0:65a:e23c:8861 with SMTP id df7-20020a056214080700b0065ae23c8861mr8496607qvb.9.1696617685617; Fri, 06 Oct 2023 11:41:25 -0700 (PDT) Received: from fionn.redhat.com ([174.88.88.29]) by smtp.gmail.com with ESMTPSA id y8-20020a0ce048000000b0065b11053445sm1593012qvk.54.2023.10.06.11.41.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 11:41:25 -0700 (PDT) Sender: John Kacur From: John Kacur To: RT Cc: Clark Williams , John Kacur Subject: [PATCH 04/17] rt-tests: queuelat: Suppress unused parameters warning Date: Fri, 6 Oct 2023 14:39:58 -0400 Message-Id: <20231006184011.26699-4-jkacur@redhat.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231006184011.26699-1-jkacur@redhat.com> References: <20231006184011.26699-1-jkacur@redhat.com> Precedence: bulk X-Mailing-List: linux-rt-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Suppress unused paramters warning in queuelat Signed-off-by: John Kacur --- src/queuelat/queuelat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/queuelat/queuelat.c b/src/queuelat/queuelat.c index ead8ee5f4898..c549cd8381ab 100644 --- a/src/queuelat/queuelat.c +++ b/src/queuelat/queuelat.c @@ -519,7 +519,7 @@ void main_loop(void) free(src); } -void sig_handler(int sig) +void sig_handler(int sig __attribute__ ((unused))) { print_exit_info(); exit(0); From patchwork Fri Oct 6 18:39:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Kacur X-Patchwork-Id: 730204 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F1B6F38BC7 for ; Fri, 6 Oct 2023 18:41:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Um0B9P1L" Received: from mail-oi1-x22f.google.com (mail-oi1-x22f.google.com [IPv6:2607:f8b0:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFAADC6 for ; Fri, 6 Oct 2023 11:41:27 -0700 (PDT) Received: by mail-oi1-x22f.google.com with SMTP id 5614622812f47-3af608eb34bso1542759b6e.1 for ; Fri, 06 Oct 2023 11:41:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696617686; x=1697222486; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=DmtuJ3wyhKMdG28X1IjyfeBzNBwAPSW6cwB1+Sf5lck=; b=Um0B9P1L0HH5TZj74GhFH8cK8FFLH40lJwtbx8Fobbp+EjncPOqk9LtStbNiNiIx3k c7KKFZSyCN6rFk7AP6z1Wey8vOFxptZB8EUhJyhGGk1Hftm1NFY2IQXFJQJ8lPXvWZ3h lIzKo7yl8fbc0JTUYKE1rAICy4utpIr+zuszTJKN9gcakjDBC4HmV62FeXZEV9CQGRvi rrlJpjPFZVwTmFN1HbQylGOmsB5P0EX3CHy2RHAITmae0DmFqz2jcWaihAat2ZpN0ohK ld7ebdPyRHtoUsRW0KvKhIk/LQmzbxw8bBC0PReg1Zmr0ks6tN7z7wYKC73TkoR8QI9f jA1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696617686; x=1697222486; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=DmtuJ3wyhKMdG28X1IjyfeBzNBwAPSW6cwB1+Sf5lck=; b=NwORf3a+cDuts2E9zZAlexZBqZLdr53PABP7eot4owzSrWNJCCwKmDELmIG3/hXqLT Ka5SE2lZRHOQnyIHYPa6RZhCguDVOowRCr7Ozbp5MbU0sM+WyIGQ0R+gpzzLuzw/LxkW N45slOivWclzgJ8F18nM5i+ao4yfETvZHFO/ZZDgtAAqsulnFtl0oPrpjsEMDiZKuqUM mlzdFKwlH+MJiZioYKVo6RenruYnDs+ye8OvlCgJX5AiyOOiRFvjE1aXSpvvrV31gUpK rOtx19eXx7lDtoafwaBkRyQ1mRDbKFE6WM2MALqO9ewzAJal8aH9dw3hCaFtESD9ZsGv zwNA== X-Gm-Message-State: AOJu0YwH+Tx/1KKqpKHzL/ZrqxyuAR0aM/qJko4q80KZ5TP3+zzjserE 0AHshSyLAO1M9+z0qrqIXGVQXNZipYQ= X-Google-Smtp-Source: AGHT+IG/eAPN0JqCCtLsl3PWVrfC70ENc42AVOhZjMxMQT+Qw2Khu1klY1S0XKvNd3DfCxJHBs1TEQ== X-Received: by 2002:a05:6870:f141:b0:1d0:e371:e95c with SMTP id l1-20020a056870f14100b001d0e371e95cmr9698933oac.40.1696617686616; Fri, 06 Oct 2023 11:41:26 -0700 (PDT) Received: from fionn.redhat.com ([174.88.88.29]) by smtp.gmail.com with ESMTPSA id y8-20020a0ce048000000b0065b11053445sm1593012qvk.54.2023.10.06.11.41.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 11:41:26 -0700 (PDT) Sender: John Kacur From: John Kacur To: RT Cc: Clark Williams , John Kacur Subject: [PATCH 05/17] rt-tests: cyclicdeadline: Suppress unused parameter warning Date: Fri, 6 Oct 2023 14:39:59 -0400 Message-Id: <20231006184011.26699-5-jkacur@redhat.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231006184011.26699-1-jkacur@redhat.com> References: <20231006184011.26699-1-jkacur@redhat.com> Precedence: bulk X-Mailing-List: linux-rt-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Suppress unused parameter warning in cyclicdeadline Signed-off-by: John Kacur --- src/sched_deadline/cyclicdeadline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sched_deadline/cyclicdeadline.c b/src/sched_deadline/cyclicdeadline.c index ef00a0d6b2dd..b477cc7aa8ff 100644 --- a/src/sched_deadline/cyclicdeadline.c +++ b/src/sched_deadline/cyclicdeadline.c @@ -1030,7 +1030,7 @@ static int calc_nr_cpus(const char *setcpu, char **buf) return -1; } -static void sighand(int sig) +static void sighand(int sig __attribute__ ((unused))) { shutdown = 1; } From patchwork Fri Oct 6 18:40:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Kacur X-Patchwork-Id: 730637 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 22FC338F84 for ; Fri, 6 Oct 2023 18:41:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dGAra4wj" Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 406D2BE for ; Fri, 6 Oct 2023 11:41:29 -0700 (PDT) Received: by mail-qk1-x733.google.com with SMTP id af79cd13be357-7740c8509c8so154094485a.3 for ; Fri, 06 Oct 2023 11:41:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696617688; x=1697222488; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=K/Ufdw32297h6lU8w1XqaDkLvYo/gsKtM03QV63U80E=; b=dGAra4wjtVqVx5luu29lUfFTJ3iNH2YLqo0PDbO5mGgn6qQBBnnkIeLuMFcXzPmVDU BBIe2SuqI0CzTetvkSIqlCv+FkAjXocj2RIdKoMAHqgajPOyBahqVDgIMDvdWTmR0ER1 EAmQN9/4GHaq4QhdqeOgl5NXxBsyy7CRZY75WV12Apr7jJJYy21GsjlzfFUbg5nT5eB0 TwVWfiyvOUuHxAjDept1hvTMxss+cBdLfzaFqMD2rfZU3Lkg1MwnYBau2Hem5G/nDfhF ESy+mL2h5E3LPt9SRjdMCHdqzAOmVmUit5OMltvN0g2vJb1leT7QKrXCyyd3L23Tebn1 u1Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696617688; x=1697222488; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=K/Ufdw32297h6lU8w1XqaDkLvYo/gsKtM03QV63U80E=; b=jl0MhKupgw/HWlCWbQDFDfcdb7QPU3ftJcoEoZgdB3Tjt0rX0MhZPL6sqooQ0K6SvP NU1FiujHfENCYSD9zQEZEYy3QkuDLsfVWngYJgcsiBbuCsebUyrlFYLYg/31w+vfzN9D CaLxOHVJ0IQZQyWx/xg7XhjkpgT8Sfe807pVASi4EVjNpvkVGfgSa6RrH2ETos20s9La q29kJl1vkf5Njy7iE3NqgVbwqpr3UBznKAICv2FSlI9mYSgoa7IXQDpuOBdUVPcq3m9Y 60IJ8UI0+Az5jJzBn8I3aeQFl/Y1w2wofKZq8e14HtiU2MBNbp+BlNSZMq8df5d+KlFM pVbw== X-Gm-Message-State: AOJu0YwDiXXzJuziQcvl01RQ777PYE8YYUU0uCL7EDfkLeXW6A4Hswgs YH2KHH++wmLFyyBq98m69PFiFRLKrLo= X-Google-Smtp-Source: AGHT+IFD0sgbRHtlzclviXEYTgu/1liaPmfZwotsZ4OhryhNHNBaNaLZv4L6gePR9WYhy+SNLqbFIw== X-Received: by 2002:a05:6214:4a4c:b0:658:24e2:f237 with SMTP id ph12-20020a0562144a4c00b0065824e2f237mr8614244qvb.31.1696617687844; Fri, 06 Oct 2023 11:41:27 -0700 (PDT) Received: from fionn.redhat.com ([174.88.88.29]) by smtp.gmail.com with ESMTPSA id y8-20020a0ce048000000b0065b11053445sm1593012qvk.54.2023.10.06.11.41.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 11:41:27 -0700 (PDT) Sender: John Kacur From: John Kacur To: RT Cc: Clark Williams , John Kacur Subject: [PATCH 06/17] rt-tests: svsematest: Suppress unused paramters warning Date: Fri, 6 Oct 2023 14:40:00 -0400 Message-Id: <20231006184011.26699-6-jkacur@redhat.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231006184011.26699-1-jkacur@redhat.com> References: <20231006184011.26699-1-jkacur@redhat.com> Precedence: bulk X-Mailing-List: linux-rt-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Suppress unused paramters warnings in svsematest Signed-off-by: John Kacur --- src/svsematest/svsematest.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/svsematest/svsematest.c b/src/svsematest/svsematest.c index 243b13738b19..3c857dcb0189 100644 --- a/src/svsematest/svsematest.c +++ b/src/svsematest/svsematest.c @@ -416,7 +416,7 @@ static void process_options(int argc, char *argv[]) static int volatile mustshutdown; -static void sighand(int sig) +static void sighand(int sig __attribute__ ((unused))) { mustshutdown = 1; } @@ -430,7 +430,7 @@ static void write_stats(FILE *f, void *data) { struct params_stats *ps = data; struct params *s, *r; - unsigned int i; + int i; fprintf(f, " \"num_threads\": %d,\n", num_threads); fprintf(f, " \"thread\": {\n"); @@ -456,8 +456,7 @@ static void write_stats(FILE *f, void *data) fprintf(f, " }\n"); } -static void print_stat(FILE *fp, struct params *receiver, struct params *sender, - int verbose, int quiet) +static void print_stat(FILE *fp __attribute__ ((unused)), struct params *receiver, struct params *sender, int verbose __attribute__ ((unused)), int quiet) { int i; From patchwork Fri Oct 6 18:40:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Kacur X-Patchwork-Id: 730203 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4FCE438F8C for ; Fri, 6 Oct 2023 18:41:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="lLGpKDTC" Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15AFCBF for ; Fri, 6 Oct 2023 11:41:30 -0700 (PDT) Received: by mail-qk1-x729.google.com with SMTP id af79cd13be357-7743448d88eso152652185a.2 for ; Fri, 06 Oct 2023 11:41:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696617689; x=1697222489; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=pTQdCDMp2eGh/YHKP+c6y3y1Id4XdLtxYettRApfHr0=; b=lLGpKDTCNfA2KyeqOdzRUIHzhT+XGrHpzdv4P/qGBPCyUiiZRRluHHVTd7ydPTDLmI tHub68om225oZOVwtD85eUG6R3BNWVcIK0V5rR8lT5KZDLvlyK6fFghTaA0zZNMoeh5q 7aXpKTUXXhd+6F9rB2xNGthZaUFURWFzYZK3kq9rR3EglFjUmyX1U3X37yNyFiCUlNNm 108wwwCJWFWBRvaFtohumGYeVb8z/m0GMVdUAtSJixJOG6tglZp1EqLvlX0dW3r3np6T t+eysZ8duTHGAmLkn9LBIGIUiKTYpBjGqROHUjYVgDjZkFQn0Z0GmtUHj1nh0bMGvrnR Btjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696617689; x=1697222489; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=pTQdCDMp2eGh/YHKP+c6y3y1Id4XdLtxYettRApfHr0=; b=t83ukAFiC5LNn934wjFaW3SFsh1GN5iarzkufv4Gfl/B5pfNqJQ65vC+M2pVBJggjE yh7uWAUqfAx8lBL+oFJ1D2cy3TZT8lo/R5xBHNhFtn6uFdSmr5eWD4qD4cwl0aV7aPl+ SbQYR9xnvQAZPSZY3hU4J9eit1LZ4fuJTJ6rY4gRvV4UiI+TkvrU7QKRcGg5B77l9Ti7 S/CSKbkL11pkgweos7UU6GLYnKHuvhrRVSWks+BKZgUb+WeKeu57cMv6Qw+hHuJZv5yN Lc3wAOB6bP4H/h6aSQ/LVWUNL5/Aa2+m/WQH9HMnZzGgl0IgEBxa9h/rbigxtcI9Vsbi 2VsQ== X-Gm-Message-State: AOJu0YzGQNCFOuUpYdu/IVazk1KY5YhsM6/5sqrZg9st7VMkfUcfHkjh bdev759cAWtT/g7tI21fkiFhUnAhRL4= X-Google-Smtp-Source: AGHT+IFVlXiILB3YF8BzFOz99SB7QqtAg4M+6tv8aZXCYKAH6ZPIVETKZsvWqGAtMwOfYsJjqu4u8Q== X-Received: by 2002:a05:6214:4489:b0:64f:91c2:8440 with SMTP id on9-20020a056214448900b0064f91c28440mr10082268qvb.59.1696617688859; Fri, 06 Oct 2023 11:41:28 -0700 (PDT) Received: from fionn.redhat.com ([174.88.88.29]) by smtp.gmail.com with ESMTPSA id y8-20020a0ce048000000b0065b11053445sm1593012qvk.54.2023.10.06.11.41.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 11:41:28 -0700 (PDT) Sender: John Kacur From: John Kacur To: RT Cc: Clark Williams , John Kacur Subject: [PATCH 07/17] rt-tests: pip_stress: Removed unused parameter Date: Fri, 6 Oct 2023 14:40:01 -0400 Message-Id: <20231006184011.26699-7-jkacur@redhat.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231006184011.26699-1-jkacur@redhat.com> References: <20231006184011.26699-1-jkacur@redhat.com> Precedence: bulk X-Mailing-List: linux-rt-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Removed unused parameter in pip_stress Signed-off-by: John Kacur --- src/include/pip_stress.h | 2 +- src/pi_tests/pip_stress.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/include/pip_stress.h b/src/include/pip_stress.h index f03aaf397897..84a7c0ceef7f 100644 --- a/src/include/pip_stress.h +++ b/src/include/pip_stress.h @@ -32,7 +32,7 @@ void Pthread_mutex_init(pthread_mutex_t *mutex, pthread_mutexattr_t *attr); void Pthread_mutex_lock(pthread_mutex_t *mutex); void Pthread_mutex_unlock(pthread_mutex_t *mutex); -void init_shared_pthread_mutex(pthread_mutex_t *mutex, int protocol, int policy); +void init_shared_pthread_mutex(pthread_mutex_t *mutex, int protocol); int set_rt_prio(pid_t pid, int prio, int policy); int get_rt_prio(pid_t pid); diff --git a/src/pi_tests/pip_stress.c b/src/pi_tests/pip_stress.c index c6d2bae05035..fb0391bfec0d 100644 --- a/src/pi_tests/pip_stress.c +++ b/src/pi_tests/pip_stress.c @@ -114,7 +114,7 @@ int main(int argc, char *argv[]) mptr += sizeof(pthread_mutex_t); /* advance the memory pointer */ /* Initialize our mutex via the resource pointer */ - init_shared_pthread_mutex(resource, PTHREAD_PRIO_INHERIT, policy); + init_shared_pthread_mutex(resource, PTHREAD_PRIO_INHERIT); statep = (struct State*)mptr; mptr += sizeof(struct State); @@ -125,7 +125,7 @@ int main(int argc, char *argv[]) mptr += sizeof(pthread_mutex_t); /* advance the memory pointer */ /* Initialize our State mutex */ - init_shared_pthread_mutex(statep->mutex, PTHREAD_PRIO_NONE, policy); + init_shared_pthread_mutex(statep->mutex, PTHREAD_PRIO_NONE); set_rt_prio(0, prio_min, policy); @@ -323,7 +323,7 @@ void Pthread_mutex_unlock(pthread_mutex_t *mutex) } } -void init_shared_pthread_mutex(pthread_mutex_t *mutex, int protocol, int policy) +void init_shared_pthread_mutex(pthread_mutex_t *mutex, int protocol) { pthread_mutexattr_t attr; From patchwork Fri Oct 6 18:40:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Kacur X-Patchwork-Id: 730636 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9691338F93 for ; Fri, 6 Oct 2023 18:41:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MhIYSyT0" Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3A9FB6 for ; Fri, 6 Oct 2023 11:41:30 -0700 (PDT) Received: by mail-ot1-x32a.google.com with SMTP id 46e09a7af769-6c7bbfb7a73so1598696a34.3 for ; Fri, 06 Oct 2023 11:41:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696617690; x=1697222490; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=faJ/gIIDuCFQlxulFEiad3gDSOvV+m0iud/HQw9l73E=; b=MhIYSyT0ZlvJ1606HEHdE/8x/oLrbG4wJh5Inu527oxC/1vIdkUkMvLZGiqZT/7U1V eRBvb5MIzhRU3VUr1zaERlJCH38OkOKNhiO3yJaTreTQR6VZB2xiPvmqtVbOo4WWRquF 9qnU70UsEZkYp/EYmGSh1xr/TWXfLi43OHgXQPtE2nmqXJTzvuSVONEMa1qwFb2bNqa7 HmsGlX5yHxQQTbJkSX2Aq1OtdMSjA38IIIi/75BW62vo9uX9DfWRLFK9+N8K4EQAgKt0 xmDwZo+1nW4OHn1SqhGv542UetPUnKTAQ9jMjT59B2w4ZfLYmqV3kiW9Jnzpdtb4EXYl qRdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696617690; x=1697222490; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=faJ/gIIDuCFQlxulFEiad3gDSOvV+m0iud/HQw9l73E=; b=foP1iQsdG47bvxc55LhoBZN3+hyOkmNNpkSEKOhTmZC+zCQ6Iamm+Xvl37uCzBTav8 rv8/GpgL1FQ+2nWTp9ZoHRJEbCtMIBgYZdaWABYfzJtbzbvqRiVyKIpuzdYMiKkq7ZJL 9bjniPl2v4ffOfnM8VEX4x/PeGqhincQDOpMY4CdqPiqMB7eJqesaQL0ORO0sEAa+cBM 9xKGVDTntk3DMAvbXWxp2GPHotFgMq6M1eyMetbFCV+HhNhmnTLzfszg8OCykddoPAL9 GCnlHTlbZ+ACV5KDEmmE/ktj4DsSADl/n5jMZBFBiDADHQKnyPKS00Pn+A0vKouLBn0G 9lmw== X-Gm-Message-State: AOJu0YwdUe8LN3ii1LONttWsFLJ1tEK8BTHeDWoNBZ97RCYfDd12K71n SJe7W5rpIXVkFpAUOua8k6b9einOgB8= X-Google-Smtp-Source: AGHT+IFa7DLhcrxNhzS1+QO/ku8WOk5AyL2QEjLsvY2PBKzG17+crgeyGRUqtzIsgKw8NAIOilhoTg== X-Received: by 2002:a05:6870:ac1f:b0:1b3:8d35:c85f with SMTP id kw31-20020a056870ac1f00b001b38d35c85fmr9853191oab.1.1696617689737; Fri, 06 Oct 2023 11:41:29 -0700 (PDT) Received: from fionn.redhat.com ([174.88.88.29]) by smtp.gmail.com with ESMTPSA id y8-20020a0ce048000000b0065b11053445sm1593012qvk.54.2023.10.06.11.41.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 11:41:29 -0700 (PDT) Sender: John Kacur From: John Kacur To: RT Cc: Clark Williams , John Kacur Subject: [PATCH 08/17] rt-tests: sigwaittest: Fix some warnings Date: Fri, 6 Oct 2023 14:40:02 -0400 Message-Id: <20231006184011.26699-8-jkacur@redhat.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231006184011.26699-1-jkacur@redhat.com> References: <20231006184011.26699-1-jkacur@redhat.com> Precedence: bulk X-Mailing-List: linux-rt-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Fix some warnings about unused parameters and comparisons of integers of different signedness Signed-off-by: John Kacur --- src/sigwaittest/sigwaittest.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sigwaittest/sigwaittest.c b/src/sigwaittest/sigwaittest.c index 728176a0b385..818e3a8e680a 100644 --- a/src/sigwaittest/sigwaittest.c +++ b/src/sigwaittest/sigwaittest.c @@ -384,13 +384,13 @@ static void process_options(int argc, char *argv[]) static int volatile mustshutdown; -static void sighand(int sig) +static void sighand(int sig __attribute__ ((unused))) { mustshutdown = 1; } static void print_stat(FILE *fp, struct params *receiver, struct params *sender, - int verbose, int quiet) + int verbose __attribute__ ((unused)), int quiet) { int i; @@ -435,7 +435,7 @@ static void write_stats(FILE *f, void *data) { struct params_stats *ps = data; struct params *s, *r; - unsigned int i; + int i; fprintf(f, " \"num_threads\": %d,\n", num_threads); fprintf(f, " \"thread\": {\n"); From patchwork Fri Oct 6 18:40:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Kacur X-Patchwork-Id: 730202 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7CF4F38FA0 for ; Fri, 6 Oct 2023 18:41:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nrZRRods" Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E66BEC2 for ; Fri, 6 Oct 2023 11:41:31 -0700 (PDT) Received: by mail-qk1-x735.google.com with SMTP id af79cd13be357-77428e40f71so153167585a.1 for ; Fri, 06 Oct 2023 11:41:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696617690; x=1697222490; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=Jm3fLMicBeA8ArQnrDOrAt88qAd/Ud/EaM6GzE91cyc=; b=nrZRRods2mKr/260uPWuEgczpm848zx1CpqTWPuFx1gpV84r68fWk/WHBKtUbpNqny 2Xq5wVx4l7KDudLlXOJAuxzucScXleQwb+5lXFezmKwNnLL6MCJbUcrtw/DBmi/YBSk6 fKyjFE0FrUo0hrfWKL/FVNnpJNyo8eP8lkIiah+Ik9b9TolhruK2sABy7cnVI1lcqesp zZvm/b3MC11LA8xwkI9ZuO3w7bi8HgYPl3crezXblEIr1HNgYcxRJQxyA/7LR/+ZE0L8 mim6s/zFVWYUkjV9uVSyextWFpBVpwPELjV/VsKJ3fa0mk17tej/cB9aWRipJwoRKjN9 IhFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696617690; x=1697222490; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Jm3fLMicBeA8ArQnrDOrAt88qAd/Ud/EaM6GzE91cyc=; b=GK3DBmATZugjirayp/byegLe3GYK9ytzgfeac1xTX/HZzlFpUoLZBh/79gQL6FaPou Lq8zp8cRpCXPapI1xgPXrv+lMz7zNvgJkdU/8fMtql5cSq93a8EpKjmhzLPRvxd4fVvL UlA0PFUEhfYE3Ku0hr4DKEFJtgblyPx5ynVRJAzd/teOtfffJRbw9KbJYpQ7+w6ngS+m 1wAHNiSc5d3hEQfW4luKxHhQu0J2MdtKqt5Ulgq+lBPHRtoLIywaNf5PSdQ2eRBP3VaD 2Tn7WsrBjh3hB1Sg6TaJbo+v0DmHy+mcF918UpZUu43xHyw7Pddjj+vA1IU3ma8kx7AF lxxw== X-Gm-Message-State: AOJu0YwjZCNK7aHUNxPZ30+DSTlGshp8kf8JQWke6St0ImS2BVuV5O7E vVifUaspgwiGtWyiq4ph8FuYOt1d1y0= X-Google-Smtp-Source: AGHT+IHai0dNt+hVNqPbJUBwSv6NJGBYS1Sd1RA15skDJ9e8ZYHIhtaZzWI4WpctJuK5HGiFWs8fZg== X-Received: by 2002:ad4:4aeb:0:b0:668:f33b:39a8 with SMTP id cp11-20020ad44aeb000000b00668f33b39a8mr8913595qvb.24.1696617690627; Fri, 06 Oct 2023 11:41:30 -0700 (PDT) Received: from fionn.redhat.com ([174.88.88.29]) by smtp.gmail.com with ESMTPSA id y8-20020a0ce048000000b0065b11053445sm1593012qvk.54.2023.10.06.11.41.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 11:41:30 -0700 (PDT) Sender: John Kacur From: John Kacur To: RT Cc: Clark Williams , John Kacur Subject: [PATCH 09/17] rt-tests: rt-migrate-test: Fix some warnings Date: Fri, 6 Oct 2023 14:40:03 -0400 Message-Id: <20231006184011.26699-9-jkacur@redhat.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231006184011.26699-1-jkacur@redhat.com> References: <20231006184011.26699-1-jkacur@redhat.com> Precedence: bulk X-Mailing-List: linux-rt-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net - Use attribute unused where appropriate - Change unsigned int to int for comparision Signed-off-by: John Kacur --- src/rt-migrate-test/rt-migrate-test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rt-migrate-test/rt-migrate-test.c b/src/rt-migrate-test/rt-migrate-test.c index 883e60e21bff..7b1917df12a3 100644 --- a/src/rt-migrate-test/rt-migrate-test.c +++ b/src/rt-migrate-test/rt-migrate-test.c @@ -44,7 +44,7 @@ static void setup_ftrace_marker(void) "/debugfs/tracing/trace_marker", }; int ret; - int i; + unsigned int i; for (i = 0; i < (sizeof(files) / sizeof(char *)); i++) { ret = stat(files[i], &st); @@ -354,7 +354,7 @@ static void print_results(void) } } -static void write_stats(FILE *f, void *data) +static void write_stats(FILE *f, void *data __attribute__ ((unused))) { int i; int t; @@ -489,7 +489,7 @@ static int check_times(int l) return 0; } -static void stop_log(int sig) +static void stop_log(int sig __attribute__ ((unused))) { stop = 1; } From patchwork Fri Oct 6 18:40:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Kacur X-Patchwork-Id: 730635 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E0E9738F90 for ; Fri, 6 Oct 2023 18:41:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PhqEHdts" Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF73BC6 for ; Fri, 6 Oct 2023 11:41:32 -0700 (PDT) Received: by mail-qk1-x72b.google.com with SMTP id af79cd13be357-7757f2d3956so284249885a.0 for ; Fri, 06 Oct 2023 11:41:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696617691; x=1697222491; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=MDu6Sfswb11ARYZoMqH8HTJCnPB9TedWeBm7Ujx2mm4=; b=PhqEHdtsrAV0DUcn2CY0DjV8w5/CBQrEo64swJtlXH9u4VbcwdrVm//TT7/5wmmfi/ A8di2XFGc6Og1Tj+xFBjTojXpVUtWcAbTUd3GjIM3w82sNwNNp18E7pgDrd74AIjbPGn 2qWSpfkQriEruymYGpnCDYcprQNQqzmm+8t8n0Zf14baBJ5fgRKwCYxC2J9D13hX9U9j AIvLSsH94qsX/OVbFchVb9s1Z2oHMoboRUAJ5N0hii7VxJj4R3X2u/N9aoqWvKu83NXL q/6fjAkvHGQxjuKlytZh7iO32rdJ55wJFWLTy0BXPhyJcAcVDNMZwUb2nrCauZpmQ1lU owUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696617691; x=1697222491; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=MDu6Sfswb11ARYZoMqH8HTJCnPB9TedWeBm7Ujx2mm4=; b=wUGOTUO15L/bWh6sAiJTLYwJ5BX2ftYG2hRc4RCW01Q31GsznKXt72hLTkt0l8fniQ pRtICB/1p8F6optoxpVa/LjgVSbnb+VEqQ5V6y/n4bgyGGmYslTQmGBhwwSagpA/TUOa OXT4eWDdFPTJ0Sire7CwAEaxIjSNj2X0Y31834DJlneeLFFGqPsi4/eYK/4J0hL8JvYC EYVQBwfvYXkEl5xLCiE7RjwHS4zg4eeVrjl18OD0BGIfyMcgflJVPCO9pf1e+H1QOltF z+jhIgwHfebLbqJZR+qUUgR5RVqCJAmBQYwB2+ufVr04xhYL52fBQz3ePfqKW22eXQxA Civg== X-Gm-Message-State: AOJu0YwdCpsYu25O8suXwxjz7CVxFvwYANyvzP3upkAW4hZe07N91Bhc pXNJwf0CDPuwlsQr8F+a/xcM0NXGK4g= X-Google-Smtp-Source: AGHT+IFrP+22tKv1/wQuxmyHRzCjGsilhB7kRRIEjKVwhL/mOmcXq120FMWv8cOVw3VBztX3Wo7wKA== X-Received: by 2002:a0c:f5c4:0:b0:656:3fd8:bc75 with SMTP id q4-20020a0cf5c4000000b006563fd8bc75mr8338199qvm.6.1696617691641; Fri, 06 Oct 2023 11:41:31 -0700 (PDT) Received: from fionn.redhat.com ([174.88.88.29]) by smtp.gmail.com with ESMTPSA id y8-20020a0ce048000000b0065b11053445sm1593012qvk.54.2023.10.06.11.41.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 11:41:31 -0700 (PDT) Sender: John Kacur From: John Kacur To: RT Cc: Clark Williams , John Kacur Subject: [PATCH 10/17] rt-tests: signaltest Fix unused parameter warning Date: Fri, 6 Oct 2023 14:40:04 -0400 Message-Id: <20231006184011.26699-10-jkacur@redhat.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231006184011.26699-1-jkacur@redhat.com> References: <20231006184011.26699-1-jkacur@redhat.com> Precedence: bulk X-Mailing-List: linux-rt-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Fix unused parameter warning in signal handler Signed-off-by: John Kacur --- src/signaltest/signaltest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/signaltest/signaltest.c b/src/signaltest/signaltest.c index 1cf03931b5bf..4737c253b1af 100644 --- a/src/signaltest/signaltest.c +++ b/src/signaltest/signaltest.c @@ -357,7 +357,7 @@ static void process_options(int argc, char *argv[], unsigned int max_cpus) } } -static void sighand(int sig) +static void sighand(int sig __attribute__ ((unused))) { shutdown = 1; } @@ -388,7 +388,7 @@ static void write_stats(FILE *f, void *data) { struct thread_param *par = data; struct thread_stat *s; - unsigned int i; + int i; fprintf(f, " \"num_threads\": %d,\n", num_threads); fprintf(f, " \"thread\": {\n"); From patchwork Fri Oct 6 18:40:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Kacur X-Patchwork-Id: 730201 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6F48D328A2 for ; Fri, 6 Oct 2023 18:41:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mcpoyB/6" Received: from mail-oa1-x34.google.com (mail-oa1-x34.google.com [IPv6:2001:4860:4864:20::34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15B27CA for ; Fri, 6 Oct 2023 11:41:34 -0700 (PDT) Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-1dd78b46995so1429034fac.3 for ; Fri, 06 Oct 2023 11:41:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696617693; x=1697222493; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=OznNJAkxQa61VkMM/CJVhyZpfswExKXtz11p9bWBnWA=; b=mcpoyB/678dxbz/SX+uE1r6b9DIT0L9Wazs30Upagmrui6b0PRZD8Ch6cnXnyYw4Ox 9SskMiPA3NDwrnCeVzHuDVsZXX+8i0VUQDrdyKN/yMmgy20gr13mGoWrYzWrUB1ZH18x zXss9lPA+BN+avCwQ3aqXBnROxA1I8ssMdeanoQLNt7M6uodJDggmj1kukOlVp+JrLS2 pvvCbSpCMHM5yabyGfRH64RdrjOiCgGosd1SkRIWCg0oOPgRm6LeKvqbTuwosYeY1dem kKX0eLzgOMxECuoDXh9/2i96PmmkvPDjy79v1hVdybFbMk3Kac96xpkurIHVCyMUEWPN nGyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696617693; x=1697222493; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=OznNJAkxQa61VkMM/CJVhyZpfswExKXtz11p9bWBnWA=; b=piDGwy6fMIdsv4d8qXyNrHwocB1P/Arq2/PoheoZ6llideDPhcbgCTJCOwpKhWaBZ7 8l/5/8ASHBhmnDEJhXaTvV6D9O35WzNv0F5ABjqHBQGrKY7aZcklJ6I4ZLgURADMX+ZO rWudHrAYR6dUIwebUJKbjcg/t2Iwal0ND4Wi8XmaWhuvADkTniLJup643pcTVtnXMgxp nmpkllKe9kQJhSp7zRpnMFU5/X7QHg8c7Z/gp+0N259iehpGNX5RvEKAzTrkiq8+Hp/E YLlN9LgIpNG8t3m/VHTvk6Tv8PusdcASuJ3lUir4kxrFvLjbeNed+/Y9//TIs3Avmudm 7AFQ== X-Gm-Message-State: AOJu0YxiM4j405avGhdIZ49vOdFn5m4rZPfGjFDJOgA0CDFowHNep1yl T3FQNxoFYJcyWflfEwpYP0dhc0sM4LY= X-Google-Smtp-Source: AGHT+IGh1nUHL23PvFiZ7sYJW4FsEiCKKszns/6rAHRgND7HjqSrv+wCbWlUzcLpL8E6YyS7HWKu7w== X-Received: by 2002:a05:6870:658f:b0:1bf:fd8a:826e with SMTP id fp15-20020a056870658f00b001bffd8a826emr10021075oab.55.1696617692869; Fri, 06 Oct 2023 11:41:32 -0700 (PDT) Received: from fionn.redhat.com ([174.88.88.29]) by smtp.gmail.com with ESMTPSA id y8-20020a0ce048000000b0065b11053445sm1593012qvk.54.2023.10.06.11.41.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 11:41:32 -0700 (PDT) Sender: John Kacur From: John Kacur To: RT Cc: Clark Williams , John Kacur Subject: [PATCH 11/17] rt-tests: cyclicdeadline: Fix comparison of different signedness Date: Fri, 6 Oct 2023 14:40:05 -0400 Message-Id: <20231006184011.26699-11-jkacur@redhat.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231006184011.26699-1-jkacur@redhat.com> References: <20231006184011.26699-1-jkacur@redhat.com> Precedence: bulk X-Mailing-List: linux-rt-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Fix comparison of integer expressions of different signedness Signed-off-by: John Kacur --- src/sched_deadline/cyclicdeadline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sched_deadline/cyclicdeadline.c b/src/sched_deadline/cyclicdeadline.c index b477cc7aa8ff..9bdc4b5deaf1 100644 --- a/src/sched_deadline/cyclicdeadline.c +++ b/src/sched_deadline/cyclicdeadline.c @@ -1067,7 +1067,7 @@ static void write_stats(FILE *f, void *data) { struct sched_data *sd = data; struct thread_stat *s; - unsigned int i; + int i; fprintf(f, " \"num_threads\": %d,\n", nr_threads); fprintf(f, " \"resolution_in_ns\": %u,\n", use_nsecs); From patchwork Fri Oct 6 18:40:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Kacur X-Patchwork-Id: 730634 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6A1EE328BB for ; Fri, 6 Oct 2023 18:41:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mQ/hDqlR" Received: from mail-qv1-xf30.google.com (mail-qv1-xf30.google.com [IPv6:2607:f8b0:4864:20::f30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B9E7B6 for ; Fri, 6 Oct 2023 11:41:35 -0700 (PDT) Received: by mail-qv1-xf30.google.com with SMTP id 6a1803df08f44-65b2463d663so12895656d6.0 for ; Fri, 06 Oct 2023 11:41:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696617694; x=1697222494; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=S5UGSOBnnoTjspcMGngSs0kdoliq4sRX12Mt5mGrbVI=; b=mQ/hDqlRRtn4E/nKBZOhJrjwWYM39CeGeIY94l8aui4dD8TxAvt7uxxMtTS2K+rpKt Nb57rXS9VnO+5h4r0DICdIzxwP+8J1tiKxyKWjmrnBbdVgHLLnXGUtiUP7CyKog/gniG sLU475kUPt5N0HnqwAdwzLTwLlrSdq4BSFphA4gJcCs9BRqMevYKFdMngz8xJgTrLl6H S6jB/4aZdEfIHCbv5SLBHAMftG2UxQY6wonHOrsFuydaEfah1HAJDDlfZc2FPS7CreM/ uSPqURX6MY2hW3hjmBKUpS0tJDN0DYrUK9y7HtZb9pp+7Zqzz5AnSc9pGXhHpCiZ/Jgt bDfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696617694; x=1697222494; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=S5UGSOBnnoTjspcMGngSs0kdoliq4sRX12Mt5mGrbVI=; b=kmfXMFYcVBp8hbFrDD/DZWyFdaL3y20yZ/Jw1UcWyXpuTrPgEr8psu6b3BK609uRyY +cSgFBgQYMVm6jAo8kvSD5AVcMZJ6r/2JRHPGPfFnaLXep+cj4iRT4uUQCGTGuGYyeHY CrctZ3wjTLxqzCxkbOdDSMn6LBiUzR8fc62PSJwXpYzGZvpG8QWMyg7JBVUtCRSL2M01 c13DH2pkorflk2hMdUrVqqMkYL05DwBvGhSeg//Y9/i8j/wYImo+pWqItSg/ouE1RE2H nK2D2sRRyaAacuZgFxod1yU2v4WHsVqWiHMeyk7pT7GG+vLtdXPY1PNCFc+m5SxI30Qd uIBA== X-Gm-Message-State: AOJu0Yw2j+Osf2JwZ9DRkJdS4ruBomnH+tZjSRvBX0gfQjrfS4p8bpUL xNE1aejeF/lBjvpS5KjfrOSb5obTOuI= X-Google-Smtp-Source: AGHT+IG3SajgORwPfxNmHFR5fdtKPEiFkxuqKLGfvxRXd6WZS/V0yl9bT+EZOGhY/4xQQdCJOpdotQ== X-Received: by 2002:a0c:a9d4:0:b0:65b:d75:129d with SMTP id c20-20020a0ca9d4000000b0065b0d75129dmr9005720qvb.34.1696617693920; Fri, 06 Oct 2023 11:41:33 -0700 (PDT) Received: from fionn.redhat.com ([174.88.88.29]) by smtp.gmail.com with ESMTPSA id y8-20020a0ce048000000b0065b11053445sm1593012qvk.54.2023.10.06.11.41.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 11:41:33 -0700 (PDT) Sender: John Kacur From: John Kacur To: RT Cc: Clark Williams , John Kacur Subject: [PATCH 12/17] rt-tests: cyclictest: Fix comparison of different signedness Date: Fri, 6 Oct 2023 14:40:06 -0400 Message-Id: <20231006184011.26699-12-jkacur@redhat.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231006184011.26699-1-jkacur@redhat.com> References: <20231006184011.26699-1-jkacur@redhat.com> Precedence: bulk X-Mailing-List: linux-rt-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Fix comparison of integer expressions of different signedness Signed-off-by: John Kacur --- src/cyclictest/cyclictest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c index 2542cb5ecdce..a8039b49feb6 100644 --- a/src/cyclictest/cyclictest.c +++ b/src/cyclictest/cyclictest.c @@ -1800,7 +1800,8 @@ rstat_err: static void write_stats(FILE *f, void *data __attribute__ ((unused))) { struct thread_param **par = parameters; - unsigned int i, j, comma; + int i, j; + unsigned comma; struct thread_stat *s; fprintf(f, " \"num_threads\": %d,\n", num_threads); From patchwork Fri Oct 6 18:40:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Kacur X-Patchwork-Id: 730200 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 72DDB38BBA for ; Fri, 6 Oct 2023 18:41:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MLfXWwfx" Received: from mail-qv1-xf2d.google.com (mail-qv1-xf2d.google.com [IPv6:2607:f8b0:4864:20::f2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 733D4BF for ; Fri, 6 Oct 2023 11:41:36 -0700 (PDT) Received: by mail-qv1-xf2d.google.com with SMTP id 6a1803df08f44-66b024d26e2so3966946d6.0 for ; Fri, 06 Oct 2023 11:41:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696617695; x=1697222495; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=/Y40oMdQtzwlkLQUgqVg05OcjXTzTpZiCfOaGeN8Puk=; b=MLfXWwfxpInNJiiDJaiNXJavL3byl/+nynisUMGyWWjqyCwaXHIK1yACgAS57NrlUs /FgfR24tk6zp5gmbbWz5pjbzG76HGtgtPVVFewd5C90LAPaJ6B49i1T0M/r4++TpxLuA hkuQQ6/JPW6PSj7Zg9FW82vpeeamPOL/kvprDW7XJmPvcHVxBxevtZSg/rAiMq7lVORg IGRLxK5bc+gm1VsMzAVZmThqFwNSBk5VofgOw2JiVouFpTIyGIqdAOCy1LS3SmV+HENA HR3cN+bCiobBmnE0YmlBD8Fans0o9vdzdr5lAsqTru489NAyDS1ZqDKZC8pkdfN+sk3f DwpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696617695; x=1697222495; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=/Y40oMdQtzwlkLQUgqVg05OcjXTzTpZiCfOaGeN8Puk=; b=ryA7gkEXcFEh/BTrfSz/MXBQ1arXrujPsQg18OeaetVFEJtTEBx+cem6feJReIreT7 0XlSGTohW0a50QllfHkBS4iqn6KpKiZEXsjzFAEpkxhWlLHJK2aH/hfkdzrkkiDN/IO6 nMD5wseb/Wd6HJWLtrnTNGaU8m+kArmsRLTuebqOvQc+hnneKCJVWho3YDakSyvoWc9r f7JUrA3h9fIE62pim7DlRbpSbeIi7bngX9l0dykJJ5hH+YzYynK6ubQyeh4eHhMoItir g6s/OCE6rP/8OC7cWuHna3majLp13WyxsXhrqzc5rriaImSbZA/wbF5A+XrAA8sbFohY 9TzQ== X-Gm-Message-State: AOJu0Ywd67e1cIWPsO0DWqjIV9VAiBFNYcV3GD5SKP8y7doLr8PPDmr0 5FMWD8r6vDi+bPvYkQgiXK/yZfbPKV4= X-Google-Smtp-Source: AGHT+IE1OE4zHJnDHRSapbQ6gLw2X8XcUGnljjh0YB68F+Zj1steCWoX8Q8107Rx9TMcHyrj73JdkA== X-Received: by 2002:a0c:aadc:0:b0:65b:92c:3eee with SMTP id g28-20020a0caadc000000b0065b092c3eeemr9894541qvb.15.1696617695001; Fri, 06 Oct 2023 11:41:35 -0700 (PDT) Received: from fionn.redhat.com ([174.88.88.29]) by smtp.gmail.com with ESMTPSA id y8-20020a0ce048000000b0065b11053445sm1593012qvk.54.2023.10.06.11.41.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 11:41:34 -0700 (PDT) Sender: John Kacur From: John Kacur To: RT Cc: Clark Williams , John Kacur Subject: [PATCH 13/17] rt-tests: rt-utils: Suppress warnings about fallthrough Date: Fri, 6 Oct 2023 14:40:07 -0400 Message-Id: <20231006184011.26699-13-jkacur@redhat.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231006184011.26699-1-jkacur@redhat.com> References: <20231006184011.26699-1-jkacur@redhat.com> Precedence: bulk X-Mailing-List: linux-rt-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Suppress warnings about fallthrough in a case statement where this is intended. Signed-off-by: John Kacur --- src/lib/rt-utils.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/rt-utils.c b/src/lib/rt-utils.c index 14dac5608037..6bbd25a8ba53 100644 --- a/src/lib/rt-utils.c +++ b/src/lib/rt-utils.c @@ -382,12 +382,15 @@ int parse_mem_string(char *str, uint64_t *val) case 'g': case 'G': v *= 1024; + __attribute__ ((fallthrough)); case 'm': case 'M': v *= 1024; + __attribute__ ((fallthrough)); case 'k': case 'K': v *= 1024; + __attribute__ ((fallthrough)); case 'b': case 'B': break; From patchwork Fri Oct 6 18:40:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Kacur X-Patchwork-Id: 730633 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3D7AE38F90 for ; Fri, 6 Oct 2023 18:41:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LXF0B0oj" Received: from mail-qv1-xf2b.google.com (mail-qv1-xf2b.google.com [IPv6:2607:f8b0:4864:20::f2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 702AEBE for ; Fri, 6 Oct 2023 11:41:37 -0700 (PDT) Received: by mail-qv1-xf2b.google.com with SMTP id 6a1803df08f44-65b0e623189so12124006d6.1 for ; Fri, 06 Oct 2023 11:41:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696617696; x=1697222496; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=PhK4D1Qz5w4odL0bSV80wjBn4uP73PDsNJ2TKTokZ/8=; b=LXF0B0ojOqQyuhxciKN7LWvVj8PlVJVUCudGrBgS/zsDv3EQGd3M2tL7vMTNuM6Ei9 lLzkgjrYr78RiNbMkKP/3+eSYlCL1S6fuj0apq9M+Ai6y2UWfX7MK3W8fKngdVakkblT /55dTjp9rH0/9zNOnJ8oKZTBgcKGgiN1/XT//3fX4NZRP/ojtVamWyaIhJs8L5S4qsFR sw/dsN1BcfmO940m6Py/zW7Fz9ilthlUOfJ5bOSdMfTDOTlAcvsZg7VXOjhRCAvpWntC fZyI0il3DDKK+VvlNIOqrStqxOilO8QxWjPAZqoB6hj3ZNak30uaKJRg1P/usqd9Cnw2 fG7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696617696; x=1697222496; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=PhK4D1Qz5w4odL0bSV80wjBn4uP73PDsNJ2TKTokZ/8=; b=eboU+PiQyC6RuaWQp8F3hmTzzHcvjTS9+xs+Vr+hKZk6MrzTaH/qUP5/UId23sB5ax zmq6CZWsLwh1G6rdZHTVYrSiOcyRP3Ek+uNGzogoFtSgMSPmi1fJXTkZUYdsCGaUidIP 0JCB+pT39uzdGMhvVI8dLWduXTV9x53TSrvJeH2nxml0Ip6pJtt0TCTv6E52lXLDcBI3 cjKdOhQVyhmQFJ3tohZi/qNzI7kYpBd8hMx5ArWyAUUWzV4hpxS0u6HHKopuEzO5YV7L NDZo3GTWMuIm6rEDHcNH0K/PNDwDa3mnxt9L35HkgVYhpN+iCsA+8in4MjtTFoWiStiu ZpSQ== X-Gm-Message-State: AOJu0YyJ98gaJXYDOLSJGLDLht+E5vVyrbw0nWrp6OgHlqwr4RoNmxpU mO4vBMW5szoXNSZ8roWEdQHndqGjN+0= X-Google-Smtp-Source: AGHT+IGx+t5c5wNUG6OVNsESb4jhmEPSIDzwHvoRgv2RfntQiVr3yWiwpwW6pBFqYdzsJuQPZ5YHnA== X-Received: by 2002:a05:6214:5503:b0:65b:154d:facf with SMTP id mb3-20020a056214550300b0065b154dfacfmr8744048qvb.59.1696617696195; Fri, 06 Oct 2023 11:41:36 -0700 (PDT) Received: from fionn.redhat.com ([174.88.88.29]) by smtp.gmail.com with ESMTPSA id y8-20020a0ce048000000b0065b11053445sm1593012qvk.54.2023.10.06.11.41.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 11:41:35 -0700 (PDT) Sender: John Kacur From: John Kacur To: RT Cc: Clark Williams , John Kacur Subject: [PATCH 14/17] rt-tests: rt-numa: Fix comparison of different signedness Date: Fri, 6 Oct 2023 14:40:08 -0400 Message-Id: <20231006184011.26699-14-jkacur@redhat.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231006184011.26699-1-jkacur@redhat.com> References: <20231006184011.26699-1-jkacur@redhat.com> Precedence: bulk X-Mailing-List: linux-rt-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Fix comparison of integer expressions of different signedness Signed-off-by: John Kacur --- src/lib/rt-numa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/rt-numa.c b/src/lib/rt-numa.c index 1b09cff8d948..548365f50cc4 100644 --- a/src/lib/rt-numa.c +++ b/src/lib/rt-numa.c @@ -52,7 +52,7 @@ int get_available_cpus(struct bitmask *cpumask) int cpu_for_thread_sp(int thread_num, int max_cpus, struct bitmask *cpumask) { - unsigned int m, cpu, i, num_cpus; + int m, cpu, i, num_cpus; num_cpus = numa_bitmask_weight(cpumask); From patchwork Fri Oct 6 18:40:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Kacur X-Patchwork-Id: 730199 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EFF8038F85 for ; Fri, 6 Oct 2023 18:41:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="N9JeawYI" Received: from mail-qv1-xf34.google.com (mail-qv1-xf34.google.com [IPv6:2607:f8b0:4864:20::f34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EBA7C2 for ; Fri, 6 Oct 2023 11:41:38 -0700 (PDT) Received: by mail-qv1-xf34.google.com with SMTP id 6a1803df08f44-65cff6a6878so13047436d6.1 for ; Fri, 06 Oct 2023 11:41:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696617697; x=1697222497; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=wCo+VAC9PwDLYkyqKPIGVCxN4gBvz03tRiGbiNIndZQ=; b=N9JeawYIUD6+UKSpzgKpscXao81kNsSKxjo/OAQB5GtvQPlXjALBrcHqjK+1WtH6NZ Tk/qyWmXjXUq7dmN2Kc4m5klwde0Ak+hWd0Q88AZC/0I8WxXkZZmxwFz3eLIXce0+9eb U7qdpjX/mvVScoqF065Ih1fRbUa9UK+YBzCCd6C5folphIW+a36V62v1Tb5Ud2hGfvHd vexxNQ+CYSypV4drDCj6jnMJa9rtlAwcVS8c9/c5LBRVn7shAL72yRF0xVQht9EYt8H4 umkq8IoyFcTrQvmmexAOlmGBTiIjZ9IrL8rynZkMiUPyvPf1WJQpsGvqwU1Bl3Cqodl2 nmqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696617697; x=1697222497; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=wCo+VAC9PwDLYkyqKPIGVCxN4gBvz03tRiGbiNIndZQ=; b=rC4sbuCOlPEeRYR+fy9E3cmO36rFNPrC+74u0K7OtIvwAltom+BpM/OfT22xaUu1La +2LT8K/ilRzBPWrnfm128qphPAiOX50Ex2SjYYyjJKaTRFg0R0qzQ0T39xAJkpB1iYRj 2O7mMAk+JurB6cIvcqGzFuEEmiVa85dhd25motfB0Bc0GNcLjjC4v+6QGIRSEQXWPpm0 J2CztSJYeLXtzU4aDEuVnqwJ/a2u+77g8WgCUs8edmoPnjkHjxqPybyvAwwF2JvNFEH6 kUQxDgebhmF5IUpvJkkYVHyJn7cl079Aov4HLOAZCTLn/7VaGZ/XX8BcVx0MHVGvNcj2 5LLg== X-Gm-Message-State: AOJu0Yw9RQnJKJVgHT5zqHlnuwn4JZF2z2jybR9tFAJt+Z+IOuGFRLAx CVJAksvsaRTVOqKwJlMmwdFrR5G0yiQ= X-Google-Smtp-Source: AGHT+IFhz/DoCrJq29v2KkzAtKNRBDiIxCW+OGhlfHqUSL5IWIgpj7AJ5Pc2lqnrIlg8RQacbR9HhA== X-Received: by 2002:a0c:e20a:0:b0:65b:8ce:1bd4 with SMTP id q10-20020a0ce20a000000b0065b08ce1bd4mr9420552qvl.51.1696617697236; Fri, 06 Oct 2023 11:41:37 -0700 (PDT) Received: from fionn.redhat.com ([174.88.88.29]) by smtp.gmail.com with ESMTPSA id y8-20020a0ce048000000b0065b11053445sm1593012qvk.54.2023.10.06.11.41.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 11:41:36 -0700 (PDT) Sender: John Kacur From: John Kacur To: RT Cc: Clark Williams , John Kacur Subject: [PATCH 15/17] rt-tests: pi_stress: Fix various warnings Date: Fri, 6 Oct 2023 14:40:09 -0400 Message-Id: <20231006184011.26699-15-jkacur@redhat.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231006184011.26699-1-jkacur@redhat.com> References: <20231006184011.26699-1-jkacur@redhat.com> Precedence: bulk X-Mailing-List: linux-rt-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Fix unused parameter Fix comparison of integer expressions of different signedness with casts that are safe because the parameters are first tested to see if they are less than zero Signed-off-by: John Kacur --- src/pi_tests/pi_stress.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pi_tests/pi_stress.c b/src/pi_tests/pi_stress.c index 9ce7d66751da..673a7bb472d8 100644 --- a/src/pi_tests/pi_stress.c +++ b/src/pi_tests/pi_stress.c @@ -505,7 +505,7 @@ int pending_interrupt(void) * 1. report progress * 2. check for deadlocks */ -void *reporter(void *arg) +void *reporter(void *arg __attribute__ ((unused))) { int status; int end = 0; @@ -637,7 +637,7 @@ void *low_priority(void *arg) We can't set the 'loop' boolean here, because some flags may have already reached the loop_barr */ - if (!unbounded && (p->total >= p->inversions)) { + if (!unbounded && (p->total >= (unsigned)p->inversions)) { set_shutdown_flag(); } @@ -766,7 +766,7 @@ void *med_priority(void *arg) pi_debug("med_priority[%d]: starting inversion loop\n", p->id); for (;;) { - if (!unbounded && (p->total >= p->inversions)) { + if (!unbounded && (p->total >= (unsigned)p->inversions)) { set_shutdown_flag(); } /* Either all threads go through the loop_barr, or none do */ @@ -891,7 +891,7 @@ void *high_priority(void *arg) unbounded = (p->inversions < 0); pi_debug("high_priority[%d]: starting inversion loop\n", p->id); for (;;) { - if (!unbounded && (p->total >= p->inversions)) { + if (!unbounded && (p->total >= (unsigned)p->inversions)) { set_shutdown_flag(); } @@ -1449,7 +1449,7 @@ void summary(void) t->tm_yday, t->tm_hour, t->tm_min, t->tm_sec); } -void write_stats(FILE *f, void *data) +void write_stats(FILE *f, void *data __attribute__ ((unused))) { fprintf(f, " \"inversion\": %lu\n", total_inversions()); } From patchwork Fri Oct 6 18:40:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Kacur X-Patchwork-Id: 730632 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3D95838BBA for ; Fri, 6 Oct 2023 18:41:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="IwrOCFLo" Received: from mail-qv1-xf2d.google.com (mail-qv1-xf2d.google.com [IPv6:2607:f8b0:4864:20::f2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8304CC6 for ; Fri, 6 Oct 2023 11:41:39 -0700 (PDT) Received: by mail-qv1-xf2d.google.com with SMTP id 6a1803df08f44-65b0ffbf36aso13292896d6.1 for ; Fri, 06 Oct 2023 11:41:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696617698; x=1697222498; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=+QLR26rEtIFIAqvZnRPWYEJYvQEnm0B/eNDbZ+pM48w=; b=IwrOCFLoGZV+/AQCOxrelPni2yi3CsJ+Me6rj8e0e18HFrcuUONyJ/UrqWXjGDOkZg +LsqbGVLX5Y742XUDYxzGzhqZ+4diltRwSY87DP0zZ8q7OiRNlesfCUD8Z2Bv/qsaTzo 30jNraysjQFqpp5PuuCCY8TZ8uwiAGBfKnrKZGZgOSWDj9uvxgqs0QHQqn8ot20YZzPx 5wTzWel43uDkZoAXoXOwhIzmyR93ZzyPd+L56Vio1b0lOxdUzeYx0ROLJClOTXcXlc+9 vKgNPH6FkvM4Xpa/P12Ht1HYqhSnLblPi0rbJCearrTq/Qa30L20muMcqvfVAsUG1D5l PLoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696617698; x=1697222498; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=+QLR26rEtIFIAqvZnRPWYEJYvQEnm0B/eNDbZ+pM48w=; b=tcgMlwz6/WgeoknPa9kbAYAP+d4wkje0FaXMEIVRhKRS+G8LhKR5xq93KrkLIGxN6p SCrkrL3aB7rWwtyggXyR833YXmBt8WOs0JmpvlZlkz3+vhhkAVHHE+JZ3AU/83mQoBPw JlkitjptlTf7bMdOohye65qcTOTdZxin9TFpqPN25/jBK5sgzA813GhxLonelcb9fGzx nU8mSu+edKYYSJqMOEja3hCzflLl8XwLt/Zw3WYknVr4p/YmOjnfISa7mcNxjk3VS5LL KFDLTquV86TZduc47JK76rarG+r/FXgNcGQRYT8Dk4AiQ2Q/47BSBTvUdO6HiX/oOEDF yxlQ== X-Gm-Message-State: AOJu0YxPn8IHNnOmDBK+qYQnqj5Avx2c5pDJv3uQcXzWHaBvRYuIfSr2 YCFZklT945uK45U6637jQS70nKp5IWM= X-Google-Smtp-Source: AGHT+IGVHxoF1+eGqr3nuvBj7sSJH5BIlGLOWGV8VZEftFyO7NfDm/SilkdpHP+zSc+IOvDXWNqwjA== X-Received: by 2002:a05:6214:5b0c:b0:65b:15bf:4f13 with SMTP id ma12-20020a0562145b0c00b0065b15bf4f13mr8520433qvb.65.1696617698211; Fri, 06 Oct 2023 11:41:38 -0700 (PDT) Received: from fionn.redhat.com ([174.88.88.29]) by smtp.gmail.com with ESMTPSA id y8-20020a0ce048000000b0065b11053445sm1593012qvk.54.2023.10.06.11.41.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 11:41:37 -0700 (PDT) Sender: John Kacur From: John Kacur To: RT Cc: Clark Williams , John Kacur Subject: [PATCH 16/17] rt-tests: pmqtest: Fix various warnings Date: Fri, 6 Oct 2023 14:40:10 -0400 Message-Id: <20231006184011.26699-16-jkacur@redhat.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231006184011.26699-1-jkacur@redhat.com> References: <20231006184011.26699-1-jkacur@redhat.com> Precedence: bulk X-Mailing-List: linux-rt-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Fix unused parameter warnings Fix comparison of integer expressions of different signedness Signed-off-by: John Kacur --- src/pmqtest/pmqtest.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/pmqtest/pmqtest.c b/src/pmqtest/pmqtest.c index 9e142787d8b4..b21dfa0fe0cc 100644 --- a/src/pmqtest/pmqtest.c +++ b/src/pmqtest/pmqtest.c @@ -418,13 +418,14 @@ static void process_options(int argc, char *argv[]) static int volatile shutdown; -static void sighand(int sig) +static void sighand(int sig __attribute__ ((unused))) { shutdown = 1; } -static void print_stat(FILE *fp, struct params *receiver, struct params *sender, - int verbose, int quiet) +static void print_stat(FILE *fp __attribute__ ((unused)), + struct params *receiver, struct params *sender, + int verbose __attribute__ ((unused)), int quiet) { int i; @@ -456,7 +457,7 @@ static void write_stats(FILE *f, void *data) { struct params_stats *ps = data; struct params *s, *r; - unsigned int i; + int i; fprintf(f, " \"num_threads\": %d,\n", num_threads); fprintf(f, " \"thread\": {\n"); From patchwork Fri Oct 6 18:40:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Kacur X-Patchwork-Id: 730198 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CF4E938FAB for ; Fri, 6 Oct 2023 18:41:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="T70Tbn22" Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D2C7BF for ; Fri, 6 Oct 2023 11:41:40 -0700 (PDT) Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-5a507c72d3eso30037527b3.3 for ; Fri, 06 Oct 2023 11:41:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696617699; x=1697222499; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=kqyTTd97H+4ZVsbSNfmoT1XhsjWzRAMMXo7IEVpQ34Q=; b=T70Tbn22hoRBf2rCVpqSFhLBXUMQ0fVZcaNoV3CK1GZn8MalUIusxlJdabbf8+as67 21loj7d0Pw5GmzbqnBobt6f8NotdrzVCdy/v+Ns/KLK6cjrmjh+JFwdzJAhqr4j42X0m w2iCf0TpL8Uv6rV8+m5y62uNdanYKQfigIWQTwjR3GthnxVxAlQQ+5aUTbBOy++5xmby MY1Y0PRxeMs9fD9L1RuqWXlR3mLQVb6/qUGkwTzYxy7a5blwqK4s8GpQsTeJ52YfZAkt uW71rJB4GgGFsgR6vaza4DLYYib8ELaWIhLJ34d1AnI+Yx5Ha+cbNHzIH78ikswGXWWV 2NIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696617699; x=1697222499; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=kqyTTd97H+4ZVsbSNfmoT1XhsjWzRAMMXo7IEVpQ34Q=; b=LysscLWcKHdHVm0EBKF6U8+pgcNbYUwg67+a+oNsRAEPjuMcpUDGzjx8wiQo9CweEb fzwqN2hOB3GADZROeRCrnkD1OI4n3OlI54b9XbOT0hpHgZo9ESlwstP1b6ahnwpm09b6 TeZTzUJ1q8/YV+Q4RZLLtzghBsqCc9OPbzKfcCLzihTcSnZZLqQT3P2+q4ukxvYotBEr hQd0g1T6xhUv39eQBf6bkoIOX/0z/Le3WazPGuIQKoNL/SUnD7lYXs6bITTx07oEbsAS E+qFRATI+X8A8y3MSwY/7ca4JLOsPIXUtJJi9Ti8jV/EWGLjC+FL/rqef7/0srpb/OhS Mc8g== X-Gm-Message-State: AOJu0YxYnpiGTe6bW+i5dff1W+JxjLBb00q5cJJT9n8UiN1dvHD68EDk e4v7yrWlsIQ50ZmKdGbiXFRmHb71kgY= X-Google-Smtp-Source: AGHT+IEcPJodTunx6ehM5+dBAWlj2unrFJ+nf23EaTkDbVEsXNnbMleJjYQJFtPKCGI4WP2UeMAuTg== X-Received: by 2002:a25:8e06:0:b0:d44:af:3cce with SMTP id p6-20020a258e06000000b00d4400af3ccemr9027036ybl.27.1696617699238; Fri, 06 Oct 2023 11:41:39 -0700 (PDT) Received: from fionn.redhat.com ([174.88.88.29]) by smtp.gmail.com with ESMTPSA id y8-20020a0ce048000000b0065b11053445sm1593012qvk.54.2023.10.06.11.41.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 11:41:38 -0700 (PDT) Sender: John Kacur From: John Kacur To: RT Cc: Clark Williams , John Kacur Subject: [PATCH 17/17] rt-tests: ptsematest: Fix unused paramter warnings Date: Fri, 6 Oct 2023 14:40:11 -0400 Message-Id: <20231006184011.26699-17-jkacur@redhat.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231006184011.26699-1-jkacur@redhat.com> References: <20231006184011.26699-1-jkacur@redhat.com> Precedence: bulk X-Mailing-List: linux-rt-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Fix unused paramter warnings Signed-off-by: John Kacur --- src/ptsematest/ptsematest.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/ptsematest/ptsematest.c b/src/ptsematest/ptsematest.c index a9d6c69b6449..5a29718d7bfb 100644 --- a/src/ptsematest/ptsematest.c +++ b/src/ptsematest/ptsematest.c @@ -321,13 +321,14 @@ static void process_options(int argc, char *argv[]) static int volatile shutdown; -static void sighand(int sig) +static void sighand(int sig __attribute__ ((unused))) { shutdown = 1; } -static void print_stat(FILE *fp, struct params *receiver, struct params *sender, - int verbose, int quiet) +static void print_stat(FILE *fp __attribute__ ((unused)), + struct params *receiver, struct params *sender, + int verbose __attribute__ ((unused)), int quiet) { int i; @@ -359,7 +360,7 @@ static void write_stats(FILE *f, void *data) { struct params_stats *ps = data; struct params *s, *r; - unsigned int i; + int i; fprintf(f, " \"num_threads\": %d,\n", num_threads); fprintf(f, " \"thread\": {\n");