From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751482AbeBXSpz (ORCPT ); Sat, 24 Feb 2018 13:45:55 -0500 Received: from imap.thunk.org ([74.207.234.97]:51580 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751370AbeBXSpx (ORCPT ); Sat, 24 Feb 2018 13:45:53 -0500 Date: Sat, 24 Feb 2018 13:45:30 -0500 From: "Theodore Ts'o" To: Borislav Petkov Cc: Gustavo Leite , linux-kernel@vger.kernel.org, Andrew Morton , Ingo Molnar , Thomas Gleixner , Kees Cook , Baoquan He , Ian Abbott , Randy Dunlap , Niklas =?iso-8859-1?Q?S=F6derlund?= Subject: Re: [PATCH] linux/kernel.h: break long lines Message-ID: <20180224184530.GC31264@thunk.org> Mail-Followup-To: Theodore Ts'o , Borislav Petkov , Gustavo Leite , linux-kernel@vger.kernel.org, Andrew Morton , Ingo Molnar , Thomas Gleixner , Kees Cook , Baoquan He , Ian Abbott , Randy Dunlap , Niklas =?iso-8859-1?Q?S=F6derlund?= References: <20180224181003.29604-1-gustavoleite.ti@gmail.com> <20180224183044.GB29374@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180224183044.GB29374@pd.tnic> User-Agent: Mutt/1.9.3 (2018-01-21) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 24, 2018 at 07:30:44PM +0100, Borislav Petkov wrote: > > And, for the record, if we have to break a function signature, we align the > arguments at the opening brace like this: > > static inline int __must_check kstrtou64_from_user(const char __user *s, > size_t count, unsigned int base, u64 *res) > An alternate approach is this: static inline int __must_check kstrtou64_from_user(const char __user *s, size_t count, unsigned int base, u64 *res) Which yes, is still longer than 80 characters. But this is where blindly following coding guidelines as if they are fundamentalist biblical doctrine is not really a great idea. The goal is to make the code easier to read, and very often it's important to apply _judgement_. (Which is one of the reasons why I generally don't really like newbies trying to apply checkpatch.pl to existing source files.) Cheers, - Ted