From nobody Wed Sep 10 23:31:03 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 4783124728E for ; Wed, 10 Sep 2025 15:16:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757517379; cv=none; b=YFBGU9DsTq8PTl8XQgsbkb8M8GE87JZTVv0fid+AtnUuCwqUAUhFnrU0P8CoN1D3bNhIWUAXwOZhjBxYBLvklovaXaKa9ve57+KNcaftHBZrQKCH0nPR3fbzPIGuPa8jSr3QH9Nr4PGHveeHyX+Y7lRm0G13fqFBjtBPopHKN/k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757517379; c=relaxed/simple; bh=Bbm13aHJLbIIgvJhFkaDEWVDL0Svbmgqs7pNdGfknDY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Y3xaDd7n7QgN9MBxQdpN3pHH/GGAyJqt3f1J2RSkgeWuu+u20z4mVDNEZJySFw6IipPryK0NM41ag8M3vag8y4F1imPOBCt5XiEGpIc3ehAT42Ergd3rXiLSCSW+soRMfeEzxsas4QS1svaLjdlGBizCUs7UNYU3+neGFwo5U80= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 53834C4CEEB; Wed, 10 Sep 2025 15:16:17 +0000 (UTC) From: Geert Uytterhoeven To: Yury Norov , Rasmus Villemoes Cc: Mary Strodl , linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven , kernel test robot Subject: [PATCH] m68k: bitops: Fix find_*_bit() signatures Date: Wed, 10 Sep 2025 17:16:13 +0200 Message-ID: X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The function signatures of the m68k-optimized implementations of the find_{first,next}_{,zero_}bit() helpers do not match the generic variants. Fix this by changing all non-pointer inputs and outputs to "unsigned long", and updating a few local variables. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202509092305.ncd9mzaZ-lkp@int= el.com/ Signed-off-by: Geert Uytterhoeven Acked-by: Yury Norov (NVIDIA) --- To be queued in the m68k tree for v6.18. arch/m68k/include/asm/bitops.h | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/arch/m68k/include/asm/bitops.h b/arch/m68k/include/asm/bitops.h index 139ec9289ff2d324..e9639e48c6c3c1da 100644 --- a/arch/m68k/include/asm/bitops.h +++ b/arch/m68k/include/asm/bitops.h @@ -350,12 +350,12 @@ static inline bool xor_unlock_is_negative_byte(unsign= ed long mask, #include #else =20 -static inline int find_first_zero_bit(const unsigned long *vaddr, - unsigned size) +static inline unsigned long find_first_zero_bit(const unsigned long *vaddr, + unsigned long size) { const unsigned long *p =3D vaddr; - int res =3D 32; - unsigned int words; + unsigned long res =3D 32; + unsigned long words; unsigned long num; =20 if (!size) @@ -376,8 +376,9 @@ static inline int find_first_zero_bit(const unsigned lo= ng *vaddr, } #define find_first_zero_bit find_first_zero_bit =20 -static inline int find_next_zero_bit(const unsigned long *vaddr, int size, - int offset) +static inline unsigned long find_next_zero_bit(const unsigned long *vaddr, + unsigned long size, + unsigned long offset) { const unsigned long *p =3D vaddr + (offset >> 5); int bit =3D offset & 31UL, res; @@ -406,11 +407,12 @@ static inline int find_next_zero_bit(const unsigned l= ong *vaddr, int size, } #define find_next_zero_bit find_next_zero_bit =20 -static inline int find_first_bit(const unsigned long *vaddr, unsigned size) +static inline unsigned long find_first_bit(const unsigned long *vaddr, + unsigned long size) { const unsigned long *p =3D vaddr; - int res =3D 32; - unsigned int words; + unsigned long res =3D 32; + unsigned long words; unsigned long num; =20 if (!size) @@ -431,8 +433,9 @@ static inline int find_first_bit(const unsigned long *v= addr, unsigned size) } #define find_first_bit find_first_bit =20 -static inline int find_next_bit(const unsigned long *vaddr, int size, - int offset) +static inline unsigned long find_next_bit(const unsigned long *vaddr, + unsigned long size, + unsigned long offset) { const unsigned long *p =3D vaddr + (offset >> 5); int bit =3D offset & 31UL, res; --=20 2.43.0