From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F2239336EE9 for ; Fri, 13 Mar 2026 13:49:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773409788; cv=none; b=DKTg++rhDTgneLR6ZEQqkBoc0mmv2a26Zk5Sb4FUQGdf00tkkp7JgBoAID1h7TAeuVTUu0NA6aZ3GIMtrTtnqL7CbgJMusSsUsAmFVGqcZjKDJD2hsVvQ9CXmZHuCWJ34XXlaTHtm2k9YjaS4wvMM6aQagsSCgRnt4BWh8E7zLM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773409788; c=relaxed/simple; bh=YnMpR5lPf3jSw6eLZ2NQ2f7yK7YQfgoM19JHXNaU8t0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mtBbKV7SMaH/YlTJWy5fPR+i/r7AbRAJ4lc8plBo23UzXwbhI49LveG7+XBS3x4ZkDmsTozlnWpnQ22DwHOg3NLQXMzLNgoo888wPRsgbcEFIdSh6mtXUNROa1AVIKJ5k8rT879SGb3hKqLO3C11TSVJHCQ8W7/ewzfZE1hJfwc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=CHJCCrhW; arc=none smtp.client-ip=209.85.128.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="CHJCCrhW" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-4853e1ce427so24863745e9.3 for ; Fri, 13 Mar 2026 06:49:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1773409785; x=1774014585; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=OsPkNs24DyC+gYfgTurZrSgEcJz7fKbx1x9/mf6V/yY=; b=CHJCCrhWr9o+Ul9M/PQqTCw13cGwo5x0ij+zq5fpiLtvHxY3+l6ywUQqC4RobF2bwY VqScN1GMmesrsGZHS7kznPZt2Sj1E1u3PFovoxcnUjS6U+uNqqo/ppvH9yYLFrzeQ4uK 6zsVgdZnJKSRFpD8TsmBB02rmnpIh6HXQye+/lvn9uSL+JFpxDrZiZJUOpunVU1yZNn1 5HweSkc42Kj/d41M95OKA+NeAGkYGFOmmCj5QJEZ2JSAXW8VeRFASvthu+RMffrCZMBk B1Ri0PXUk3/DGZrglQKXHH/Zf0owc50UhW4GlqBGopgcAg8xs6EA+R39l540SAtcW94A ovrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773409785; x=1774014585; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=OsPkNs24DyC+gYfgTurZrSgEcJz7fKbx1x9/mf6V/yY=; b=jsthWIn0xdj6x8W/6eArWJmefdvASUjL8kJMw4EAQDpU4UdBguZPito2IZj6ZN54WX +cKoB+3h9vh19qLOh3zmKrWhLWhKCUeUnfyvI9I/jGkc0EWQtgYYOjBPS7affCB6DY2v Tbq+u6EPZlcc4NddlvXzfsF36RNnGMxwSFBkuviHHWQsphsmRF0qrk3tTnEZT0YSxVwy pq5imtv4ZlO3XGM6TvSXgY2sCOWLDyk5KpaNyxsxcLxtO3ZkZn45qloibkC74UPuDOYY bkaOdkhjfA6ChPsVq0NscrKv97CSrpxQGrurl2DxYsWAltp0K0xDZOhCkeTdfZiCvLDs 1bTw== X-Forwarded-Encrypted: i=1; AJvYcCVuU5IhoyyvMQy1ErA+08jfvGI6/LwrbWeJw/KI7jod3CUl78yUxGomRf914nJ6jDfRaYwLhgVIwRIQqJM=@vger.kernel.org X-Gm-Message-State: AOJu0Ywa87eK6fXXKh9RGBlJ2WXNiRp59WY8Th2W9bItoYQ/36eM0lZk uiE0UkBw42sWLDk/E5RrJWFriJixprfuoe86b89+XSUF0aMUQygAcCJu9IHSdzem5Uk= X-Gm-Gg: ATEYQzyoykP31wLYOYQHsa9vkHMs0wJYj1RyVgtLuyqSCFdagQ/U1NyZlgyqtY9ktBi 1vWtKOsj0Ee250mDnx0HkdlsiRmRPFCgF39vql5+vb41la9+3eXATPCDu/BE6SORW181QL/ulG2 NI5N30J6ru00Bf+BXlf1J947OLFACRgTvqCAJlk1cw4s/4EHBxruI7bbEG9QOSLKKXlMnPitqhZ 3dpuQohdJJB+xidJzGWxiF12YC4jeE5Afoj1aVIFmEgTocu5vdZzlPL1XY8uRLyxxA3APAiCPz9 VRSIrOk5n6BLqTJDZHVBr+0VjtI6YybroaJ2W6+SNnXFTxUgLBzWMMQLbvNR1FPjJUGLvHpM+wk b7gMQKXdijKAdxe71uxzXLJ8N+wRnpPIYWVEs6h1BUV87625lWmIvWQBk8LZS3uYPSGuOiB/rM2 Mx5YaUKOkXfADbUzCVg6q+KsghsiALOSqYi58X0mS+ X-Received: by 2002:a05:600c:1e8c:b0:483:6d42:25c6 with SMTP id 5b1f17b1804b1-4855670bf36mr54422955e9.23.1773409785065; Fri, 13 Mar 2026 06:49:45 -0700 (PDT) Received: from zovi.suse.cz (nat2.prg.suse.com. [195.250.132.146]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4854b66e3f8sm206491865e9.14.2026.03.13.06.49.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Mar 2026 06:49:44 -0700 (PDT) From: Petr Pavlu To: Luis Chamberlain , Petr Pavlu , Daniel Gomez , Sami Tolvanen Cc: Christophe Leroy , Aaron Tomlin , Greg Kroah-Hartman , "Rafael J. Wysocki" , Danilo Krummrich , linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/3] module: Fix freeing of charp module parameters when CONFIG_SYSFS=n Date: Fri, 13 Mar 2026 14:48:01 +0100 Message-ID: <20260313134932.335275-1-petr.pavlu@suse.com> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Fix freeing of charp module parameters when CONFIG_SYSFS=n and, related to this, update moduleparam.h to keep its coding style consistent. Changes since v1 [1]: * Remove the extern keyword from the declaration of module_destroy_params() and update the type of its num parameter from `unsigned` to `unsigned int`. * Add a cleanup patch for parse_args() to similarly update its num parameter to `unsigned int` and to synchronize the parameter names between its prototype and definition. * Add a cleanup patch to drop the unnecessary extern keyword for all function declarations in moduleparam.h. [1] https://lore.kernel.org/linux-modules/20260306125457.1377402-1-petr.pavlu@suse.com/ Petr Pavlu (3): module: Fix freeing of charp module parameters when CONFIG_SYSFS=n module: Clean up parse_args() arguments module: Remove extern keyword from param prototypes include/linux/moduleparam.h | 100 +++++++++++++++++------------------- kernel/module/main.c | 4 +- kernel/params.c | 29 +++++++---- 3 files changed, 68 insertions(+), 65 deletions(-) base-commit: 0257f64bdac7fdca30fa3cae0df8b9ecbec7733a -- 2.53.0