Message ID | 20231002124856.2455696-5-andriy.shevchenko@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp1498942vqb; Mon, 2 Oct 2023 08:21:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGRIjv2RpVAkAhTPUBAJr9NspQguBDTSJnk6v+sYl1Jce2e4x73wlkewT+suXANIuEnt592 X-Received: by 2002:a05:6a00:99b:b0:68a:4d66:caf with SMTP id u27-20020a056a00099b00b0068a4d660cafmr11278815pfg.34.1696260077330; Mon, 02 Oct 2023 08:21:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696260077; cv=none; d=google.com; s=arc-20160816; b=YvGr5lwV2Cmf7o5Bv4SCyS36aEdDpRxKmjKGfZ8UrWGFeteWBadrP2aOEw6ujx8f/m JeYjUlBozrB4GRan1pH1Tfmyb3xQsopeaSzcbaKb57igw+WLPlSygD9JDNfnzmQEZT6X jsC8UKXfN+ct8pMisQoY92UykyRw91FJsdJ3HiVkSxX14zp8Z/yUohSDhtpmfona4/iR iE4IiikFqxQRdf4ywODn5Cu0kl/+zVSbskozMAiODBGv+HBF93xWK8JeIPoFRoa298jS K8+2MbeS50Zw80Zp9mT0tQt65xGTtlsEEYUamnfl/iH3cptGY6NjUsfXokxIL6yoKJtN tfrQ== 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=oTrmrjQoJ5RmtO8sKrgnX/bg4GOgmLO+YBhHX0KPhow=; fh=oVbnzL2KMzayBCxXzlIJHVRmweFMJVXx7xFAc95882A=; b=uzwp7yEphVJFXl0TGWX3TkplqMf2QTqG7r/HQkBRHvtmCzFfEw2TgMSfeKm4GHmV89 s+ycYULqvaUw8jQ7OV7skVjHpD9RizsrSjmEwvrCReq51fdEPqqoBzV5vYqxvpwH0E+U EjL4irypIzXJZxQv2Igax2AC8fDIFHVVfGnOyTDIKzlADoYLMky/4i0F10guC53YCf+c RXPG8zwCcscubMqokyEZ6DoTMaDHAfjG101fjn3nU6NrB1hit14KHY2tr9Mk9jqwOzw6 M6oPI9WhNN6w9jp6u9M2GdEQPwVY5ZQUYfX1MeDD1XOPjpq5seCsHBGPmaFe6+3+OzLj fR9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hiPP8XvI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id f8-20020a056a001ac800b0068fb5ca50cdsi28442426pfv.126.2023.10.02.08.21.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 08:21:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hiPP8XvI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 012118067B55; Mon, 2 Oct 2023 05:49:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237171AbjJBMtP (ORCPT <rfc822;pusanteemu@gmail.com> + 18 others); Mon, 2 Oct 2023 08:49:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231138AbjJBMtL (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 2 Oct 2023 08:49:11 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77CF0AD; Mon, 2 Oct 2023 05:49:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696250946; x=1727786946; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=JdWihm9gO/6oM/PwFuet3kJDZhfqZNY17EGbfixewkM=; b=hiPP8XvIAU5pjdLmrwr2eDODoDFec6e9UClNE3ETPJVGTM9PrBq/b205 hcOz5solsk7b4/HabIhCf+Q9EdYY68JqCxstm755ZOfSKQBBcgFBXAYiH qPZAviuzMMfxLVyqCjvzEwijMo2vdRFAC9lkHeSPQXmWIT+zrhdV4qx4B 4xCfSkAMZnwgVggZa5jg5f24by2pX/JORuWSKPpEqTWCJJrJsbGo+Wq8z 5xsjotj487kZZahBmv6ZvDdjwOH6dwCYadJazNTohnZmGJMCH4M+J+MI0 I7DxjLXLACgvlZrtNcOgMiUhZxiXzm+HcOC8+YyusebKUc+EctMVxiBgM w==; X-IronPort-AV: E=McAfee;i="6600,9927,10851"; a="381517986" X-IronPort-AV: E=Sophos;i="6.03,194,1694761200"; d="scan'208";a="381517986" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Oct 2023 05:49:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10851"; a="894127810" X-IronPort-AV: E=Sophos;i="6.03,194,1694761200"; d="scan'208";a="894127810" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 02 Oct 2023 05:47:42 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 23104157E; Mon, 2 Oct 2023 15:49:02 +0300 (EEST) From: Andy Shevchenko <andriy.shevchenko@linux.intel.com> To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>, linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Luis Chamberlain <mcgrof@kernel.org>, Kees Cook <keescook@chromium.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org> Subject: [PATCH v2 4/5] params: Sort headers Date: Mon, 2 Oct 2023 15:48:55 +0300 Message-Id: <20231002124856.2455696-5-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b In-Reply-To: <20231002124856.2455696-1-andriy.shevchenko@linux.intel.com> References: <20231002124856.2455696-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 02 Oct 2023 05:49:22 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778657606680387813 X-GMAIL-MSGID: 1778657606680387813 |
Series |
params: harden string ops and allocatio ops
|
|
Commit Message
Andy Shevchenko
Oct. 2, 2023, 12:48 p.m. UTC
Sort the headers in alphabetic order in order to ease
the maintenance for this part.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
kernel/params.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/kernel/params.c b/kernel/params.c index c3a029fe183d..eb55b32399b4 100644 --- a/kernel/params.c +++ b/kernel/params.c @@ -3,18 +3,18 @@ Copyright (C) 2001 Rusty Russell. */ +#include <linux/ctype.h> +#include <linux/device.h> +#include <linux/err.h> +#include <linux/errno.h> #include <linux/kernel.h> #include <linux/kstrtox.h> -#include <linux/string.h> -#include <linux/errno.h> #include <linux/module.h> #include <linux/moduleparam.h> -#include <linux/device.h> -#include <linux/err.h> #include <linux/overflow.h> -#include <linux/slab.h> -#include <linux/ctype.h> #include <linux/security.h> +#include <linux/slab.h> +#include <linux/string.h> #ifdef CONFIG_SYSFS /* Protects all built-in parameters, modules use their own param_lock */