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: From patchwork Fri Oct 18 04:31:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 176756 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp337599ill; Thu, 17 Oct 2019 21:56:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzB4JL0an6xqiU6ISp2uAYa6gW4sZ/Sra2zJoFek74NGqUw1XqpuxZqkku2Zh+eVqhLIkYd X-Received: by 2002:aa7:c751:: with SMTP id c17mr7661781eds.29.1571374604137; Thu, 17 Oct 2019 21:56:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571374604; cv=none; d=google.com; s=arc-20160816; b=z9bh1ekHqztpodbB9xR9GOmp/tQcOduu8ZpMxtOn0WbVh6sA7DZDDRY1Tt22Fdhk8e wNC/ZATOYjqNQf5UimMVCJsPhylm4XAYQ2KYQNgulTXCCMe5e3fb02YU+ur4+6d9GzwU fBHXdq8YLaPqompstGWlid4N5hc1NK+RCNnAh3srOwPi4lLMfhhDKsHIcdOzMdOLBVQt aPavMmDFC8LI7LB2E6hbTp7vlwOv6TiijKvv6m0dZ4gGwHEI33yde5aqEIxRRfSR4iNQ 0Cj/tjoXLpv+EOAQyQM/nQCcMk/zQH7f/cps5omMKkpJtgH+iy1wIrDsxcF5Wy7PHUJM 3SPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=Yyl1cS1eYVt+sVWWGmNXm8/lysOK1IQALljWjASqSwg=; b=k9aMfEYV/q+zfxdW/1a0AAVilD2tHQzqaN/yl6zi4PP/Chj/A83To33ArK1ei0lEzh MTKpvrIizjDgJHmUTtqT3hSHQZLRZ7ww4yMwryqx6Lv0t6OgdCEQxjr4tYk/XYUuS0z+ uxxrlGiwQn9jXRNbSjcxsL1PMk7KBsoTBee3/SW7fCLhjKMXENFWxKh9evu1135SSWsQ N00faa8AIyJJsB20f4yDifiyP8DngZ4xrGKRq85YQeiOybjXOq8PJi64r4YJJ2kuSes5 mG2xlmks8Th8SfxX23VyKcG904OyBTg75FqRBMASuY//zUvP2PxLArvk+APdz2jsUTrF FwaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="Mvf2/0me"; 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 v25si3176077edb.286.2019.10.17.21.56.43; Thu, 17 Oct 2019 21:56:44 -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="Mvf2/0me"; 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 S2407286AbfJRE4l (ORCPT + 26 others); Fri, 18 Oct 2019 00:56:41 -0400 Received: from condef-04.nifty.com ([202.248.20.69]:50603 "EHLO condef-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389158AbfJRE4k (ORCPT ); Fri, 18 Oct 2019 00:56:40 -0400 Received: from conuserg-10.nifty.com ([10.126.8.73])by condef-04.nifty.com with ESMTP id x9I4WAKv004997; 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 x9I4Vnxp019790; Fri, 18 Oct 2019 13:31:50 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com x9I4Vnxp019790 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1571373111; bh=Yyl1cS1eYVt+sVWWGmNXm8/lysOK1IQALljWjASqSwg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Mvf2/0meUo3qXcLS0yRxbLFLzQ+erxo70YfKJZmlA25fJDuP2VseTcvr9gJKHMupY QqSYjcZb2Fyu8qj6leuy+QIphDCaA5hnLxTZzZJ3/DshvKu2ahgdDY/Zkl123ZgE/K 5AUFrRD51GbkMkU+poOBcA4Qm4BfzNctOY0AbDj6H8syd2hF2zP0Ah/Q7wKS0CyXrW NVsez3NL1L8tWcK5/FgfHqgEMsMVS9/LuI8lg0vtgKQAHW0WGswp7H5+gza4Xy0w6v DOMl4b1Og+CeoxULFShX2rsVw1pAoTBYLrZXYawP9qrhMYwLI+kqMeNd5jFVoL+wd9 wMd1OJtAp+xww== 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 2/2] asm-generic/export.h: remove unneeded __kcrctab_* symbols Date: Fri, 18 Oct 2019 13:31:48 +0900 Message-Id: <20191018043148.6285-2-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191018043148.6285-1-yamada.masahiro@socionext.com> References: <20191018043148.6285-1-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org EXPORT_SYMBOL from assembly code produces an unused symbol __kcrctab_*. kcrctab is used as a section name (prefixed with three underscores), but never used as a symbol. 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 80ef2dc0c8be..a3983e2ce0fd 100644 --- a/include/asm-generic/export.h +++ b/include/asm-generic/export.h @@ -43,7 +43,6 @@ __kstrtab_\name: #ifdef CONFIG_MODVERSIONS .section ___kcrctab\sec+\name,"a" .balign KCRC_ALIGN -__kcrctab_\name: #if defined(CONFIG_MODULE_REL_CRCS) .long __crc_\name - . #else