Received: by 10.213.65.68 with SMTP id h4csp82327imn; Thu, 15 Mar 2018 10:10:46 -0700 (PDT) X-Google-Smtp-Source: AG47ELuBW0sHdz/V7iCEJir81a0OdWS1ixpPON4rjlZtLxgtcunXQ5qurzw2wKpRsOVcRmk/EXWQ X-Received: by 2002:a17:902:264:: with SMTP id 91-v6mr8926389plc.178.1521133846548; Thu, 15 Mar 2018 10:10:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521133846; cv=none; d=google.com; s=arc-20160816; b=WWpIWgfX23m0R9imWjViLB1lFhUh/MtTymK+gEXgPNgVwUyVSbGmq6Q0x1aUBllI5g vRp7Z3aN6n/CEZDwra317V8LKX4covmdLV6C2jXXhSqcTrsH0cCKMnGyS8QyXzCPQ3IX HJkGq6g5PEz0EW1+uTpPLIr6SGPgZ3rKt1I0w9JY3Z2tEL2Z3YmN8DOXbbcz/Uy94mC2 QBGdfwg/ofMjmD7BTcGKwQ/TVg8nmH8CfPK4WFRomiVFEVqJdeB7cAEN9G8FJ1vbOiVC IMaDwOX03iYcEec5ZSWkfn9mU9t57hmuEpbqsLiraiozu4VCabk7fDGjIK+fJ2xE+9EW cz/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=ax/AIO5eAdbnWdMUuAx6I95I8nSFUqen59QR8gaQ6pY=; b=ADran8wo19dyauqHUM/7HLYF4OUd7ETv7mWIYLXxcqUkjFJTjTTK7Fw7x8otfzd3Dk AvrAUR4Ja42BhiK68rwAMDd492t2tUxRoRiEZIOSJv3a/vnc1E8ALJqMfOssQ/adX+KC d/nXxzQngEBYIrGICjth8cPAramKSqNFXAJZUjEPb4WU+u++tlDNIH6fhYnCV/PtBu/U i+5SGTOrMcNyOiikrMomGt9DZUUHo1l7MfSGfG7u1egQuWiIX8U1pXbXBrc6Gwi2RAzh ITNB3iOCWrb+Qc04zZXuwvPwl9n4YcMgVmn3CzKzbws5zkvMdpCHLIwSbmkoW18uw39A JWkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=R4+n64fc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5si3647834pgq.325.2018.03.15.10.10.32; Thu, 15 Mar 2018 10:10:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=R4+n64fc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752434AbeCORIn (ORCPT + 99 others); Thu, 15 Mar 2018 13:08:43 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:53500 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751466AbeCORIg (ORCPT ); Thu, 15 Mar 2018 13:08:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ax/AIO5eAdbnWdMUuAx6I95I8nSFUqen59QR8gaQ6pY=; b=R4+n64fcxJ6gHWJ+5wPX//F4i Shff95lbyReiPP0rCX/3YaoLInyHvoHUj1UpKv0OWm5xjzA9vsGVhLtgNIskdu4cshB4A23rVCcMy TBMo6qZgPTkWl4YzfeijLxaS4gTFzc9aBkcFq4SSmnZS/mYF+FKY0K7dMwNoa7l4q8t468UYud2/U iRKMIEYNfTyZ8JwyR6KZjEFzmGM4cDRYjwmvWwihE6gVXUow035/Yq6ZBrqb4Fvtqx5lgnqdEqe81 c2uOvg+LnOLvyVZ7QtTYNjxNcumpCNi1ZGolcgYlDmjZ6aBEL2xu08XoQF/6WvahDP/ADpbUsHRHK U4m/cUieg==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1ewWMg-0001wd-KH; Thu, 15 Mar 2018 17:08:30 +0000 Date: Thu, 15 Mar 2018 10:08:30 -0700 From: Matthew Wilcox To: Joe Perches Cc: Geert Uytterhoeven , David Howells , Arnd Bergmann , Linux-Arch , Linux Kernel Mailing List , linux-doc@vger.kernel.org, linux-block@vger.kernel.org, linux-ide@vger.kernel.org, linux-input@vger.kernel.org, netdev , linux-wireless , Linux PWM List , linux-rtc@vger.kernel.org, linux-spi , USB list , DRI Development , Linux Fbdev development list , Linux Watchdog Mailing List , Linux FS Devel , Linux MM Subject: Re: rfc: remove print_vma_addr ? (was Re: [PATCH 00/16] remove eight obsolete architectures) Message-ID: <20180315170830.GA17574@bombadil.infradead.org> References: <20180314143529.1456168-1-arnd@arndb.de> <2929.1521106970@warthog.procyon.org.uk> <1521133006.22221.35.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1521133006.22221.35.camel@perches.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 15, 2018 at 09:56:46AM -0700, Joe Perches wrote: > I have a patchset that creates a vsprintf extension for > print_vma_addr and removes all the uses similar to the > print_symbol() removal. > > This now avoids any possible printk interleaving. > > Unfortunately, without some #ifdef in vsprintf, which > I would like to avoid, it increases the nommu kernel > size by ~500 bytes. > > Anyone think this is acceptable? > > Here's the overall patch, but I have it as a series > --- > Documentation/core-api/printk-formats.rst | 9 +++++ > arch/arm64/kernel/traps.c | 13 +++---- > arch/mips/mm/fault.c | 16 ++++----- > arch/parisc/mm/fault.c | 15 ++++---- > arch/riscv/kernel/traps.c | 11 +++--- > arch/s390/mm/fault.c | 7 ++-- > arch/sparc/mm/fault_32.c | 8 ++--- > arch/sparc/mm/fault_64.c | 8 ++--- > arch/tile/kernel/signal.c | 9 ++--- > arch/um/kernel/trap.c | 13 +++---- > arch/x86/kernel/signal.c | 10 ++---- > arch/x86/kernel/traps.c | 18 ++++------ > arch/x86/mm/fault.c | 12 +++---- > include/linux/mm.h | 1 - > lib/vsprintf.c | 58 ++++++++++++++++++++++++++----- > mm/memory.c | 33 ------------------ > 16 files changed, 112 insertions(+), 129 deletions(-) This doesn't feel like a huge win since it's only called ~once per architecture. I'd be more excited if it made the printing of the whole thing standardised; eg we have a print_fault() function in mm/memory.c which takes a suitable set of arguments.