From patchwork Thu Apr 6 12:54:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Liu X-Patchwork-Id: 9667139 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 797F6601EB for ; Thu, 6 Apr 2017 12:57:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 619AE205FB for ; Thu, 6 Apr 2017 12:57:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 529AC26223; Thu, 6 Apr 2017 12:57:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 902DB205FB for ; Thu, 6 Apr 2017 12:57:17 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cw6vx-0001ap-2O; Thu, 06 Apr 2017 12:54:41 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cw6vv-0001aj-Sd for xen-devel@lists.xenproject.org; Thu, 06 Apr 2017 12:54:39 +0000 Received: from [85.158.143.35] by server-7.bemta-6.messagelabs.com id E0/1D-04817-F8A36E85; Thu, 06 Apr 2017 12:54:39 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrNLMWRWlGSWpSXmKPExsXitHSDvW6f1bM IgwubtCy+b5nM5MDocfjDFZYAxijWzLyk/IoE1owj56YyF0zgrli2jKuB8RBHFyMHh4SAv8SP 1XVdjJwcbALKEj87e9lAbBEBPYmmA88Zuxi5OJgFHjNJtL1ZzQSSEBbwlTiy4zALiM0ioCKxd dULdpA5vAIWEvNXeYGEJQTkJXa1XWQFsYUEFCQ6ph8Da+UVEJQ4OfMJWCuzgITEwRcvmCcwcs 9CkpqFJLWAkWkVo0ZxalFZapGukYleUlFmekZJbmJmjq6hgZlebmpxcWJ6ak5iUrFecn7uJkZ gIDAAwQ7GfR8jDzFKcjApifIq+DyJEOJLyk+pzEgszogvKs1JLT7EKMPBoSTBa2z5LEJIsCg1 PbUiLTMHGJIwaQkOHiUR3lKQNG9xQWJucWY6ROoUo6KUOG8TSEIAJJFRmgfXBouDS4yyUsK8j ECHCPEUpBblZpagyr9iFOdgVBLmLQGZwpOZVwI3/RXQYiagxT63noIsLklESEk1MOqk9J96/V jcx2K+yGctrWZDYYMV0zI3PWK+udLscqdH7Me7d98ulXlXXeo58/7Jpx1nK9rz7v9N//f7y4c Nv6e/aTtzrK9z4lv/7sk90zabLNi2oGKGAa+XfGz+x7yXEf0vbXN4a1Rvs7zcz+PK3Pk69cSP W3EZ0hsOyZ++aGpuFyevpe4254ISS3FGoqEWc1FxIgCr6qfEfgIAAA== X-Env-Sender: prvs=262b22d93=wei.liu2@citrix.com X-Msg-Ref: server-10.tower-21.messagelabs.com!1491483276!55929611!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.4.12; banners=-,-,- X-VirusChecked: Checked Received: (qmail 53471 invoked from network); 6 Apr 2017 12:54:38 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-10.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 6 Apr 2017 12:54:38 -0000 X-IronPort-AV: E=Sophos;i="5.37,159,1488844800"; d="scan'208";a="426498288" From: Wei Liu To: Xen-devel Date: Thu, 6 Apr 2017 13:54:34 +0100 Message-ID: <20170406125434.10793-1-wei.liu2@citrix.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Cc: Stefano Stabellini , Wei Liu , George Dunlap , Andrew Cooper , Ian Jackson , Tim Deegan , Julien Grall , Jan Beulich Subject: [Xen-devel] [PATCH for-4.9] xen: append -Wno-unused-function to C99 header check X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP The check builds header file as if it is a C file. Clang doesn't like the idea of having dead code in C file. The check as-is fails on Clang with unused function warnings. We know for sure we don't care about those unused function warnings. Just ignore them. Signed-off-by: Wei Liu --- Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackson Cc: Jan Beulich Cc: Konrad Rzeszutek Wilk Cc: Stefano Stabellini Cc: Tim Deegan Cc: Wei Liu --- xen/include/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/include/Makefile b/xen/include/Makefile index 65a732a707..b0bacc99b5 100644 --- a/xen/include/Makefile +++ b/xen/include/Makefile @@ -111,7 +111,7 @@ headers.chk: $(PUBLIC_ANSI_HEADERS) Makefile headers99.chk: $(PUBLIC_C99_HEADERS) Makefile rm -f $@.new $(foreach i, $(filter %.h,$^), \ - $(CC) -x c -std=c99 -Wall -Werror \ + $(CC) -x c -std=c99 -Wall -Werror -Wno-unused-function \ -include stdint.h $(foreach j, $($(i)-prereq), -include $(j).h) \ -S -o /dev/null $(i) \ || exit $$?; echo $(i) >> $@.new;)