From patchwork Mon Feb 26 19:11:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 206877 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2282554dyb; Mon, 26 Feb 2024 11:16:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXDwva99uvV/sTymRqA3hv28MYReGk18hx+D88uuov4ktm2BKhvuMgC/VCzlGMxrKKE8/L4SJOwhjXsjdE5yo+7ncoGvw== X-Google-Smtp-Source: AGHT+IGOCJkV3Pc9IOnLj5AAvwKQITvSzqjl2J+uvUxhbT8TxGjkUvqSQcsxLdi1YHEjPozxilHk X-Received: by 2002:a67:f5d4:0:b0:470:5080:451 with SMTP id t20-20020a67f5d4000000b0047050800451mr4457065vso.16.1708974966329; Mon, 26 Feb 2024 11:16:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708974966; cv=pass; d=google.com; s=arc-20160816; b=iXT6YZtpXNa7jkHQRJ0oq+h2euxKGh8jxFzbj7PV8ivJGtnEFT50QmACp6HYS7CVcr fXWVElfP6RjRku+FpGAzYbApAbDKZl5K/h45JBx6CTw9QG52p3cOWMIefINJ5YMV81WG X3hIR5a9dzfsMa+UlLo615GrOi/snT8ejfw5y6V0bls0PybdFHwS5tRZ0+3XrKcuU6OJ vnL3iPPGk2pUgklas/C11smWn5MCfFRuKUzds7S+5bjgeq5e8zA1de07SIaUWUgykYTD bLKVpMDdCI1iWAKoSgRViqUWpx1ofmcUEUkwsRMBkwKew8MKJ3MByqcbuWXrxutYBkXy EYRw== 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=HzDV25yVmTAmBit71mTUVypXMO/4FoVM02JpqWeItEM=; fh=ZOiUZw78YDuSKEMDtMAAmh4cqNO3x4538nPaaxlot7Y=; b=U7NuHpwun1tjVTg5iEouXexHLHPdVZYtM8bbB5/QsJJB+DPVNUZg1JCDyrPxJEi84B /N7AfqnNW57JSh/js1ekqNWJWNHPWCgr+Jw+rlQNYETkKtnFfsTmZ+oVQpHqvqnD2W6K aik4u9axg4RFzFTune4YoY6eRvAOxYe+CuH5ortF2JPFcNgbizZ+je7Ia4Us7f3fUgDX 12LjgRjKB+B9XhuVxPZTPkkps97H8Ae6yaqAEuIA9SlgpD8Iw3idVsZTgpz4iv8CzgoH 6i5wi+ZyONaQAicmX5JYf2yj3gb0Ba8wZXEx6WnMJSmHLnyO8wNuFOj6RklTcujZyqU2 umVQ==; 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-82216-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82216-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id k6-20020a67ef46000000b00471b31f347dsi661645vsr.281.2024.02.26.11.16.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 11:16:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82216-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=kaiser.cx); spf=pass (google.com: domain of linux-kernel+bounces-82216-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82216-ouuuleilei=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 1F5331C29635 for ; Mon, 26 Feb 2024 19:15:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CDCAB130E4B; Mon, 26 Feb 2024 19:13:28 +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 686111DFEB for ; Mon, 26 Feb 2024 19:13:25 +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=1708974807; cv=none; b=ugxibMvRUjPZfEwUAZf5PuVQCcrxd0Vw37zB491tClklt1B8C0il7MD+DUwe+m8JXPsK9NVDuRpex22fc8Jm34ndAbUw+pK6jDZxwuY81LuL/aUg66udGw8NeHvm2aVQrzFTmCP052epCm7HLoEW1HQd+SbyrCDDwL24Pca+DaQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708974807; c=relaxed/simple; bh=pAbmOtNM38S5447INZawtgqJysuZCh4Jqm2e5w2+338=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=JpQB12jbaZcyu/Wspst+cvBZVpTkvBf9s14SotbV08bZqvtt3ZuL/I9PU4y2ar/mucVPlvNvmEG5HKePEwc5RTh72dQJUWWi6RT9SLVUoT+7ARadghmMEouqGgM513dgoznQ3LqPNstCLB9JtbJaj35sB5EmbBCkNEyyv40F0Wc= 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 1regPO-001h9S-0X; Mon, 26 Feb 2024 20:13:02 +0100 From: Martin Kaiser To: Andrew Morton Cc: Uladzislau Rezki , linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 1/3] lib/test_vmalloc.c: fix typo in function name Date: Mon, 26 Feb 2024 20:11:57 +0100 Message-Id: <20240226191159.39509-2-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791990134596001992 X-GMAIL-MSGID: 1791990134596001992 Fix a typo and change the function name to init_test_configuration. Both caller and definition have the same typo, so the current code already works. Signed-off-by: Martin Kaiser Reviewed-by: Uladzislau Rezki (Sony) --- lib/test_vmalloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/test_vmalloc.c b/lib/test_vmalloc.c index 3718d9886407..191b6bd5dff9 100644 --- a/lib/test_vmalloc.c +++ b/lib/test_vmalloc.c @@ -501,7 +501,7 @@ static int test_func(void *private) } static int -init_test_configurtion(void) +init_test_configuration(void) { /* * A maximum number of workers is defined as hard-coded @@ -531,7 +531,7 @@ static void do_concurrent_test(void) /* * Set some basic configurations plus sanity check. */ - ret = init_test_configurtion(); + ret = init_test_configuration(); if (ret < 0) return; From patchwork Mon Feb 26 19:11:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 206899 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2296784dyb; Mon, 26 Feb 2024 11:46:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVuigoLzz3wHqzMgieSB8iXDF9WEUdtcW5D+x8FWgJQZ3dFmRMMdMAWyuHL1AC9dMWLQDCkuO83hLAYn+2kSJUNh++zwg== X-Google-Smtp-Source: AGHT+IHGzG0qKDTLkfv28FW9I/8CW1uXYW15/P6Xp2AfHXqe6iVwpe06Bo72A7wpY8Tf3kztTIUn X-Received: by 2002:a17:902:d2c2:b0:1db:e7a4:90a8 with SMTP id n2-20020a170902d2c200b001dbe7a490a8mr8374473plc.10.1708976790375; Mon, 26 Feb 2024 11:46:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708976790; cv=pass; d=google.com; s=arc-20160816; b=IK+MbwGv8pFuBUYHM2U1FinAf3NK9OeTy0E5R4o9kkj7pHzWMjf/Qt3J7Tncm2Tezd VUfLFmI0hLyrthTeI/ERV2wzdf/FCyg8QxgAvsY98OkWXkn4Wf/Zm5omhTU/8zt3MBjr JCwSI2g8jd5Gs8Ik+mMqPljoMI+jLzp5npt1JvJ8mVP2CsYaFuAfXbWxSOrfZAw1AunT NojUqPCq40yw/c1ny+/n791DDGzImYhSQXq7KTseBuQ4I2XKYsF8izautiaRAa9KzCVR PpXEdUgHe8TpSRT2R6O00zzeBQCimiW0M5kGosbmGCnwXrR7dhyY9EQqeAhaTxA57dpa kA4w== 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=Ck2bvUAeSScyvxh/3w8glXbW3nOpf86uMvVyHoFUnc8=; fh=ZOiUZw78YDuSKEMDtMAAmh4cqNO3x4538nPaaxlot7Y=; b=LtL79tGpLdZYxsREl2xIbkIpU0B1zMaJ5A8mJwbR5GexOcueJofSQn9J+kwoFVaAxe Y3gbqUccocu08ZlVxq0N99wYYs8BFb8YRQWGGIdFFJS48G5urQT5gcuNQ1tO369eB92N msi0GQ5xuDLnokFy6S4T/r/xYjT5duH0dssBP1IeoatGMKSy2NVNGptVTZZtnRtGGHRW OkIolkT1Kmgg5Iwf70JR4xoQSozbsUf8N1Lohir9Z0xUE5nsbffZKTjrrA7DbCoYaypY 6q/bPSitva8yxFd+Y4OS3Y00aK6rcFqJCIXqDOPCFAq95Ee+5jJQYgRNan4+6NjrbC/b Q8tQ==; 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-82217-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82217-ouuuleilei=gmail.com@vger.kernel.org" Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id p12-20020a1709028a8c00b001d9f4d7b31esi75653plo.508.2024.02.26.11.46.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 11:46:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82217-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=kaiser.cx); spf=pass (google.com: domain of linux-kernel+bounces-82217-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82217-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 524A2B2DE69 for ; Mon, 26 Feb 2024 19:16:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 29A0513173A; 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 7F6E612FF8E for ; Mon, 26 Feb 2024 19:13:26 +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=1708974808; cv=none; b=ZWvhc66Gw6/hU4Mv9CJOMwIa60N22bFCh8isLCqUal+5zNZy3wgOoWNkjlkXr/V3Pn44y405AArp/qrnKC7LC+TWpFYS0TuD1+oSofdyyC8qg+CKmRsXngtR2FFkWdIMkDw/2jVHKZoOfh9Q9BEl5eC9vR0scUjwPsI6aYeoxns= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708974808; c=relaxed/simple; bh=EB1BnjvStlE/zAy+upOpHVeXAZqFpUO5iqpwHdU1S+M=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=k3nnahOEMY0iH53t38WL+3F9XWrtn/sB/pW2Hgi4jT2ETdn7L6Dx2SVYyrLy+QEr7ixqUquNeIZIzl3BYiaah+ruEDymWIjsGkT++FbN5V6UOo19gpKsCJSvephifK30K/+rVOSpqxXH9fkHXJ9ITyfBe3yNoBRldj0kK8Mc+Tk= 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 1regPP-001h9S-0g; Mon, 26 Feb 2024 20:13:03 +0100 From: Martin Kaiser To: Andrew Morton Cc: Uladzislau Rezki , linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 2/3] lib/test_vmalloc.c: drop empty exit function Date: Mon, 26 Feb 2024 20:11:58 +0100 Message-Id: <20240226191159.39509-3-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791992046768768647 X-GMAIL-MSGID: 1791992046768768647 The module is never loaded successfully. Therefore, it'll never be unloaded and we can remove the exit function. Signed-off-by: Martin Kaiser Reviewed-by: Uladzislau Rezki (Sony) --- lib/test_vmalloc.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/test_vmalloc.c b/lib/test_vmalloc.c index 191b6bd5dff9..d0c0cbe1913d 100644 --- a/lib/test_vmalloc.c +++ b/lib/test_vmalloc.c @@ -600,12 +600,7 @@ static int vmalloc_test_init(void) return -EAGAIN; /* Fail will directly unload the module */ } -static void vmalloc_test_exit(void) -{ -} - module_init(vmalloc_test_init) -module_exit(vmalloc_test_exit) MODULE_LICENSE("GPL"); MODULE_AUTHOR("Uladzislau Rezki"); From patchwork Mon Feb 26 19:11:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 206892 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2294402dyb; Mon, 26 Feb 2024 11:41:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCULUzBHdenjHhwQQ0j3EQ9mUyj7CmNkduMlIx8zsh/YnepLkSwNw6rdbv0s8tEPShAmlpJqXXIsyS0WdqM2XLaAkQv7IA== X-Google-Smtp-Source: AGHT+IHg6qhbQJ4x4yvs+bOvY57lTmbZO74MPvMJJgfhlNejA9LUO8kiJnkUpgx3GEqZSRVG6AOE X-Received: by 2002:a17:90b:480b:b0:29a:b67b:fe5e with SMTP id kn11-20020a17090b480b00b0029ab67bfe5emr4033087pjb.36.1708976461730; Mon, 26 Feb 2024 11:41:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708976461; cv=pass; d=google.com; s=arc-20160816; b=snQbzbsesZHb6bXJLAiY273OCnDyTIhz5sBRmzYjbXeU9UVJBanMj1iqy3PhuzyJBM h5+M/61PdDCPzq5sgq/BWMCV/2hSLyNFlTV7TLMOssgi1G4WzHxZZVdegxTQVxlANqDF WQLR2xBz6/iYNBrnzVXfnWilJeuKqgRsN6gJxasOtYEb7y3DMl6k5Q41jxD4Poklj4TT 38AaLfSywP7Mkk7WMHfbqbuPk1bMZx2144RX6dF9Wdy09IjBWcHUZyCqjUwLc56jV5nI LEjgRr1tJIxRVk9mW1vFerXbWnhHg0djJwfxFPeqvlBExMJKy4+grL5TI3Z5npA88EDM VCSA== 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-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82218-ouuuleilei=gmail.com@vger.kernel.org" Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id my12-20020a17090b4c8c00b0029ad60a63aasi898802pjb.142.2024.02.26.11.41.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 11:41:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82218-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=kaiser.cx); spf=pass (google.com: domain of linux-kernel+bounces-82218-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82218-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 079ADB2DF88 for ; Mon, 26 Feb 2024 19:16:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3CA4613175A; Mon, 26 Feb 2024 19:13:31 +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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791991702118619116 X-GMAIL-MSGID: 1791991702118619116 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 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; 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));