From patchwork Wed Dec 6 12:42:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chandrakanth Patil X-Patchwork-Id: 13481750 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="V/iROlW6" Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A974D3 for ; Wed, 6 Dec 2023 04:41:44 -0800 (PST) Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1d0bcc0c313so17112225ad.3 for ; Wed, 06 Dec 2023 04:41:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1701866503; x=1702471303; darn=vger.kernel.org; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=LZjmE41cDtlNYwq2GAqJZbYBGjILeT6mtGSq43NQvSA=; b=V/iROlW6h099S6dL5dQjz+zKpvjV9PHKpJ9AvuaA91HxBGP4syVq0GxuEkyzw9lYrV RwMgPx2lhLuFxDTM4Lo5E60I0R4w5I9t6HRa3Xuiz/X23La1bGM4XjBvfZERZ6hJteiI N6g/QWsP3jOaIduJDCOoyWisb4mSOR+amf21M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701866503; x=1702471303; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=LZjmE41cDtlNYwq2GAqJZbYBGjILeT6mtGSq43NQvSA=; b=pHYHcbwZWzjS3WZjbdHWjk8ZNwz6lG0cCviBkeEim2CxLdr3jD5WPtBU5TuRNmI5eh 2dwtpG0K+tL/cOxUeVj3E5UrkKEdCVGIhtSbMTknK/q5MeTmnv6TukqU8n/fMkD6Vx8I KRNutwUjie+3UqXnmLr0eMdWg3PN2xXmbEbWcLN8P0MDpuQNd4DR3f/6kjG9Sh5foLje NEgnuk5Uo3baCL0zs6+m0EihGPrm9Q3EKWhX7odosWbRyGpm9sGcevj/UQmdCACanu9X M7ansAY1K/hziPnWQZR7f+QF1Vhm3sAswUwe+xmOBpByIlf1fq8NZB4305gaxlTBnSyG FmaQ== X-Gm-Message-State: AOJu0Yw26H+5hXVtcfSzHk9YzvCPNv9eO+1Om+uKwjfRLxwxsfzcwvzz QEj816a03OTvxLsArRvuspmb8DEoGJBkQP9vDHV+msxkw82kObLqftG1jQhw/5iXlrBgHCybOPU NkR0EeGd8DLgfamWm0RZTzgVuZ1DHEU1D4ofUisou8YB0Ed9kpR4ETT6jbMKrJ1vk5DWf9ct+IH DWaHTvcn1Jxdo7Q2tSpw== X-Google-Smtp-Source: AGHT+IGZvX0xOg+Zp7+SqvYN5k2DouuY5UMbea+1YKZsJCI3WDthlqcYEep6KjWw2+d1YfXLh9IzCw== X-Received: by 2002:a17:903:11c9:b0:1d0:81a3:443c with SMTP id q9-20020a17090311c900b001d081a3443cmr484168plh.113.1701866502967; Wed, 06 Dec 2023 04:41:42 -0800 (PST) Received: from dhcp-10-123-20-35.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id s24-20020a170902b19800b001d08dc3913fsm6417199plr.115.2023.12.06.04.41.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 04:41:41 -0800 (PST) From: Chandrakanth patil To: linux-scsi@vger.kernel.org, sumit.saxena@broadcom.com, sathya.prakash@broadcom.com, ranjan.kumar@broadcom.com, prayas.patel@broadcom.com Cc: Chandrakanth patil , kernel test robot Subject: [PATCH] mpi3mr: Fix wrong format specifiers Date: Wed, 6 Dec 2023 18:12:16 +0530 Message-Id: <20231206124216.16960-1-chandrakanth.patil@broadcom.com> X-Mailer: git-send-email 2.39.3 Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Fixing format specifier warnings for dma_addr_t and size_t types. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202312061817.PnTCKZE3-lkp@intel.com/ Signed-off-by: Chandrakanth patil --- drivers/scsi/mpi3mr/mpi3mr_app.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/mpi3mr/mpi3mr_app.c b/drivers/scsi/mpi3mr/mpi3mr_app.c index 4b93b7440da6..743db3bad2bd 100644 --- a/drivers/scsi/mpi3mr/mpi3mr_app.c +++ b/drivers/scsi/mpi3mr/mpi3mr_app.c @@ -948,7 +948,7 @@ static int mpi3mr_build_nvme_prp(struct mpi3mr_ioc *mrioc, if (dma_addr & page_mask) { dprint_bsg_err(mrioc, "%s:dma_addr 0x%llx is not aligned with page size 0x%x\n", - __func__, dma_addr, dev_pgsz); + __func__, (unsigned long long)dma_addr, dev_pgsz); return -1; } } @@ -1110,7 +1110,7 @@ static int mpi3mr_build_nvme_prp(struct mpi3mr_ioc *mrioc, if ((++desc_count) >= drv_buf_iter->num_dma_desc) { dprint_bsg_err(mrioc, - "%s: Invalid len %ld while building PRP\n", + "%s: Invalid len %zu while building PRP\n", __func__, length); goto err_out; }