Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2231816rbb; Tue, 27 Feb 2024 15:30:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWgPhsmEJOHsbMFyAu8AJL2rNRhebpJTdh0GXVC6IuDIAhy2kgNAORGujb8K7Ph6g7pR7ST9jV5HKpFo4135Ib9fydkVYWsNc6Wm88rHg== X-Google-Smtp-Source: AGHT+IFp6hzckDHGbCDZQUfHojy9K3v612SDSLU0DPFQp04vyI0nbLLdw9WE1TDb0fRMzW283iP8 X-Received: by 2002:a05:6402:5151:b0:565:7edf:41b0 with SMTP id n17-20020a056402515100b005657edf41b0mr7589060edd.6.1709076634438; Tue, 27 Feb 2024 15:30:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709076634; cv=pass; d=google.com; s=arc-20160816; b=w4qYiKYm3giV7Tx1cuXQAU2T9OcPPKL/21cccB+uyyY0VTUtUudIeQB53WaE9IhlFX vWzvmwCYWrmtBSX7uSGDN17jlEmRT4N/HxtEAvQx/0avOWtBoOh0PahUIvVzsww52xHH 2FIBBBTs1IYp+FggUspJpnqudkEDT/BnQmG7TLlHkZg1j7+PJPuNcy+fxz8xX4EmjUHN a2W893kePD+KuOtWxYB4Zx9IlymrifvGYXVsj6yOTfHvOBbIZ18aZgsskp2hnM599AV5 pQtdhACSUAOp4ezppe0JB0nJ1f6z7ds8koXxuieOHP5cRXoCSRaaft1Av1jh3TaSGy/K QjTw== 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:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=wvIY3k15tE0HcJm4Yzmaclwism7ZYGDgLaZ5F1IOoes=; fh=wHvIBD4a6exA/azJlNMqoLddfx8xkVnBZ7iir4Rh4MU=; b=jTni/ZRwxubq4WagBUdAPfZNhumdWo0v5zpKOXaj43anK/0SkPBDJlPoyxImKANBkr sy6UlhAPozcx2JRFXOzEpiMQmpxdw8PqRQsWZQF7V475oKJlsJJ3kbPB3oRgCaJyvHyu dlYvT9Y+3YO+CzGmksM0tU4EPeZpTug3tA6a8NVkeDIsZwGKJ3QCOgzLIwPUUuiNROru A2xDQn4UKrvW9Kfyf0qzUwpQfY9oWyJylp2gy3FeFpSPa6jVibH5hkyXEguYkPM8rR9t pvQ2s89SnnRgrojOq70dZ75mKrk7rCm2XbmOp2aK+DvDggYfQ4sON+GA9QVFxbr2cH1X J+8A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=Kh+uxOPi; 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-84212-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84212-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 u19-20020a50c053000000b005665eb1f03esi258531edd.472.2024.02.27.15.30.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 15:30:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84212-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=Kh+uxOPi; 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-84212-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84212-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 0D0E31F23CAD for ; Tue, 27 Feb 2024 23:30:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C1C8658121; Tue, 27 Feb 2024 23:25:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Kh+uxOPi" Received: from mail-il1-f175.google.com (mail-il1-f175.google.com [209.85.166.175]) (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 2738158100 for ; Tue, 27 Feb 2024 23:25:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709076302; cv=none; b=C+jRdxeACywo1dYqio7cjM1yyvgvIug5rXi9uP04YKzQR13K2KaDEr6ZapEmV0irOAv9dSAKKOFDkKsC49K//wjc/YaNTjp0O8fHFsvr58qcyZAH4NSZdh3QxvrOEQ1RcCmoFIXODkIXPcjuv4yH94zotKLsAqL8JDBYTbIU6PU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709076302; c=relaxed/simple; bh=HDwa7fbuH1aZDEzp5Ac6iY2RB5pkOpyq5qK/4yKHkbI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=fg8HufLgdRR4/4iB4kFKhhWDzxs4BEXq7A8Nz33jNTbP1fxImLPdjbca7IHoik7MTOLHIvtgK/56vET45+D2EuXij5sICp5vtr++jvr/zPQ2Nq4878d5evXqz00g5zd/li/ULuYdTmf0M+8RvLBLRgp5qw+DRCRf+42td7F0ljY= 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=Kh+uxOPi; arc=none smtp.client-ip=209.85.166.175 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-f175.google.com with SMTP id e9e14a558f8ab-3651ee59db4so1083175ab.0 for ; Tue, 27 Feb 2024 15:25:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1709076300; x=1709681100; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=wvIY3k15tE0HcJm4Yzmaclwism7ZYGDgLaZ5F1IOoes=; b=Kh+uxOPig0hkA0IOU0u2kAKdbxe+m8QAosuBOGvLzIsQn66kAy+K4i+PRVs4JPHw07 fgQYU/A+NjtIeojqksBpXmIleVIbSvCV54M2CqvbAmyFFgKbMb3PcWAj4K9RBebBC8Z5 5ZuUTk0HfNBmPXJnxXd1gAHVfrn+MDDQ/ZAK0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709076300; x=1709681100; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wvIY3k15tE0HcJm4Yzmaclwism7ZYGDgLaZ5F1IOoes=; b=IMSl49jFLGg2XvFCBwnSCOT40OeYnDZXopCDMhfiGKEx8j/avYxKMaa9z2/gtnF6Be oxWzeR0gxKDeEGpQmRllKsMNHoD2XQWhYwIP5bU31KUVSXh7r1fofkeV122b5cFE4vNF LZ7F5vXqEGXM2P59sYaQMBoAxDF8otq6QEZuqhQqF0NrTqdoL4yzzBu5iwptoY437dTM viPvDaVabNUp+vrHX0tN05dYeb8hEED8GbTELkyBjYgwXL7VXuPDl5rWxnTMqnA2oqVZ a2INbgeBKd6SszImkMjYAl3AtoOF7hx04AmghniXlLV7nab+RQrWzJql7ieuWe+fKa8Y TDMw== X-Forwarded-Encrypted: i=1; AJvYcCVMgp/jtIgH3nFg1Husst0b3/2l/GUp8varhPU4XQs7sqddk5L56B8Pfu3a0l7tJoEbzf8DOTmt7y2TrV3/6i7mAy35G7Dlb+2w0Bqt X-Gm-Message-State: AOJu0Yx917MnRvTxnyX0msSQ/guIl66qGsp0pn28R9sDhpiLXuIzPm81 pd2lX9jyeSqJMYLkJ+nLrKnT9fD1iOEbfJXk4l4K/nPMEQvTNlMnWdgIA6uflIQ= X-Received: by 2002:a05:6602:38d:b0:7c7:8933:2fec with SMTP id f13-20020a056602038d00b007c789332fecmr10945119iov.2.1709076300126; Tue, 27 Feb 2024 15:25:00 -0800 (PST) Received: from [192.168.1.128] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id q10-20020a02cf0a000000b004743021012asm1964451jar.2.2024.02.27.15.24.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 27 Feb 2024 15:24:59 -0800 (PST) Message-ID: Date: Tue, 27 Feb 2024 16:24:58 -0700 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 7/9] drm: tests: Fix invalid printf format specifiers in KUnit tests Content-Language: en-US To: David Gow Cc: Linus Torvalds , Guenter Roeck , Rae Moar , Matthew Auld , Arunpravin Paneer Selvam , =?UTF-8?Q?Christian_K=C3=B6nig?= , Kees Cook , =?UTF-8?Q?Ma=C3=ADra_Canal?= , Rodrigo Vivi , Matthew Brost , Willem de Bruijn , Florian Westphal , Cassio Neri , Javier Martinez Canillas , Arthur Grillo , Brendan Higgins , Daniel Latypov , Stephen Boyd , David Airlie , Maxime Ripard , "David S . Miller" , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, intel-xe@lists.freedesktop.org, linux-rtc@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-hardening@vger.kernel.org, netdev@vger.kernel.org, Shuah Khan , Justin Stitt References: <20240221092728.1281499-1-davidgow@google.com> <20240221092728.1281499-8-davidgow@google.com> <20240221212952.bqw4rdz2i2yf3now@google.com> From: Shuah Khan In-Reply-To: <20240221212952.bqw4rdz2i2yf3now@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2/21/24 14:29, Justin Stitt wrote: > Hi, > > On Wed, Feb 21, 2024 at 05:27:20PM +0800, David Gow wrote: >> The drm_buddy_test's alloc_contiguous test used a u64 for the page size, >> which was then updated to be an 'unsigned long' to avoid 64-bit >> multiplication division helpers. >> >> However, the variable is logged by some KUNIT_ASSERT_EQ_MSG() using the >> '%d' or '%llu' format specifiers, the former of which is always wrong, >> and the latter is no longer correct now that ps is no longer a u64. Fix >> these to all use '%lu'. >> >> Also, drm_mm_test calls KUNIT_FAIL() with an empty string as the >> message. gcc warns if a printf format string is empty (apparently), so > > clang does too; under -Wformat-zero-length > >> give these some more detailed error messages, which should be more >> useful anyway. >> >> Fixes: a64056bb5a32 ("drm/tests/drm_buddy: add alloc_contiguous test") >> Fixes: fca7526b7d89 ("drm/tests/drm_buddy: fix build failure on 32-bit targets") >> Fixes: fc8d29e298cf ("drm: selftest: convert drm_mm selftest to KUnit") >> Signed-off-by: David Gow > > Reviewed-by: Justin Stitt David, Please send this on top of Linux 6.9-rc6 - this one doesn't apply as is due to conflict between this one and fca7526b7d89 I think if we can fix this here - we won't problems during pull request merge. thanks, -- Shuah