Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp5077868imd; Tue, 30 Oct 2018 11:36:13 -0700 (PDT) X-Google-Smtp-Source: AJdET5euhe583mdS7VuATo0J49ikQGAGNIoq5z0PXRER4D01iR927PJwWZhq6vcaQAUo4eDTT14z X-Received: by 2002:a63:5c61:: with SMTP id n33-v6mr10076pgm.1.1540924573890; Tue, 30 Oct 2018 11:36:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540924573; cv=none; d=google.com; s=arc-20160816; b=Z+CxKzLWax0IDe6GAf2szizzfJSwB2et12LAJhFm+HmXvb8kXWjQaa1lgY51WArHAT JF4EryOTlWDz25H8Qj/GOHB2zxhOh/R/SzraZ+YPaGsAPjC2aXei2yNg7ehub7hrKKb9 Vg7HWcr9U7YJs4fuMiNuyem6WKPfQcTv8/Ydj8rZxfGonf8Bz3r4bzZNLCWCpRxd1PsK O4KMXBcdT9dXzXb7pqhpyTjVGTXp+oOW7gds21KsktYvajc6XYbp17LMslnsrXdzGVol HWKYuXHV+FDGpGdoEZd4gbDK765y0qKeLl52npno5+F/ZhfR3XlYX2p0yTFZq7TJ+E67 khKw== 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 :references:in-reply-to:mime-version:dkim-signature; bh=OOfrHVgDjv/JfbdwxeZaEJWG8Qs4VjChVVwAjVxQZ04=; b=rAipTEh0QkUCbO0Nq0HZK+mwZ2jChG6jPwB9LfAZ4tx02Zvsf4YhUQ2xvS/6Nl1Buq 8cQrrZmYSL58lpKz+3J3ur5vumyyIOVP3uKnFS2mMgC3HElfBH7HxTDe7cSVsUwbT1o8 OMlRy/ILNMV1BrWvrET5WzCyrSdV1Ha0PLxhnIMb63P/WdQe6GF+ozSCaGAFHJxnvzXW BZLtlDoxi/ZwZrQJHTyWQe+Q0W5pDBju0nX8KumnLgmj1NefC9E+OT+6WApE7A2I1kve SyMD/L2qTgtApo+tWOHjiw11zCB+T/ydKoQ8HDPU8Kv0zpo7wUrIcNO6c7dWN1OxpS6f DS/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hfcODBMg; 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 a123-v6si24100604pgc.219.2018.10.30.11.35.52; Tue, 30 Oct 2018 11:36:13 -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=@linaro.org header.s=google header.b=hfcODBMg; 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 S1728393AbeJaD2H (ORCPT + 99 others); Tue, 30 Oct 2018 23:28:07 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:36054 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728367AbeJaD2G (ORCPT ); Tue, 30 Oct 2018 23:28:06 -0400 Received: by mail-wm1-f67.google.com with SMTP id a8-v6so12280580wmf.1 for ; Tue, 30 Oct 2018 11:33:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=OOfrHVgDjv/JfbdwxeZaEJWG8Qs4VjChVVwAjVxQZ04=; b=hfcODBMgRtdmmqvCSNzcr2ol/eL2CQdTSSCc8i2b0NBsbZ8QdLKYW2o0+n1dDVcw1t 8sHi60DtxBB5IQfvQJbxj8doKNh1Ox8J0c1HEizAGwEo7E4GCQxfWtlIeV3uKwk3gsEr lGyfYh7UVEGZH4ZuS9LarWBuDpAzK57iLKpI8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=OOfrHVgDjv/JfbdwxeZaEJWG8Qs4VjChVVwAjVxQZ04=; b=GdcUoJR478w7getOmaBwzrPdla2viAvdk+tw2fQ3lqnbp7JAzQ9V6JOmQtlRLuNm+W wefLpgMMonmsxHQXU6iBAI5ED4fqd2Ae0IvJAvEtUqJuVRkjwfWHoWykf+7srJHpsCxZ xcHG8RmKiopfUOnBfuSrqowcJuvgDltfa5kdN1gKmsQAJAtht7Daaok3hcR+9VUAkA94 BWBCiJIdQM39xDAjuk3ToPMB5WZUqCKyzGtcVOOqUVUys155g+koKwaq6VjYPBFqfk4a LljanWoODwNabuXqQLCXUJICAszqm9oEUkZoDTGH8m2BvmGtT5AYPdTAE1+794WA2Q2h zMPw== X-Gm-Message-State: AGRZ1gKd+9SfdkZTH5tS+QI9giCXxCHX1oSIC3BDJnCm7VIcudktHcQq iPbDNhj/Q+TcZtM3AqcqgWCBFHROdQcVJoGeR2YIig== X-Received: by 2002:a1c:8c8c:: with SMTP id o134-v6mr669wmd.35.1540924409303; Tue, 30 Oct 2018 11:33:29 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:adf:9f03:0:0:0:0:0 with HTTP; Tue, 30 Oct 2018 11:33:28 -0700 (PDT) In-Reply-To: <20181030130401.3ab5gl4fsvpa2fes@cs.cmu.edu> References: <20181029200311.16947-1-semen.protsenko@linaro.org> <20181030063408.GA26627@kroah.com> <20181030130401.3ab5gl4fsvpa2fes@cs.cmu.edu> From: Sam Protsenko Date: Tue, 30 Oct 2018 20:33:28 +0200 Message-ID: Subject: Re: [PATCH v2] codafs: Fix build using bare-metal toolchain To: Jan Harkes Cc: Greg KH , linux-scsi@vger.kernel.org, Praneeth Bajjuri , linux-kernel@vger.kernel.org, codalist@coda.cs.cmu.edu, coda@cs.cmu.edu, 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 On Tue, Oct 30, 2018 at 3:04 PM, Jan Harkes wrote: > On Tue, Oct 30, 2018 at 02:01:04PM +0200, Sam Protsenko wrote: >> On Tue, Oct 30, 2018 at 8:34 AM, Greg KH wrote: >> > On Mon, Oct 29, 2018 at 10:05:49PM +0200, Sam Protsenko wrote: >> >> Hi Greg, >> >> >> >> On Mon, Oct 29, 2018 at 10:03 PM, Sam Protsenko >> >> wrote: >> >> > The kernel is self-contained project and can be built with bare-metal >> >> > toolchain. But bare-metal toolchain doesn't define __linux__. Because of >> >> > this u_quad_t type is not defined when using bare-metal toolchain and >> >> > codafs build fails. This patch fixes it by defining u_quad_t type >> >> > unconditionally. >> >> > >> >> > Signed-off-by: Sam Protsenko >> >> > --- >> >> >> >> Can you please pull this one, if this applicable? I sent it a while >> >> ago, but I guess it got lost in mailing list. It might be also >> >> applicable to stable branch (as it fixes allmodconfig build for ARM >> >> with bare-metal toolchain). >> > >> > Why are you asking me? I'm not the maintainer of this file :( >> > >> > confused, >> > >> >> Sorry to bother you. I just thought you might be interested in this >> one, as it fixes build for "allmodconfig" configuration, hence it can >> be related to stable branch. Also, maintainers didn't respond to that >> patch, so I'm kinda dead in the water. >> >> Anyway, will try to ping maintainers one more time. > > I thought I had responded, I didn't see a reason why one would want to > compile non-userspace kernel headers outside of the context of the > kernel and if you do have to do that why not just add -D__linux__. > > However, I can also see the point that anything not in uapi/ pretty much > by definition will be compiled with __linux__ defined so it actually > doesn't make a discernable difference to just drop the ifdef and I'm > fine with a patch like this. > > These trivial patches typically get picked up through kernel janitors, > or maybe an akpm linux-next patch queue. In fact, I'm not even sure if > there is a designated person I would be passing updates to, I've sent > patches to akpm, viro, hellwig, linus, and gregkh at various times. > > Jan Hi Jan, Thank you for the reply. Good point, I will try to re-send this one to Andrew Morton and kernel-janitors. P.S. We need this patch for fixing LKFT/ci-loops build. Thanks!