Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2021635pxa; Mon, 3 Aug 2020 05:36:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz00TcHmbXBmC37ha2ug7m4nFh+OJBnBhJFDaikOdtuBZEo71eswV05XqygAyegKXIXUTLH X-Received: by 2002:a17:906:c08a:: with SMTP id f10mr16093577ejz.181.1596458176041; Mon, 03 Aug 2020 05:36:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596458176; cv=none; d=google.com; s=arc-20160816; b=WKWcdxlJUXDE6/g6OcvMDmppic0O3Tobet9BXEC4eMERJTuF1rvaYNfPHgryMwaIjE y9mT/aDIOQ17jDtkFJ++KACjr7ZrVAdSmLDGzYWqCTSib3ZdVCbyzOwJVx7dO1St1SXX q/6C/rV1fHDjQy75BmtQCRR6qUXNZj8F6jHYSAWqBjYTXB1W2CCa1uBUFbbkeO7mGDic 7BWm5/53Vb+UUGdgFNTsw0ReV/ATNgA5l5v8YelDLL4oAw+yn+cOH3so+xV8ln/iVEE7 V1yVT1E9873q4WBt8Qy0oysN9WbC5wlaFqkLg8q8elOVHFg4SWaxL82OZFQJtOzP4Og5 oq1w== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=kk6v8rL0BfXCfjqzePXRe1zJE0MWIVp6hSRXkqZAtNQ=; b=fTptcW8oooL6AwQMHsx5ZaHt47EHm8fY88d4m9PCDX/2w4X2bszqtndZGu3BzbrkbQ fQyCCTQ6AEiBCmdWXa7eEXUWW/cOItzHGsSRIxY3BmYIm05jHhqNtIvG+MF5wPOQFruS zGv6ZKSzIxjt5Py5WVGlhDRBcCprCZ5xFGc2OnkHVm07iBPbiNWa+5kpOnhap+vReMe5 +f/tKi++d+FljBr8EQCkM/uNJJ1D50+BtBMrqlC5tULoQR0GxrlfD9JVFdtnYyQt0CCm YVUimczCvrnyg7x+bIOjnvI8LxJnfzcSPs/y9bBfHk61+algdTJLRVKb2+WiUK/N9RvW lyGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=u7eXYg+T; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o2si5506374ejm.676.2020.08.03.05.35.54; Mon, 03 Aug 2020 05:36:16 -0700 (PDT) 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=@kernel.org header.s=default header.b=u7eXYg+T; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729359AbgHCMcz (ORCPT + 99 others); Mon, 3 Aug 2020 08:32:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:60768 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728710AbgHCMcq (ORCPT ); Mon, 3 Aug 2020 08:32:46 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E5CC0204EC; Mon, 3 Aug 2020 12:32:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596457965; bh=24/kZlRm8jazrDcIiMOpg+gWnDJLT6ZaiVEEri8sSQo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u7eXYg+TZQfrweIfpi2Nl9oW9BM0q8SaHTfqHCjt7wcki0gDHOpp7iaUZg9Xqst4G 6pbvIsZ2GGJuq94W/Yut7bPgx9WjU/CDcByedegw6FUU1EDh/378r2Gd/PvFcc72D4 77L4YaRdO+7htr3L40wuHdJCrkbWhouw8e9Ra1eU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Geert Uytterhoeven , "David S. Miller" , Sasha Levin Subject: [PATCH 4.19 46/56] usb: hso: Fix debug compile warning on sparc32 Date: Mon, 3 Aug 2020 14:20:01 +0200 Message-Id: <20200803121852.570096515@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200803121850.306734207@linuxfoundation.org> References: <20200803121850.306734207@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Geert Uytterhoeven [ Upstream commit e0484010ec05191a8edf980413fc92f28050c1cc ] On sparc32, tcflag_t is "unsigned long", unlike on all other architectures, where it is "unsigned int": drivers/net/usb/hso.c: In function ‘hso_serial_set_termios’: include/linux/kern_levels.h:5:18: warning: format ‘%d’ expects argument of type ‘unsigned int’, but argument 4 has type ‘tcflag_t {aka long unsigned int}’ [-Wformat=] drivers/net/usb/hso.c:1393:3: note: in expansion of macro ‘hso_dbg’ hso_dbg(0x16, "Termios called with: cflags new[%d] - old[%d]\n", ^~~~~~~ include/linux/kern_levels.h:5:18: warning: format ‘%d’ expects argument of type ‘unsigned int’, but argument 5 has type ‘tcflag_t {aka long unsigned int}’ [-Wformat=] drivers/net/usb/hso.c:1393:3: note: in expansion of macro ‘hso_dbg’ hso_dbg(0x16, "Termios called with: cflags new[%d] - old[%d]\n", ^~~~~~~ As "unsigned long" is 32-bit on sparc32, fix this by casting all tcflag_t parameters to "unsigned int". While at it, use "%u" to format unsigned numbers. Signed-off-by: Geert Uytterhoeven Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/usb/hso.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c index 5251c5f6f96ed..61b9d33681484 100644 --- a/drivers/net/usb/hso.c +++ b/drivers/net/usb/hso.c @@ -1403,8 +1403,9 @@ static void hso_serial_set_termios(struct tty_struct *tty, struct ktermios *old) unsigned long flags; if (old) - hso_dbg(0x16, "Termios called with: cflags new[%d] - old[%d]\n", - tty->termios.c_cflag, old->c_cflag); + hso_dbg(0x16, "Termios called with: cflags new[%u] - old[%u]\n", + (unsigned int)tty->termios.c_cflag, + (unsigned int)old->c_cflag); /* the actual setup */ spin_lock_irqsave(&serial->serial_lock, flags); -- 2.25.1