From patchwork Fri Oct 18 04:31:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 176758 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp343783ill; Thu, 17 Oct 2019 22:03:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyECNAKov8OiQ1gghDDwnF7FHQCP75QaFApNzlVXCH21D3A2emMJr+8dHPpY9qrP9mWGrrp X-Received: by 2002:a17:907:365:: with SMTP id rs5mr7012101ejb.121.1571374996762; Thu, 17 Oct 2019 22:03:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571374996; cv=none; d=google.com; s=arc-20160816; b=HABkf/5RxhMpI46SKosl4RI3I4B72uqL5pQmvrEpROxPqJh5ABMZKJTCjwuESSrowD DAnPK8A6az6l1hbzw1/sO+jVT2Z78Vs+pqN5+2uBsY4figCE/dD+HnntZYMwkOyn0Dxn y9OW0Q4twQ7M9Zu963NDPa0Ts6UQD+x2AE9cK2yoz4+mvgDqpOLP+WNm7kMhvnulXucQ KTOr9EOM06Urvs8/ZYFtFmLxen/PqcupZuHkcTw6nXuGANhLn+Pc4vIgEDL6wuIHFtli HFfNakEnNRVul57nzdnQAYQ1YRXihJaGphHAI2fjtiYesrPredaQGdnJGAK1I/H/RE0b cgaQ== 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:dkim-filter; bh=ZaAH2x9mWYqIOpONit+tZI2RI9D6E0HqE7mG3rRzXzI=; b=x7BzioO2o14h1rBhBU115/UKGtZ3cuO7TRWUynnskYzM3We4R6YiRqa8GQP4FKDD/H 7r9lc9B4MBmJDWyByVvvfGktbnUqei6GpSlfwhw6mde7wIW0GjyPKhaT5M7m/786SSIc fIAHZBps3zHv7ol8xWxEMCGzekhVruExJ4kFExMZCbyIN8IL+xWuIQDVD1JGhsGM5hc3 n6CjSqa48TesZ/11lS0iE1i8o4WCNbh0iYWN11t+qjmaqG+0W58JmPq6YQgLepLnzkuI E49SFTEJwKZIV54rLI5Y2Koay6snKENVbrg0QHUczmCWsrVlXrvoBJpRqmIbe395JGH2 /etA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=CUhjpJ5d; 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 e21si2703642ejd.118.2019.10.17.22.03.16; Thu, 17 Oct 2019 22:03:16 -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=@nifty.com header.s=dec2015msa header.b=CUhjpJ5d; 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 S2503735AbfJRFDN (ORCPT + 26 others); Fri, 18 Oct 2019 01:03:13 -0400 Received: from condef-05.nifty.com ([202.248.20.70]:41036 "EHLO condef-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391456AbfJRFDM (ORCPT ); Fri, 18 Oct 2019 01:03:12 -0400 X-Greylist: delayed 313 seconds by postgrey-1.27 at vger.kernel.org; Fri, 18 Oct 2019 01:03:11 EDT Received: from conuserg-10.nifty.com ([10.126.8.73])by condef-05.nifty.com with ESMTP id x9I4WACR013408; Fri, 18 Oct 2019 13:32:11 +0900 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-10.nifty.com with ESMTP id x9I4Vnxo019790; Fri, 18 Oct 2019 13:31:49 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com x9I4Vnxo019790 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1571373110; bh=ZaAH2x9mWYqIOpONit+tZI2RI9D6E0HqE7mG3rRzXzI=; h=From:To:Cc:Subject:Date:From; b=CUhjpJ5ddQUXB2baNZoqOnqabHsSVW6nlQbA9B5ptLnw9/9+ad/ikRHUQkcfEh2NJ PRoIvFwOqTVcsl+Cq8hjOaTYyZjXJhbrIkfS45DGqGMhaTYTbZEFPHRdel4Mc89OS1 fWKH9sABQqrXAriGh4HQIMSWQckqbytg5tIXyBzWdyXwZgP5j6z/GCRGnfXFCYj5Wp mw8nDFGNCJTIaTlLOtxXkPc8Ia5BSImKHoGaY5Odz+Dts9os7OFs2z2oAgMWMWurcQ vAwYzVcqjQmiyMYIA7lOuuWMKe9FIOtqZIBhH+s9xmlVrUzwIXVmxJzSIMX3U/MITc sh2WSkLYYJFjQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kernel@vger.kernel.org, Jessica Yu Cc: Nicholas Piggin , Al Viro , Masahiro Yamada , Arnd Bergmann , linux-arch@vger.kernel.org Subject: [PATCH 1/2] asm-generic/export.h: make __ksymtab_* local symbols Date: Fri, 18 Oct 2019 13:31:47 +0900 Message-Id: <20191018043148.6285-1-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For EXPORT_SYMBOL from C files, defines __ksymtab_* as local symbols. For EXPORT_SYMBOL from assembly, in contrast, produces globally-visible __ksymtab_* symbols due to this .globl directive. I do not understand why this must be global. It still works without this .globl directive. Signed-off-by: Masahiro Yamada --- include/asm-generic/export.h | 1 - 1 file changed, 1 deletion(-) -- 2.17.1 diff --git a/include/asm-generic/export.h b/include/asm-generic/export.h index fa577978fbbd..80ef2dc0c8be 100644 --- a/include/asm-generic/export.h +++ b/include/asm-generic/export.h @@ -31,7 +31,6 @@ */ .macro ___EXPORT_SYMBOL name,val,sec #ifdef CONFIG_MODULES - .globl __ksymtab_\name .section ___ksymtab\sec+\name,"a" .balign KSYM_ALIGN __ksymtab_\name: