From patchwork Wed Jun 11 14:57:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 4336681 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 61FEABEEAA for ; Wed, 11 Jun 2014 14:57:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 961CA201FE for ; Wed, 11 Jun 2014 14:57:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A5EA82016C for ; Wed, 11 Jun 2014 14:57:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753692AbaFKO5u (ORCPT ); Wed, 11 Jun 2014 10:57:50 -0400 Received: from mail-we0-f173.google.com ([74.125.82.173]:53028 "EHLO mail-we0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751887AbaFKO5u (ORCPT ); Wed, 11 Jun 2014 10:57:50 -0400 Received: by mail-we0-f173.google.com with SMTP id t60so2412834wes.4 for ; Wed, 11 Jun 2014 07:57:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=6ThpJskl/YiJT79XbHAlnQQv08KM5oNQGd/KoirSD98=; b=v9mNO77OhbeJt2mLqGezWZIQeO1INyNEXPRczo87pgpmZ0XippbluRXeyaW/9aw0SD TOoNK3ubxFRozQaSuHecPlNTNphlFQFyVsRFV8q3968c5qAriO5bNamy99H4wkjj3CYB tkla+wEnWHmZu0Fhgi+vXar/0sv72Lv88WbYCrQmlcg/7okrWEHlkTjehTOKhzuXbwQM 85sOGncQQ4NhNTxAeNV9JtWM2pd1iR2Ksdb6vGedFJcaR3aFVDVpfyo+i5DF9VnHwUUp KQ7b0O1t5wfFHCJ4Dnnu6F+rzDqfyw5yxApbvo2EZxLC9Y8zdpOENIt3zzB+Fr15wpEn /Y6w== X-Received: by 10.194.91.228 with SMTP id ch4mr50786716wjb.59.1402498669010; Wed, 11 Jun 2014 07:57:49 -0700 (PDT) Received: from ramsan.of.borg (d54C1488D.access.telenet.be. [84.193.72.141]) by mx.google.com with ESMTPSA id v47sm59824215eel.22.2014.06.11.07.57.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 Jun 2014 07:57:48 -0700 (PDT) From: Geert Uytterhoeven To: Larry Finger , Jes Sorensen , Greg Kroah-Hartman Cc: linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, Geert Uytterhoeven Subject: [PATCH] staging: rtl8723au: Add compiler check for -Wtype-limits Date: Wed, 11 Jun 2014 16:57:46 +0200 Message-Id: <1402498666-5018-1-git-send-email-geert@linux-m68k.org> X-Mailer: git-send-email 1.9.1 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Gcc versions before 4.3 do not support -Wtype-limits: cc1: error: unrecognized command line option "-Wtype-limits" Signed-off-by: Geert Uytterhoeven Acked-by: Jes Sorensen --- drivers/staging/rtl8723au/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723au/Makefile b/drivers/staging/rtl8723au/Makefile index a6316af94b79..6b3f25555c74 100644 --- a/drivers/staging/rtl8723au/Makefile +++ b/drivers/staging/rtl8723au/Makefile @@ -53,4 +53,5 @@ r8723au-$(CONFIG_8723AU_AP_MODE) += core/rtw_ap.o obj-$(CONFIG_R8723AU) := r8723au.o -ccflags-y += -Wtype-limits -D__CHECK_ENDIAN__ -I$(src)/include +ccflags-y += $(call cc-option,-Wtype-limits,) +ccflags-y += -D__CHECK_ENDIAN__ -I$(src)/include