Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3960468ybl; Mon, 27 Jan 2020 13:51:16 -0800 (PST) X-Google-Smtp-Source: APXvYqzHXnZ3PQ+0v4RezntUU7S/cL40cZVItqfryhmyvUCWqKZsFRpv2iyjl/KbLKJUpAMw34Wh X-Received: by 2002:a9d:6a85:: with SMTP id l5mr10937653otq.231.1580161876376; Mon, 27 Jan 2020 13:51:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580161876; cv=none; d=google.com; s=arc-20160816; b=wM9IlsbmezhxOSTiLpWx+ey7rp7pf0KFo/2rq4C3PVSs5XjK3VsopMqRMZS1sleCAa Fx0TnacWNwO6r7+qWzDXnru1xFXO/fgvjB/aPuHQKcH+r5UP/BUryAuHL8w18VhMbEbN umq6A/6EWHYbhkom4+t75fY0LWeN2iEG2VDUiniBOzn4bWC/FL48mhipRsRgE3tFPG+W HAGZi0WVx9BFGeQduRl4rKViGWqT87XgtmWZfZaoq0va1UpbQMdvL1//1SOULiDOlAn6 zosAGEpBcYDVF3vFEXMjA487S+jh6AuCRiX/G1Bo+ZuqNkSxRrdGWMDW3XBQfvFMn4s7 hF0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=NpOlB//ZzI0MBEDQiVKjFEMeCtM1psB/23XTL+nYHaA=; b=lJBRwxovdgfdXIpNPTjo/ioB8yZg11Ul0nlpOpUR/8/hl8tivgE/gOfEbfv8KONKXC BD6g12kDwpiSKpn73hX1jCncdaNqAn1rM2vpQtkvRfER3UNmifNUfVq8ipdYR2CwGftk TCsPBCXF/qr9P5TfVtuqkYKH5zb3C4uIn67TjXiZ1jFvftvm5wkXvcu0UcrMSzN4rOAs 1d1lr4es3ewLb9j1PCITkm4VfKFDZ7lrs9ud1thOH2514LW3wCuTWvqwyrgwRTgqE8Qn qJjjIz68F8EHSs6gQ4rolbUUmvwaTtrhrOsc3EIxRcx+By5BiofDlwAB9cZ5VX7D2gsY 3amQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uGV2axa3; 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 h17si4265491oih.53.2020.01.27.13.51.04; Mon, 27 Jan 2020 13:51:16 -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=@gmail.com header.s=20161025 header.b=uGV2axa3; 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 S1726267AbgA0VuK (ORCPT + 99 others); Mon, 27 Jan 2020 16:50:10 -0500 Received: from mail-pj1-f65.google.com ([209.85.216.65]:39431 "EHLO mail-pj1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726164AbgA0VuK (ORCPT ); Mon, 27 Jan 2020 16:50:10 -0500 Received: by mail-pj1-f65.google.com with SMTP id e9so63295pjr.4 for ; Mon, 27 Jan 2020 13:50:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=NpOlB//ZzI0MBEDQiVKjFEMeCtM1psB/23XTL+nYHaA=; b=uGV2axa3LUDYY8OP4z9b9BfFBg1WLTzo6tiMpl9fL27yrGYT6LOl7NMNHcgBX96etG ylJe/VrWKGKqrmOkfL+ZnX4u5iW3urL6yGakgr0tpMIupx27InplT04HUddlkX8rhGFG 99mXBichTrBbpno8xEL1mWfxQmDPuaZZrlLRYAR6su9sJYnKpiOSvExOD5rhj+wow5Us 12oqcx0b12tf+P8/gNi5POskqJVk6mdtUjWAA4sn7Z7qx/ELbelXzLjeCCtFW7doOlMe /yqsCabOvHROmgRoWoJA2BZMTtAyl5/qhdgzeQMJBJ7EkY4wRWCtLgpmr/eExF7YRsdd vrVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=NpOlB//ZzI0MBEDQiVKjFEMeCtM1psB/23XTL+nYHaA=; b=B+c1Q1Wb6Sxovckwua5CCdpnY6M+UJo8ZXygppP1kSNMBZPa2eYp4NwK1+ijxa4wW/ C6nWYhZtzQQkwDjdWgjKhj5i44LFjWiws2DfHseaIJT2s4MX+BQ4NTZRyerUymYrpep9 rx31Tfb3jSBNdqOR9Fb8qnu4v95P2MxUaa2yAheOCzMEKZMGDdu0nz9pHeGj1KDkr7Bf 6DCu/iuYv6cCrJXyBXOQqzrfA7n9jmLyRsFeGmExYYI7kgBpCWvOGVyV/p87yYqe6Z8/ Or6co8VkvI1HSnjVT2EmJGZ7ITcMm7CSAu1oIDVVSK05IAfljn1A8Sx4VNyu7ouXEeNh 4Rtg== X-Gm-Message-State: APjAAAUaaoy+CHv5+iqOhGyIxJR6wjRwXA8AXtFxRtJArGIASdDBkBYj ElbESPqdhguok6lngKbzHdBqQO5U X-Received: by 2002:a17:902:b107:: with SMTP id q7mr11993174plr.343.1580161809551; Mon, 27 Jan 2020 13:50:09 -0800 (PST) Received: from gizo.domain (97-115-104-237.ptld.qwest.net. [97.115.104.237]) by smtp.gmail.com with ESMTPSA id k9sm68301pjo.19.2020.01.27.13.50.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jan 2020 13:50:09 -0800 (PST) From: Greg Rose To: linux-kernel@vger.kernel.org, dev@openvswitch.org Cc: dsahern@gmail.com, Greg Rose , Masahiro Yamada Subject: [PATCH] kbuild: Include external modules compile flags Date: Mon, 27 Jan 2020 13:50:06 -0800 Message-Id: <1580161806-8037-1-git-send-email-gvrose8192@gmail.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since this commit: 'commit 9b9a3f20cbe0 ("kbuild: split final module linking out into Makefile.modfinal")' at least one out-of-tree external kernel module build fails during the modfinal make phase because Makefile.modfinal does not include the ccflags-y variable from the exernal module's Kbuild. Make sure to include the external kernel module's Kbuild so that the necessary command line flags from the external module are set. Reported-by: David Ahern CC: Masahiro Yamada Signed-off-by: Greg Rose --- scripts/Makefile.modfinal | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/Makefile.modfinal b/scripts/Makefile.modfinal index 411c1e60..a645ba6 100644 --- a/scripts/Makefile.modfinal +++ b/scripts/Makefile.modfinal @@ -21,6 +21,10 @@ __modfinal: $(modules) modname = $(notdir $(@:.mod.o=)) part-of-module = y +# Include the module's Makefile to find KBUILD_EXTRA_SYMBOLS +include $(if $(wildcard $(KBUILD_EXTMOD)/Kbuild), \ + $(KBUILD_EXTMOD)/Kbuild) + quiet_cmd_cc_o_c = CC [M] $@ cmd_cc_o_c = $(CC) $(c_flags) -c -o $@ $< -- 1.8.3.1