From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5B3BA332ED0 for ; Tue, 3 Feb 2026 23:56:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770162987; cv=none; b=eUgJ7VQzBj73DqWjOFiycZHylpBRWd0B+Mydz/P+9l2CLeBrB0/SZpSB3AAxVP3hZ06mkAqtPEgpZkoKn9RV//phFKK97BLL8ubQfh7ciFxT/00yQWFORnlL5uoxQ8YfEghTP+SWk/td5SKtmdO654D3mYPTCFbY91oBOBeN6Lc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770162987; c=relaxed/simple; bh=c/X2XJ/CyW+pJEphZsV9Marg9EA/Tmbv0iSdpPMCTmw=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=XDoGXXm394SpbDongYCP7u5zeTYmRKEjDYSQ9hgU/XRFdDQRMDgJJRUXSvA4V1J+QWZV84VDYWScOIIXWWIq8ArxJQUSA76YNuDAcZEv7oFp/K69pqQuGovn0kGNcuf8Ql3sDsjoz5t4FKFoVj8sVRM7vXApIBDvUf14xshz72o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=h45H5jPW; arc=none smtp.client-ip=209.85.167.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="h45H5jPW" Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-59b710d46ceso5949893e87.3 for ; Tue, 03 Feb 2026 15:56:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770162983; x=1770767783; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=Hblut01cg4liiCBRWjvcMFZ79KDKqattRzEpdMr9QyI=; b=h45H5jPW7MZwtBEIeJJDEsGDkgLUfrPV+II/8ykUyvTmZ2VOumXTbuXPfk3kV7+ZQv mxwLkkTsRMcxrpoS0STiU5vzTp1iaOSmqTvKONxq7qoW6bDgPnZfRObbn1Vw9Gwhd3ta zQ7JNctCsVQ8FnPVPvXVI7NDUXCG7SYJevzuX0UhBlw+DX6K2zVVT2M+tQBpqafZP1JI yQB5rDC4Qm5IXxL7No0pullfUmKeorqLCNsdxL6+Dd0+VWL8zEWX35HL8uDm321t2ReC pDd/PD9N9vmB7T/APQ4urbyPltlzQm5jrKjUI8shKrJ7dZiKiAyfwySSphCMCKGIQhPn wISA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770162983; x=1770767783; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Hblut01cg4liiCBRWjvcMFZ79KDKqattRzEpdMr9QyI=; b=Z85fTvwQ5y6Z3zyZOqLhpw+yFEWTmo7TgXA9rpRjQ5E0uQtKRpBmPOP3DxcXJlarwx yBs3Rj5wFMoRBXWGEs3ECimobBRn0nqeeVUyRQxJQnxKQ1YldWA+mLLBGmgl/bROaElh o84RTKP8OcRysobNxpABIP7okjYQ9suBdWBjePHB3JaA0tdMjcQqywm/7NvraJyfcZgo WlTS5Yv5v36U25gGzBV5O/K3mWAJtrPDcQ5MBydd69xmol+Dp8hdi+S0KNG2iCmiPTD3 KMr/fPyAmXtK9fjMVvpxllGuJy6Hax8cNO+YPt54UgmCzv61IuW7+uciH0EnWXfT5T+c GQNw== X-Forwarded-Encrypted: i=1; AJvYcCXC+RuIZghG5xb8Yk6DrgkF1sLV00dwjO9FmxidjWSH0MsGSCwlnF5cBgGCA93pFw2M7duIPpddkAzxpa8=@vger.kernel.org X-Gm-Message-State: AOJu0YxLYE2HJfWsmVgG9qAtvFy6k3gJU9PF8qc9ZRHfJAFRprxKE+bS S7nRq77XZw3XbqgGQ6LfLhx2TF8fD8ojJSc2CoQFfcOsqE0fA9+tZ+A5pTYKvw== X-Gm-Gg: AZuq6aJIhXbPF9BFiDBO0IwtzFdmBBJa7z7Vpb8yAXWSxUviiLB6uM+7jhdioswWxqB N3KR2C0YzcFIu7DYDD3gxhOSVpAf5jCgQzOxUPHijRum157RT0DIVt7vzyKdZ3RlQa+yOUX5Kii aZVOAazoackayfSeeHokp9wLRJqEE85hLYRNmLvJiYMxkBEEvblIzSmqvLtTci2EhpnGxy6QwJI u2Y7OAw/eDIFV5qy1pFvGBT3qDhFyFR01TbQBI2cszjJw4xcbnrixsjsJRsbK1BAWB4NYZ4PkMm deeIffqb890oJ/aynoawZSVV30E3dJseWC2PD9ORfgA73PYDHvejQwNhXchMmNUqvfPwPIwkaRI OwaGaHmVnYGEd9RVzZkezaypE9czU2fMzeTlvQK2dH/ZKwP06pCsU1ayjrxY+cg5l6ZFAjy4XNj Y/O277dVwZuYDwQ9SacvwbilQP92FSLJHgeuWT1xVsTqDpSB4+9mxl X-Received: by 2002:a5d:5f85:0:b0:435:e57a:9082 with SMTP id ffacd0b85a97d-4361805836fmr1231517f8f.46.1770156314379; Tue, 03 Feb 2026 14:05:14 -0800 (PST) Received: from pumpkin (82-69-66-36.dsl.in-addr.zen.co.uk. [82.69.66.36]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43617e250bdsm1637638f8f.2.2026.02.03.14.05.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Feb 2026 14:05:14 -0800 (PST) Date: Tue, 3 Feb 2026 22:05:12 +0000 From: David Laight To: kernel test robot Cc: Willy Tarreau , Thomas =?UTF-8?B?V2Vpw59zY2h1aA==?= , linux-kernel@vger.kernel.org, Cheng Li , oe-kbuild-all@lists.linux.dev Subject: Re: [PATCH 11/12] selftests/nolibc: Increase coverage of printf format tests Message-ID: <20260203220512.56d71f75@pumpkin> In-Reply-To: <202602031944.7j98nfRE-lkp@intel.com> References: <20260203103000.20206-12-david.laight.linux@gmail.com> <202602031944.7j98nfRE-lkp@intel.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; arm-unknown-linux-gnueabihf) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 3 Feb 2026 19:22:28 +0100 kernel test robot wrote: > Hi, > > kernel test robot noticed the following build warnings: > > [auto build test WARNING on next-20260202] > > url: https://github.com/intel-lab-lkp/linux/commits/david-laight-linux-gmail-com/tools-nolibc-printf-Move-length-check-to-snprintf-callback/20260203-183919 > base: next-20260202 > patch link: https://lore.kernel.org/r/20260203103000.20206-12-david.laight.linux%40gmail.com > patch subject: [PATCH 11/12] selftests/nolibc: Increase coverage of printf format tests > config: x86_64-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260203/202602031944.7j98nfRE-lkp@intel.com/config) > compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260203/202602031944.7j98nfRE-lkp@intel.com/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot > | Closes: https://lore.kernel.org/oe-kbuild-all/202602031944.7j98nfRE-lkp@intel.com/ > > All warnings (new ones prefixed by >>): > > nolibc-test.c: In function 'test_dirent': > nolibc-test.c:784:17: warning: 'readdir_r' is deprecated [-Wdeprecated-declarations] > 784 | ret = readdir_r(dir, &dirent, &result); > | ^~~ > In file included from nolibc-test.c:32: > /usr/include/dirent.h:185:12: note: declared here > 185 | extern int readdir_r (DIR *__restrict __dirp, > | ^~~~~~~~~ > nolibc-test.c: At top level: > >> nolibc-test.c:1654:1: warning: 'mat' attribute directive ignored [-Wattributes] > 1654 | { > | ^ > -- > >> nolibc-test.c:1654:1: warning: 'mat' attribute directive ignored [-Wattributes] > 1654 | { > | ^ > Ah, a line I spotted reading the patches that shouldn't have been there. Changed it expecting an error when I test-built the next 'round'. For some reason it didn't fail for me (maybe it needs W=1?). The line is just before expect_vfprintf() and I was looking into why the tests weren't getting printf format errors and then thinking I could stop gcc bleating about a missing format attribute - but that doesn't work because the code is testing invalid formats. David