From patchwork Tue Sep 12 15:05:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 138318 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp541027vqx; Tue, 12 Sep 2023 09:50:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFFrVZMew2rn/G7AbCXg4r9oZkWcSyGqa6Nf6xMNVWhQ/7bI8j2G2peiBtY0fSgprNH2jVS X-Received: by 2002:a05:6a00:2315:b0:68f:bd37:13df with SMTP id h21-20020a056a00231500b0068fbd3713dfmr313920pfh.16.1694537406483; Tue, 12 Sep 2023 09:50:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694537406; cv=none; d=google.com; s=arc-20160816; b=aygZNyMna1ybJo4cnX368NI0AekhMUmIuR/dkWD+jf+Xp/UT6Om2JMZpjVwz5QpXxT JfHMHVkMiicajD0bN6Y6BdOFRqwfMkQLLt/h7L5+VqnNnf9IdE4xkr2je33+zBh519ze 3916Lpl+j0NFUXuMWSsOBuyqbHY9Wmm+x5VAEWrNjdxbF+e3R12Ry5so+8sHDqENP22M Qdad3hN17bXHPOklhzu8yINrK2gnkgG4ZKMqLd3FxolpYvuggVvaOZTUEMUC3E20deYO K7zRIjdsYVLdaIuNS9fyoTVm/dLtMjN/kAmOkxLEyPKeoZlHJ/A5erBSMRjiFh+BPvd3 BmdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oLGzoSv2sewj+lqZfKff+YE0fN+en5kby+VvEFHEEPk=; fh=bHBp+PJACSvucKAvnO3bf9DILRtfHT5RT33jsVWkQ4A=; b=jO0m7QdZcpy1wbLXPYwYBIRz/fpzWo75kOdQgAj36PD7v/uWg6evpsTI8n1A/272MM ii5nqlzxHkKiKLvkCU3h56N6+3sWo7G5IK4+xdkwVuYOp9oiKOY2Hnz23WvK/jufkXg2 IAlWJfEnxUA+NZqxl79tlNVOAr2BkDxD79+sxCTWrMDWu1lh9nujPk/JM3/QFY5byHoN /5YhZtDa/FD9ZW/RYGXjJBOnJsCQeJL4hX+I7EQnGhzX/HNcATCu4LUFvpLfB/oEhvb6 6f26zkr7HlfC8iMFyIgjbameZetfO43hjyFMpv92GBjbBYRpdlhSqGYTx9pUbw5gFdF5 RxDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="RGAeZ4/P"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id f16-20020a056a0022d000b0068a38a9ab84si8507610pfj.176.2023.09.12.09.50.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 09:50:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="RGAeZ4/P"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id AAD3D808E65C; Tue, 12 Sep 2023 08:07:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236297AbjILPHf (ORCPT + 37 others); Tue, 12 Sep 2023 11:07:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236276AbjILPHY (ORCPT ); Tue, 12 Sep 2023 11:07:24 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C67910CA for ; Tue, 12 Sep 2023 08:07:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694531240; x=1726067240; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hvjWSe8g2gvyLab18B/7HjQZ7vefXnYvuFSi1pPYm3k=; b=RGAeZ4/PIixWddwAohOIxRQtyYWz2WE4xldkvVoY8775lzzdjOCTmBOf 9rBaopPtiPe5yGMAnB4vRuxs36ZJ+bBuARe/EimrxipnvS8dIv012fvQM pDqkcI2Rbtd/oQDAX3E6W4R+bVQ9aIAo+92UD35fKg+blCd3H2zIRpQsJ vbKXG84IohhtDrtKqZbyjScCI41dwJpoOCOH31hg1qiamGIjWMqha030w bjxqpmHL4Q1r796Yl2fYnwAZpXQ462bE082KeR7xT+sfreHzvyA1uZjwu T5r5UVGTfGd3DUdXhWYqqIBaTEnK6luT9LOWMj5aDEL3iwZ/5k7oTK+Om w==; X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="409356494" X-IronPort-AV: E=Sophos;i="6.02,139,1688454000"; d="scan'208";a="409356494" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2023 08:05:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="858836462" X-IronPort-AV: E=Sophos;i="6.02,139,1688454000"; d="scan'208";a="858836462" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga002.fm.intel.com with ESMTP; 12 Sep 2023 08:05:57 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 9F3E6C0D; Tue, 12 Sep 2023 18:05:54 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , linux-kernel@vger.kernel.org Cc: Luis Chamberlain Subject: [PATCH v1 6/6] params: Fix multi-line comment style Date: Tue, 12 Sep 2023 18:05:51 +0300 Message-Id: <20230912150551.401537-6-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b In-Reply-To: <20230912150551.401537-1-andriy.shevchenko@linux.intel.com> References: <20230912150551.401537-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 12 Sep 2023 08:07:39 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776851255445519505 X-GMAIL-MSGID: 1776851255445519505 The multi-line comment style in the file is rather arbitrary. Make it follow the standard one. Signed-off-by: Andy Shevchenko --- kernel/params.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/kernel/params.c b/kernel/params.c index bcd535200c31..a6d7023dc993 100644 --- a/kernel/params.c +++ b/kernel/params.c @@ -1,8 +1,8 @@ // SPDX-License-Identifier: GPL-2.0-or-later -/* Helpers for initial module or kernel cmdline parsing - Copyright (C) 2001 Rusty Russell. - -*/ +/* + * Helpers for initial module or kernel cmdline parsing + * Copyright (C) 2001 Rusty Russell. + */ #include #include #include @@ -270,8 +270,10 @@ int param_set_charp(const char *val, const struct kernel_param *kp) maybe_kfree_parameter(*(char **)kp->arg); - /* This is a hack. We can't kmalloc in early boot, and we - * don't need to; this mangled commandline is preserved. */ + /* + * This is a hack. We can't kmalloc() in early boot, and we + * don't need to; this mangled commandline is preserved. + */ if (slab_is_available()) { *(char **)kp->arg = kmalloc_parameter(len + 1); if (!*(char **)kp->arg) @@ -743,8 +745,10 @@ void module_param_sysfs_remove(struct module *mod) { if (mod->mkobj.mp) { sysfs_remove_group(&mod->mkobj.kobj, &mod->mkobj.mp->grp); - /* We are positive that no one is using any param - * attrs at this point. Deallocate immediately. */ + /* + * We are positive that no one is using any param + * attrs at this point. Deallocate immediately. + */ free_module_param_attrs(&mod->mkobj); } }