Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1546580rwd; Thu, 1 Jun 2023 18:04:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ507zagFFS3kPswpe5a4TfwuwGGlqZFg/8IHr1pNIvDDZXmwkGg9CoyIfyc5bpIUjAStJls X-Received: by 2002:a54:4118:0:b0:399:4061:75f5 with SMTP id l24-20020a544118000000b00399406175f5mr945041oic.29.1685667894075; Thu, 01 Jun 2023 18:04:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685667894; cv=none; d=google.com; s=arc-20160816; b=QzMpaZplUBG5/j7bt8+nngqoZjlcRYax07hOthEgubG9WHICXfkqDtPu/n5z8NjMTs fdMi9RrL42EVM3E6oq9qH7sU07dqSSMkdNGeEtnzYSHApEZ3c5gDGavv/osWsS0QUkkk y8DMjxeqGA5ziMs5xd1TKHN4wQeu7NaF4BIYz8uXAyDFP+KF4SaCrazXGRMjscBEphtP Wucx2DTna6PQRx3F/TxKGsEnCflQyC9CdaAPBCcfQl4JqQiF5kSlGS0qbDYO2dwmvsCC G/HhhydQul4tVY3sJBaZ48jt/QFgw8+hMx3gJ7t09m4YfMWTftpRwJmfJkChS7suMGyI tAsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=V+SMbmfsF4sGGtGyf4vS5kUYzeT4B7li5wfughRR9vg=; b=qZR9gcx7qmLmyp7ezoaztm7VrE+8XJDvwx9iaitCmOlzSJvro/dggY9wIFAGHV0pRW d9flCXBmTM5ka6MYEAec3KmSvnktM7ID2SWpmOaTihok0KJYBtjfquqZEsa1AS9j/MEG 0aZyS+zlAxiVu4hzrNFNMihSXpIWhsOvNNlDAMOzexfb4qEnnDpt4E9T+wN4ec7cZCCV r0UWUzIAWrci1xmyOganFfitzn9aqplABv7/Fas9EbHcDQGqGx8P4GT0fma6E4jdJpGq UG01Ef+qJhpz5ct5jjYCrs4PlwbEE3JGHBPTQyljDpK47OP4oXIoakXSIm7G41te+lCc qhVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hyjiujli; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p11-20020a63ab0b000000b0053059dfafe4si119141pgf.86.2023.06.01.18.04.41; Thu, 01 Jun 2023 18:04:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hyjiujli; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232718AbjFBAoM (ORCPT + 99 others); Thu, 1 Jun 2023 20:44:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233158AbjFBAoK (ORCPT ); Thu, 1 Jun 2023 20:44:10 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C71541AB for ; Thu, 1 Jun 2023 17:44:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685666646; x=1717202646; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=wJ/OSP0ckFfzwVnZAaDMF9t5J0/dICf1DZ8XGD9GwWg=; b=hyjiujliRRHzvNJUo+313zXTOSf7Y9xNtjqZgRYRgxPH5T/XugFVdBQp g4B7Tdy1YMKMFxhq1SKWNJTZZAZhJUgpFuzp0dcJ0q6uGTu8gjceZOHf3 RTRnUvnMcBEvNpM6W5yKlqieGkgBVoGI3m4ep8uoy/r5mhL50+5acIzgQ Sv9C7YtgYiX9bTyDUws9LwLfaSfZfecZHewFMj3brt1UbnXqzFzRE2OP1 uO8vqQdcom1YOmeOygOHZhZRWkdWQrNRpzBXlVea0g7DTAuI7Cu0uCDUO uBDHPFuVF/BMhiJlfAVdaJgTF/2cz8jdBDC+8d8DMdhbHijemD/RB8Qtg g==; X-IronPort-AV: E=McAfee;i="6600,9927,10728"; a="353222242" X-IronPort-AV: E=Sophos;i="6.00,211,1681196400"; d="scan'208";a="353222242" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2023 17:44:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10728"; a="737318294" X-IronPort-AV: E=Sophos;i="6.00,211,1681196400"; d="scan'208";a="737318294" Received: from gsavorni-mobl1.ger.corp.intel.com (HELO intel.com) ([10.251.210.46]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2023 17:44:00 -0700 Date: Fri, 2 Jun 2023 02:43:56 +0200 From: Andi Shyti To: "Teres Alexis, Alan Previn" Cc: "joonas.lahtinen@linux.intel.com" , "Vivi, Rodrigo" , "arnd@kernel.org" , "tvrtko.ursulin@linux.intel.com" , "jani.nikula@linux.intel.com" , "arnd@arndb.de" , "intel-gfx@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , "daniel@ffwll.ch" , "airlied@gmail.com" Subject: Re: [Intel-gfx] [PATCH] drm/i915/pxp: use correct format string for size_t Message-ID: References: <20230601213624.3510244-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, On Thu, Jun 01, 2023 at 10:00:27PM +0000, Teres Alexis, Alan Previn wrote: > On Thu, 2023-06-01 at 23:36 +0200, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > While 'unsigned long' needs the %ld format string, size_t needs the %z > > modifier: > > alan:snip > > > > +++ b/drivers/gpu/drm/i915/pxp/intel_pxp_gsccs.c > > @@ -143,7 +143,7 @@ gsccs_send_message(struct intel_pxp *pxp, > > > > reply_size = header->message_size - sizeof(*header); > > if (reply_size > msg_out_size_max) { > > - drm_warn(&i915->drm, "caller with insufficient PXP reply size %u (%ld)\n", > > + drm_warn(&i915->drm, "caller with insufficient PXP reply size %u (%zd)\n", > > reply_size, msg_out_size_max); > > reply_size = msg_out_size_max; > > } > Thanks Arnd for catching this, although i believe Nathan sumbmitted a patch for the same fix yesterday and received an RB from Andi. yes, the patch is here: https://patchwork.freedesktop.org/patch/540272/?series=118593&rev=1 I'm waiting for full CI results to merge this. Thanks, Andi