From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id C8A97C25B76 for ; Wed, 5 Jun 2024 06:17:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4B0976B0093; Wed, 5 Jun 2024 02:17:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 437BD6B0095; Wed, 5 Jun 2024 02:17:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2DB3F6B0096; Wed, 5 Jun 2024 02:17:40 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 0F7A96B0093 for ; Wed, 5 Jun 2024 02:17:40 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id C31D5121036 for ; Wed, 5 Jun 2024 06:17:39 +0000 (UTC) X-FDA: 82195828638.27.0888F73 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf06.hostedemail.com (Postfix) with ESMTP id 1B0E3180004 for ; Wed, 5 Jun 2024 06:17:37 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=Zxl6qe8B; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf06.hostedemail.com: domain of nathan@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=nathan@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1717568258; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Ki4wXXW0+pASe1nZGb5wZNKZhPivoPQ1dFewvMKw4v0=; b=602AC2Fp0/0h4ToE7tn+oeuQsWNOrm4UxFl/syy4WXqKwUA51+2ylUdvQybwWWywf2sEcf D+IJ6lMsdH3Eh+Zn5hkiKtbBn9zK9+8oZA/H9rpwAb333PQMuAyU4YAh+lSlX/yT4wVpvv vGoSPmCkTRPJmWg/1i1+jVmYs9fiosI= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=Zxl6qe8B; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf06.hostedemail.com: domain of nathan@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=nathan@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1717568258; a=rsa-sha256; cv=none; b=irZ+71YZoZoi+tT7deJ7EbShNAoIIoI/WjLw18UlISf2yAkkB4+wxKU14kNr4VbKm+Q3Gt JFFNQq7Gvx2DuKGxX3emBa2PNeTX0mAqQlDU7D6021iUFIwtzUkBMxpCoIz4n+w6RMeHae XQ8IWtZf4fEHFwAShoPdmrhFpLEgRQ0= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 056A161668; Wed, 5 Jun 2024 06:17:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B315C32781; Wed, 5 Jun 2024 06:17:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717568256; bh=yV4hXhnbkqRWbzKRQFt000wHs7U2KnsfGgFlcBTFv+w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Zxl6qe8BJtjkxN3sCVNGkgprZEMnKAOonITeplAzjP3FIJOa9JiRErHhGfYf6VqNd rPRIrPdsWU9Nj5/gPCHgKZs3Rp2Ck3LxC5oK5v7G6aewmh+mvDulRDT8tqnRhQlj5o K79JhFH+nff4GVtW7webgIy/2wYIVVZSsyyscCFFbIW2APqvR4n2Z3loxLX+81vR4A ci/KVPMSJhPsGb8ziTjHudYeHE8xrjUlxp+142EZxKlnwoIJlQINXDrjkacURrUSrs MeNUsaFCAVNWDw5Bo7X0QdxJphvnXnr7CulcxtS+CwH7NSY7ELRmy+ROM9MEXf4Blk /jhpKn4mNEooQ== Date: Tue, 4 Jun 2024 23:17:34 -0700 From: Nathan Chancellor To: kernel test robot Cc: Srinivasan Shanmugam , llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Alex Deucher , Lijo Lazar , Nick Desaulniers Subject: Re: [linux-next:master 1323/3381] drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c:333:4: error: format specifies type 'unsigned char' but the argument has type 'int' Message-ID: <20240605061734.GD279426@thelio-3990X> References: <202406050622.SmOX6DL6-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202406050622.SmOX6DL6-lkp@intel.com> X-Rspamd-Queue-Id: 1B0E3180004 X-Stat-Signature: uayr695tag9oofpnkh8aiyj5szodekyn X-Rspam-User: X-Rspamd-Server: rspam04 X-HE-Tag: 1717568257-450264 X-HE-Meta: U2FsdGVkX18Nh5nTGiITxz/Bp5iytDLnWng+CSPttnHS2CgyekY32bLdb9mUTURGfGDccK8sF9Z4IlOSMJPvrt13CSAEa/gB9x8MdQwAAulSSgsjqDbWwOaiujLmwdm89BZZ6MTEO+IlNspnMPrJeI88oI/2371ceb5cmreHFWRJFoDsFC5Wp4lT1AJ69hGtfdHB6aYVYBgvdaRAixW6e3pSQVtJHZOYwi2AjEzUz01hNEnQOelcRTe94UyoxHZwJCefP3niaoVynPRDLhpQn9up1fjYYXzd0FjSB02YhtfV/zXxTyU+RWeWY+xwb04Nda103c6EvsuItbutx8/B2fNNqucp+nAC/LhO5IfacIBHIr1jS8AkVy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Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: On Wed, Jun 05, 2024 at 06:23:57AM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > head: d97496ca23a2d4ee80b7302849404859d9058bcd > commit: 0ea55445554209913a72eab86b60f5788776c4d6 [1323/3381] drm/amdgpu: Fix snprintf usage in amdgpu_gfx_kiq_init_ring > config: arm64-randconfig-003-20240605 (https://download.01.org/0day-ci/archive/20240605/202406050622.SmOX6DL6-lkp@intel.com/config) > compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240605/202406050622.SmOX6DL6-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/202406050622.SmOX6DL6-lkp@intel.com/ > > All errors (new ones prefixed by >>): > > >> drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c:333:4: error: format specifies type 'unsigned char' but the argument has type 'int' [-Werror,-Wformat] > xcc_id, ring->me, ring->pipe, ring->queue); > ^~~~~~ > >> drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c:333:12: error: format specifies type 'unsigned char' but the argument has type 'u32' (aka 'unsigned int') [-Werror,-Wformat] > xcc_id, ring->me, ring->pipe, ring->queue); > ^~~~~~~~ > drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c:333:22: error: format specifies type 'unsigned char' but the argument has type 'u32' (aka 'unsigned int') [-Werror,-Wformat] > xcc_id, ring->me, ring->pipe, ring->queue); > ^~~~~~~~~~ > drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c:333:34: error: format specifies type 'unsigned char' but the argument has type 'u32' (aka 'unsigned int') [-Werror,-Wformat] > xcc_id, ring->me, ring->pipe, ring->queue); > ^~~~~~~~~~~ > 4 errors generated. For what it's worth, I think that we take care not to enable -Wformat with clang versions older than 16 because of this issue, see commit b0839b281c42 ("Makefile.extrawarn: re-enable -Wformat for clang; take 2") for more information. However, now that I am looking at scripts/Makefile.extrawarn, it appears that we only do that for a normal build, not W=1? That seems like a potential oversight of that change but I am a little fuzzy on the conversation around that and I am not sure Nick is around to answer that... Cheers, Nathan