Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1503213rbb; Mon, 26 Feb 2024 11:16:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXPhIUNAo62VMAAs+pAkP7CvvfOk3DG9tR9ubbCo/3gOAH0dudYVEsL9I0Jq0Q5C97lkPzVJL02sR4ndz0/OAkqswhexE4tyiWoRJyXPw== X-Google-Smtp-Source: AGHT+IFB+CRWq4aMk03xq7WqtEkfmV6JyHfTRXkdUupb74l3VxCpiGv7D24w45qVgngIogGoplAl X-Received: by 2002:a1f:c882:0:b0:4bd:752b:8d3d with SMTP id y124-20020a1fc882000000b004bd752b8d3dmr3965440vkf.9.1708974977001; Mon, 26 Feb 2024 11:16:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708974976; cv=pass; d=google.com; s=arc-20160816; b=HnjLJ0L5lldfLIhowlmsWRCuLE32plcvH7WCyWudlRvhAh7/8qY/2h14Pt04R8ARKo VV3TvVJkXCiKFO05WdTrhw4ftZ9S9ZZfD6SWUekUexFMBi+1VE4hRtPRmFo7eYHyIdJc 4q7oJA9uKuyJvXKGNRMQOLSTg1SyOAMfi+9uOhr5MZEpHGOjbAfa1vth8z/xOusA6tyl 2f6tjw7zERalIOxHEZKbYZrFlFvFQSq3+KHcA62Jzku25+TKctK3C1ryBHYFRK+Vp81D jue0gOBphpyO4z8XkUV8NscNUYZ1u35YrDu3eqZat1HcE+aoXotvl8aw5QSlawgv6DHI Ovlg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=lK0TKO5hYAPn3s+ymIobFdJj02ZPmu4MgAlxRWKWl1w=; fh=ZOiUZw78YDuSKEMDtMAAmh4cqNO3x4538nPaaxlot7Y=; b=YLp1z9ikXCHJzm1EvKogXBKAQgl6RBhTRtdSEQCKDAZVEXCH5L7xoyWDkJdGLR1sc3 W01DFPPLzi1oYNpzd74reff7qxDtR3feQkNrLDVVL7+LWm3jqQD1oCN+TwYXyrwQP0N5 kem1FnI4VzI0Jw76wqsoM+7MPaYVAZpwtsxSMrsquz0rGqqM3HJeXQN7YldCc8MHfVWW gWEKDau3ngcjV4YXJrzR8JEyEKyCs/fOCCUvtM1/ke5qwNN5H9j39Ir69d6us1faB+x4 sS4/WOvZqFPnhjB8yMu6/mMLOFljps90L+mVxTQf/ouGyoyBwkBFpd6k1vYGUF+gfjRB MqOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=kaiser.cx); spf=pass (google.com: domain of linux-kernel+bounces-82218-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82218-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a3-20020a056214062300b0068f74977034si5645005qvx.493.2024.02.26.11.16.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 11:16:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82218-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=kaiser.cx); spf=pass (google.com: domain of linux-kernel+bounces-82218-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82218-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 155191C20F60 for ; Mon, 26 Feb 2024 19:16:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 29269131739; Mon, 26 Feb 2024 19:13:30 +0000 (UTC) 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: 8bit 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' could be '1UL' + align = ((unsigned long) 1) << i; Signed-off-by: Martin Kaiser --- 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; for (i = 0; i < BITS_PER_LONG; i++) { - align = ((unsigned long) 1) << i; + align = 1UL << i; ptr = __vmalloc_node(PAGE_SIZE, align, GFP_KERNEL|__GFP_ZERO, 0, __builtin_return_address(0)); -- 2.39.2