Received: by 2002:ab2:7407:0:b0:1f4:b336:87c4 with SMTP id e7csp65058lqn; Thu, 11 Apr 2024 14:04:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWLQ3rLFtyI0qAmwybBIZDiaeHi5aMb8gvY7lwi+iFz+7b5cGXeM93DhMoC8ZoPMXzSQIbO7WA8GYv6Dw5/6/Yj6VuKr6isTIIHHKXapw== X-Google-Smtp-Source: AGHT+IGnTTyg9lcHx7nAln+l+4XyT3UHDOdKNti4gzF1jKfNFGk01LLl+uIeSsBpiIqqyki9XzSE X-Received: by 2002:a05:6a00:2312:b0:6ea:89e5:99a3 with SMTP id h18-20020a056a00231200b006ea89e599a3mr948074pfh.8.1712869459965; Thu, 11 Apr 2024 14:04:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712869459; cv=pass; d=google.com; s=arc-20160816; b=Fkd/e13F6RV46qYJx347WmrB/IiLffPzyuMWnWipfC1wyC5FS7GoZy8yJ+Vh05JScH jNyPcc8BKKgNTDcXzVX772du7H+KnUC5DV0E21g+vwnt9ic5grccFzgT3ANmKkHJk1CB K8X66gNEh2Dk3O5fdbG4YKJdkKqodXE3cca8cCE9f5y4MJiRAG3nZ8M1fM5w0Z8NbUlv ReiiTLtaR9gZm4QC4pVGHJikwMTXCJ2+iMK2xjTLwlE0KTjdBXz4bEAV+w4g3IyNGAgP 3FxkB8OJYeiQjHrAXQLmcQs/avayOfG16IeW3EOTog4pVD7WPic34vlcUxP1CcQ6Bc1w 3OnA== 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=3TuTiWcX4Y8DY4u+xZNnrYgu/EvbcTtLk+NQFTWO1Ns=; fh=gfAh78o7pzufveZHBFF00XPS+kG1nbXNdecUCrGaeOk=; b=axwOsoez+yUcwxLW49UInAhQAr03RHXwTektO5kfFcEa4Wm4fXUW8dGAjKwNUn+v8a aOyyW8LaZj6Cb9ndDNFIWv13KMYvebjkFv50zzruCOTM7wC2zgXnk0zBcD+F0IOWNG1G rls/leO/3V3qaojfXAs5zszLg/peXNiqj1IBXas1+v50HrJMGy9MSBYzrYsNPGIOV/3d uPT4CkYPDja5eJ7MjDqxTK9necrNwlwFGaeCY3BEUutNDq8WZf4RI1TtCyxIzdvF6AAw NAiUX6fWayWBd3Tx1BcIeDu9JTu7s5uJax++rQR0+QTZa3ytuX0cn572l6Ir7pXEF7hs lUHg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=A3WtTUkA; 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-141607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141607-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id m17-20020a63ed51000000b005f3c8f1f441si1853728pgk.640.2024.04.11.14.04.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 14:04:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=A3WtTUkA; 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-141607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141607-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A35BB2831AA for ; Thu, 11 Apr 2024 21:04:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9BA932BD1C; Thu, 11 Apr 2024 21:04:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="A3WtTUkA" Received: from mail-il1-f174.google.com (mail-il1-f174.google.com [209.85.166.174]) (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 817593C699 for ; Thu, 11 Apr 2024 21:04:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712869450; cv=none; b=GbnNLd37Vx3/iqIIWZryZJIPK61QFRiJM+YzxBHNZFd2xP/RIheIsrXV7hP7plX75HB3EbFbzH4PW0T8/M7jhgDPxvlSPT8G4nT5Gdd/xshC/PrDkwnbPSPzDbLBf0wFxxZq8f9FGc8VhDUx2xyM0hbNqmQGA3HX+fCQm0QgWHc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712869450; c=relaxed/simple; bh=9QuO6BYTsmplOuE/hQFARvTiNY0alp0xXqrG4P0kAo8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=M3YJhtYqSqymxroVKf0UqW+c/yNtuv9PYaIufI4fTGYUhbqWLotDoxglVyC5ottpJh5jEQa/36iHiWP+/nPwU06dlTN3CJYVqzj/0SI71p2hQyidloDUTnYMkWFuYm1JCYlHXJo0X1M9nEoZxhMk/zrdxlKtL/ywGhrdlTVfggU= 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=A3WtTUkA; arc=none smtp.client-ip=209.85.166.174 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-il1-f174.google.com with SMTP id e9e14a558f8ab-36a29832cbdso348045ab.1 for ; Thu, 11 Apr 2024 14:04:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1712869449; x=1713474249; 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=3TuTiWcX4Y8DY4u+xZNnrYgu/EvbcTtLk+NQFTWO1Ns=; b=A3WtTUkANLKjLpllh4hoR6Fbyx1lwigxuZPys/n3n5k8zv4KWeEWx8dE/8SWVmtgN3 06RS3eFtdCHvMbTQlbh3ZVFwt5JTpAujmV/ptijw7sQQf+OVM3fUAuSjZDaSzWZizMBu BfXd8M86Qyfx09tFjVhuNfO/AegVhylQttaHI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712869449; x=1713474249; 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=3TuTiWcX4Y8DY4u+xZNnrYgu/EvbcTtLk+NQFTWO1Ns=; b=spYNwXXKnKAOxFveDzC4HIADe2ZRhhc1eAmg9xO3GJs6l1E6rLAzN4X6V+svgnI2uK puf1XSRv4pC3QZjOXNuG8+gtZK4e86bAlBUJE2GQpRL9zym5gpewQAMxcw4PrZc+i4za 3VVMg5Fz1Lanf4mJy0kK3icmGiPvifVt+0hrcBI+VKOiSeCsp4fh5WPLWU8ct2wxho3G GjZFXVOhF4kJ2+ZePUJz2TLUmcRSRKtR57JqC+goqkQHsMg1/5k/9rpxurdkfHWfxjrB upOd7Y6ZS1ymVncqhzDxJgpzWiu3QuQeZPoPpuu1Wcq5JzdQZxo0QWc0/Crv/p174OgT PniA== X-Gm-Message-State: AOJu0YyzUvBopUnUqniuhZhWG3z85bYHGNtPaOD4Br+9mJrcO/Qa+YMq WFb3zxCP+wV+5ryexFBMV0uQabqtPDWLBR3WxZWjji/3aMIjy1rGUBV0sG8Mrt4= X-Received: by 2002:a5e:9247:0:b0:7d6:a165:217a with SMTP id z7-20020a5e9247000000b007d6a165217amr625104iop.2.1712869448773; Thu, 11 Apr 2024 14:04:08 -0700 (PDT) Received: from [192.168.1.128] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id g7-20020a05660226c700b007d5c66e048fsm615248ioo.34.2024.04.11.14.04.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Apr 2024 14:04:08 -0700 (PDT) Message-ID: <55e05bd2-eeaa-4baa-bb10-42ba15e67867@linuxfoundation.org> Date: Thu, 11 Apr 2024 15:04:07 -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] selftests/clone3: Fix compiler warning To: Mark Brown , Christian Brauner , Shuah Khan Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Shuah Khan References: <20240409-clone3-warning-fix-v1-1-03720200f1b4@kernel.org> Content-Language: en-US From: Shuah Khan In-Reply-To: <20240409-clone3-warning-fix-v1-1-03720200f1b4@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 4/9/24 16:24, Mark Brown wrote: > Shuah reported a compiler warning with an Ubuntu GCC 13 build, I've been > unable to reproduce it but hopefully this fixes the issue: > > clone3_set_tid.c:136:43: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=] > > Reported-by: Shuah Khan > Signed-off-by: Mark Brown > --- > tools/testing/selftests/clone3/clone3_set_tid.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/testing/selftests/clone3/clone3_set_tid.c b/tools/testing/selftests/clone3/clone3_set_tid.c > index 9ae38733cb6e..fbf813a5a06f 100644 > --- a/tools/testing/selftests/clone3/clone3_set_tid.c > +++ b/tools/testing/selftests/clone3/clone3_set_tid.c > @@ -133,7 +133,7 @@ static void test_clone3_set_tid(const char *desc, > "[%d] clone3() with CLONE_SET_TID %d says: %d - expected %d\n", > getpid(), set_tid[0], ret, expected); > > - ksft_test_result(ret == expected, "%s with %d TIDs and flags 0x%x\n", > + ksft_test_result(ret == expected, "%s with %zu TIDs and flags 0x%x\n", > desc, set_tid_size, flags); > } > > > --- > base-commit: a053fd3ca5d1b927a8655f239c84b0d790218fda > change-id: 20240409-clone3-warning-fix-89a363c6899e > > Best regards, Applied to linux-kselftest next for Linux 6.10-rc1. thanks, -- Shuah