Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp990105ybp; Fri, 11 Oct 2019 07:28:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqx+jsdspmO0X8thVyM5k2W/MYMPJ68lJgk5JcpNwsCbEUmx2mXSUNpH2ew5Rp1Fm11wVvVS X-Received: by 2002:a17:906:3593:: with SMTP id o19mr14035549ejb.61.1570804114271; Fri, 11 Oct 2019 07:28:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570804114; cv=none; d=google.com; s=arc-20160816; b=gvch+BC+ZIm5fDkS2z3SIQaTYyihAxs4rm3iT9pAogEHuRRC6YJWG/6Y2qll12INZw zvfmVzy2z7DgBqYzD1uXJAi4hqreOkqsuEKuzNiJ9Zosb4QreJgxd/RkvSqfApK6PC62 +oM182q/9hJShE4+tyKgdNBHaZjWHgxkYmsK++um+oAoRgJf0W65ClEWJJmH7CpD1i11 1y7uk+jNNM1zULEv59kLV1OvMdyTD54mEpgzY/NPsLqixZ1H5oY6dHeTOnY1PV9b5czb mBR9QahvSfH/1QztokPQWWW1B55PadtqH7QKS2Ef0docmgVBJv/DBnrppJs3z6+K6Hb2 aCNw== 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; bh=XGJv1Uqk/yPztx2OT06oYKlUBZwD4DAgJqPzA77ZGlE=; b=ydHph+0s+4yq+Y1MjbfFS0a/oyPPxPln+gXJ+Sj2/uTtiQZ0IKsHLFGyodFjy62b4H FbjDGw/yLe5c4DTci8ewcDa0IdyxvLRq1udKOB02oY/MAHOuHbhKRkrHh2iGrZIghydO M/iRnO0pEwvpP05Xm74Wb9piavzdI0qShastYdQYx6tCjeDjicGkrc+QgLaxNNF3HRvK qDhZ8jXqRX7xYumK8i53z25CS5jcEepxpE6o3fVKXJND5KZ4AVKEN64wXniGUfBpkmCf ezKtElPVwn6e1lszfG884/AS42knupaZPCStQakvAd8lGGQ6v8xnrPxKSTWd4F8Zj+Ck pRnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qdijBbRW; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n4si4819504ejj.132.2019.10.11.07.28.10; Fri, 11 Oct 2019 07:28:34 -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=@kernel.org header.s=default header.b=qdijBbRW; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728703AbfJKOYx (ORCPT + 99 others); Fri, 11 Oct 2019 10:24:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:36588 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728394AbfJKOYw (ORCPT ); Fri, 11 Oct 2019 10:24:52 -0400 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7551E206A1; Fri, 11 Oct 2019 14:24:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570803892; bh=7WNbNuVGYV5eZL82IZCet7k3ExN3DOziqXTv/0qhn2w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qdijBbRWLgIi6ow0KgKI8n99W/Sxk++JlvicO3KdIs2F4mLiedmPi/GRUUrHaJOcu eytioo23qnU7+M3W0YKpmGoUCBhArQ86ryXhkkycOc00lSZ/fKvHpfYA++KrlmFw7g CbAM7stPzlFmPfZthvSD9N+LsTYxiErkF1Gu9gHU= Date: Fri, 11 Oct 2019 15:24:47 +0100 From: Will Deacon To: Matthias Maennich Cc: linux-kernel@vger.kernel.org, kernel-team@android.com, Jessica Yu , Masahiro Yamada , Martijn Coenen , Lucas De Marchi , Shaun Ruffell , Greg Kroah-Hartman , linux-kbuild@vger.kernel.org, linux-modules@vger.kernel.org Subject: Re: [PATCH 3/4] symbol namespaces: revert to previous __ksymtab name scheme Message-ID: <20191011142446.nyxhlhsfzcroipnf@willie-the-truck> References: <20191010151443.7399-1-maennich@google.com> <20191010151443.7399-4-maennich@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191010151443.7399-4-maennich@google.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 10, 2019 at 04:14:42PM +0100, Matthias Maennich wrote: > The introduction Symbol Namespaces changed the naming schema of the Missing "of" ? > __ksymtab entries from __kysmtab__symbol to __ksymtab_NAMESPACE.symbol. > > That caused some breakages in tools that depend on the name layout in > either the binaries(vmlinux,*.ko) or in System.map. E.g. kmod's depmod > would not be able to read System.map without a patch to support symbol > namespaces. A warning reported by depmod for namespaced symbols would > look like > > depmod: WARNING: [...]/uas.ko needs unknown symbol usb_stor_adjust_quirks > > In order to address this issue, revert to the original naming scheme and > rather read the __kstrtabns_ entries and their corresponding > values from __ksymtab_strings to update the namespace values for > symbols. After having read all symbols and handled them in > handle_modversions(), the symbols are created. In a second pass, read > the __kstrtabns_ entries and update the namespaces accordingly. > > Suggested-by: Jessica Yu > Fixes: 8651ec01daed ("module: add support for symbol namespaces.") > Signed-off-by: Matthias Maennich > --- > include/linux/export.h | 13 +++++-------- > scripts/mod/modpost.c | 33 ++++++++++++++++++--------------- > scripts/mod/modpost.h | 1 + > 3 files changed, 24 insertions(+), 23 deletions(-) Patch looks fine, and it would be good to have this fixed in 5.4: Acked-by: Will Deacon Will