Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2173494ybh; Fri, 24 Jul 2020 06:22:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/szcoso6C8S9/Taa5Icz8QC/87aFj4nhmIskX9Z3s7Q3WTbK8weMjLru1PmW+Yy64DNBz X-Received: by 2002:a17:906:2a5b:: with SMTP id k27mr9016887eje.82.1595596971043; Fri, 24 Jul 2020 06:22:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595596971; cv=none; d=google.com; s=arc-20160816; b=NNqbUMzvNG9i6zXmKzH29zxDSaUmg0ComegivFkS6PL7glSoF2fu5xRkJRMyEt3ZeP LmaezgzY3Cl5En6XfqaRzjkLuFkcEfvS7YVVWicAJKdins7sV+QR9jclmhvcS2l7iymH +sc90s9dteVdVgl1zWe51XV9UTGoQH+P1/w4ZzpPm83b7w6m+ILtp063nBa2J4KueGIH Ejh5knePsuQPgTpDawq8Uv58xKVuCk7ExAuZp2DGowO+siz2LJ20M2Ytt/SRWJG+a2EL CqIS/4qKeCnyWL57XXD1WI0CI6V/IbyHBsbXUjqZH8TsQ0Y3l++IB9huXCLR7YUGpjat AjIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:dkim-signature; bh=tFbmzkA+BL4QIkFszn1H7XqsMIWLAyiLJStY3Llb7xc=; b=Z8Hipq14tS50qlZiNQbrA8pcYHVmkaxkU6IclnRQhPi1sy3Re+ol8u9Bzc8T1KOXMT 8aEAUBcPw+g3PxG6Mf3Z51et959gLNZ1TIiP9FwH3KSq/eCWq4RYhJyZxa0MIdego5/d zhonimEg9RsT4RyjS0OUnfFK0m5hfGp5Q7SDJbgbJWlQUsuVnFsjgz126Bn5hn+M2hzG +Bi1mow0GJJYnaIqulUdJrG1gpbVPpWToD/rq1eoDFedUX4fhinJ2LAwDyBJY5X8Cqyo ZV3a36Hpdb55eR3ZE7xJAKgk2pqmchyG4gjLVsd6Og2EwPCNcWsxR4zd6X9UuTyioX0a YnJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Wmlhj+CD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id s19si459300eja.383.2020.07.24.06.22.28; Fri, 24 Jul 2020 06:22:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Wmlhj+CD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726607AbgGXNWR (ORCPT + 99 others); Fri, 24 Jul 2020 09:22:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726182AbgGXNWQ (ORCPT ); Fri, 24 Jul 2020 09:22:16 -0400 Received: from mail-il1-x142.google.com (mail-il1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 881C4C0619D3 for ; Fri, 24 Jul 2020 06:22:15 -0700 (PDT) Received: by mail-il1-x142.google.com with SMTP id r13so106870ilt.6 for ; Fri, 24 Jul 2020 06:22:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=tFbmzkA+BL4QIkFszn1H7XqsMIWLAyiLJStY3Llb7xc=; b=Wmlhj+CDR1XscUT+kL48FtFi8+2SDiECk+XC19tJmlMhpQBJuBwIL6g1yy+hAPLCiW YjiTr6ll2TpnFMbjUoiSfctTzyYDeEk2amokIe2677ubZy7CAFxYtsBi2Cg7GbsCIsrM 7KWZu/vMOftHv8LtSjtqssihogNDt8KooP6EzVWWlm7AliAGScXk20rlXP0x625f9ZWu TURXaD8+tOgFwoP30bjHtbQmB2HVzheHgprBFAM7gnTWDvWJDU2RJpOpvm5d+RXx50nq 59yFZABkgFnXxPtFkq9YKOOzkbZs/V5Gc+UeaqqFIjyFC3M/n54ArYnSqN+NoRLBmrnz xtCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=tFbmzkA+BL4QIkFszn1H7XqsMIWLAyiLJStY3Llb7xc=; b=AzA8jZyhLm5u7a3UsZ2WU3GLlOAcg/BIDKwtNrfYwGrOuXXECdjrF2h9tmYo3COfiN v45Q3J5HjMtggQDKj8oQiQgWI2NINBZcT5VLpwmKHvpUXcoyfHTWpiYoFTqdrowQxEXN m5oBAcWi2JSn+feIQan/ZfNUUH8I2M3CZ7afUrdVN4rPGK88StI9fhzWGx0IKl9Ph1Zq zQncvswFKgIAh055BOi7BzBNA5bUd4+hS0+vZIOeFsinCNpu0l+039ulzi1asrSOrEqR bxbYbv8ubfUDDeACAXvtbKPPGQKHvKIp+8ZJexLDSPZnW79cTv0x5pTKWBI0kuaMkVgo xUEA== X-Gm-Message-State: AOAM530i+YN6bc+RyCQYodq4G+iymrHFnwX0Fp5eFh0S1MPvvwR96nDQ O29tU0dATT6kwbq/IDCvSYe7alp4VMfEWFjnHFg= X-Received: by 2002:a92:8b11:: with SMTP id i17mr9875109ild.212.1595596934936; Fri, 24 Jul 2020 06:22:14 -0700 (PDT) MIME-Version: 1.0 References: <20200720204925.3654302-1-ndesaulniers@google.com> <20200720204925.3654302-12-ndesaulniers@google.com> <87365izj7i.fsf@nanos.tec.linutronix.de> <87zh7qy4i4.fsf@nanos.tec.linutronix.de> In-Reply-To: Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Fri, 24 Jul 2020 15:22:03 +0200 Message-ID: Subject: Re: [PATCH v3 11/11] x86: support i386 with Clang To: Arnd Bergmann Cc: Thomas Gleixner , Nick Desaulniers , Ingo Molnar , Borislav Petkov , Dennis Zhou , Tejun Heo , Christoph Lameter , "the arch/x86 maintainers" , "H. Peter Anvin" , Al Viro , Andrew Morton , Peter Zijlstra , "linux-kernel@vger.kernel.org" , Clang-Built-Linux ML , David Woodhouse , Dmitry Golovin , Linus Torvalds Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 23, 2020 at 3:56 PM Arnd Bergmann wrote: > > On Thu, Jul 23, 2020 at 3:14 PM Sedat Dilek wrote: > > What happens when there is no CONFIG_64BIT line? > > There exist explicit checks for (and "inverse") of CONFIG_64BIT like > > "ifdef" and "ifndef" or any "defined(...)" and its opposite? > > I remember I have seen checks for it in x86 tree. > > As long as you consistently pass ARCH=i386 when running 'make', > nothing bad happens, as ARCH=i386 just hides that option. > > If you run "make ARCH=i386 defconfig" followed by "make olddefconfig" > (without ARCH=i386) on a non-i386 machine, the absence of that > CONFIG_64BIT line will lead to the kernel going back to a 64-bit > configuration. > Again thank you for your feedback. Unsure if people are aware of the different behaviours and results. That's why I keep the same make line with and without "defconfig". Unfortunately, I had no opportunity to test the patchset :-(. For testing I had done: $ MAKE_OPTS="..." $ ARCH=x86 make V=1 -j3 $MAKE_OPTS i386_defconfig (whereas V=1 and -j3 can be dropped of course) $ ARCH=x86 make V=1 -j3 $MAKE_OPTS Side-note: How wonderful my patch "x86/defconfigs: Remove CONFIG_CRYPTO_AES_586 from i386_defconfig" landed in . - Sedat - [1] https://git.kernel.org/tip/tip/c/6526b12de07588253a52577f42ec99fc7ca26a1f