From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1392F22157B for ; Thu, 30 Jul 2026 04:22:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785385352; cv=none; b=AXOkYrxxhmoZvIjFh8MmZKyWoPfzJytaUC8054PV5OKhNIy+Ah58Picf4N5RuE3Q+NdVZiWvfKvV/uwYB+TM5SYGd5L3q63z64/U2ute+Nt1YDS70dI3DieWj5LZ6a/V3hVePXusOyb3cpJg6isOXDqm6bzm3aGx6sOigKGZrxY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785385352; c=relaxed/simple; bh=7YLIaHjcm/QIs2wozXePyA6aiT+2iHF+phu/DX/nffQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=k4BeM+i8SkT0uzblWjWhCi0Ffb8igK/fWeyPFVOyuCodcGdoRUdCsvhSnu5Vd6kTPZZpA59ltfBbD0uyKhubjC8I2xNjQW4hfDjvYH7Y9BDb4K8sV1BB8440I8DwLPOpXs0eD6+ByULmX8Y+9JWOloMfasn3xM9TLGJ8UJk6R7w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org; spf=pass smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=VtkPDXa1; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="VtkPDXa1" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-ID:Content-Description:In-Reply-To:References; bh=vunN1+/2Q4q0bvG9XK3gNKR0DzpjasJANF9uTVA+ly8=; b=VtkPDXa1jUKQwdDCilO4Qsvdei UH3vdfl2mW5X9TY2IcjLDhcsl4pxyTXKPNG2wOBfR6po23Hwc63Ht3PLgF2wZ0WYuZ3/rfxbFvChv ZA3iNkGjGBpsTz8PpuCsUx2UHTqN7bfYGKddvNNublbOG6bMtVaMbkLFT+fGamFWCbqRkglPrqDVp tiZOsHcMCtzt8tRRPTDUKNLmBxjYhcTFC9h04gnPGOb3U5UFMRrIyY1xKaGhf88Qy2jskAySJ9i/T GQSWDw3BBjSH7EAdAo4h0tqsCR0fQkh8nGzApjRUHTiJlyR29pqXOuIQbmDFUdPkfukdC9Fr10Txk +1cUEo7w==; Received: from [50.53.43.113] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.99.1 #2 (Red Hat Linux)) id 1wpIHt-00000009TB1-0F6s; Thu, 30 Jul 2026 04:22:29 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Vitaly Lubart , Alexander Usyskin , Greg Kroah-Hartman , Arnd Bergmann Subject: [PATCH] misc: issei: hw_heci: fix dev_err format warnings Date: Wed, 29 Jul 2026 21:22:25 -0700 Message-ID: <20260730042227.595683-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.55.0 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=UTF-8 Content-Transfer-Encoding: 8bit Use "%u" instead of "%lu" to prevent dev_err format warnings: In file included from ../drivers/misc/issei/hw_heci.c:7: ../drivers/misc/issei/hw_heci.c: In function ‘heci_write_hbuf’: ../drivers/misc/issei/hw_heci.c:374:37: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘unsigned int’ [-Wformat=] 374 | dev_err(&idev->dev, "Data size %zu not aligned to slot size %lu\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/misc/issei/hw_heci.c: In function ‘heci_read_hbuf’: ../drivers/misc/issei/hw_heci.c:404:37: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘unsigned int’ [-Wformat=] 404 | dev_err(&idev->dev, "Data size %zu not aligned to slot size %lu\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Fixes: 8bf5e84998c3 ("issei: add heci hardware module") Signed-off-by: Randy Dunlap --- Cc: Vitaly Lubart Cc: Alexander Usyskin Cc: Greg Kroah-Hartman Cc: Arnd Bergmann drivers/misc/issei/hw_heci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- linux-next-20260729.orig/drivers/misc/issei/hw_heci.c +++ linux-next-20260729/drivers/misc/issei/hw_heci.c @@ -371,7 +371,7 @@ static int heci_write_hbuf(struct issei_ struct issei_heci_hw *hw = to_heci_hw(idev); if (!IS_ALIGNED(data_len, CB_SLOT_SIZE)) { - dev_err(&idev->dev, "Data size %zu not aligned to slot size %lu\n", + dev_err(&idev->dev, "Data size %zu not aligned to slot size %u\n", data_len, CB_SLOT_SIZE); return -EINVAL; } @@ -401,7 +401,7 @@ static int heci_read_hbuf(struct issei_d u32 *reg_buf = data; if (!IS_ALIGNED(data_len, CB_SLOT_SIZE)) { - dev_err(&idev->dev, "Data size %zu not aligned to slot size %lu\n", + dev_err(&idev->dev, "Data size %zu not aligned to slot size %u\n", data_len, CB_SLOT_SIZE); return -EINVAL; }