From patchwork Fri Apr 21 21:39:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Kaehlcke X-Patchwork-Id: 9693819 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 E00D5601D4 for ; Fri, 21 Apr 2017 21:41:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D0FDD28662 for ; Fri, 21 Apr 2017 21:41:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C54AA2867E; Fri, 21 Apr 2017 21:41:01 +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=-6.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9097E2867A for ; Fri, 21 Apr 2017 21:41:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423710AbdDUVk7 (ORCPT ); Fri, 21 Apr 2017 17:40:59 -0400 Received: from mail-it0-f51.google.com ([209.85.214.51]:34301 "EHLO mail-it0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423465AbdDUVky (ORCPT ); Fri, 21 Apr 2017 17:40:54 -0400 Received: by mail-it0-f51.google.com with SMTP id 193so337008itm.1 for ; Fri, 21 Apr 2017 14:40:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/bsYT3hlQk8FfB0uqBjvO+QEAdrpvL2pElWI6FwBQsI=; b=DLzaLqVHooa9f92QH2RbWAn8JlWSj9q3zLdVrBSS7kpLrIw6GfLkgLsCGzJB83YRck I8eJIvcdJzYfXJFFm0jTz7X5ELDPhDU/7IJpPOu3nHMoigKaw7w61fJu0Cojw2F/naix iznzDMQxlbcrKwEWsh5WDJReWjuj989laYxA9ySSgXY01ghNgOe+owWV7O3+teFfGiyf L5Farizn3pdDlIoUvUjNcfL/kibFhFm7+ySIFd0QPW4jxZzeYiKbFCdTamMDdtJ+lEdP dXjA73W3O64nDZhq1R2OlUFcUkNYzIAsFRQjP+UmfRTZrtq+iwa1G8eiFVCPQbysOHe5 HCvA== X-Gm-Message-State: AN3rC/5eBcPBPfILZGq3zF3gNwDIr9Mn+YLWArqUtzsG9Ec2iby0Nk1w 1gH7VPVXinEY3FoZ X-Received: by 10.84.138.1 with SMTP id 1mr18208477plo.29.1492810853000; Fri, 21 Apr 2017 14:40:53 -0700 (PDT) Received: from mka.mtv.corp.google.com ([172.22.64.162]) by smtp.gmail.com with ESMTPSA id u85sm6114493pfg.64.2017.04.21.14.40.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 21 Apr 2017 14:40:52 -0700 (PDT) From: Matthias Kaehlcke To: Masahiro Yamada , Michal Marek Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Grant Grundler , Greg Hackmann , Michael Davidson , Matthias Kaehlcke Subject: [PATCH 1/2] kbuild: clang: Disable 'address-of-packed-member' warning Date: Fri, 21 Apr 2017 14:39:30 -0700 Message-Id: <20170421213931.155210-2-mka@chromium.org> X-Mailer: git-send-email 2.12.2.816.g2cccc81164-goog In-Reply-To: <20170421213931.155210-1-mka@chromium.org> References: <20170421213931.155210-1-mka@chromium.org> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP clang generates plenty of these warnings in different parts of the code, to an extent that the warnings are little more than noise. Disable the 'address-of-packed-member' warning. Signed-off-by: Matthias Kaehlcke Reviewed-by: Douglas Anderson --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 5039b9148d15..df5abf346354 100644 --- a/Makefile +++ b/Makefile @@ -703,6 +703,7 @@ 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) +KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member) # Quiet clang warning: comparison of unsigned expression < 0 is always false KBUILD_CFLAGS += $(call cc-disable-warning, tautological-compare) # CLANG uses a _MergedGlobals as optimization, but this breaks modpost, as the