From patchwork Thu Apr 28 21:33:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Pitre X-Patchwork-Id: 8975101 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C4B339F1C1 for ; Thu, 28 Apr 2016 21:33:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E275520212 for ; Thu, 28 Apr 2016 21:33:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CD511201FA for ; Thu, 28 Apr 2016 21:33:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752631AbcD1Vdl (ORCPT ); Thu, 28 Apr 2016 17:33:41 -0400 Received: from mail-qg0-f50.google.com ([209.85.192.50]:35591 "EHLO mail-qg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752630AbcD1Vdl (ORCPT ); Thu, 28 Apr 2016 17:33:41 -0400 Received: by mail-qg0-f50.google.com with SMTP id f74so35492151qge.2 for ; Thu, 28 Apr 2016 14:33:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:user-agent:mime-version; bh=K+AHGoXzvYcEs6EOyGNpQQkEDePNTjtTa2jxFJlt8Ww=; b=aZN3uvvojA8li0tgt4cbu05TrmFphQtuluSvWsp9SLTe5EuEu5O7DECjYom8cbrUgd hRrGOZ3QLjXoxAYNFDoiYjjEoEIDlCBQVQ3SY48RY6k/Wk72Fn0HPe8+OvvmC6RmRauR MwuLYks/1hMyQtRw7oa/CXvkPQpWFUf5sBw3I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:user-agent :mime-version; bh=K+AHGoXzvYcEs6EOyGNpQQkEDePNTjtTa2jxFJlt8Ww=; b=XmylXA8seH7kK6g884TMJJbjGoc0Ag/Tbv/Hfon2Cx2GvOEl4gqPvhvCqxsa2FA+WQ m6idnWCzkk0FvY0jWVM39gHHTKMUuZ0uq7X1MlTDBkah+qADESuRqLqpmMKHTSz9QwYM eeZ8qa3cC8OUvztv+JdlXMN4FvM3uWhmve95SOi2J2ezTdwHgl3ZPZ+X2T5ubUKahGzK kBMSIfkusE3EoPzgikWqF+ZjgKwxEH6iR6iLDmBsYbcZEjWAd0z5MkWu6IyvcveGER1Y mIRq6KPo4kucyUOFWumD/olE7STb8ykUtFl7Bd5zvH0Cq7ftAXB3o+lbpLePSuYX9xUp 5X2w== X-Gm-Message-State: AOPr4FWY1so/QZEtTVvV55Y9XrOcxtNlWwTzCWNY6Mdy1G2FBWKnEzruZzwnSMwdCbO5qLIo X-Received: by 10.140.28.135 with SMTP id 7mr16205366qgz.72.1461879220020; Thu, 28 Apr 2016 14:33:40 -0700 (PDT) Received: from xanadu.home ([2607:fa48:6e39:d410:feaa:14ff:fea7:ed77]) by smtp.gmail.com with ESMTPSA id t36sm3420646qgt.42.2016.04.28.14.33.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Apr 2016 14:33:39 -0700 (PDT) Date: Thu, 28 Apr 2016 17:33:38 -0400 (EDT) From: Nicolas Pitre To: Michal Marek cc: Arnd Bergmann , linux-kbuild@vger.kernel.org Subject: [PATCH] kbuild: fix adjust_autoksyms.sh for modules that need only one symbol Message-ID: User-Agent: Alpine 2.20 (LFD 67 2015-01-07) MIME-Version: 1.0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When only one symbol was listed and therefore the line didn't contain any space to separate multiple symbols, that symbol got ignored. Reported-by: Arnd Bergmann Signed-off-by: Nicolas Pitre Tested-by: Arnd Bergmann --- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/scripts/adjust_autoksyms.sh b/scripts/adjust_autoksyms.sh index 5bf538f1ed..8dc1918b67 100755 --- a/scripts/adjust_autoksyms.sh +++ b/scripts/adjust_autoksyms.sh @@ -59,7 +59,7 @@ cat > "$new_ksyms_file" << EOT */ EOT -sed -ns -e '3s/ /\n/gp' "$MODVERDIR"/*.mod | sort -u | +sed -ns -e '3{s/ /\n/g;/^$/!p;}' "$MODVERDIR"/*.mod | sort -u | while read sym; do if [ -n "$CONFIG_HAVE_UNDERSCORE_SYMBOL_PREFIX" ]; then sym="${sym#_}"