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");