Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp716363imm; Fri, 1 Jun 2018 08:21:08 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLMjCZl3t4Gvz6JSD3EMA9lO2ttHJtqzd/EZdX1reoGaP4ZRyZfC5g5uYbvSo95ToeEd0Ue X-Received: by 2002:a17:902:780a:: with SMTP id p10-v6mr11633133pll.281.1527866468633; Fri, 01 Jun 2018 08:21:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527866468; cv=none; d=google.com; s=arc-20160816; b=t/OntVtcskFGVsEMLVaSFEJ9y5mS5WsmU4+lNZDFPHXdNDuowrVukwkj0jMXEdAR88 ttYCUe9/mUw/rXE+waQtPu3uXHkuVOwIvsBy5ETidmaC8gzTx0wTwyKkH/U8yNhSi7Kc VuVFQ98FjgjmppmnoGWaI1oCnccUM0+BfRhFJJ/bG2u7YvVUuLJ+szf8QaHL+3sSQKx6 7qJRHQP1ATeRh5gHFRQppYQ191GJiXta8kqgdbWe+5uMZ9iML/P9G1NyBqyDe1gDKK6I JSUS/Yah3x5Y2aGgGgaxI1zTqSRDzJoJ58IHpgDzTrZ0977kdEK8jXoVtaOnPqThvBr+ SgRA== 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 :arc-authentication-results; bh=S6AO+InOqswUh9vxnrzT7hfs5MDIRMZv9ScxR4aEg8o=; b=aEC/UJe++ZxX0bUnM0PL0qKzL/lqQ1UPNfrPM7vru5OepePDNpDPdRjquQFqKqHymY mxhHPMS7aMTpcdUb4PScrJz6tDuWHFQQCrrF1jubH0KohG52B0NLvJRItB3tyYW9ROH+ 9IF7iD810MugvAa+RUZ2fAZkrf0q4uT5Y6B8SrgFlp48Iy3l7/YBZPHTl3HIVG8cOkho z60lAYg0F1YKmsYGSAt+S9pIeCXhEEzVltCiEaX9v0d5+xp4X6DKx98413evvjr9RJfr xeSshSYMG1RIab+mpW3gTt4smSimXf1biiEGHKfi8YKnmQ3wlKECMfvVlplj/j96Pv1q lv7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=L7rYJOeF; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g18-v6si21329785plo.533.2018.06.01.08.20.53; Fri, 01 Jun 2018 08:21:08 -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=fail header.i=@gmail.com header.s=20161025 header.b=L7rYJOeF; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753116AbeFAPUQ (ORCPT + 99 others); Fri, 1 Jun 2018 11:20:16 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:32807 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752467AbeFAPUO (ORCPT ); Fri, 1 Jun 2018 11:20:14 -0400 Received: by mail-qt0-f196.google.com with SMTP id e8-v6so32612475qth.0; Fri, 01 Jun 2018 08:20:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=S6AO+InOqswUh9vxnrzT7hfs5MDIRMZv9ScxR4aEg8o=; b=L7rYJOeFCWg8mTqmBL3r4pjRH7D4hwkQBP/mdPs+ar+fpGwkXCtgJJrdtI7M4cx0t3 knopzYZF3gMt3YaohpjgNxwLBWV57NGbtTw5M0N9fRWrb87eAfAaFQFjKGsWJJEl+B5p w5X+NuyxF4iVKoesrGiyA2Ka27lR2v6MyuqAG64R5afpLpCTRpsk2xaWDQHbxCtiBfg6 aaFWpzu1cgJ7RfTzW/OeiibEdcaL6d3Mo7kTcbGmXkC0E3UmjY8tiEW9Jeb40Fkpi+jX dcBCc8TTBa1JZTOaGN+fVip2N+tSwcRi2LV2nWbjmuWyPxR17TCoO/4jPfI2fK9E1ZHJ liUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=S6AO+InOqswUh9vxnrzT7hfs5MDIRMZv9ScxR4aEg8o=; b=ma0VwdFkmdA0sw4ezgaic4GrIkgPVl9zSFgtkZPoWsiBAsXweIedra8NaiY4wCAHfQ kLi9qViKDB1/cFJ08n59KoKbI+1n4+Gww2YiBSGVLm/URDCFyNLI7Eatx+Bdu/04NkYA c/P2/7ArQmubIeETgfZAj1VZUSCi8NX47tY7j/qyJEw8OMLaECR3Fes7aHdDQqA5Mdol +x4cLPCwEC6OwOVc31TKo2MUhxCt2x32HvTrWthVIHdHAUokCGyUxZeOZlGego7VNByU ungE0bZqCWOTX3+k0WQoHCj5JohWLzUR0F40H6NXRDgnyGdjmBxP6avcONpq6BaPz/o4 14Zg== X-Gm-Message-State: APt69E0hdSNWXp8Ui3MDoR7Q64Gsd5Ag5UMc7c5lKy9vAhVdIPElOEbc dHzgZqMZbEUPwPDOVCPmovV9o8GIoWpo1/MYDErY2g== X-Received: by 2002:a0c:b116:: with SMTP id q22-v6mr5825791qvc.19.1527866413717; Fri, 01 Jun 2018 08:20:13 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a0c:b903:0:0:0:0:0 with HTTP; Fri, 1 Jun 2018 08:20:12 -0700 (PDT) In-Reply-To: References: <20180528153222.2037158-1-arnd@arndb.de> <20180530151736.nzpde2bgzn4koi7f@ast-mbp> From: Arnd Bergmann Date: Fri, 1 Jun 2018 17:20:12 +0200 X-Google-Sender-Auth: lqElk9B5a0dZRv8z2PwtwhBvTHM Message-ID: Subject: Re: [PATCH] [net-next, wrong] make BPFILTER_UMH depend on X86 To: Masahiro Yamada Cc: Alexei Starovoitov , "David S. Miller" , Alexei Starovoitov , Linux Kbuild mailing list , Networking , Linux Kernel Mailing List 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 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. Don't we already do something like that for tools/testing/selftest which also needs to generate binaries with CC? Arnd