linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb.auug.org.au>
To: Andrew Morton <akpm@linux-foundation.org>,
	Steven Rostedt <rostedt@goodmis.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Linux Next Mailing List <linux-next@vger.kernel.org>,
	Masami Hiramatsu <mhiramat@kernel.org>,
	Mike Rapoport <rppt@kernel.org>,
	Mike Rapoport <rppt@linux.ibm.com>
Subject: linux-next: manual merge of the akpm-current tree with the ftrace tree
Date: Mon, 25 Oct 2021 19:54:26 +1100	[thread overview]
Message-ID: <20211025195426.34e4a0a1@canb.auug.org.au> (raw)

[-- Attachment #1: Type: text/plain, Size: 2277 bytes --]

Hi all,

Today's linux-next merge of the akpm-current tree got a conflict in:

  lib/bootconfig.c

between commit:

  4ee1b4cac236 ("bootconfig: Cleanup dummy headers in tools/bootconfig")

from the ftrace tree and commit:

  13ab40b0e60e ("memblock: use memblock_free for freeing virtual pointers")

from the akpm-current tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

-- 
Cheers,
Stephen Rothwell

diff --cc lib/bootconfig.c
index a056ae137750,547558d80e64..000000000000
--- a/lib/bootconfig.c
+++ b/lib/bootconfig.c
@@@ -42,50 -34,6 +42,50 @@@ static int xbc_err_pos __initdata
  static int open_brace[XBC_DEPTH_MAX] __initdata;
  static int brace_index __initdata;
  
 +#ifdef __KERNEL__
 +static inline void *xbc_alloc_mem(size_t size)
 +{
 +	return memblock_alloc(size, SMP_CACHE_BYTES);
 +}
 +
 +static inline void xbc_free_mem(void *addr, size_t size)
 +{
- 	memblock_free_ptr(addr, size);
++	memblock_free(addr, size);
 +}
 +
 +#else /* !__KERNEL__ */
 +
 +static inline void *xbc_alloc_mem(size_t size)
 +{
 +	return malloc(size);
 +}
 +
 +static inline void xbc_free_mem(void *addr, size_t size)
 +{
 +	free(addr);
 +}
 +#endif
 +/**
 + * xbc_get_info() - Get the information of loaded boot config
 + * node_size: A pointer to store the number of nodes.
 + * data_size: A pointer to store the size of bootconfig data.
 + *
 + * Get the number of used nodes in @node_size if it is not NULL,
 + * and the size of bootconfig data in @data_size if it is not NULL.
 + * Return 0 if the boot config is initialized, or return -ENODEV.
 + */
 +int __init xbc_get_info(int *node_size, size_t *data_size)
 +{
 +	if (!xbc_data)
 +		return -ENODEV;
 +
 +	if (node_size)
 +		*node_size = xbc_node_num;
 +	if (data_size)
 +		*data_size = xbc_data_size;
 +	return 0;
 +}
 +
  static int __init xbc_parse_error(const char *msg, const char *p)
  {
  	xbc_err_msg = msg;

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

             reply	other threads:[~2021-10-25  8:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-25  8:54 Stephen Rothwell [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-01-15  5:47 linux-next: manual merge of the akpm-current tree with the ftrace tree Stephen Rothwell
2020-02-03  0:51 ` Stephen Rothwell
2020-02-03  3:16   ` Masami Hiramatsu
2014-11-24  9:22 Stephen Rothwell

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=20211025195426.34e4a0a1@canb.auug.org.au \
    --to=sfr@canb.auug.org.au \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=mhiramat@kernel.org \
    --cc=rostedt@goodmis.org \
    --cc=rppt@kernel.org \
    --cc=rppt@linux.ibm.com \
    /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).