From: kbuild test robot <lkp@intel.com>
To: Christophe Leroy <christophe.leroy@c-s.fr>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Michael Ellerman <mpe@ellerman.id.au>
Subject: arch/powerpc/boot/decompress.c:137: undefined reference to `__decompress'
Date: Tue, 26 May 2020 08:47:27 +0800 [thread overview]
Message-ID: <20200526004727.GA14672@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4800 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b85051e755b0e9d6dd8f17ef1da083851b83287d
commit: 1cc9a21b0bb36debdf96dbcc4b139d6639373018 powerpc/boot: Add lzma support for uImage
config: powerpc-randconfig-r012-20200520 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 1cc9a21b0bb36debdf96dbcc4b139d6639373018
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
powerpc-linux-ld: arch/powerpc/boot/wrapper.a(decompress.o): in function `partial_decompress':
>> arch/powerpc/boot/decompress.c:137: undefined reference to `__decompress'
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1cc9a21b0bb36debdf96dbcc4b139d6639373018
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout 1cc9a21b0bb36debdf96dbcc4b139d6639373018
vim +137 arch/powerpc/boot/decompress.c
1b7898ee276b39 Oliver O'Halloran 2016-09-22 102
1b7898ee276b39 Oliver O'Halloran 2016-09-22 103 /**
1b7898ee276b39 Oliver O'Halloran 2016-09-22 104 * partial_decompress - decompresses part or all of a compressed buffer
1b7898ee276b39 Oliver O'Halloran 2016-09-22 105 * @inbuf: input buffer
1b7898ee276b39 Oliver O'Halloran 2016-09-22 106 * @input_size: length of the input buffer
1b7898ee276b39 Oliver O'Halloran 2016-09-22 107 * @outbuf: input buffer
1b7898ee276b39 Oliver O'Halloran 2016-09-22 108 * @output_size: length of the input buffer
1b7898ee276b39 Oliver O'Halloran 2016-09-22 109 * @skip number of output bytes to ignore
1b7898ee276b39 Oliver O'Halloran 2016-09-22 110 *
1b7898ee276b39 Oliver O'Halloran 2016-09-22 111 * This function takes compressed data from inbuf, decompresses and write it to
1b7898ee276b39 Oliver O'Halloran 2016-09-22 112 * outbuf. Once output_size bytes are written to the output buffer, or the
1b7898ee276b39 Oliver O'Halloran 2016-09-22 113 * stream is exhausted the function will return the number of bytes that were
1b7898ee276b39 Oliver O'Halloran 2016-09-22 114 * decompressed. Otherwise it will return whatever error code the decompressor
1b7898ee276b39 Oliver O'Halloran 2016-09-22 115 * reported (NB: This is specific to each decompressor type).
1b7898ee276b39 Oliver O'Halloran 2016-09-22 116 *
1b7898ee276b39 Oliver O'Halloran 2016-09-22 117 * The skip functionality is mainly there so the program and discover
1b7898ee276b39 Oliver O'Halloran 2016-09-22 118 * the size of the compressed image so that it can ask firmware (if present)
1b7898ee276b39 Oliver O'Halloran 2016-09-22 119 * for an appropriately sized buffer.
1b7898ee276b39 Oliver O'Halloran 2016-09-22 120 */
1b7898ee276b39 Oliver O'Halloran 2016-09-22 121 long partial_decompress(void *inbuf, unsigned long input_size,
1b7898ee276b39 Oliver O'Halloran 2016-09-22 122 void *outbuf, unsigned long output_size, unsigned long _skip)
1b7898ee276b39 Oliver O'Halloran 2016-09-22 123 {
1b7898ee276b39 Oliver O'Halloran 2016-09-22 124 int ret;
1b7898ee276b39 Oliver O'Halloran 2016-09-22 125
1b7898ee276b39 Oliver O'Halloran 2016-09-22 126 /*
1b7898ee276b39 Oliver O'Halloran 2016-09-22 127 * The skipped bytes needs to be included in the size of data we want
1b7898ee276b39 Oliver O'Halloran 2016-09-22 128 * to decompress.
1b7898ee276b39 Oliver O'Halloran 2016-09-22 129 */
1b7898ee276b39 Oliver O'Halloran 2016-09-22 130 output_size += _skip;
1b7898ee276b39 Oliver O'Halloran 2016-09-22 131
1b7898ee276b39 Oliver O'Halloran 2016-09-22 132 decompressed_bytes = 0;
1b7898ee276b39 Oliver O'Halloran 2016-09-22 133 output_buffer = outbuf;
1b7898ee276b39 Oliver O'Halloran 2016-09-22 134 limit = output_size;
1b7898ee276b39 Oliver O'Halloran 2016-09-22 135 skip = _skip;
1b7898ee276b39 Oliver O'Halloran 2016-09-22 136
1b7898ee276b39 Oliver O'Halloran 2016-09-22 @137 ret = __decompress(inbuf, input_size, NULL, flush, outbuf,
:::::: The code at line 137 was first introduced by commit
:::::: 1b7898ee276b39e54d870dc4ef3374f663d0b426 powerpc/boot: Use the pre-boot decompression API
:::::: TO: Oliver O'Halloran <oohall@gmail.com>
:::::: CC: Michael Ellerman <mpe@ellerman.id.au>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 25804 bytes --]
next reply other threads:[~2020-05-26 0:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-26 0:47 kbuild test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-07-02 2:55 arch/powerpc/boot/decompress.c:137: undefined reference to `__decompress' kernel test robot
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=20200526004727.GA14672@intel.com \
--to=lkp@intel.com \
--cc=christophe.leroy@c-s.fr \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mpe@ellerman.id.au \
/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