Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1014708imu; Wed, 9 Jan 2019 10:04:15 -0800 (PST) X-Google-Smtp-Source: ALg8bN4MbkpE6hueFKuRhxOTkdp3dfgatL43+lD3m+IDO6bIsfdwVWSDn/ZsIHeVFH8ok37KSrBM X-Received: by 2002:aa7:8542:: with SMTP id y2mr7029224pfn.83.1547057055353; Wed, 09 Jan 2019 10:04:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547057055; cv=none; d=google.com; s=arc-20160816; b=jCNgsRP+yvmLkhM0BV5QWseFsfN1hoaNvIoWIozLpkDd+PkEQt0tswR7B5OuVRlrp3 52/Mfyc1AFNjIhO1r00AqE/sq+iKNzti32dKHxskAcbSm7amipuBGAGFjvG9mHn6r3wS fIMOoHI1byWf7pMonQ3qRKknVkiz9z3ZAdHXvBqZuYfr3mVgJwNZvCxHPhHYhHJSGgo2 2kmTj9rI8rSKvW1F44jH3qVkzoJc7/zEbdoT57zABw1qQTjYzvnoLkRTQ+ypg+ePZJaj we12YUISP7Tf5S32Hac3ci4wn4ZhtINeVLbKMkbZXIq1qvMBkFF1OuY1asyMkogkQ8Y9 1R2Q== 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 :in-reply-to:references:mime-version:dkim-signature; bh=HY+OQ3ffRelZp13bVBLS+b4yYxzUbzfM5ORJ9lwDgfQ=; b=ArJH7idpUFNx8fgH/AaP+20gzJpapejxTVl3SY1GPL82/RQw3nuIha6AZHzaH8kow0 CeRCG7JAh3+acWJcjL+QHcW+/ot1J3HOXt18EtnBG1KqRbQXdpUqoQzlyqzXMYiHwB8T JQrBYMvpkKITWONbKJG7zG7JakZQwPm4AeUGPf9c9CzZrsEPj1LQSFdDkOwCVgS8ICda xnTEJPZ/G6L3W4RRqzSx9xLtsW9yVbMYU3RSo/3z7wBiAX2+tdkbvNkIxM3vycSnAQ4l Qnh4TvdUx9cTMtu657Al7R3RgwShrPkiql7/3FmaOhDbuQVniFgg0jj6eFsUvSISEv/0 Euug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=L3+UbbUv; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z5si8211238plh.133.2019.01.09.10.03.59; Wed, 09 Jan 2019 10:04:15 -0800 (PST) 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=@linaro.org header.s=google header.b=L3+UbbUv; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731944AbfAIPqN (ORCPT + 99 others); Wed, 9 Jan 2019 10:46:13 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:35919 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731857AbfAIPqN (ORCPT ); Wed, 9 Jan 2019 10:46:13 -0500 Received: by mail-wm1-f65.google.com with SMTP id p6so8745903wmc.1 for ; Wed, 09 Jan 2019 07:46:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HY+OQ3ffRelZp13bVBLS+b4yYxzUbzfM5ORJ9lwDgfQ=; b=L3+UbbUvIEo/nYGUHUUdR2Slp31zq2+RVR+yBUTW50VxU3LqhpQPV80+vRu3kVKgO/ lkzWfQq9aYjOV/jSNin6DvEjEwg9LD9lJ1GUcofsViIekS72VdwIAVVp4lRUjpsH4Oez zgDx2I/N0Ls/IrtmhvUwiuJxNzhtVGmDxR9OI= 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:from:date :message-id:subject:to:cc; bh=HY+OQ3ffRelZp13bVBLS+b4yYxzUbzfM5ORJ9lwDgfQ=; b=ZAQDvH22aux0D2BnDqum2RdrLa7he7W9YEVLMEMjl29U73vWueJJvOCfkNAl60XxmA 2j9LcSNKvpVbEU5oKo4cC9rqwtnsS+idJJ+/KIQIwr4AqqwRUIp9lJbZBZXEtSlivLMQ 5BtpOp2730/RvK9tMmCXIXWI+C/j+dpeMonrkdC/+Qsm+rVQyKENlDlC9ydInkF9Jcqh +t9qiYmj8afSRL7cqDIe8hWT4HSWr1Z5wXA/tgz4lYiTFR5DxvNNWx/vWJReqBu72i6b xTF7PdZc6wFdD1/UNsh2KeKN+vgcKzBHefwjN8SMHDWU3kRKAbB96GUXH8zr+JXk69zb AhRg== X-Gm-Message-State: AJcUukc1kQZ7PZ3X+DgK8YAAtLNakzy5L4iXEELj5c7xsGq/JcrgJ1uf ZYNkOMi3kGGYLtLEpsRnWi6/CzWISkYd+gdJDN/1Nw== X-Received: by 2002:a1c:9a0d:: with SMTP id c13mr6416517wme.41.1547048770995; Wed, 09 Jan 2019 07:46:10 -0800 (PST) MIME-Version: 1.0 References: <20181030202713.26203-1-semen.protsenko@linaro.org> <20181121181042.4gzuniz2vzjikpwc@cs.cmu.edu> <308CF0BD-90AE-45D2-BAF9-D297A530B0F4@cs.cmu.edu> In-Reply-To: <308CF0BD-90AE-45D2-BAF9-D297A530B0F4@cs.cmu.edu> From: Sam Protsenko Date: Wed, 9 Jan 2019 17:45:59 +0200 Message-ID: Subject: Re: [PATCH v2] codafs: Fix build using bare-metal toolchain To: Jan Harkes Cc: hch@lst.de, Andrew Morton , kernel-janitors@vger.kernel.org, Linux Kernel Mailing List , linux-scsi@vger.kernel.org, Praneeth Bajjuri , Ruslan Bilovol , Andy Shevchenko 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 Hi Jan, Can you please clarify on this patch? As I can see v5.0-rc1 is out now, which means merge window is closed, but I can't see this patch in linux-mainline yet. Do you need any additional steps from my side (like rebasing, etc)? Thanks! On Thu, Nov 22, 2018 at 12:49 AM Jan Harkes wrote: > > That actually makes a lot of sense. > > Jan > > On November 21, 2018 2:39:03 PM EST, Sam Protsenko wrote: > >+ Jan Harkes back to "To:" list, slipped away somehow... > > > >On Wed, Nov 21, 2018 at 9:36 PM Sam Protsenko > > wrote: > >> > >> On Wed, Nov 21, 2018 at 8:10 PM Jan Harkes > >wrote: > >> > > >> > On Wed, Nov 21, 2018 at 06:41:13PM +0200, Andy Shevchenko wrote: > >> > > I'm not sure how you managed to miss people in this list (perhaps > >by > >> > > default you have suppress all Cc in your Git configuration), but > >I > >> > > guess we may gently ask Christoph to apply this in case Jan will > >not > >> > > appear. > >> > > >> > You have got to give me a little more than 10 minutes to respond > >before > >> > assuming that I would not appear... I don't think I've ignored any > >> > previous emails on this subject and the only issues has been some > >people > >> > not receiving my responses for unknown reasons (agressive spam > >filter?). > >> > > >> > I have no problem with this patch, have it sitting with some other > >> > non-urgent patches and in case it doesn't appear upstream it should > >> > piggyback with whatever I have to send. > >> > > >> > >> Thanks, Jan, really appreciate it. We need this patch to fix our > >tests > >> with allmodconfig configuration (in Linaro CI loops). > >> > >> > I still don't know why the bare-metal toolchain couldn't just add a > >> > -D__linux__. I understand that this define is expected to be > >always > >> > present while compiling kernel headers so that there is no good > >reason > >> > to even bother testing for it, which is why I have no issue with > >the > >> > patch. But it seems it would make your life a lot easier if you had > >it > >> > defined. > >> > > >> > >> As I understand it, from toolchain's point of view, if __linux__ is > >> defined then it means that the program is being built *for* Linux > >> (i.e. we can use Linux specific features, ABI, like syscalls). > >> Checking this definition can make sense in uapi headers, but in > >kernel > >> code we shouldn't use it (as kernel is baremetal program and not > >> compiled for some OS). I presume that's why __linux__ is not defined > >> in bare-metal toolchains (as those don't provide Linux specific > >> features, libc, etc). > >> > >> > Jan > >> >