Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp3552210imb; Tue, 5 Mar 2019 12:23:13 -0800 (PST) X-Google-Smtp-Source: APXvYqxDKeZnVS44Q1eEq4MPqfJCd/ftsog9HhBpabj88JhtibQms8TEVXU4d0/TGJGDx5gt4qcx X-Received: by 2002:a17:902:2989:: with SMTP id h9mr3156322plb.26.1551817393466; Tue, 05 Mar 2019 12:23:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551817393; cv=none; d=google.com; s=arc-20160816; b=zAFaawjKI/JQO9AWQW5TP78l/P05vfpMC0YB2XUG86ds1gLrAPAflGBxy+UUgAeiXi iOu0uUiKwAVgIgSJ3wGyPuwfaUw6DIOkafynwWT6FgR5evekhK/g5W4l8QPhRws5M0cw vEjtyxq3jG08FWei0JHITX/w/Y32oIM17axDnUuhTcrvGWFR/WadrkOccz90Ch1BTVl8 IH9PXQrf0qkQaYllHKF37b2jK4K7yzGs1t01s651GueOdcAoDQGUUqCDwdNJUSqTuonx 0h8MkPpB0LgASRg1CLEcYYeagsVQEoHzTTH53abQSJIH/VN9dmSiv2+mWmcPB2YYOaz+ tUEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=aCZEj1Crea8m51JDj+DHuHsdteG3XVjMc84BEZB8Xn4=; b=Z0t91NU0rTztDVoBFEpTVBV3q8Yw7IHipyFf6JpzlXgcbXhQqDn2W59HLigkcrqoRy yoBDyfvoZt8NUnVPz0XqjxQS3sXbGO0Om13DLAPYQBnxguLRteleroGm4I/LvHeTltyy I3vrd0BGltIUJPnYcEjr7+HBVM25Kh4RQlK+V0cpHk/RRbLcsSrcugVn7KmFOMwVkFdh UTW0mQKo6r1ElhMFQLubKcd0HOPgBUXI2C4oScG8ML7Z2oe1GmQpM2/jXLmRNZ2GxXbJ VnBsOeMp2MTbTILBVaqs3aIzHeJM/R6dqM+tWSgyK5MkQhj/xPS9K7SKlNVt8P2dAi51 9dCg== ARC-Authentication-Results: i=1; mx.google.com; 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 i69si3303975plb.17.2019.03.05.12.22.58; Tue, 05 Mar 2019 12:23:13 -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; 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 S1728532AbfCEUPN (ORCPT + 99 others); Tue, 5 Mar 2019 15:15:13 -0500 Received: from smtprelay0059.hostedemail.com ([216.40.44.59]:43965 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726534AbfCEUPN (ORCPT ); Tue, 5 Mar 2019 15:15:13 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay06.hostedemail.com (Postfix) with ESMTP id 4FE6818224BAE; Tue, 5 Mar 2019 20:15:11 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::,RULES_HIT:41:355:379:599:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2110:2198:2199:2393:2553:2559:2562:2691:2828:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3873:3874:4250:4321:5007:7557:7903:8603:10004:10400:10848:11232:11658:11914:12294:12740:12760:12895:13069:13311:13357:13439:13972:14096:14097:14659:14721:21080:21433:21627:30054:30090:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:28,LUA_SUMMARY:none X-HE-Tag: fog92_84595543a7c23 X-Filterd-Recvd-Size: 2575 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf17.hostedemail.com (Postfix) with ESMTPA; Tue, 5 Mar 2019 20:15:09 +0000 (UTC) Message-ID: Subject: Re: [PATCH] docs: add extra integer types to printk-formats From: Joe Perches To: Matthew Wilcox 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 Date: Tue, 05 Mar 2019 12:15:08 -0800 In-Reply-To: <20190305200725.GG13380@bombadil.infradead.org> References: <20190303123647.22020-1-louis@kragniz.eu> <20190303201016.GO9224@smile.fi.intel.com> <20190305200725.GG13380@bombadil.infradead.org> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.1-1build1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2019-03-05 at 12:07 -0800, Matthew Wilcox wrote: > 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. Look at default argument promotions for varargs functions. (integer promotions) > 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. Doesn't matter for varargs. See above. cheers, Joe