Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8201393ybi; Tue, 9 Jul 2019 11:02:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbcvXwijf9ONt71LBUa30oU+RLDw1eJFI0526ylD1DZn/ShhjxIDQEViYk0wBRebN+ZK42 X-Received: by 2002:a17:90a:5207:: with SMTP id v7mr1374371pjh.127.1562695349536; Tue, 09 Jul 2019 11:02:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562695349; cv=none; d=google.com; s=arc-20160816; b=dN0ZWdUhbYwW2WpxXM1aAVYTaiOVruiuvc1DJcO2T4hWMT9Hje1f24pM86F7M/5Brz ndND2LvLXy2K28XP3w56PwRKLjqIsXK3zOAqDUDVwPQ39g0pywVA4tg/nvurwfk7TqIK W+qtj6K/U+yE8MiWt0Yu/3K0refu+HY1sdfNod5TiI75OLDQRhdOU4Y4yjH9bJ6DmA+F j2aT9laxX6Bbczip+S5Me1KDoInfQsOs8FXFSz7OYfm9bJLWiGbHnqeXcjoBYROL0lUz jWZPOu9wDf+jhpp8Ka/L7NMTbRA+oz5Rrt8uIh0zxvxuWwX+YkBUuTSFen7iOHAFMWVb VnUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=CS2XE4+7MUBwq2OHOFIm+rvL6hxK6vtFAErLm6Z7X0E=; b=L8S/yu5x3UGE++KdJtottA9c+oyDIDkjF48vt4ZCuJNHtsEK0Ez0lgQ9UxZ4+gPnUk EkMCHUx3mzPDeRJm9XNFcoY7gAEpBDQ53NG8eEijJsK3kULQ/PtJC3VzlaOP7RXKh9U2 w/7JEe9RjvFUKhSu8UgT5e0Otp5pyxE5ZZcikZXd+8PvEivwztmzwRnGT2DFpUGpcZDZ m5cE/Qb5yQ6q6jKAs5sv0d6+34Wsfpbmc358KqMFLby3LQHoT/CyWxu/WXblFzFsxgh6 Qc8fjQqRUk6XqU0Rj+n4nbTfHN8z1ZFXUNWA4VZGRrqBVDZlF7GfqK+L25VmNAplZMI9 3x9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=gufTxBzN; dkim=temperror (no key for signature) header.i=@fluxnic.net header.s=2016-12.pbsmtp header.b=xks7+qKO; 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 v4si21748208pgr.475.2019.07.09.11.01.38; Tue, 09 Jul 2019 11:02:29 -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=@pobox.com header.s=sasl header.b=gufTxBzN; dkim=temperror (no key for signature) header.i=@fluxnic.net header.s=2016-12.pbsmtp header.b=xks7+qKO; 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 S1726411AbfGIRhy (ORCPT + 99 others); Tue, 9 Jul 2019 13:37:54 -0400 Received: from pb-smtp1.pobox.com ([64.147.108.70]:60058 "EHLO pb-smtp1.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726133AbfGIRhy (ORCPT ); Tue, 9 Jul 2019 13:37:54 -0400 Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id C754C161342; Tue, 9 Jul 2019 13:37:51 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=date:from:to :cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sasl; bh=ZPzL96906deSPszntNDHK2QFX3M=; b=gufTxB zNSe+0divwYcBXwLhl9W3sFW7BjvHwmRzFddQ05k36d7tv2a25UjIIOxanJXoOtD ynWmKEeObbiHF4Wvmzj5VKMD2JqVBTuU5B/1bWCi1zttldwtRQOxwxGPf3VwFHae ZTVdmAa/irDQ+ccsim1Jzz0QckHhqwsrggLFU= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id BE41C161341; Tue, 9 Jul 2019 13:37:51 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=fluxnic.net; h=date:from:to:cc:subject:in-reply-to:message-id:references:mime-version:content-type; s=2016-12.pbsmtp; bh=JUWCum9pcbTPQLn3Li5UWdFaYelziHmHH3PL7HgMqUA=; b=xks7+qKO5WD+kKbJjFOF8VQyA5IpsnEK4OFwGE8D3PZDdxs5jke6gTQYNTNVpTuw+9lZxor+rnj4Og4V3l/KkAFJFxOEdbqgqYP59TtxNtwcnTTVeAbnmcjK6S4EqKV6l5owBWQteKjscyC6KqLyM/GwiQFONIgs423mD66FaEE= Received: from yoda.home (unknown [70.82.130.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id 43457161340; Tue, 9 Jul 2019 13:37:51 -0400 (EDT) Received: from xanadu.home (xanadu.home [192.168.2.2]) by yoda.home (Postfix) with ESMTPSA id 5E86E2DA0192; Tue, 9 Jul 2019 13:37:50 -0400 (EDT) Date: Tue, 9 Jul 2019 13:37:50 -0400 (EDT) From: Nicolas Pitre To: Masahiro Yamada cc: linux-kbuild@vger.kernel.org, Sam Ravnborg , linux-doc@vger.kernel.org, Jonathan Corbet , linux-kernel@vger.kernel.org, Michal Marek Subject: Re: [PATCH 08/11] kbuild: create *.mod with full directory path and remove MODVERDIR In-Reply-To: <20190709042416.27554-9-yamada.masahiro@socionext.com> Message-ID: References: <20190709042416.27554-1-yamada.masahiro@socionext.com> <20190709042416.27554-9-yamada.masahiro@socionext.com> User-Agent: Alpine 2.21 (LFD 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Pobox-Relay-ID: 466A70CC-A270-11E9-96DF-46F8B7964D18-78420484!pb-smtp1.pobox.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 9 Jul 2019, Masahiro Yamada wrote: > --- a/scripts/adjust_autoksyms.sh > +++ b/scripts/adjust_autoksyms.sh > @@ -47,13 +47,10 @@ cat > "$new_ksyms_file" << EOT > */ > > EOT > -[ "$(ls -A "$MODVERDIR")" ] && > -for mod in "$MODVERDIR"/*.mod; do > - sed -n -e '3{s/ /\n/g;/^$/!p;}' "$mod" > -done | sort -u | > -while read sym; do > - echo "#define __KSYM_${sym} 1" > -done >> "$new_ksyms_file" > +sed 's/ko$/mod/' modules.order | > +xargs -r -n1 sed -n -e '3{s/ /\n/g;/^$/!p;}' | > +sort -u | > +sed -e 's/\(.*\)/#define __KSYM_\1 1/' >> "$new_ksyms_file" Did you consider the case when CONFIG_MODULES=y but no modules are selected? Also -r to xargs is a GNU extension and there were some efforts to remove theur use in the past (no idea if this is still a concern). Other than that, looks good to me. Acked-by: Nicolas Pitre Nicolas