diff mbox series

[2/2] asm-generic/export.h: remove unneeded __kcrctab_* symbols

Message ID 20191018043148.6285-2-yamada.masahiro@socionext.com
State Accepted
Commit 03034dbdaed8b47282d647c1100dbb0f522798f3
Headers show
Series [1/2] asm-generic/export.h: make __ksymtab_* local symbols | expand

Commit Message

Masahiro Yamada Oct. 18, 2019, 4:31 a.m. UTC
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 <yamada.masahiro@socionext.com>

---

 include/asm-generic/export.h | 1 -
 1 file changed, 1 deletion(-)

-- 
2.17.1

Comments

Masahiro Yamada Nov. 6, 2019, 3:41 p.m. UTC | #1
On Fri, Oct 18, 2019 at 1:56 PM Masahiro Yamada
<yamada.masahiro@socionext.com> wrote:
>

> 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 <yamada.masahiro@socionext.com>

> ---


Applied to linux-kbuild.

>

>  include/asm-generic/export.h | 1 -

>  1 file changed, 1 deletion(-)

>

> 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

> --

> 2.17.1

>



-- 
Best Regards
Masahiro Yamada
diff mbox series

Patch

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