Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3463286pxb; Mon, 25 Jan 2021 17:37:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJyShKfdXYVORw5kfTBmU7lBy2hSn1RYOEk8imsaYGfGuQY7WOgqYbgqHalx111EBpa/7Tx6 X-Received: by 2002:a17:906:76c9:: with SMTP id q9mr2062905ejn.484.1611625022124; Mon, 25 Jan 2021 17:37:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611625022; cv=none; d=google.com; s=arc-20160816; b=kLa4kNZ0y8HYnVM4fMzgT2gvMcskttstrWaPwydWLeZb/3DcHIymVDnnUw6kDIUgGb SCuMnklcMDtbhLSb+an/PtWF7FJILnPqlfKbSQ20kekPvfdu5n6qjPXbelJRBhpqRk5K 2pHmJUPby6z5WDu2+3hULjExlQGtdvtu+aHRM9Rl1cJD4czNMqNkD02LTQ4sbSILp33m XR24RwkjGmM8U8P38fIpRUnf4WVlnTLUsy5DegdFvDpJUwuw0jx3y2NoRt0n9WjzHCLI 7zISCD2XDKB+m+mioKCv+WN/l9mkCfg6yiHcW+pGq51sEWwpN7KCPLsCRP0vcI0ouSkn BsgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dsJ5c6z8E2D26JiA6krIDrztQfJIF7o7uMfeJJx/8GE=; b=xdhDY/1kryUt3zFjh4H7bV0uIwQfBIRuFpuJyxQGka92S5qIHJRi8caifYjsAMoOvH 4O/zIDHM/IYPYVhfTbcI9+xmZkY0igoFuDj6ETvYxFmIAW1S3A38cSYsmy/83b2ZiNsB 2x0x5T29l4OCKsCGcIZQlcI6mknL0aBGa0RLrICNjZGJwfkP9iLHWYCt6en8ylnZWaEY oIrsg5n+WJmXTL7F1vMTHo75yAyxzqQIoRARYn41LuCvVSwFWTzo7cI6rY6vBXQxg/5L 3AKa9IgXpiTy6N0rb7seCx4xtW6gMXrGbBI9XqKAmbuin+44YtRnAA2rJ7yR9tPV2M2A AgTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=GtCvChbE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o17si8380175edf.247.2021.01.25.17.36.37; Mon, 25 Jan 2021 17:37:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=GtCvChbE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730544AbhAYQGS (ORCPT + 99 others); Mon, 25 Jan 2021 11:06:18 -0500 Received: from mx0b-002e3701.pphosted.com ([148.163.143.35]:49934 "EHLO mx0b-002e3701.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730376AbhAYQF3 (ORCPT ); Mon, 25 Jan 2021 11:05:29 -0500 Received: from pps.filterd (m0150244.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 10PFK43O002800; Mon, 25 Jan 2021 15:29:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pps0720; bh=dsJ5c6z8E2D26JiA6krIDrztQfJIF7o7uMfeJJx/8GE=; b=GtCvChbEiJ8EB+t+RcpaUAwa7fmnq/UPwBnRs7hOnMLpPsybj+37MOKjFSHCgyLYttiG ISqc980CQru82qGcjoNHH2YhQH/05Af/L9zIATjjyqxYWJWtNWrj58fv7IMhQHpuezKm 3RpoM0Jk4cUdmoTzbXrM7KI6wpOV8/W3tI64OG2KWh6/I09uR/U4Ej0L2Gybdz1M++pR uJndjvayn1pdBhP1VJXhdx0IhaObciKLE0ZdzRABior2w69qkh9yNhGo6FUrIAuuO5jU IVd0646hanMbYvHIrrrQNlGjWznGvkQBkMV1YDBHUA0mnhCDX2m73HlN3OWayGpwKErx Vw== Received: from g9t5008.houston.hpe.com (g9t5008.houston.hpe.com [15.241.48.72]) by mx0b-002e3701.pphosted.com with ESMTP id 368cf5x3w6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Jan 2021 15:29:24 +0000 Received: from g4t3433.houston.hpecorp.net (g4t3433.houston.hpecorp.net [16.208.49.245]) by g9t5008.houston.hpe.com (Postfix) with ESMTP id 5B0534F; Mon, 25 Jan 2021 15:29:23 +0000 (UTC) Received: from swahl-home.5wahls.com (unknown [16.214.160.247]) by g4t3433.houston.hpecorp.net (Postfix) with ESMTP id A710A4A; Mon, 25 Jan 2021 15:29:22 +0000 (UTC) Date: Mon, 25 Jan 2021 09:29:22 -0600 From: Steve Wahl To: trix@redhat.com Cc: robinmholt@gmail.com, steve.wahl@hpe.com, mike.travis@hpe.com, arnd@arndb.de, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sgi-xp: remove h from printk format specifier Message-ID: <20210125152922.GQ144275@swahl-home.5wahls.com> References: <20210123160003.1777766-1-trix@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210123160003.1777766-1-trix@redhat.com> X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343,18.0.737 definitions=2021-01-25_06:2021-01-25,2021-01-25 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 priorityscore=1501 malwarescore=0 spamscore=0 impostorscore=0 lowpriorityscore=0 mlxlogscore=999 adultscore=0 phishscore=0 suspectscore=0 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101250089 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reviewed-By: Steve Wahl On Sat, Jan 23, 2021 at 08:00:03AM -0800, trix@redhat.com wrote: > From: Tom Rix > > This change fixes the checkpatch warning described in this commit > commit cbacb5ab0aa0 ("docs: printk-formats: Stop encouraging use of > unnecessary %h[xudi] and %hh[xudi]") > > Standard integer promotion is already done and %hx and %hhx is useless > so do not encourage the use of %hh[xudi] or %h[xudi]. > > Signed-off-by: Tom Rix > --- > drivers/misc/sgi-xp/xpnet.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/misc/sgi-xp/xpnet.c b/drivers/misc/sgi-xp/xpnet.c > index 23837d0d6f4a..2508f83bdc3f 100644 > --- a/drivers/misc/sgi-xp/xpnet.c > +++ b/drivers/misc/sgi-xp/xpnet.c > @@ -208,7 +208,7 @@ xpnet_receive(short partid, int channel, struct xpnet_message *msg) > } else { > dst = (void *)((u64)skb->data & ~(L1_CACHE_BYTES - 1)); > dev_dbg(xpnet, "transferring buffer to the skb->data area;\n\t" > - "xp_remote_memcpy(0x%p, 0x%p, %hu)\n", dst, > + "xp_remote_memcpy(0x%p, 0x%p, %u)\n", dst, > (void *)msg->buf_pa, msg->size); > > ret = xp_remote_memcpy(xp_pa(dst), msg->buf_pa, msg->size); > @@ -218,7 +218,7 @@ xpnet_receive(short partid, int channel, struct xpnet_message *msg) > * !!! appears in_use and we can't just call > * !!! dev_kfree_skb. > */ > - dev_err(xpnet, "xp_remote_memcpy(0x%p, 0x%p, 0x%hx) " > + dev_err(xpnet, "xp_remote_memcpy(0x%p, 0x%p, 0x%x) " > "returned error=0x%x\n", dst, > (void *)msg->buf_pa, msg->size, ret); > > -- > 2.27.0 > -- Steve Wahl, Hewlett Packard Enterprise