Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3861638pxb; Tue, 17 Nov 2020 05:38:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJxWpxiZ/JyW1/XdhMhZk+Zo9haQyH8aZuVlC9gXwrmFLVqk97sDjyno7a8U5r1+yEgBxggu X-Received: by 2002:a17:906:6949:: with SMTP id c9mr19029219ejs.482.1605620302269; Tue, 17 Nov 2020 05:38:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605620302; cv=none; d=google.com; s=arc-20160816; b=vyqX1h1I844pFcytmIJug/f582hBp78RxJMR9yY3BaAUsbjqm5U4eRcraHaRr9xn7S inPB4IID5V5iD/k1Wx8bguaw3T/mfEtcuU3E2cZtUF4q7LBTZwAsbfoHdgcxD0RuIh56 hmWvLOaK3WbcOfYpeq4008LAOyBD+yP72inZMK582af82YKkudSi6wqw+eBua9Bo11RF 5VwRu6Q93urDtlgYmVRuTMq5QCLcUjEf6R7lEQUby/MIFrwhCI2ZzU4mGDwwoYrCEXh9 S80MFkQ698Bpk631pqf5u73UMLAc7SmJQvaI72lGPaN6vHZj9ZItTNshyJzt9VSmtcYd wTEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=cBb+b4cpeScbXioN6q6RuEJ1J4cdmMlQdzwarzzUhs8=; b=EZXkKHGxUjRJBDQ7zjVo20/NuuUsCybJZY3Csu+2AxxWByM8i2nNM1WckIteYO5Euh jRgYGiEJY7o+GVW/W8AcGEiOMEMHatBmLKjdXHigNEcsMVsXgvIUkuv8HhYbRkK4FG9k 6wOWCPkZwCnleSm4lAscCEhVF06UZD07jJICCwLim0Ij1LZ70SiMRxqFnv7TsjrWZxca Yamao+6zxAt8cp/0ng1mK02wB3meqweUpVWr3rL7RqyAnF1I5bJbKxRNTL4sLhQpcQdb 6S/gSlzbwmTvowlhi9QBqTukhEg60G5ObSPicvka5fxWhXhGw/eoTiegmjJ1STdkg+9z wpOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vDCV3NdK; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f13si13995229edx.450.2020.11.17.05.37.59; Tue, 17 Nov 2020 05:38:22 -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=@kernel.org header.s=default header.b=vDCV3NdK; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732208AbgKQNek (ORCPT + 99 others); Tue, 17 Nov 2020 08:34:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:45058 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732202AbgKQNeg (ORCPT ); Tue, 17 Nov 2020 08:34:36 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 52E2A2078E; Tue, 17 Nov 2020 13:34:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605620075; bh=1jTr55gaoyGw5R902U7nFxaSS5hrWwmAkLllFm2nUrg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vDCV3NdKPQhpXxIsOhlCYnLIDgGdWzX8zEbNfcZILLNvJDMoJgxB7eKy5cTy1Kfvv gUxsBxPCdfbbNwmzB6wEKhRnLvS9sddPbFEcPpk/PSG5GvqZZvEvsiJ7fnmx+xfoZ7 fQURSaFVRfP8Fx4CxC73P/9xaaMKq//WqNDdKf9w= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , Ye Bin , Johannes Berg , Sasha Levin Subject: [PATCH 5.9 100/255] cfg80211: regulatory: Fix inconsistent format argument Date: Tue, 17 Nov 2020 14:04:00 +0100 Message-Id: <20201117122143.823648077@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201117122138.925150709@linuxfoundation.org> References: <20201117122138.925150709@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ye Bin [ Upstream commit db18d20d1cb0fde16d518fb5ccd38679f174bc04 ] Fix follow warning: [net/wireless/reg.c:3619]: (warning) %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. Reported-by: Hulk Robot Signed-off-by: Ye Bin Link: https://lore.kernel.org/r/20201009070215.63695-1-yebin10@huawei.com Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- net/wireless/reg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/wireless/reg.c b/net/wireless/reg.c index d8a90d3974235..763a45655ac21 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -3411,7 +3411,7 @@ static void print_rd_rules(const struct ieee80211_regdomain *rd) power_rule = ®_rule->power_rule; if (reg_rule->flags & NL80211_RRF_AUTO_BW) - snprintf(bw, sizeof(bw), "%d KHz, %d KHz AUTO", + snprintf(bw, sizeof(bw), "%d KHz, %u KHz AUTO", freq_range->max_bandwidth_khz, reg_get_max_bandwidth(rd, reg_rule)); else -- 2.27.0