From nobody Mon Feb 9 20:58:50 2026 Received: from akranes.kaiser.cx (akranes.kaiser.cx [152.53.16.207]) (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 7D5C4130AF3 for ; Mon, 26 Feb 2024 19:13:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=152.53.16.207 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708974809; cv=none; b=DS/pgP+/wIl9MWfuTaNfTHPNCTDLGlGiJdl4tvWfYhfihPtvUP5UgEgI8pDL3wIQy5k5QbJTGzZLb3Oj9MvCw4IMJ3DcMOhn3EGUZZZXuFJBTZXpvWzOrA9TDVlEkjxkEke1vuBxkj9kVedfrX8U637uYpnU9L4boN3aI+nLurQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708974809; c=relaxed/simple; bh=E1OsgKPBvfp3gZK5Z9YheV3ogwQncmYEzQNRgaWN4iA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=P8PgEiG2WjeZl7sPgqEV3bVAbfT7dWXFjmfklrjgRaUsniPd2gBdrzN7Q568TQBF3Gqo55RTOA1+JqAlx+wQUQDoouJL1zEN8Y0qi28msSLDLQhtXg7gm6qJ8K5E9r5T0/rKvqh280wIUj5V2rAr8Sp6goZBk3vrP9Z2J5Cr2q8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kaiser.cx; spf=pass smtp.mailfrom=kaiser.cx; arc=none smtp.client-ip=152.53.16.207 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kaiser.cx Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kaiser.cx Received: from dslb-188-097-209-155.188.097.pools.vodafone-ip.de ([188.97.209.155] helo=martin-debian-2.paytec.ch) by akranes.kaiser.cx with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1regPQ-001h9S-0w; Mon, 26 Feb 2024 20:13:04 +0100 From: Martin Kaiser To: Andrew Morton Cc: Uladzislau Rezki , linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 3/3] lib/test_vmalloc.c: use unsigned long constant Date: Mon, 26 Feb 2024 20:11:59 +0100 Message-Id: <20240226191159.39509-4-martin@kaiser.cx> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240226191159.39509-1-martin@kaiser.cx> References: <20240226191159.39509-1-martin@kaiser.cx> 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" Use an unsigned long constant instead of an int constant and a cast. This fixes the checkpatch warning WARNING: Unnecessary typecast of c90 int constant - '(unsigned long) 1' cou= ld be '1UL' + align =3D ((unsigned long) 1) << i; Signed-off-by: Martin Kaiser Reviewed-by: Uladzislau Rezki (Sony) --- lib/test_vmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/test_vmalloc.c b/lib/test_vmalloc.c index d0c0cbe1913d..4ddf769861ff 100644 --- a/lib/test_vmalloc.c +++ b/lib/test_vmalloc.c @@ -117,7 +117,7 @@ static int align_shift_alloc_test(void) int i; =20 for (i =3D 0; i < BITS_PER_LONG; i++) { - align =3D ((unsigned long) 1) << i; + align =3D 1UL << i; =20 ptr =3D __vmalloc_node(PAGE_SIZE, align, GFP_KERNEL|__GFP_ZERO, 0, __builtin_return_address(0)); --=20 2.39.2