Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6373420rwl; Wed, 22 Mar 2023 09:45:12 -0700 (PDT) X-Google-Smtp-Source: AK7set8WFT+IFGxDD/4n5WYfQbI1XPo7/mZQmbts0PbQWdGPk3awjPavNzq9LyrsfPcdgX/RV8N6 X-Received: by 2002:a17:90a:1908:b0:23c:fa83:2a7d with SMTP id 8-20020a17090a190800b0023cfa832a7dmr4513238pjg.12.1679503511962; Wed, 22 Mar 2023 09:45:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679503511; cv=none; d=google.com; s=arc-20160816; b=xH9tufWRtio1E2MdVF1HrzoVlzou4fjDQ64kBwNirBsJslPl9uKImM5VcrTkubsAq2 Ml9vVji4HlBJMTWZ4qYTOXdPLm/e9cf1QcbBtav1P3poR4Bh4qYQhUsX5qdzOcU0QLqn 2XcficCSqDH8vNA6Tuy74mwVmIGyrg/Hf1jNsq2IvMtMqb4B01Htd9v+3JZnMcxT9OCa SsXY/McUG5WK0Rh2FV3NzFmyPlfsJ6b+BeAeVFeL9iSDh6XHHi9YJu9WHD7e+WJOwYIB ZCJ/3J/aTTiavHnD4DseK0sfGpYgKVQhrJrQ6cgOJYFwM1Ea4oYN0QYOMMlO+lh0y+++ PuVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:reply-to:in-reply-to:references:mime-version :dkim-signature; bh=scYlvuYnUfIO+ytvcQ1WgmMTc6bJHOSg7B8uMz0Bpnw=; b=vGwACfxwCcaKRxw7Z2A74WwTww/VDmwQtL9GOqcLUz5EsxDrvKPlers5KLMQtmv86x 7jjmi0tXYiN+ihfXl8UphT0q9zdCGywMfy1wh5Ub+VailT/CO0sgZ2gsHZna43rPBDR2 nJ5ARD4t2rLTbgR6AM1Ly/hAbkrEVrAUE30rFpWZj7FIDQ6ofdwi6xTqnaoOkk+6LkKu kxA0M5R6l0fZS9jmDIrcJ+lxJ+8v1Lq8h7l2qEPil0N+FDBy6C3llEFs17cr5dMu2AfA hgxeiAU0hkojAJGqoBa+Hfj69rwAHmGI5GUYoQOa3ZbAtoz332usKwjfiHEOkLceX1+n 9xwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ENhKu62s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q19-20020a170902789300b001a04175b310si8393923pll.325.2023.03.22.09.45.00; Wed, 22 Mar 2023 09:45:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ENhKu62s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229496AbjCVQlD (ORCPT + 99 others); Wed, 22 Mar 2023 12:41:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230299AbjCVQlB (ORCPT ); Wed, 22 Mar 2023 12:41:01 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 697625B431; Wed, 22 Mar 2023 09:40:58 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id t14so19609955ljd.5; Wed, 22 Mar 2023 09:40:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679503256; h=content-transfer-encoding:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=scYlvuYnUfIO+ytvcQ1WgmMTc6bJHOSg7B8uMz0Bpnw=; b=ENhKu62sEGygmpYVXYnyZ+wza3E6eVReMpyEbPfstSh3doe6+xBn0m3mh4kNzH44z8 mhbZcXA5KQbpToKHUsMRVU7iRNXGq9rl9zm3u8NF14qmHh8y8aP+dRwGiv2QXqpBKAHu KofmS5ShKQVEFrbRhKF3zWynciqo9qDTYgN7Bu3qanZCYEcuiCCFk4lfzbGFujMgaYZj XJu+oTbAIz+xLoOreu608scgXFJjub5oUUjPScYvbhQ7hS+6Jqs5eP9XRPu9oBPXqLAj Cix2i1PqZyYigtNMYcaS5KMrkP0Gvk7vDJJbtLHeyvzP89jHDP5NSA3FrrbmgYytRi1m lXOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679503256; h=content-transfer-encoding:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=scYlvuYnUfIO+ytvcQ1WgmMTc6bJHOSg7B8uMz0Bpnw=; b=z30bCmwjdluTvmDwxNNUpzHx4oi/LIWkFL/1lXo9LZIaZSgiiPX1Qw41W32BoNApLt B5ECDgDO/D004GPHjaqUAGKdWaiWkE2ZkBerX8ov4ESbG0YIrpUDDlDk0pzzmn44vHER nF0B5akS+eLwivRbWWPNxK+dpidBn/feuu+NPaTZQnEFSM/Rrv9UM3N+IFmGXMYH53w1 HPoyIy1lBRqlQAh24cZ5JnSkcMq4kLkb4dkxF6O4iUufVWICAYcLGShAWv7CPtkm3oKO lrPoTYaPoCVSfRl5QR7tiKMq4e0RuJLPXeHTj+4CQWDEMmP+gtPDLFbthsRM+5NR1Ku8 AaRw== X-Gm-Message-State: AO0yUKVHtU+d4yz/R2OV8B6SOqwvogv20PMkFoirI02oK8GMSfAHSGRH qpNQssP81h8fR3V/8UkYvxJ4E/sbUVNP2U/2wMc= X-Received: by 2002:a2e:9ece:0:b0:298:7034:836e with SMTP id h14-20020a2e9ece000000b002987034836emr2170491ljk.8.1679503256122; Wed, 22 Mar 2023 09:40:56 -0700 (PDT) MIME-Version: 1.0 References: <20230320180501.GA598084@dev-arch.thelio-3990X> <20230320185337.GA615556@dev-arch.thelio-3990X> <87pm91uf9c.fsf@kernel.org> In-Reply-To: <87pm91uf9c.fsf@kernel.org> Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Wed, 22 Mar 2023 17:40:15 +0100 Message-ID: Subject: Re: Linux 6.3-rc3 To: Kalle Valo Cc: Nathan Chancellor , Linus Torvalds , Linux Kernel Mailing List , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-toolchains@vger.kernel.org, llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 22, 2023 at 1:49=E2=80=AFPM Kalle Valo wrote= : > > Nathan Chancellor writes: > > > On Mon, Mar 20, 2023 at 11:26:17AM -0700, Linus Torvalds wrote: > >> On Mon, Mar 20, 2023 at 11:05=E2=80=AFAM Nathan Chancellor wrote: > >> > > >> > On the clang front, I am still seeing the following warning turned e= rror > >> > for arm64 allmodconfig at least: > >> > > >> > drivers/gpu/host1x/dev.c:520:6: error: variable 'syncpt_irq' is un= initialized when used here [-Werror,-Wuninitialized] > >> > if (syncpt_irq < 0) > >> > ^~~~~~~~~~ > >> > >> Hmm. I do my arm64 allmodconfig builds with gcc, and I'm surprised > >> that gcc doesn't warn about this. > > > > Perhaps these would make doing allmodconfig builds with clang more > > frequently less painful for you? > > > > https://lore.kernel.org/llvm/20230319235619.GA18547@dev-arch.thelio-399= 0X/ > > Thank you, at least for me this is really helpful. I tried now clang for > the first time but seeing a strange problem. > > I prefer to define the compiler in GNUmakefile so it's easy to change > compilers and I don't need to remember the exact command line. So I have > this in the top level GNUmakefile (all the rest commented out): > > LLVM=3D/opt/clang/llvm-16.0.0/bin/ > Welcome to the LLVM/Clang world! First try - First Cry... In my build-environment I add (export) /path/to/llvm/bin to $PATH and pass single CC LD AR etc. (what is substituted by LLVM=3D1): make CC=3Dclang LD=3Dld.lld AR=3Dllvm-ar NM=3Dllvm-nm STRIP=3Dllvm-strip \ OBJCOPY=3Dllvm-objcopy OBJDUMP=3Dllvm-objdump READELF=3Dllvm-readelf \ HOSTCC=3Dclang HOSTCXX=3Dclang++ HOSTAR=3Dllvm-ar HOSTLD=3Dld.lld Equivalent to: make LLVM=3D1 I cannot comment on `make LLVM=3D/path/to/llvm/` and/or combinations with `LLVM=3D1` as I have never used it > If I run 'make oldconfig' it seems to use clang but after I run just > 'make' it seems to switch back to the host GCC compiler and ask for GCC > specific config questions again. Workaround for this seems to be adding > 'export LLVM' to GNUmakefile, after that also 'make' uses clang as > expected. > You have to pass `make LLVM=3D1` in any case... to `oldconfig` or when adding any MAKEFLAGS like -j${number-of-available-cpus}. Hope that helps. Best regards, -Sedat- [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree= /Documentation/kbuild/llvm.rst [2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree= /Documentation/kbuild/llvm.rst#n52