Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5644287imu; Mon, 26 Nov 2018 03:26:55 -0800 (PST) X-Google-Smtp-Source: AFSGD/W7uLlEkWcZzVEvXlfZ6fUpUcc7zzL76Mxhw6pHCR1gTx1VnlYbzXfdJUSj1a5LXA8cbKrK X-Received: by 2002:a63:de04:: with SMTP id f4mr24164686pgg.292.1543231615574; Mon, 26 Nov 2018 03:26:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543231615; cv=none; d=google.com; s=arc-20160816; b=VIUme/DZeWERi+kTzyLUJ4B28C0LGDyQP0r5fPPXGMJi35UUh47ctntV1XvgAREDiH sdjlb4UDXpwCTcyYAtcEhEFTEzGIZo9dOazsbT9JpO4xOyZNM7lI7Ge+N5p8pGKE0YHW VKV40S3whPQ0UkiyLRZn18jpHdQETJTkljE5FZIMc0E91UnMp/0QvmFLYuoZikZyK5J+ anPaJ7fOYMukRNyzns+jn8CjfTIGu3FdWf8P/fMrZIU4dl2dYFUZEyAf5OejlmM3bKJu kZk09al4tZOTVHYKWRYi0FqTIB6824wp+edbXMLlhXmH35AjsEASvwPd9FHaUvBk0m1x K/IA== 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=ZcJ3ofYjaHqUvRgPhoiK99C7Uq/9qq443e+/lbwUi68=; b=IGLksviPgJvm6acnrRRGnCcIswVd9GmnoG0QCq3wWWwVYjFUXY5n+Aa8tCM3X/AMYP GoNo3/1zWFka3ez3bc5Fbcwi1WfJUgmm+B6GB/ByO9CXr2e/MTLtiZdx1jLmMueZf+Gn 4wCs9GYOT3E3Ggkhb+0A9JlUabVberZWZAPxGDYcoH6NfQsyr8/6f43ho5FabUBBH1Js I5fWVd7DjgzUTNiPMUQtg96NPTdqnQQQ0cvjUO+FXzXmeXSFH51FZypBdJopD9ZZRHSA RF2r4dPi8ISnaI+9ywJsLYKVaBIKmYTD3PMpaXck1eZcVPb/vouj2ybdSa2UWhsGSy3z 2zwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=W1eId0PA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c136si13271pfc.141.2018.11.26.03.26.32; Mon, 26 Nov 2018 03:26:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=W1eId0PA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727951AbeKZVtH (ORCPT + 99 others); Mon, 26 Nov 2018 16:49:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:57926 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726923AbeKZVtG (ORCPT ); Mon, 26 Nov 2018 16:49:06 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 E3ABE21104; Mon, 26 Nov 2018 10:55:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543229722; bh=nOpCmCpjPyf4RTQUMJX8tZj0k9fTiTWoKTB5y6gqEjQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=W1eId0PAmxERLf9dqIUGxtjufayiV0lOFsYlEkXOTCJMKuwCmeYKAJIgeWAHtkHu/ nSHllnPFpus+EG45EWt1HEW23d4zyRLAnlDFxfXXU2z0a2qAMHXsbMandc44i3TzON 3iYH6YF21d/WXknxn8g+Nk4GM064wHhsz20wfffE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Masahiro Yamada , Nathan Chancellor Subject: [PATCH 4.4 11/70] kbuild: drop -Wno-unknown-warning-option from clang options Date: Mon, 26 Nov 2018 11:50:26 +0100 Message-Id: <20181126105047.977564621@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181126105046.722096341@linuxfoundation.org> References: <20181126105046.722096341@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Masahiro Yamada commit a0ae981eba8f07dbc74bce38fd3a462b69a5bc8e upstream. Since commit c3f0d0bc5b01 ("kbuild, LLVMLinux: Add -Werror to cc-option to support clang"), cc-option and friends work nicely for clang. However, -Wno-unknown-warning-option makes clang happy with any unknown warning options even if -Werror is specified. Once -Wno-unknown-warning-option is added, any succeeding call of cc-disable-warning is evaluated positive, then unknown warning options are accepted. This should be dropped. Signed-off-by: Masahiro Yamada Signed-off-by: Nathan Chancellor Signed-off-by: Greg Kroah-Hartman --- Makefile | 1 - scripts/Makefile.extrawarn | 1 - 2 files changed, 2 deletions(-) --- a/Makefile +++ b/Makefile @@ -708,7 +708,6 @@ endif KBUILD_CFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC) KBUILD_AFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC) KBUILD_CPPFLAGS += $(call cc-option,-Qunused-arguments,) -KBUILD_CPPFLAGS += $(call cc-option,-Wno-unknown-warning-option,) KBUILD_CFLAGS += $(call cc-disable-warning, unused-variable) KBUILD_CFLAGS += $(call cc-disable-warning, format-invalid-specifier) KBUILD_CFLAGS += $(call cc-disable-warning, gnu) --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -61,7 +61,6 @@ ifeq ($(cc-name),clang) KBUILD_CFLAGS += $(call cc-disable-warning, initializer-overrides) KBUILD_CFLAGS += $(call cc-disable-warning, unused-value) KBUILD_CFLAGS += $(call cc-disable-warning, format) -KBUILD_CFLAGS += $(call cc-disable-warning, unknown-warning-option) KBUILD_CFLAGS += $(call cc-disable-warning, sign-compare) KBUILD_CFLAGS += $(call cc-disable-warning, format-zero-length) KBUILD_CFLAGS += $(call cc-disable-warning, uninitialized)