Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp193354imu; Wed, 21 Nov 2018 18:00:35 -0800 (PST) X-Google-Smtp-Source: AFSGD/UyoANBXLeJgjtQ7UR8bunm498CjZ/k6KewaHPW1HttZlMZUxe5HV0eJb2Xl+Ewk0Ad7nVk X-Received: by 2002:a63:ba19:: with SMTP id k25mr8186891pgf.194.1542852035792; Wed, 21 Nov 2018 18:00:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542852035; cv=none; d=google.com; s=arc-20160816; b=lorZDRVhsmvnmS1p078cvxb7npFl2xsWFcRpS5vOpdg5NFt+k2nXZCilONeCGlmE4i 2ARdoFCbmYDILg7Nl3vF81iZ+V4pyJc0mqUCKjumddfVdTOvKGR7aJU21wqQ1UkxFjUb sD8FIULkqTcMr1qX6s+ggiR0OJ2HZ3oh7NxsBEMVn1Cj5V82k3gl45iFyw0iVUit6elC UGFWlQbmwhmmY70bE4YsBwRzwbBWXAIXRQPnqWQWvtA+wAYq3mUWgmP9PxZqK3o+gj6A 3FDBpeUXL0MeIKtPu5bv8+0YizHpZhqYgScv5Z0LnI8iqqRg9I2m4ldRbPRYTIfNM45b 4eqQ== 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=7LnR1whi3fCktNHA4lhxnEMOZoyUlIA+LYKd9nJvDZc=; b=kUpqiZ/JRHgcoggS43qE9URdjcH8ld/tfnIHL7Z0pECgTQslbLTvv9C+oVwwuSaSPp kT8YN+GasRHB9fNwbJPNM5K+RmS83+g1IqSKyMJ1yZHfF/eSjyk8vg8RMcVq6mqxp3Ji gK4MsNGbi7kdzH71VaEuwcjZI4YaRW3N/DiCZxo5I10vtqPNNlpg2h5zle7BWeF8FYSV 3leAcOJGwEp7ng945FR4XslU35k4ZbeGXzT+5zmqdDbO9HCTIwInzMp10OUBAq2fRkzA smuTWbAb6/3aJSlhVVAwFWQuw8V+K/qMBY+jlpsBo99/SHuT1XyQhVq/MluHf4L8bZsB RjHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="a4vdo/2m"; 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 i129si9233882pfb.32.2018.11.21.18.00.20; Wed, 21 Nov 2018 18:00:35 -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="a4vdo/2m"; 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 S1732742AbeKVGOz (ORCPT + 99 others); Thu, 22 Nov 2018 01:14:55 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:40502 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728923AbeKVGOy (ORCPT ); Thu, 22 Nov 2018 01:14:54 -0500 Received: by mail-wr1-f66.google.com with SMTP id p4so6918745wrt.7 for ; Wed, 21 Nov 2018 11:39:15 -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=7LnR1whi3fCktNHA4lhxnEMOZoyUlIA+LYKd9nJvDZc=; b=a4vdo/2ml5eQ9BRGYN2EP+P+2awrFFv3xldZYspRRFmSeC49418y+d/9MZooWthiDl 3hBcyCUYtW4LtEUO5l/myUwMFdBrgsHZ9DwZRJcLXqSvxAPYCkbb+7JCUbmx08nL9vTy F2nLF8vrHrao6JBLzP9+JijQ6eauz5dHdiKts= 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=7LnR1whi3fCktNHA4lhxnEMOZoyUlIA+LYKd9nJvDZc=; b=Cci+5jNIEFz9+nKo8ZIiSNnOC+xVPSw8YfQ7PmxMy6uvOK11vdMbxiEL8Plu6jkC0N YC5UNv16+dajC7z/oJUL5+/8yxsqSf9oWPSSCIOt6SWqvGCqGUJdyiGf3fX/YvxA5Yr2 a0T5QRuCz1z1kt1aJzg11TJDA7ta5cyPfUeBdZu5dD3xou9ZHKNa9wx6JVfo/Z92hQW9 GlVAWygl8nMAHgxoo2rEVA9ETVnXiquuMFSZc6D517BAYdqKeqi+8f+5Joo76n9IpJgC k0aqhvQCsKmNjIE4K0p02BQNlCpNT0J/P0+rw9e+M98WJDeEwcOI0n3A5E2KL3Z59uoq e/zw== X-Gm-Message-State: AA+aEWZpx1TRwtC5DvNCQ+VBkoArlyOSW2JOk1dyLSib/+/oCOW8pesD Pf2LR0lrVZGFk1pEX+QyrwON9LKk9xaQRoc4RzZcGg== X-Received: by 2002:adf:a4d9:: with SMTP id h25mr6648764wrb.167.1542829154769; Wed, 21 Nov 2018 11:39:14 -0800 (PST) MIME-Version: 1.0 References: <20181030202713.26203-1-semen.protsenko@linaro.org> <20181121181042.4gzuniz2vzjikpwc@cs.cmu.edu> In-Reply-To: From: Sam Protsenko Date: Wed, 21 Nov 2018 21:39:03 +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 + 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 > >