Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp1274376lqb; Thu, 18 Apr 2024 05:34:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWI6tweluGV+R2q5zME9gILla/e16hNFl1Ym+6mLIkmZc3MB5Dc1tPCw+32JdB4k78kSSV1VLv9HWNJAtq/j1jxyAOXSs2IzVklCK2c5w== X-Google-Smtp-Source: AGHT+IHoq828IjnIR2MkDT4ekV4fecRWOviFy4sJLOWUZOor7tUx/756dSKDLeKa4XyxYe/4tuc7 X-Received: by 2002:a05:6359:4e85:b0:183:9a25:852a with SMTP id os5-20020a0563594e8500b001839a25852amr3565483rwb.7.1713443690918; Thu, 18 Apr 2024 05:34:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713443690; cv=pass; d=google.com; s=arc-20160816; b=R3on3KOlw01ZC/Dpfvi3z025lNQzErWktgaSU84bA8azwtRG/e2VHeAwp0AD/msopi ufHhFGNtBZUg9gzuibOER9K6dnbhlk6T6x2pzgOpPaJ1RENoPTLnQB/fa6WBCqv6Q2ML vOFIwr6Wxny/kuUJb4Q6QT+SAAJDksaZx6MQm9YGsopc3MZ/5C+l6doXxYQVny/nP8kl QGvG2ejd6gshXs1ZIqChlFlQw/OBy0dQo2X41wDE300xEP8Hoo3zUQb4oMLwADooniAO FUP+0JgBZVtC2xxSvytOjZg34PjBW0WHZWz6NFb0y/qbdhb289dSmpWpAl8ytyxoX+Kf pIpA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=ipPrK9EjD6DeorbTfyjfvzjZb+slj22QZKPXwKOud0E=; fh=T2vcOCaX53lt8YFqB74Rym9GPgVz8sVwjksAfNSfano=; b=gil+PtkwNq/pUAlCvOHj6w+BHq8bzL5NvvzGuNoNglS5sz0oLzUg6oJSWn1N82+dzA vXxlgI5jrx1p488bQ6b0tl4943sSRyKkYdCNsr/uJYzoKcHYQMeOss/f89NrftjXM2CK 8JVMbn4Gj2bYlXVWgVMGGmBkj1tefZHb99kbZ+wMWpYlxkRtRpn4lKdNIUPgl8adB1zV 3225CbzwLH7bLxP0ecgFy3flNHvzG3yqh0Mux1a5fwUIfOMx8/tVRyVKayDopZfsLSiS 9ZNNRAzZ+yA5tE1JJH0wSWIn2QQ0KvAuSofio6sshy8YsgGJognYMy+i95zj9gEf7+zR S56g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lcXtCurw; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-150067-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150067-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ep16-20020a05622a549000b0043478a22ab0si1255500qtb.549.2024.04.18.05.34.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 05:34:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150067-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lcXtCurw; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-150067-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150067-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B50F51C2165E for ; Thu, 18 Apr 2024 12:34:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ACDE0273FC; Thu, 18 Apr 2024 12:34:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="lcXtCurw" Received: from mail-vk1-f174.google.com (mail-vk1-f174.google.com [209.85.221.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 49E611DA26 for ; Thu, 18 Apr 2024 12:34:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713443685; cv=none; b=IfhyPSzMBKSxBSa3WqjwsteYv57TVbmhcHxv2DpDYFWxdTZKpPQ9WYYvHY0lVqEO+bJ48cLCqxjMmqGlZLYiCnZcwmw11UJ0uj7j2M5tkHx4llyKgi6BkKx8qiLTfJF7kKiaXjkMTRwHx2NIRKiEuabAqWxjd0Fr1k2BSqik9Q8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713443685; c=relaxed/simple; bh=B+6GB4/OCyyStGw/ue3Vas1OEHIwT7vYsI2tWaOCaHs=; h=MIME-Version:From:Date:Message-ID:Subject:To:Cc:Content-Type; b=J4cY72dIXUdh1fIRXCncik1KpXgb3yTxGk6NsvzbczEldikafox4ukGRMe6gYDUAm77Eb+BecMaNx6rdtuqruxgzXRIkU8WCyhWoTAjL1HmaLK+cY/tOKNIP3HH0aHhyAMbwd356W/4YE/Rzafa0wLmdqGu7UWJLI4H3imbxcOA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=lcXtCurw; arc=none smtp.client-ip=209.85.221.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-vk1-f174.google.com with SMTP id 71dfb90a1353d-4db27d21a22so241177e0c.3 for ; Thu, 18 Apr 2024 05:34:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713443683; x=1714048483; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=ipPrK9EjD6DeorbTfyjfvzjZb+slj22QZKPXwKOud0E=; b=lcXtCurwUF/lilyg0KOLTApWbp1zytjntmFJMxgucBCi5v3vNOEYCkFuyY5fZ2YycA oOqDPrAI3FXf/vj9pNyCj0e2VClHniN0yBjIb1T/E1ll8u7xhlU1OVAmL8/H6P5YCH8F plgOWEjfBcQy/XfiUJDj7hTFjohWosKT7FvGcoX9dP+4uHKyTdl50ZMNVzFREU1lmsP0 pKQyGonE0wmP4BO7W62fN89nP6igp4zaD3m0yqlmy6yoOrQgqjlFRUd8LQO8aiflMo2E IYASxIlo3heVv0crZTIMkutnqRfzLyhQ7hvKlKeMHFfK9bhL4GKvVqgZGGasgfLGQuXc 430Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713443683; x=1714048483; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ipPrK9EjD6DeorbTfyjfvzjZb+slj22QZKPXwKOud0E=; b=rvKlDjD8owyBZAu4FRAlFU7KsnnkrX79FCQ3YqvRXajDrPJgA2Lca2KtDEK7HyU4gv +ZgBp1g3kdYEhvcwrzX7iwzyXOdECvGkQVdo2A10m87Lw8Vxsf7EU14ddu1o0i3tO+GJ 6usCt+5RzC/qZVpxnwbNTN1xgy4b5H4KDZGFXDPRrI4EgV1XSS09O0aBNiKaFEE3YTI3 fjPBqiO9CjrG1Ya23Eki2JPzVZddLnJ8vpjdWGvDR6ddHEgSPo+Wk22tuZjLAbBCR+PW PBFN1C8pOXPePtQjVmVSaQTe9BLd2roTJvHrm7Qu9Dq2WXB5/bq58aIpIVNJJIRyDFtR Y0AQ== X-Forwarded-Encrypted: i=1; AJvYcCXPog0w45tjjcZUhSXNBGCgB0s4eSL2PThaBr6gMvq85WmYjwqiHEJ8wjS/BlK9ubMRQn/vwpUQ7byPkeZOTNhtloX0IVylv4sIEzXY X-Gm-Message-State: AOJu0Yz5O+iJFPB/xQd8F77iKVbWbQWJ2RHc/YCPr/w3NLooPNDn8sJz wQW7sRAHPvjT70mx4WKUJwIMHcFGMIn5OqsZh7I3uG3KRDQy9LTuoyKJBm6QH8+C3hwb2Ibfb3X BoUyARL3DGnSkFO7pSTtzdnvhbchSGu6opZoS15ERoZaFj3SWJ/k= X-Received: by 2002:a05:6122:507:b0:4c8:ee1:5a0b with SMTP id x7-20020a056122050700b004c80ee15a0bmr3133353vko.15.1713443683124; Thu, 18 Apr 2024 05:34:43 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Naresh Kamboju Date: Thu, 18 Apr 2024 18:04:32 +0530 Message-ID: Subject: selftests: arm64: check_buffer_fill.c:94:93: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'char *' [-Wformat=] To: "open list:KERNEL SELFTEST FRAMEWORK" , open list , Linux ARM , lkft-triage@lists.linaro.org, Linux Regressions Cc: Mark Brown , Catalin Marinas , Arnd Bergmann , Anders Roxell , Dan Carpenter Content-Type: text/plain; charset="UTF-8" The Linux next building selftests with clang and gcc-13 found these build warnings. Reported-by: Linux Kernel Functional Testing Build log: --------- PATH: Reported build warnings noticed on following test files, selftests/arm64/mte/ * check_buffer_fill.c * mte_common_util.c check_buffer_fill.c: In function 'check_buffer_underflow_by_byte': check_buffer_fill.c:94:93: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'char *' [-Wformat=] 94 | ksft_print_msg("Buffer is not filled at index:%d of ptr:0x%lx\n", | ~~^ | | | long unsigned int | %s 95 | j, ptr); | ~~~ | | | char * mte_common_util.c: In function 'mte_default_handler': mte_common_util.c:41:101: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'long long unsigned int' [-Wformat=] 41 | ksft_print_msg("Got unexpected SEGV_MTEAERR at pc=$lx, fault addr=%lx\n", | ~~^ | | | long unsigned int | %llx 42 | ((ucontext_t *)uc)->uc_mcontext.pc, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long long unsigned int mte_common_util.c:41:48: warning: too many arguments for format [-Wformat-extra-args] 41 | ksft_print_msg("Got unexpected SEGV_MTEAERR at pc=$lx, fault addr=%lx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Steps to reproduce: --- tuxmake --runtime podman --target-arch arm64 --toolchain clang-nightly \ --kconfig https://storage.tuxsuite.com/public/linaro/lkft/builds/2fDW3nAXzFH2GOEle3S3MVC53A9/config \ LLVM=1 LLVM_IAS=1 debugkernel dtbs dtbs-legacy headers kernel kselftest modules tuxmake --runtime podman --target-arch arm64 --toolchain gcc-13 \ --kconfig https://storage.tuxsuite.com/public/linaro/lkft/builds/2fDW3wG8BqWxf0afUI5f4wkArPi/config \ debugkernel dtbs dtbs-legacy headers kernel kselftest modules Links: - https://storage.tuxsuite.com/public/linaro/lkft/builds/2fDW3nAXzFH2GOEle3S3MVC53A9/ - https://storage.tuxsuite.com/public/linaro/lkft/builds/2fDW3wG8BqWxf0afUI5f4wkArPi/ -- Linaro LKFT https://lkft.linaro.org