Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3300639ybl; Sun, 11 Aug 2019 20:32:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPfZ4VA2YFIoG7E/HUYBu9uQES+2XsHOUbp9WXqPMBeBa0nxrIVpk5YIZHdq6cONLrjA3m X-Received: by 2002:a17:90a:c20f:: with SMTP id e15mr15238068pjt.123.1565580764471; Sun, 11 Aug 2019 20:32:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565580764; cv=none; d=google.com; s=arc-20160816; b=SqhGLE1OYQQGFhga1IxFp7DbyDnFry9Hu78CH7u5vXcndFcpff78YI1n/vbPCntNBJ GA1hybnnUsOlwv0ueghsO+cVNaZyomoy0ueWvVK1dtkAwk1i+upNVZXMPh1vRAmdr4nm Xn4P/O8fBzjgtzeZCJkOuqhwmC6OSSaURowj6/8qkQZOls1kEkBqdHvvXQXnkC557IyD HD8ALkWSn5jWeUx2iaQvg1Nb6D8bmCh3VGQWzbSE4eoNa5zyC+jU8kN8PHSnN4yVHV+y FnX6O5SaV8atFh/9tr/Pmwytp7y8XDwMhlKEFAXkUhPVulalBI7tQEL1S+0YYqTHCCQP f0Zg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=015uEYjEdFgD5EcbxQBzasE/Mke0/bgRh00o9GHZva0=; b=u2SZQRHvrz1It2Q+LkCCnf8zKu9Znry0qyuL8mJv4sXMgrGpNK9frUmHkWIRAG7cR+ aadiPGAGyv3llpiymwT0wB5PNCtwZfI3YMXPdKLnXqdxF6pyZTXwHxJ1wRMU5yP3mTk7 uVyqv8ZJd8SbG52IjLKHEtYe8vufKdL0pyMgsgiSruheRtlxx6qF/5rXlR8qfCbN2X55 Bb4fnhr4t3wy5y9fQchHoI9Iegs8dPUhn7LK5RjqsAsZigU7hBbXxbw3MGg2QOJrh1DM MMuvUhUnODYSUqt9qsCbeZL+JWSuKHIrT5Mt0o0A/Cqjb2I6pCm4f1lz8r2AU6zgvVzY usGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jtsyS+GK; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a18si62853257pgg.28.2019.08.11.20.32.16; Sun, 11 Aug 2019 20:32:44 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=jtsyS+GK; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726484AbfHLDbc (ORCPT + 99 others); Sun, 11 Aug 2019 23:31:32 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:54916 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726144AbfHLDbb (ORCPT ); Sun, 11 Aug 2019 23:31:31 -0400 Received: by mail-wm1-f68.google.com with SMTP id p74so10818650wme.4; Sun, 11 Aug 2019 20:31:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=015uEYjEdFgD5EcbxQBzasE/Mke0/bgRh00o9GHZva0=; b=jtsyS+GKKbqKmghu64eDI2F1Aeep7vqC9zE/KMpc5cqLWd34Iln43ty2Cxqqlz0o/+ C4aPiXYqEElm2adXiPv5rlP8FcCVO1RNmIQ+wsyd6P/4DtcXimsoF4HdhpV+q8PtZVyL fSjnd3psn4H6BkMa6NI2QeAlKPL/4xdc7kiPtkO9D2wnFAm9ieDtWBo8rk/HU40IxwuA XSoup8kYS/UZEMiioIyZGHm5XRlmrnW58FzN+JpzDrMQTWlQAxPeGl0FLjqd0G2yDoZy mpHpsdxDt9G0kd8hWSf5NFMJWsZvppAgNuDbSMMJhrozUCEsZ0mUyrW2/ZSWbhE/raIi HCRA== 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:mime-version :content-transfer-encoding; bh=015uEYjEdFgD5EcbxQBzasE/Mke0/bgRh00o9GHZva0=; b=r/DQ4QWBK61jS4SZuc5VqM935u8DaAyoZUqgLv1j2W9IheeaNkqAO8hYiU6RF7VGN3 MVTqTiweUJPe/XzExl9GiFDwYGHpJpHvYPfksJbjBOxMX32U5IAOP4AqpoJ3EYUkto1q RAsWWe6s22ICuY8lt6I+a8hgvckChW1CuctKVYcntGR02+/pzaIseNkiHdfGnDjYq+kB 512BApGZHzRGHwrn7oAjTOfSIxbqTC2YT2Ty/OCnTa/Wi9YMgBeOP1Y15HI5DjAPk48P 89EpV0p3NfAuf7r+iyw+pZgZiWBCUKqjuX/EeCkIzA36jWnlWlydUm2IdMomY429ooy7 LqEw== X-Gm-Message-State: APjAAAUy5BO+Ba8Gv9kI1rSjMyJpJ7b5GdUIqXdzcNrtai8KDyTSDJe6 H4KdocEugG++1ibU2qcDCjU= X-Received: by 2002:a7b:c8cb:: with SMTP id f11mr11575599wml.138.1565580689506; Sun, 11 Aug 2019 20:31:29 -0700 (PDT) Received: from localhost.localdomain ([2a01:4f8:222:2f1b::2]) by smtp.gmail.com with ESMTPSA id f12sm117299330wrg.5.2019.08.11.20.31.28 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 11 Aug 2019 20:31:28 -0700 (PDT) From: Nathan Chancellor To: Ralf Baechle , Paul Burton , James Hogan Cc: Nick Desaulniers , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: [PATCH 0/5] Clang build fixes for MIPS Date: Sun, 11 Aug 2019 20:31:15 -0700 Message-Id: <20190812033120.43013-1-natechancellor@gmail.com> X-Mailer: git-send-email 2.23.0.rc2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, As of clang 9.0.0 at r366299 [1], we can build a QEMU bootable malta_defconfig kernel with the following fixes (mostly due to -Werror) and Nick's patch [2]. This has helped catch some potentially dubious behavior with -Wuninitialized, which is stronger than GCC's -Wmaybe-uninitialized. If there are any comments or concerns, please let me know. [1]: https://github.com/llvm/llvm-project/commit/7f308af5eeea2d1b24aee0361d39dc43bac4cfe5 [2]: https://lore.kernel.org/lkml/20190729211014.39333-1-ndesaulniers@google.com/ Cheers, Nathan