From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] of: drop symbols declared by _OF_DECLARE() from modules
Date: Thu, 14 Jan 2016 11:14:58 +0100 [thread overview]
Message-ID: <34759085.vISMJm6PEF@wuerfel> (raw)
In-Reply-To: <1452745987-22146-1-git-send-email-yamada.masahiro@socionext.com>
On Thursday 14 January 2016 13:33:06 Masahiro Yamada wrote:
>
> -#ifdef CONFIG_OF
> +#if defined(CONFIG_OF) && !defined(MODULE)
> #define _OF_DECLARE(table, name, compat, fn, fn_type) \
> static const struct of_device_id __of_table_##name \
> __used __section(__##table##_of_table) \
> --
>
Doesn't this lead to "unused function" warnings? Maybe we can change the "__used"
into "__unused" when MODULE is set, so the compiler will automatically
drop all code that is only referenced from the entry.
Arnd
next prev parent reply other threads:[~2016-01-14 10:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-14 4:33 [PATCH] of: drop symbols declared by _OF_DECLARE() from modules Masahiro Yamada
2016-01-14 10:14 ` Arnd Bergmann [this message]
2016-01-14 10:21 ` Masahiro Yamada
2016-01-14 10:23 ` Arnd Bergmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=34759085.vISMJm6PEF@wuerfel \
--to=arnd@arndb.de \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox