From: sunliming <sunliming@kylinos.cn>
To: noodles@fb.com, dave.hansen@linux.intel.com, bhe@redhat.com,
robh+dt@kernel.org, frowand.list@gmail.com
Cc: linux-kernel@vger.kernel.org, sunliming@kylinos.cn,
kelulanainsley@gmail.com, kernel test robot <lkp@intel.com>
Subject: [PATCH] of: Add missing function declarations
Date: Sun, 12 Jun 2022 15:10:35 +0800 [thread overview]
Message-ID: <20220612071035.1178320-1-sunliming@kylinos.cn> (raw)
Fixes the following w1 warning:
drivers/of/kexec.c:126:5: warning: no previous prototype for 'ima_get_kexec_buffer' [-Wmissing-prototypes]
drivers/of/kexec.c:153:5: warning: no previous prototype for 'ima_free_kexec_buffer' [-Wmissing-prototypes
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: sunliming <sunliming@kylinos.cn>
---
include/linux/of.h | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/include/linux/of.h b/include/linux/of.h
index f0a5d6b10c5a..3a166a1c4ef6 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -844,6 +844,16 @@ static inline phys_addr_t of_dma_get_max_cpu_address(struct device_node *np)
return PHYS_ADDR_MAX;
}
+static inline int ima_get_kexec_buffer(void **addr, size_t *size)
+{
+ return -ENOSYS;
+}
+
+static inline int ima_free_kexec_buffer(void **addr, size_t *size)
+{
+ return -ENOSYS;
+}
+
#define of_match_ptr(_ptr) NULL
#define of_match_node(_matches, _node) NULL
#endif /* CONFIG_OF */
--
2.25.1
reply other threads:[~2022-06-12 7:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20220612071035.1178320-1-sunliming@kylinos.cn \
--to=sunliming@kylinos.cn \
--cc=bhe@redhat.com \
--cc=dave.hansen@linux.intel.com \
--cc=frowand.list@gmail.com \
--cc=kelulanainsley@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=noodles@fb.com \
--cc=robh+dt@kernel.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;
as well as URLs for NNTP newsgroup(s).