From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758902AbcLVBRQ (ORCPT ); Wed, 21 Dec 2016 20:17:16 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:35729 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758328AbcLVBRP (ORCPT ); Wed, 21 Dec 2016 20:17:15 -0500 Date: Thu, 22 Dec 2016 10:17:22 +0900 From: Sergey Senozhatsky To: Linus Torvalds Cc: Sergey Senozhatsky , Andrew Morton , Petr Mladek , Jan Kara , Tejun Heo , Calvin Owens , Steven Rostedt , Ingo Molnar , Peter Zijlstra , Andy Lutomirski , Peter Hurley , Linux Kernel Mailing List , Sergey Senozhatsky Subject: Re: [PATCHv6 2/7] printk: rename nmi.c and exported api Message-ID: <20161222011722.GA644@jagdpanzerIV.localdomain> References: <20161221143605.2272-1-sergey.senozhatsky@gmail.com> <20161221143605.2272-3-sergey.senozhatsky@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (12/21/16 11:45), Linus Torvalds wrote: > On Wed, Dec 21, 2016 at 6:36 AM, Sergey Senozhatsky > wrote: > > A preparation patch for printk_safe work. No functional change. > > - rename nmi.c to print_safe.c > > - rename exported functions to have a `printk_safe' prefix. > > I dislike this patch. > > It's _mostly_ ok, but the nmi naming is nasty. ok, will change. Petr complained about the nmi naming as well. -ss > Either "printk_nmi()" or "printk_safe" is fine, but doing *both* is > stupid and wrong. And you do both in a couple of places. > > So please keep the printk_nmi_enter/exit() naming. Because > "printk_safe_nmi_enter/exit()" is just stupid. It's about nmi entry. > The "safe" part is simply an implementation detail. > > Linus >