From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751360AbdI1Pq2 (ORCPT ); Thu, 28 Sep 2017 11:46:28 -0400 Received: from mx2.suse.de ([195.135.220.15]:56609 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750943AbdI1Pq1 (ORCPT ); Thu, 28 Sep 2017 11:46:27 -0400 Date: Thu, 28 Sep 2017 16:27:28 +0200 From: Jean Delvare To: LKML Cc: Andrew Morton , Ingo Molnar , Baoquan He , Michal Hocko Subject: [PATCH v2 3/3] params: Improve STANDARD_PARAM_DEF readability Message-ID: <20170928162728.756143cc@endymion> In-Reply-To: <20170928162337.28ae03f4@endymion> References: <20170928162337.28ae03f4@endymion> Organization: SUSE Linux X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.31; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Align the parameters passed to STANDARD_PARAM_DEF for clarity. Suggested-by: Ingo Molnar Signed-off-by: Jean Delvare --- Changes since v1: * Patch added kernel/params.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) --- linux-4.13.orig/kernel/params.c 2017-09-28 11:56:49.495406813 +0200 +++ linux-4.13/kernel/params.c 2017-09-28 13:44:33.943844491 +0200 @@ -236,14 +236,14 @@ char *parse_args(const char *doing, EXPORT_SYMBOL(param_ops_##name) -STANDARD_PARAM_DEF(byte, unsigned char, "%hhu", kstrtou8); -STANDARD_PARAM_DEF(short, short, "%hi", kstrtos16); -STANDARD_PARAM_DEF(ushort, unsigned short, "%hu", kstrtou16); -STANDARD_PARAM_DEF(int, int, "%i", kstrtoint); -STANDARD_PARAM_DEF(uint, unsigned int, "%u", kstrtouint); -STANDARD_PARAM_DEF(long, long, "%li", kstrtol); -STANDARD_PARAM_DEF(ulong, unsigned long, "%lu", kstrtoul); -STANDARD_PARAM_DEF(ullong, unsigned long long, "%llu", kstrtoull); +STANDARD_PARAM_DEF(byte, unsigned char, "%hhu", kstrtou8); +STANDARD_PARAM_DEF(short, short, "%hi", kstrtos16); +STANDARD_PARAM_DEF(ushort, unsigned short, "%hu", kstrtou16); +STANDARD_PARAM_DEF(int, int, "%i", kstrtoint); +STANDARD_PARAM_DEF(uint, unsigned int, "%u", kstrtouint); +STANDARD_PARAM_DEF(long, long, "%li", kstrtol); +STANDARD_PARAM_DEF(ulong, unsigned long, "%lu", kstrtoul); +STANDARD_PARAM_DEF(ullong, unsigned long long, "%llu", kstrtoull); int param_set_charp(const char *val, const struct kernel_param *kp) { -- Jean Delvare SUSE L3 Support