Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp4688110imd; Tue, 30 Oct 2018 06:05:34 -0700 (PDT) X-Google-Smtp-Source: AJdET5fe4ZGep4hN1qeQm6EAaToW0qAsBmiKXYPiPClfR9TBTUbS26y6pyFWx4R/hfmivMfQ46Bw X-Received: by 2002:a63:b801:: with SMTP id p1-v6mr17887553pge.327.1540904733801; Tue, 30 Oct 2018 06:05:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540904733; cv=none; d=google.com; s=arc-20160816; b=kqOt7lcgg2NLVCRqW8kS8WWu1Ll+6uP4ck8fWMsa3D/I5A5Wq76ji/m7SqD7pIf7Vn /Z/lyTh7OyuxcCdyKmIaji3JSvd5f8hZbezkrwDshrqSdkECQqqBTSgtV3yUdXATjUSV 3rfjD8fCLeSCH4iFTDxq+NLG/ZbYP6fZOC31bm9AVHS2jo7+QFx9bikbqiGseA4nof9J Ny/F7Dy8DBWouXfRJNnMb5oTNG8dYzLIeuHIKnFV5UJQlo9HKrrGZxVYi59Z7ZYtj+20 +xT49kF1DzMbSHId8/jdaEdV+ivkPNzAiWZYV+U76E26xi/Q9/kMa0NWJEeDD52sqzOV /4Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date; bh=MQX6B+qR/PYsElftddOvR6UywQYu1SjF1dzomle4rCU=; b=xbjQksQehQhVbbzcbWLklUL4tsF1USwk1Of6NuydHR9MNg4V+VdL/NqIXJRa4VfRoV Vl5YQ3YS8LiT0UAikOf2VHg4lfxzXI763z1G3iBqSMu5CyLbsRt0JsfGdMoLCtgvQrxx 4bb8kv0zVm9GJos+nm1aWzDSvb4Hk2dTtAgP42ZfZwLJv6PnCHjcWZ88anyW2iIY1IaY zkIIGfErqYhR6/gNkGTCeuYftyexqh6rRWeviakOjO6TEW1n/uDDPymTsP/p1b14jjzB nuFegNYoFatX8dwVrrr25tBpFMr2xe6NXIm5nf+Jaoboj8Cgv4hTJBbXInxZNSChgHnR pAUA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmu.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w7-v6si22574799plz.23.2018.10.30.06.05.16; Tue, 30 Oct 2018 06:05:33 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmu.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727939AbeJ3V50 (ORCPT + 99 others); Tue, 30 Oct 2018 17:57:26 -0400 Received: from hurricane.elijah.cs.cmu.edu ([128.2.209.191]:43698 "EHLO hurricane.elijah.cs.cmu.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727620AbeJ3V50 (ORCPT ); Tue, 30 Oct 2018 17:57:26 -0400 Received: from [127.0.0.1] (helo=cs.cmu.edu) by hurricane.elijah.cs.cmu.edu with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.91) (envelope-from ) id 1gHTgg-0008Ug-UP; Tue, 30 Oct 2018 09:04:02 -0400 Date: Tue, 30 Oct 2018 09:04:01 -0400 From: Jan Harkes To: Sam Protsenko 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 Subject: Re: [PATCH v2] codafs: Fix build using bare-metal toolchain Message-ID: <20181030130401.3ab5gl4fsvpa2fes@cs.cmu.edu> Mail-Followup-To: Sam Protsenko , 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 References: <20181029200311.16947-1-semen.protsenko@linaro.org> <20181030063408.GA26627@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 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 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