Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp3552138imb; Tue, 5 Mar 2019 12:23:06 -0800 (PST) X-Google-Smtp-Source: APXvYqwfRf5JViSfFdzJ0nn3CPYlhW9/XqMjx+gUEWKeuVQ0Pa0H5yejzJVqIzcbVBS6tIh9Id0M X-Received: by 2002:a17:902:27a8:: with SMTP id d37mr3104383plb.164.1551817386859; Tue, 05 Mar 2019 12:23:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551817386; cv=none; d=google.com; s=arc-20160816; b=uo61S8Le5m1TN9A9DM9+0kXt0gAR4ML0Eb3Fd5UYHpcqTuUO3E0yx/lR8bwRyonPHV YLI1rTS9E8IdbaEJslg5xOoEb9EMnxTBhJU8Bd/SKrS9Vday4N29TLDv/tNzSSYZ+UO6 chKoRkI+NfchPgL7zdhb+1A1c+L8pwGpmLOk4dvUMftrA2B3cMOvvLlX64dcbUpOOHFj xzvAXhB4yUT/vXsYI73bJQ0C0I66+4wJavHu2mcNJaMlortpudPhDlWu+9wCF3YrH08U VosWkJCpxVnagV6ObTRzOXx8kR9DT8FxRMBfd6W26umnTsDlgL2JBmTkdnFiB+0hvbQU bfnw== 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; bh=g/Mqtofyjx4mP4jWB0F6ZHFzKVZJiO58nvAjEc5wPM0=; b=TSl1CMCQgE1Pop0wfInVbNrOjJmeVRdoGfqK4vgG0scyoyPpn5iR22sgqwdF8vFgcd w4vkjWpfqNYuSavuv5kMqjU128mHWVaYkGnSXD9ZeRQ1fAuoOj4k83oraJhiANsC+zia qoLTi0U0Zv5f5sAwC+fCAuPrPmL/pbF/7MYlb6wVCqjHArbjoc7MbQRpSinOorr/wf1i dDCpkQAB1jyh+GdjS7PeZa/3l9BwvhGQf8BayYtv1AOOWWwi1wFkZTlRCLif26cvSr2d QJizDqvcNaXp6QFR3wYP8s1BmpxQsaflTz4u+v5lUGa6o2WNNIc75SwGIdLjQS4cZj6I /a1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="QFC6/C7q"; 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 x13si8693071pge.375.2019.03.05.12.22.51; Tue, 05 Mar 2019 12:23:06 -0800 (PST) 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="QFC6/C7q"; 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 S1728062AbfCEUHp (ORCPT + 99 others); Tue, 5 Mar 2019 15:07:45 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:48530 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726559AbfCEUHp (ORCPT ); Tue, 5 Mar 2019 15:07:45 -0500 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=g/Mqtofyjx4mP4jWB0F6ZHFzKVZJiO58nvAjEc5wPM0=; b=QFC6/C7qt20wm9uPeNjErRhww A3d0F7p7ZAYMscHplimT++bjBzm7wqu9vdm8DigCCBmmFgJWSWeyZmHvLZ5T5KGpZzEmbby+0WSon Jzu9qB40e6TaqcjXFH6BbyW+ImOc9CbqbizNlj0xf0oi/Jg7niaE0lVOzv+ESaPUjMghNoszxN2AI 56xawhqVwNR0fWo7caOHfZOWSqhmuFKkWM49QF2BQdbc/6u900yeT9pv7RHqjIc4usEhk7FUdnYoM c6bRVUSGyVlKxrBXC3MqywsUk5Q+DwJbDjTUEj3Aqz+r9KqSk5ymII5xa49CEy3Aita0nn1PhCkJz fZVkfWbAA==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1GLV-0001qp-Oe; Tue, 05 Mar 2019 20:07:25 +0000 Date: Tue, 5 Mar 2019 12:07:25 -0800 From: Matthew Wilcox To: Joe Perches Cc: Nick Desaulniers , Andy Shevchenko , Louis Taylor , Jonathan Corbet , pmladek@suse.com, geert+renesas@glider.be, linux-doc@vger.kernel.org, LKML , clang-built-linux@googlegroups.com, Jon Flatley Subject: Re: [PATCH] docs: add extra integer types to printk-formats Message-ID: <20190305200725.GG13380@bombadil.infradead.org> References: <20190303123647.22020-1-louis@kragniz.eu> <20190303201016.GO9224@smile.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Tue, Mar 05, 2019 at 11:59:30AM -0800, Joe Perches wrote: > Many of the -Wformat warnings are bogus too. > > There's nothing wrong with using %x for a unsigned int > of less than long size. (u8/u16) I believe you to be incorrect. 6.5.2.2 Function calls 7 If the expression that denotes the called function has a type that does include a prototype, the arguments are implicitly converted, as if by assignment, to the types of the corresponding parameters, taking the type of each parameter to be the unqualified version of its declared type. The ellipsis notation in a function prototype declarator causes argument type conversion to stop after the last declared parameter. The default argument promotions are performed on trailing arguments. I could define a calling convention for my CPU which says to pack u8s and u16s as tightly as possible in registers (or on the stack), rather than the prevailing calling convention of having each argument take up at least one register-sized slot.