From patchwork Fri Feb 1 16:40:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Larry Finger X-Patchwork-Id: 217518 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 0C9492C0293 for ; Sat, 2 Feb 2013 03:40:58 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757123Ab3BAQkt (ORCPT ); Fri, 1 Feb 2013 11:40:49 -0500 Received: from mail-oa0-f54.google.com ([209.85.219.54]:56278 "EHLO mail-oa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757038Ab3BAQkp (ORCPT ); Fri, 1 Feb 2013 11:40:45 -0500 Received: by mail-oa0-f54.google.com with SMTP id n12so1560105oag.13 for ; Fri, 01 Feb 2013 08:40:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=ourJ4yCF5e5D8kqusnsB9TmGCmDo/SeJo20kU6/Xaf8=; b=nfQzRu58249a2k7jZ3t7BOieodeb+BNSgGYzm99oZTcTXLhrGSCfxcLqkqG+aeAJLF C6WRwfJYyuFwTZ8P/Z+T68Kl8bbhkv6tBlcd0DaIyyXSrAue0bWigbLJTa6v0qR75o1i 9SJDer1HKgOrGHVCLmDgHDv1LEOcghATjNavRcX4UYg2Qohem1WU16iFeDKrHI/kjyHf VH5nI79bpORYizsDFwUasUWhNUQ6ePM4RPnNfFb0MY4yex/jPb3nkmDwwlH6AP3+JRmb qaTukQXAViGHitukzo9UNL9o04+223YvexUPtZ7YTSMiZ5ytoJUmrN+kfXWUT4JSp6W7 KUdw== X-Received: by 10.182.39.69 with SMTP id n5mr9353985obk.72.1359736844804; Fri, 01 Feb 2013 08:40:44 -0800 (PST) Received: from linux-2liw.lan (CPE-75-81-36-228.kc.res.rr.com. [75.81.36.228]) by mx.google.com with ESMTPS id vs4sm9995794obb.14.2013.02.01.08.40.43 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 01 Feb 2013 08:40:44 -0800 (PST) From: Larry Finger To: linville@tuxdriver.com Cc: linux-wireless@vger.kernel.org, Larry Finger , netdev@vger.kernel.org Subject: [PATCH 1/6] rtlwifi: Fix many compile warnings when using W=1 Date: Fri, 1 Feb 2013 10:40:22 -0600 Message-Id: <1359736827-30977-2-git-send-email-Larry.Finger@lwfinger.net> X-Mailer: git-send-email 1.8.1 In-Reply-To: <1359736827-30977-1-git-send-email-Larry.Finger@lwfinger.net> References: <1359736827-30977-1-git-send-email-Larry.Finger@lwfinger.net> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Many warnings like the following arise from a build with W=1 on the make line: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits] Changing the overall debug level storage from unsigned to signed fixes these. Signed-off-by: Larry Finger --- drivers/net/wireless/rtlwifi/wifi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/rtlwifi/wifi.h b/drivers/net/wireless/rtlwifi/wifi.h index 21a5f4f..f13258a 100644 --- a/drivers/net/wireless/rtlwifi/wifi.h +++ b/drivers/net/wireless/rtlwifi/wifi.h @@ -1702,7 +1702,7 @@ struct rtl_works { struct rtl_debug { u32 dbgp_type[DBGP_TYPE_MAX]; - u32 global_debuglevel; + int global_debuglevel; u64 global_debugcomponents; /* add for proc debug */