Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp246273imm; Mon, 4 Jun 2018 16:52:55 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLLgr+C2aYBdzw2lrosBlVRmVWNr2rxOSTqjzCD2evKXjzKiDPi/5i4K+M/4a512H5D5rV6 X-Received: by 2002:a62:c0cb:: with SMTP id g72-v6mr18777737pfk.226.1528156375927; Mon, 04 Jun 2018 16:52:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528156375; cv=none; d=google.com; s=arc-20160816; b=BuuP/0Ti6GrWr4Y428Q0Sbvu+FtHF0qlp07pv/PE34m9W3QOI8gUcVy3uOpWRVLJNi PyqoTYFH4GwarYz5VO1Zr1M0n2iIBQEv/s0WHlnUJyJQK1hLQDBQKeEjnE2TYokhYECR 8D5pMPsrbhPYKXTeJFKB+CiHgslVNFsLWD4f+i8jdnehvbwtvN3hVq4FN/uYLFIkgp4d leruMDFjWaXGtmpfLy2oWi0S7ZRtjlPPBVAZnCzX5TnHpY9Cr3xzphVXiy6yKP9Tr5cP Mh0BHVyGTZa7qoNRYMTnfz08wf8nmHkNOSal+Qb4EgBbCLoaQ29FdSQwUCDwvyHKTIAT NhoQ== 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:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=JWEboUt7zsc5FNtzqyp36HJXLQ6kYHsacQ6ljld3cP0=; b=dvmpp6B4Uic2IyyNWS+sGiIUeO9pBvVbKUBcDiNqBIp5eHbUS6+847NRNJ6pdk0xwW wCQWyKXo4e1e/U8BOWrErNJ6JoSO6hNhRCiIKX3Pcm3sGuTPzzCjMBoX3lWToCGcqZCb WoT+lJUJtHXzU/QbUH1lor2gCTDIdwIxMsUQCayyaVysVwJhLllrfUp/UjDpnGGVyElD pYqHadrTHkGA0hLpMTnNcV7Ms85JhOzIlHk8z/g6+4hGJX0MHJfoxUizdWRKjrMRGCaf F6/ZOp1qND67TuIo5BSCJnVY/EX3eZYdVEE02beZDbgFIqXy8efwZQLk9Qm+IH+xvJY6 Um+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=a9fceoC0; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f127-v6si34875798pgc.503.2018.06.04.16.52.41; Mon, 04 Jun 2018 16:52:55 -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=@gmail.com header.s=20161025 header.b=a9fceoC0; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751273AbeFDXvI (ORCPT + 99 others); Mon, 4 Jun 2018 19:51:08 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:46430 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751000AbeFDXvG (ORCPT ); Mon, 4 Jun 2018 19:51:06 -0400 Received: by mail-pg0-f65.google.com with SMTP id d2-v6so225728pga.13; Mon, 04 Jun 2018 16:51:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=JWEboUt7zsc5FNtzqyp36HJXLQ6kYHsacQ6ljld3cP0=; b=a9fceoC0A4RPoHV8LuAbGjDB2RPT7Q1PuyLff80YNEa2+6D6u18eZvAHb8tGHibXO0 Au10QMFR69VEB2oH3evHbWIrqi+udUaL4S2/VyoGShPmjhD3BcL2hEDoX4XHLKcb9MSp 03zvJ1vle9IOLrOtTpFkD4HDKi6+emlJuwtiRfIJUn8SuWYKTxfCeGaah5bUE02clBak s7SFNj8OvNwdcnXC0BjwpaWWfxIQ1CCucI4byTx9TocUuiKUc0kpTeuYtvrPsmTruqL0 aNzASkL5g176t08uQJgwxylnNxVxjefLcB9wH6eiOL05e6/+QPCK6aZ64K+gv5WFulYA +pMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=JWEboUt7zsc5FNtzqyp36HJXLQ6kYHsacQ6ljld3cP0=; b=m9dHwMBU9f38+ddqO2Mf0hl3oiDS/zBsc1bQp4mgsn/lnLog5io6IjyHC/lwsdJDGm RP+CQCmKh4Mz2+CM3XrirldW7fSshHbvAOIj8qZW0j1/LOX8B4SBsKMYROnRlmOlH6sU tgeHaTlYN0vRrclhj2ESEAgAWBIV7TunxaNOQ7V8iIeiIHA+QjrxjhoC4/26kyRUshLH JzgRZWckCT57mSckDtS1Y1u5AN5TYsnEAnCTEcTWapwFzVZCiaF2QDClhjI8VMKbhGAF 7kwjUg0ZFg9hYoZ9goa0HeBg+HqKEYoG2G3Lv4eXkV3Ep3EGSrwRdOx7fXobq9c//zVL MKTQ== X-Gm-Message-State: ALKqPwfDmdmbnoMTvBww8e0PRjmH85ITKFZfuSwlDRxb6jMjR6XuxjUY nQYJJiPaTBKEfIFZFpJe6Xw= X-Received: by 2002:a65:6047:: with SMTP id b7-v6mr18862051pgv.241.1528156266075; Mon, 04 Jun 2018 16:51:06 -0700 (PDT) Received: from ast-mbp ([2620:10d:c090:180::1:c958]) by smtp.gmail.com with ESMTPSA id w12-v6sm69189607pge.69.2018.06.04.16.51.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Jun 2018 16:51:05 -0700 (PDT) Date: Mon, 4 Jun 2018 16:51:03 -0700 From: Alexei Starovoitov To: Arnd Bergmann Cc: Masahiro Yamada , "David S. Miller" , Alexei Starovoitov , Linux Kbuild mailing list , Networking , Linux Kernel Mailing List Subject: Re: [PATCH] [net-next, wrong] make BPFILTER_UMH depend on X86 Message-ID: <20180604235101.fdhkvbx3m7m2u5uc@ast-mbp> References: <20180528153222.2037158-1-arnd@arndb.de> <20180530151736.nzpde2bgzn4koi7f@ast-mbp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180223 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 01, 2018 at 05:20:12PM +0200, Arnd Bergmann wrote: > On Thu, May 31, 2018 at 3:42 AM, Masahiro Yamada > wrote: > > 2018-05-31 0:17 GMT+09:00 Alexei Starovoitov : > >> On Mon, May 28, 2018 at 05:31:01PM +0200, Arnd Bergmann wrote: > > > Hmm. > > For cross-compiling, we set 'ARCH' via the environment variable or the > > command line. > > > > ARCH is not explicitly set, the top-level Makefile sets it to $(SUBARCH) > > > > > > ARCH ?= $(SUBARCH) > > > > > > Maybe, we can assume the native build if $(ARCH) and $(SUBARCH) are the same? > > > > SUBARCH is also used with a special meaning for arch/um where we build > with ARCH=um SUBARCH=x86, either on native (x86) or cross builds. > > > So doing that would still work in most but not all cases. > > What is the reason for using HOSTCC rather than CC anyway? I think > the correct way to do this would be to check if CC is able to link binaries > and disallow the option if it's not. that's a great idea. Let's do that. > Don't we already do something like that for tools/testing/selftest which > also needs to generate binaries with CC? I couldn't find such makefile magic. Can you please help me with this?