fs/ntfs/file.c:1727:16: warning: stack frame size (4352) exceeds limit (2048) in function 'ntfs_perform_write'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 9e9fb7655ed585da8f468e29221f0ba194a5f613
commit: 97e4910232fa1f81e806aa60c25a0450276d99a2 linux/compiler-clang.h: define HAVE_BUILTIN_BSWAP*
date: 6 months ago
config: mips-randconfig-r026-20210829 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 510e106fa8635e7f9c51c896180b971de6309b2f)
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
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 97e4910232fa1f81e806aa60c25a0450276d99a2
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=mips SHELL=/bin/bash block/ fs/ntfs/ fs/xfs/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> fs/ntfs/file.c:1727:16: warning: stack frame size (4352) exceeds limit (2048) in function 'ntfs_perform_write'
static ssize_t ntfs_perform_write(struct file struct iov_iter
^
fatal error: error in backend: Nested variants found in inline asm string: ' .set push
.set mips64r2
.if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/bitops.h", .line = 133, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif
1: lld $0, $1
and $0, $2
scd $0, $1
beqz $0, 1b
.set pop
'
clang-14: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 14.0.0 (git://gitmirror/llvm_project 4b1fde8a2b681dad2ce0c082a5d6422caa06b0bc)
Target: mips64-unknown-linux
Thread model: posix
InstalledDir: /opt/cross/clang-4b1fde8a2b/bin
clang-14: note: diagnostic msg:
Makefile arch block drivers fs include kernel mm net nr_bisected scripts source usr
vim +/ntfs_perform_write +1727 fs/ntfs/file.c
9014da7525dffe Marco Stornelli 2012-12-15 1720
98b270362bb9ea Anton Altaparmakov 2005-10-11 1721 /**
a632f559304130 Anton Altaparmakov 2015-03-11 1722 * ntfs_perform_write - perform buffered write to a file
a632f559304130 Anton Altaparmakov 2015-03-11 1723 * @file: file to write to
a632f559304130 Anton Altaparmakov 2015-03-11 1724 * @i: iov_iter with data to write
a632f559304130 Anton Altaparmakov 2015-03-11 1725 * @pos: byte offset in file at which to begin writing to
98b270362bb9ea Anton Altaparmakov 2005-10-11 1726 */
a632f559304130 Anton Altaparmakov 2015-03-11 @1727 static ssize_t ntfs_perform_write(struct file *file, struct iov_iter *i,
a632f559304130 Anton Altaparmakov 2015-03-11 1728 loff_t pos)
98b270362bb9ea Anton Altaparmakov 2005-10-11 1729 {
98b270362bb9ea Anton Altaparmakov 2005-10-11 1730 struct address_space *mapping = file->f_mapping;
98b270362bb9ea Anton Altaparmakov 2005-10-11 1731 struct inode *vi = mapping->host;
98b270362bb9ea Anton Altaparmakov 2005-10-11 1732 ntfs_inode *ni = NTFS_I(vi);
98b270362bb9ea Anton Altaparmakov 2005-10-11 1733 ntfs_volume *vol = ni->vol;
98b270362bb9ea Anton Altaparmakov 2005-10-11 1734 struct page *pages[NTFS_MAX_PAGES_PER_CLUSTER];
98b270362bb9ea Anton Altaparmakov 2005-10-11 1735 struct page *cached_page = NULL;
98b270362bb9ea Anton Altaparmakov 2005-10-11 1736 VCN last_vcn;
98b270362bb9ea Anton Altaparmakov 2005-10-11 1737 LCN lcn;
a632f559304130 Anton Altaparmakov 2015-03-11 1738 size_t bytes;
a632f559304130 Anton Altaparmakov 2015-03-11 1739 ssize_t status, written = 0;
98b270362bb9ea Anton Altaparmakov 2005-10-11 1740 unsigned nr_pages;
98b270362bb9ea Anton Altaparmakov 2005-10-11 1741
a632f559304130 Anton Altaparmakov 2015-03-11 1742 ntfs_debug("Entering for i_ino 0x%lx, attribute type 0x%x, pos "
a632f559304130 Anton Altaparmakov 2015-03-11 1743 "0x%llx, count 0x%lx.", vi->i_ino,
a632f559304130 Anton Altaparmakov 2015-03-11 1744 (unsigned)le32_to_cpu(ni->type),
a632f559304130 Anton Altaparmakov 2015-03-11 1745 (unsigned long long)pos,
a632f559304130 Anton Altaparmakov 2015-03-11 1746 (unsigned long)iov_iter_count(i));
98b270362bb9ea Anton Altaparmakov 2005-10-11 1747 /*
98b270362bb9ea Anton Altaparmakov 2005-10-11 1748 * If a previous ntfs_truncate() failed, repeat it and abort if it
98b270362bb9ea Anton Altaparmakov 2005-10-11 1749 * fails again.
98b270362bb9ea Anton Altaparmakov 2005-10-11 1750 */
98b270362bb9ea Anton Altaparmakov 2005-10-11 1751 if (unlikely(NInoTruncateFailed(ni))) {
a632f559304130 Anton Altaparmakov 2015-03-11 1752 int err;
a632f559304130 Anton Altaparmakov 2015-03-11 1753
bd5fe6c5eb9c54 Christoph Hellwig 2011-06-24 1754 inode_dio_wait(vi);
98b270362bb9ea Anton Altaparmakov 2005-10-11 1755 err = ntfs_truncate(vi);
98b270362bb9ea Anton Altaparmakov 2005-10-11 1756 if (err || NInoTruncateFailed(ni)) {
98b270362bb9ea Anton Altaparmakov 2005-10-11 1757 if (!err)
98b270362bb9ea Anton Altaparmakov 2005-10-11 1758 err = -EIO;
98b270362bb9ea Anton Altaparmakov 2005-10-11 1759 ntfs_error(vol->sb, "Cannot perform write to inode "
98b270362bb9ea Anton Altaparmakov 2005-10-11 1760 "0x%lx, attribute type 0x%x, because "
98b270362bb9ea Anton Altaparmakov 2005-10-11 1761 "ntfs_truncate() failed (error code "
98b270362bb9ea Anton Altaparmakov 2005-10-11 1762 "%i).", vi->i_ino,
98b270362bb9ea Anton Altaparmakov 2005-10-11 1763 (unsigned)le32_to_cpu(ni->type), err);
98b270362bb9ea Anton Altaparmakov 2005-10-11 1764 return err;
98b270362bb9ea Anton Altaparmakov 2005-10-11 1765 }
98b270362bb9ea Anton Altaparmakov 2005-10-11 1766 }
98b270362bb9ea Anton Altaparmakov 2005-10-11 1767 /*
98b270362bb9ea Anton Altaparmakov 2005-10-11 1768 * Determine the number of pages per cluster for non-resident
98b270362bb9ea Anton Altaparmakov 2005-10-11 1769 * attributes.
98b270362bb9ea Anton Altaparmakov 2005-10-11 1770 */
98b270362bb9ea Anton Altaparmakov 2005-10-11 1771 nr_pages = 1;
09cbfeaf1a5a67 Kirill A. Shutemov 2016-04-01 1772 if (vol->cluster_size > PAGE_SIZE && NInoNonResident(ni))
09cbfeaf1a5a67 Kirill A. Shutemov 2016-04-01 1773 nr_pages = vol->cluster_size >> PAGE_SHIFT;
98b270362bb9ea Anton Altaparmakov 2005-10-11 1774 last_vcn = -1;
98b270362bb9ea Anton Altaparmakov 2005-10-11 1775 do {
98b270362bb9ea Anton Altaparmakov 2005-10-11 1776 VCN vcn;
98b270362bb9ea Anton Altaparmakov 2005-10-11 1777 pgoff_t idx, start_idx;
98b270362bb9ea Anton Altaparmakov 2005-10-11 1778 unsigned ofs, do_pages, u;
98b270362bb9ea Anton Altaparmakov 2005-10-11 1779 size_t copied;
98b270362bb9ea Anton Altaparmakov 2005-10-11 1780
09cbfeaf1a5a67 Kirill A. Shutemov 2016-04-01 1781 start_idx = idx = pos >> PAGE_SHIFT;
09cbfeaf1a5a67 Kirill A. Shutemov 2016-04-01 1782 ofs = pos & ~PAGE_MASK;
09cbfeaf1a5a67 Kirill A. Shutemov 2016-04-01 1783 bytes = PAGE_SIZE - ofs;
98b270362bb9ea Anton Altaparmakov 2005-10-11 1784 do_pages = 1;
98b270362bb9ea Anton Altaparmakov 2005-10-11 1785 if (nr_pages > 1) {
98b270362bb9ea Anton Altaparmakov 2005-10-11 1786 vcn = pos >> vol->cluster_size_bits;
98b270362bb9ea Anton Altaparmakov 2005-10-11 1787 if (vcn != last_vcn) {
98b270362bb9ea Anton Altaparmakov 2005-10-11 1788 last_vcn = vcn;
98b270362bb9ea Anton Altaparmakov 2005-10-11 1789 /*
98b270362bb9ea Anton Altaparmakov 2005-10-11 1790 * Get the lcn of the vcn the write is in. If
98b270362bb9ea Anton Altaparmakov 2005-10-11 1791 * it is a hole, need to lock down all pages in
98b270362bb9ea Anton Altaparmakov 2005-10-11 1792 * the cluster.
98b270362bb9ea Anton Altaparmakov 2005-10-11 1793 */
98b270362bb9ea Anton Altaparmakov 2005-10-11 1794 down_read(&ni->runlist.lock);
98b270362bb9ea Anton Altaparmakov 2005-10-11 1795 lcn = ntfs_attr_vcn_to_lcn_nolock(ni, pos >>
c49c31115067bc Richard Knutsson 2006-09-30 1796 vol->cluster_size_bits, false);
98b270362bb9ea Anton Altaparmakov 2005-10-11 1797 up_read(&ni->runlist.lock);
98b270362bb9ea Anton Altaparmakov 2005-10-11 1798 if (unlikely(lcn < LCN_HOLE)) {
98b270362bb9ea Anton Altaparmakov 2005-10-11 1799 if (lcn == LCN_ENOMEM)
98b270362bb9ea Anton Altaparmakov 2005-10-11 1800 status = -ENOMEM;
a632f559304130 Anton Altaparmakov 2015-03-11 1801 else {
a632f559304130 Anton Altaparmakov 2015-03-11 1802 status = -EIO;
98b270362bb9ea Anton Altaparmakov 2005-10-11 1803 ntfs_error(vol->sb, "Cannot "
98b270362bb9ea Anton Altaparmakov 2005-10-11 1804 "perform write to "
98b270362bb9ea Anton Altaparmakov 2005-10-11 1805 "inode 0x%lx, "
98b270362bb9ea Anton Altaparmakov 2005-10-11 1806 "attribute type 0x%x, "
98b270362bb9ea Anton Altaparmakov 2005-10-11 1807 "because the attribute "
98b270362bb9ea Anton Altaparmakov 2005-10-11 1808 "is corrupt.",
98b270362bb9ea Anton Altaparmakov 2005-10-11 1809 vi->i_ino, (unsigned)
98b270362bb9ea Anton Altaparmakov 2005-10-11 1810 le32_to_cpu(ni->type));
a632f559304130 Anton Altaparmakov 2015-03-11 1811 }
98b270362bb9ea Anton Altaparmakov 2005-10-11 1812 break;
98b270362bb9ea Anton Altaparmakov 2005-10-11 1813 }
98b270362bb9ea Anton Altaparmakov 2005-10-11 1814 if (lcn == LCN_HOLE) {
98b270362bb9ea Anton Altaparmakov 2005-10-11 1815 start_idx = (pos & ~(s64)
98b270362bb9ea Anton Altaparmakov 2005-10-11 1816 vol->cluster_size_mask)
09cbfeaf1a5a67 Kirill A. Shutemov 2016-04-01 1817 >> PAGE_SHIFT;
98b270362bb9ea Anton Altaparmakov 2005-10-11 1818 bytes = vol->cluster_size - (pos &
98b270362bb9ea Anton Altaparmakov 2005-10-11 1819 vol->cluster_size_mask);
98b270362bb9ea Anton Altaparmakov 2005-10-11 1820 do_pages = nr_pages;
98b270362bb9ea Anton Altaparmakov 2005-10-11 1821 }
98b270362bb9ea Anton Altaparmakov 2005-10-11 1822 }
98b270362bb9ea Anton Altaparmakov 2005-10-11 1823 }
a632f559304130 Anton Altaparmakov 2015-03-11 1824 if (bytes > iov_iter_count(i))
a632f559304130 Anton Altaparmakov 2015-03-11 1825 bytes = iov_iter_count(i);
a632f559304130 Anton Altaparmakov 2015-03-11 1826 again:
98b270362bb9ea Anton Altaparmakov 2005-10-11 1827 /*
98b270362bb9ea Anton Altaparmakov 2005-10-11 1828 * Bring in the user page(s) that we will copy from _first_.
98b270362bb9ea Anton Altaparmakov 2005-10-11 1829 * Otherwise there is a nasty deadlock on copying from the same
98b270362bb9ea Anton Altaparmakov 2005-10-11 1830 * page(s) as we are writing to, without it/them being marked
98b270362bb9ea Anton Altaparmakov 2005-10-11 1831 * up-to-date. Note, at present there is nothing to stop the
98b270362bb9ea Anton Altaparmakov 2005-10-11 1832 * pages being swapped out between us bringing them into memory
98b270362bb9ea Anton Altaparmakov 2005-10-11 1833 * and doing the actual copying.
98b270362bb9ea Anton Altaparmakov 2005-10-11 1834 */
4bce9f6ee8f84f Al Viro 2016-09-17 1835 if (unlikely(iov_iter_fault_in_readable(i, bytes))) {
a632f559304130 Anton Altaparmakov 2015-03-11 1836 status = -EFAULT;
a632f559304130 Anton Altaparmakov 2015-03-11 1837 break;
a632f559304130 Anton Altaparmakov 2015-03-11 1838 }
98b270362bb9ea Anton Altaparmakov 2005-10-11 1839 /* Get and lock @do_pages starting at index @start_idx. */
98b270362bb9ea Anton Altaparmakov 2005-10-11 1840 status = __ntfs_grab_cache_pages(mapping, start_idx, do_pages,
4c99000ac47cbd Minchan Kim 2010-05-24 1841 pages, &cached_page);
98b270362bb9ea Anton Altaparmakov 2005-10-11 1842 if (unlikely(status))
98b270362bb9ea Anton Altaparmakov 2005-10-11 1843 break;
98b270362bb9ea Anton Altaparmakov 2005-10-11 1844 /*
98b270362bb9ea Anton Altaparmakov 2005-10-11 1845 * For non-resident attributes, we need to fill any holes with
98b270362bb9ea Anton Altaparmakov 2005-10-11 1846 * actual clusters and ensure all bufferes are mapped. We also
98b270362bb9ea Anton Altaparmakov 2005-10-11 1847 * need to bring uptodate any buffers that are only partially
98b270362bb9ea Anton Altaparmakov 2005-10-11 1848 * being written to.
98b270362bb9ea Anton Altaparmakov 2005-10-11 1849 */
98b270362bb9ea Anton Altaparmakov 2005-10-11 1850 if (NInoNonResident(ni)) {
98b270362bb9ea Anton Altaparmakov 2005-10-11 1851 status = ntfs_prepare_pages_for_non_resident_write(
98b270362bb9ea Anton Altaparmakov 2005-10-11 1852 pages, do_pages, pos, bytes);
98b270362bb9ea Anton Altaparmakov 2005-10-11 1853 if (unlikely(status)) {
98b270362bb9ea Anton Altaparmakov 2005-10-11 1854 do {
98b270362bb9ea Anton Altaparmakov 2005-10-11 1855 unlock_page(pages[--do_pages]);
09cbfeaf1a5a67 Kirill A. Shutemov 2016-04-01 1856 put_page(pages[do_pages]);
98b270362bb9ea Anton Altaparmakov 2005-10-11 1857 } while (do_pages);
98b270362bb9ea Anton Altaparmakov 2005-10-11 1858 break;
98b270362bb9ea Anton Altaparmakov 2005-10-11 1859 }
98b270362bb9ea Anton Altaparmakov 2005-10-11 1860 }
09cbfeaf1a5a67 Kirill A. Shutemov 2016-04-01 1861 u = (pos >> PAGE_SHIFT) - pages[0]->index;
a632f559304130 Anton Altaparmakov 2015-03-11 1862 copied = ntfs_copy_from_user_iter(pages + u, do_pages - u, ofs,
a632f559304130 Anton Altaparmakov 2015-03-11 1863 i, bytes);
98b270362bb9ea Anton Altaparmakov 2005-10-11 1864 ntfs_flush_dcache_pages(pages + u, do_pages - u);
a632f559304130 Anton Altaparmakov 2015-03-11 1865 status = 0;
a632f559304130 Anton Altaparmakov 2015-03-11 1866 if (likely(copied == bytes)) {
a632f559304130 Anton Altaparmakov 2015-03-11 1867 status = ntfs_commit_pages_after_write(pages, do_pages,
a632f559304130 Anton Altaparmakov 2015-03-11 1868 pos, bytes);
a632f559304130 Anton Altaparmakov 2015-03-11 1869 if (!status)
a632f559304130 Anton Altaparmakov 2015-03-11 1870 status = bytes;
98b270362bb9ea Anton Altaparmakov 2005-10-11 1871 }
98b270362bb9ea Anton Altaparmakov 2005-10-11 1872 do {
98b270362bb9ea Anton Altaparmakov 2005-10-11 1873 unlock_page(pages[--do_pages]);
09cbfeaf1a5a67 Kirill A. Shutemov 2016-04-01 1874 put_page(pages[do_pages]);
98b270362bb9ea Anton Altaparmakov 2005-10-11 1875 } while (do_pages);
a632f559304130 Anton Altaparmakov 2015-03-11 1876 if (unlikely(status < 0))
98b270362bb9ea Anton Altaparmakov 2005-10-11 1877 break;
a632f559304130 Anton Altaparmakov 2015-03-11 1878 copied = status;
98b270362bb9ea Anton Altaparmakov 2005-10-11 1879 cond_resched();
a632f559304130 Anton Altaparmakov 2015-03-11 1880 if (unlikely(!copied)) {
a632f559304130 Anton Altaparmakov 2015-03-11 1881 size_t sc;
a632f559304130 Anton Altaparmakov 2015-03-11 1882
a632f559304130 Anton Altaparmakov 2015-03-11 1883 /*
a632f559304130 Anton Altaparmakov 2015-03-11 1884 * We failed to copy anything. Fall back to single
a632f559304130 Anton Altaparmakov 2015-03-11 1885 * segment length write.
a632f559304130 Anton Altaparmakov 2015-03-11 1886 *
a632f559304130 Anton Altaparmakov 2015-03-11 1887 * This is needed to avoid possible livelock in the
a632f559304130 Anton Altaparmakov 2015-03-11 1888 * case that all segments in the iov cannot be copied
a632f559304130 Anton Altaparmakov 2015-03-11 1889 * at once without a pagefault.
a632f559304130 Anton Altaparmakov 2015-03-11 1890 */
a632f559304130 Anton Altaparmakov 2015-03-11 1891 sc = iov_iter_single_seg_count(i);
a632f559304130 Anton Altaparmakov 2015-03-11 1892 if (bytes > sc)
a632f559304130 Anton Altaparmakov 2015-03-11 1893 bytes = sc;
a632f559304130 Anton Altaparmakov 2015-03-11 1894 goto again;
a632f559304130 Anton Altaparmakov 2015-03-11 1895 }
a632f559304130 Anton Altaparmakov 2015-03-11 1896 iov_iter_advance(i, copied);
a632f559304130 Anton Altaparmakov 2015-03-11 1897 pos += copied;
a632f559304130 Anton Altaparmakov 2015-03-11 1898 written += copied;
a632f559304130 Anton Altaparmakov 2015-03-11 1899 balance_dirty_pages_ratelimited(mapping);
a632f559304130 Anton Altaparmakov 2015-03-11 1900 if (fatal_signal_pending(current)) {
a632f559304130 Anton Altaparmakov 2015-03-11 1901 status = -EINTR;
a632f559304130 Anton Altaparmakov 2015-03-11 1902 break;
a632f559304130 Anton Altaparmakov 2015-03-11 1903 }
a632f559304130 Anton Altaparmakov 2015-03-11 1904 } while (iov_iter_count(i));
98b270362bb9ea Anton Altaparmakov 2005-10-11 1905 if (cached_page)
09cbfeaf1a5a67 Kirill A. Shutemov 2016-04-01 1906 put_page(cached_page);
98b270362bb9ea Anton Altaparmakov 2005-10-11 1907 ntfs_debug("Done. Returning %s (written 0x%lx, status %li).",
98b270362bb9ea Anton Altaparmakov 2005-10-11 1908 written ? "written" : "status", (unsigned long)written,
98b270362bb9ea Anton Altaparmakov 2005-10-11 1909 (long)status);
98b270362bb9ea Anton Altaparmakov 2005-10-11 1910 return written ? written : status;
98b270362bb9ea Anton Altaparmakov 2005-10-11 1911 }
98b270362bb9ea Anton Altaparmakov 2005-10-11 1912
:::::: The code at line 1727 was first introduced by commit
:::::: a632f5593041305c8adbf4727bc1ccdf0b45178b NTFS: Version 2.1.32 - Update file write from aio_write to write_iter.
:::::: TO: Anton Altaparmakov <anton(a)tuxera.com>
:::::: CC: Al Viro <viro(a)zeniv.linux.org.uk>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 2 weeks
Re: [PATCH net 2/2] ipv4: make exception cache less predictible
by kernel test robot
Hi Eric,
I love your patch! Perhaps something to improve:
[auto build test WARNING on net/master]
url: https://github.com/0day-ci/linux/commits/Eric-Dumazet/inet-make-exception...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git 57f780f1c43362b86fd23d20bd940e2468237716
:::::: branch date: 19 hours ago
:::::: commit date: 19 hours ago
config: x86_64-randconfig-c007-20210830 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 4b1fde8a2b681dad2ce0c082a5d6422caa06b0bc)
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
# https://github.com/0day-ci/linux/commit/adf305d00ec06cb771dc960f0d7bd62d0...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Eric-Dumazet/inet-make-exception-handling-less-predictible/20210830-061726
git checkout adf305d00ec06cb771dc960f0d7bd62d07561371
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 clang-analyzer
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
clang-analyzer warnings: (new ones prefixed by >>)
>> net/ipv4/route.c:575:7: warning: Dereference of null pointer [clang-analyzer-core.NullDereference]
rt = rcu_dereference(fnhe->fnhe_rth_input);
^
net/ipv4/route.c:592:34: note: 'oldest' initialized to a null pointer value
struct fib_nh_exception *fnhe, *oldest = NULL;
^~~~~~
net/ipv4/route.c:594:2: note: Loop condition is true. Entering loop body
for (fnhe_p = &hash->chain; ; fnhe_p = &fnhe->fnhe_next) {
^
net/ipv4/route.c:595:10: note: Assuming the condition is false
fnhe = rcu_dereference_protected(*fnhe_p,
^
include/linux/rcupdate.h:587:2: note: expanded from macro 'rcu_dereference_protected'
__rcu_dereference_protected((p), (c), __rcu)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/rcupdate.h:396:19: note: expanded from macro '__rcu_dereference_protected'
RCU_LOCKDEP_WARN(!(c), "suspicious rcu_dereference_protected() usage"); \
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/rcupdate.h:318:8: note: expanded from macro 'RCU_LOCKDEP_WARN'
if ((c) && debug_lockdep_rcu_enabled() && !__warned) { \
^
net/ipv4/route.c:595:10: note: Left side of '&&' is false
fnhe = rcu_dereference_protected(*fnhe_p,
^
include/linux/rcupdate.h:587:2: note: expanded from macro 'rcu_dereference_protected'
__rcu_dereference_protected((p), (c), __rcu)
^
include/linux/rcupdate.h:396:2: note: expanded from macro '__rcu_dereference_protected'
RCU_LOCKDEP_WARN(!(c), "suspicious rcu_dereference_protected() usage"); \
^
include/linux/rcupdate.h:318:11: note: expanded from macro 'RCU_LOCKDEP_WARN'
if ((c) && debug_lockdep_rcu_enabled() && !__warned) { \
^
net/ipv4/route.c:595:10: note: Loop condition is false. Exiting loop
fnhe = rcu_dereference_protected(*fnhe_p,
^
include/linux/rcupdate.h:587:2: note: expanded from macro 'rcu_dereference_protected'
__rcu_dereference_protected((p), (c), __rcu)
^
include/linux/rcupdate.h:396:2: note: expanded from macro '__rcu_dereference_protected'
RCU_LOCKDEP_WARN(!(c), "suspicious rcu_dereference_protected() usage"); \
^
include/linux/rcupdate.h:316:2: note: expanded from macro 'RCU_LOCKDEP_WARN'
do { \
^
net/ipv4/route.c:597:7: note: Assuming 'fnhe' is null
if (!fnhe)
^~~~~
net/ipv4/route.c:597:3: note: Taking true branch
if (!fnhe)
^
net/ipv4/route.c:598:4: note: Execution continues on line 605
break;
^
net/ipv4/route.c:605:20: note: Passing null pointer value via 1st parameter 'fnhe'
fnhe_flush_routes(oldest);
^~~~~~
net/ipv4/route.c:605:2: note: Calling 'fnhe_flush_routes'
fnhe_flush_routes(oldest);
^~~~~~~~~~~~~~~~~~~~~~~~~
net/ipv4/route.c:575:7: warning: Dereference of null pointer [clang-analyzer-core.NullDereference]
rt = rcu_dereference(fnhe->fnhe_rth_input);
^
vim +575 net/ipv4/route.c
4895c771c7f006 David S. Miller 2012-07-17 570
2ffae99d1fac27 Timo Teräs 2013-06-27 571 static void fnhe_flush_routes(struct fib_nh_exception *fnhe)
2ffae99d1fac27 Timo Teräs 2013-06-27 572 {
2ffae99d1fac27 Timo Teräs 2013-06-27 573 struct rtable *rt;
2ffae99d1fac27 Timo Teräs 2013-06-27 574
2ffae99d1fac27 Timo Teräs 2013-06-27 @575 rt = rcu_dereference(fnhe->fnhe_rth_input);
2ffae99d1fac27 Timo Teräs 2013-06-27 576 if (rt) {
2ffae99d1fac27 Timo Teräs 2013-06-27 577 RCU_INIT_POINTER(fnhe->fnhe_rth_input, NULL);
95c47f9cf5e028 Wei Wang 2017-06-17 578 dst_dev_put(&rt->dst);
0830106c539001 Wei Wang 2017-06-17 579 dst_release(&rt->dst);
2ffae99d1fac27 Timo Teräs 2013-06-27 580 }
2ffae99d1fac27 Timo Teräs 2013-06-27 581 rt = rcu_dereference(fnhe->fnhe_rth_output);
2ffae99d1fac27 Timo Teräs 2013-06-27 582 if (rt) {
2ffae99d1fac27 Timo Teräs 2013-06-27 583 RCU_INIT_POINTER(fnhe->fnhe_rth_output, NULL);
95c47f9cf5e028 Wei Wang 2017-06-17 584 dst_dev_put(&rt->dst);
0830106c539001 Wei Wang 2017-06-17 585 dst_release(&rt->dst);
2ffae99d1fac27 Timo Teräs 2013-06-27 586 }
2ffae99d1fac27 Timo Teräs 2013-06-27 587 }
2ffae99d1fac27 Timo Teräs 2013-06-27 588
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 2 weeks
Re: [PATCH net-next v2 04/11] bnxt_en: introduce new firmware message API based on DMA pools
by kernel test robot
Hi Michael,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on net-next/master]
url: https://github.com/0day-ci/linux/commits/Michael-Chan/bnxt_en-Implement-n...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git c77225119daa0ca0a9c6c007945c0a87b3e4a2e8
config: parisc-allyesconfig (attached as .config)
compiler: hppa-linux-gcc (GCC) 11.2.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
# https://github.com/0day-ci/linux/commit/cfca001de60095f2133fabd5dd01c092d...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Michael-Chan/bnxt_en-Implement-new-driver-APIs-to-send-FW-messages/20210829-153728
git checkout cfca001de60095f2133fabd5dd01c092de1fd34d
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=parisc SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/mm_types.h:9,
from include/linux/buildid.h:5,
from include/linux/module.h:14,
from drivers/net/ethernet/broadcom/bnxt/bnxt.c:11:
drivers/net/ethernet/broadcom/bnxt/bnxt.c: In function 'bnxt_init_board':
>> drivers/net/ethernet/broadcom/bnxt/bnxt.c:12062:27: error: 'struct bnxt' has no member named 'db_lock'
12062 | spin_lock_init(&bp->db_lock);
| ^~
include/linux/spinlock.h:338:45: note: in definition of macro 'spin_lock_init'
338 | __raw_spin_lock_init(spinlock_check(lock), \
| ^~~~
vim +12062 drivers/net/ethernet/broadcom/bnxt/bnxt.c
230d1f0de754b4 Michael Chan 2019-08-29 11998
c0c050c58d8409 Michael Chan 2015-10-22 11999 static int bnxt_init_board(struct pci_dev *pdev, struct net_device *dev)
c0c050c58d8409 Michael Chan 2015-10-22 12000 {
c0c050c58d8409 Michael Chan 2015-10-22 12001 int rc;
c0c050c58d8409 Michael Chan 2015-10-22 12002 struct bnxt *bp = netdev_priv(dev);
c0c050c58d8409 Michael Chan 2015-10-22 12003
c0c050c58d8409 Michael Chan 2015-10-22 12004 SET_NETDEV_DEV(dev, &pdev->dev);
c0c050c58d8409 Michael Chan 2015-10-22 12005
c0c050c58d8409 Michael Chan 2015-10-22 12006 /* enable device (incl. PCI PM wakeup), and bus-mastering */
c0c050c58d8409 Michael Chan 2015-10-22 12007 rc = pci_enable_device(pdev);
c0c050c58d8409 Michael Chan 2015-10-22 12008 if (rc) {
c0c050c58d8409 Michael Chan 2015-10-22 12009 dev_err(&pdev->dev, "Cannot enable PCI device, aborting\n");
c0c050c58d8409 Michael Chan 2015-10-22 12010 goto init_err;
c0c050c58d8409 Michael Chan 2015-10-22 12011 }
c0c050c58d8409 Michael Chan 2015-10-22 12012
c0c050c58d8409 Michael Chan 2015-10-22 12013 if (!(pci_resource_flags(pdev, 0) & IORESOURCE_MEM)) {
c0c050c58d8409 Michael Chan 2015-10-22 12014 dev_err(&pdev->dev,
c0c050c58d8409 Michael Chan 2015-10-22 12015 "Cannot find PCI device base address, aborting\n");
c0c050c58d8409 Michael Chan 2015-10-22 12016 rc = -ENODEV;
c0c050c58d8409 Michael Chan 2015-10-22 12017 goto init_err_disable;
c0c050c58d8409 Michael Chan 2015-10-22 12018 }
c0c050c58d8409 Michael Chan 2015-10-22 12019
c0c050c58d8409 Michael Chan 2015-10-22 12020 rc = pci_request_regions(pdev, DRV_MODULE_NAME);
c0c050c58d8409 Michael Chan 2015-10-22 12021 if (rc) {
c0c050c58d8409 Michael Chan 2015-10-22 12022 dev_err(&pdev->dev, "Cannot obtain PCI resources, aborting\n");
c0c050c58d8409 Michael Chan 2015-10-22 12023 goto init_err_disable;
c0c050c58d8409 Michael Chan 2015-10-22 12024 }
c0c050c58d8409 Michael Chan 2015-10-22 12025
c0c050c58d8409 Michael Chan 2015-10-22 12026 if (dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64)) != 0 &&
c0c050c58d8409 Michael Chan 2015-10-22 12027 dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)) != 0) {
c0c050c58d8409 Michael Chan 2015-10-22 12028 dev_err(&pdev->dev, "System does not support DMA, aborting\n");
3383176efc0fb0 Zhang Changzhong 2020-11-19 12029 rc = -EIO;
c54bc3ced51066 Michael Chan 2020-11-20 12030 goto init_err_release;
c0c050c58d8409 Michael Chan 2015-10-22 12031 }
c0c050c58d8409 Michael Chan 2015-10-22 12032
c0c050c58d8409 Michael Chan 2015-10-22 12033 pci_set_master(pdev);
c0c050c58d8409 Michael Chan 2015-10-22 12034
c0c050c58d8409 Michael Chan 2015-10-22 12035 bp->dev = dev;
c0c050c58d8409 Michael Chan 2015-10-22 12036 bp->pdev = pdev;
c0c050c58d8409 Michael Chan 2015-10-22 12037
8ae2473842bdbb Michael Chan 2020-05-04 12038 /* Doorbell BAR bp->bar1 is mapped after bnxt_fw_init_one_p2()
8ae2473842bdbb Michael Chan 2020-05-04 12039 * determines the BAR size.
8ae2473842bdbb Michael Chan 2020-05-04 12040 */
c0c050c58d8409 Michael Chan 2015-10-22 12041 bp->bar0 = pci_ioremap_bar(pdev, 0);
c0c050c58d8409 Michael Chan 2015-10-22 12042 if (!bp->bar0) {
c0c050c58d8409 Michael Chan 2015-10-22 12043 dev_err(&pdev->dev, "Cannot map device registers, aborting\n");
c0c050c58d8409 Michael Chan 2015-10-22 12044 rc = -ENOMEM;
c0c050c58d8409 Michael Chan 2015-10-22 12045 goto init_err_release;
c0c050c58d8409 Michael Chan 2015-10-22 12046 }
c0c050c58d8409 Michael Chan 2015-10-22 12047
c0c050c58d8409 Michael Chan 2015-10-22 12048 bp->bar2 = pci_ioremap_bar(pdev, 4);
c0c050c58d8409 Michael Chan 2015-10-22 12049 if (!bp->bar2) {
c0c050c58d8409 Michael Chan 2015-10-22 12050 dev_err(&pdev->dev, "Cannot map bar4 registers, aborting\n");
c0c050c58d8409 Michael Chan 2015-10-22 12051 rc = -ENOMEM;
c0c050c58d8409 Michael Chan 2015-10-22 12052 goto init_err_release;
c0c050c58d8409 Michael Chan 2015-10-22 12053 }
c0c050c58d8409 Michael Chan 2015-10-22 12054
6316ea6db93d87 Satish Baddipadige 2016-03-07 12055 pci_enable_pcie_error_reporting(pdev);
6316ea6db93d87 Satish Baddipadige 2016-03-07 12056
c0c050c58d8409 Michael Chan 2015-10-22 12057 INIT_WORK(&bp->sp_task, bnxt_sp_task);
230d1f0de754b4 Michael Chan 2019-08-29 12058 INIT_DELAYED_WORK(&bp->fw_reset_task, bnxt_fw_reset_task);
c0c050c58d8409 Michael Chan 2015-10-22 12059
c0c050c58d8409 Michael Chan 2015-10-22 12060 spin_lock_init(&bp->ntp_fltr_lock);
697197e5a17353 Michael Chan 2018-10-14 12061 #if BITS_PER_LONG == 32
697197e5a17353 Michael Chan 2018-10-14 @12062 spin_lock_init(&bp->db_lock);
697197e5a17353 Michael Chan 2018-10-14 12063 #endif
c0c050c58d8409 Michael Chan 2015-10-22 12064
c0c050c58d8409 Michael Chan 2015-10-22 12065 bp->rx_ring_size = BNXT_DEFAULT_RX_RING_SIZE;
c0c050c58d8409 Michael Chan 2015-10-22 12066 bp->tx_ring_size = BNXT_DEFAULT_TX_RING_SIZE;
c0c050c58d8409 Michael Chan 2015-10-22 12067
18775aa8a91fcd Michael Chan 2017-10-26 12068 bnxt_init_dflt_coal(bp);
51f307856b60e6 Michael Chan 2016-07-01 12069
e99e88a9d2b067 Kees Cook 2017-10-16 12070 timer_setup(&bp->timer, bnxt_timer, 0);
c0c050c58d8409 Michael Chan 2015-10-22 12071 bp->current_interval = BNXT_TIMER_INTERVAL;
c0c050c58d8409 Michael Chan 2015-10-22 12072
442a35a5a7aa72 Jakub Kicinski 2020-07-09 12073 bp->vxlan_fw_dst_port_id = INVALID_HW_RING_ID;
442a35a5a7aa72 Jakub Kicinski 2020-07-09 12074 bp->nge_fw_dst_port_id = INVALID_HW_RING_ID;
442a35a5a7aa72 Jakub Kicinski 2020-07-09 12075
caefe526d7b5af Michael Chan 2015-12-09 12076 clear_bit(BNXT_STATE_OPEN, &bp->state);
c0c050c58d8409 Michael Chan 2015-10-22 12077 return 0;
c0c050c58d8409 Michael Chan 2015-10-22 12078
c0c050c58d8409 Michael Chan 2015-10-22 12079 init_err_release:
17086399c113d9 Sathya Perla 2017-02-20 12080 bnxt_unmap_bars(bp, pdev);
c0c050c58d8409 Michael Chan 2015-10-22 12081 pci_release_regions(pdev);
c0c050c58d8409 Michael Chan 2015-10-22 12082
c0c050c58d8409 Michael Chan 2015-10-22 12083 init_err_disable:
c0c050c58d8409 Michael Chan 2015-10-22 12084 pci_disable_device(pdev);
c0c050c58d8409 Michael Chan 2015-10-22 12085
c0c050c58d8409 Michael Chan 2015-10-22 12086 init_err:
c0c050c58d8409 Michael Chan 2015-10-22 12087 return rc;
c0c050c58d8409 Michael Chan 2015-10-22 12088 }
c0c050c58d8409 Michael Chan 2015-10-22 12089
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 2 weeks
Re: [PATCH v5] ixgbe: let the xdpdrv work with more than 64 cpus
by kernel test robot
Hi,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on tnguy-next-queue/dev-queue]
[also build test ERROR on v5.14 next-20210831]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/kerneljasonxing-gmail-com/ixgbe-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git dev-queue
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 11.2.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
# https://github.com/0day-ci/linux/commit/f0b3bac18b36da2a2655486f4c7a39fcf...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review kerneljasonxing-gmail-com/ixgbe-let-the-xdpdrv-work-with-more-than-64-cpus/20210830-204946
git checkout f0b3bac18b36da2a2655486f4c7a39fcf5ef3fc1
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/dynamic_debug.h:6,
from include/linux/printk.h:456,
from include/linux/kernel.h:19,
from include/linux/list.h:9,
from include/linux/pci.h:32,
from drivers/net/ethernet/intel/ixgbe/ixgbe.h:9,
from drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c:4:
drivers/net/ethernet/intel/ixgbe/ixgbe.h: In function 'ixgbe_determine_xdp_q_idx':
>> drivers/net/ethernet/intel/ixgbe/ixgbe.h:780:33: error: 'ixgbe_xdp_locking_key' undeclared (first use in this function)
780 | if (static_key_enabled(&ixgbe_xdp_locking_key))
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/jump_label.h:416:51: note: in definition of macro 'static_key_enabled'
416 | if (!__builtin_types_compatible_p(typeof(*x), struct static_key) && \
| ^
drivers/net/ethernet/intel/ixgbe/ixgbe.h:780:33: note: each undeclared identifier is reported only once for each function it appears in
780 | if (static_key_enabled(&ixgbe_xdp_locking_key))
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/jump_label.h:416:51: note: in definition of macro 'static_key_enabled'
416 | if (!__builtin_types_compatible_p(typeof(*x), struct static_key) && \
| ^
--
In file included from include/linux/dynamic_debug.h:6,
from include/linux/printk.h:456,
from include/linux/kernel.h:19,
from include/linux/list.h:9,
from include/linux/pci.h:32,
from drivers/net/ethernet/intel/ixgbe/ixgbe.h:9,
from drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c:4:
drivers/net/ethernet/intel/ixgbe/ixgbe.h: In function 'ixgbe_determine_xdp_q_idx':
>> drivers/net/ethernet/intel/ixgbe/ixgbe.h:780:33: error: 'ixgbe_xdp_locking_key' undeclared (first use in this function)
780 | if (static_key_enabled(&ixgbe_xdp_locking_key))
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/jump_label.h:416:51: note: in definition of macro 'static_key_enabled'
416 | if (!__builtin_types_compatible_p(typeof(*x), struct static_key) && \
| ^
drivers/net/ethernet/intel/ixgbe/ixgbe.h:780:33: note: each undeclared identifier is reported only once for each function it appears in
780 | if (static_key_enabled(&ixgbe_xdp_locking_key))
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/jump_label.h:416:51: note: in definition of macro 'static_key_enabled'
416 | if (!__builtin_types_compatible_p(typeof(*x), struct static_key) && \
| ^
drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c: In function 'ixgbe_free_q_vector':
>> drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c:1039:33: error: 'ixgbe_xdp_locking_key' undeclared (first use in this function)
1039 | if (static_key_enabled(&ixgbe_xdp_locking_key))
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/jump_label.h:416:51: note: in definition of macro 'static_key_enabled'
416 | if (!__builtin_types_compatible_p(typeof(*x), struct static_key) && \
| ^
--
In file included from include/linux/dynamic_debug.h:6,
from include/linux/printk.h:456,
from include/linux/kernel.h:19,
from include/linux/list.h:9,
from include/linux/module.h:12,
from drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:5:
drivers/net/ethernet/intel/ixgbe/ixgbe.h: In function 'ixgbe_determine_xdp_q_idx':
>> drivers/net/ethernet/intel/ixgbe/ixgbe.h:780:33: error: 'ixgbe_xdp_locking_key' undeclared (first use in this function)
780 | if (static_key_enabled(&ixgbe_xdp_locking_key))
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/jump_label.h:416:51: note: in definition of macro 'static_key_enabled'
416 | if (!__builtin_types_compatible_p(typeof(*x), struct static_key) && \
| ^
drivers/net/ethernet/intel/ixgbe/ixgbe.h:780:33: note: each undeclared identifier is reported only once for each function it appears in
780 | if (static_key_enabled(&ixgbe_xdp_locking_key))
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/jump_label.h:416:51: note: in definition of macro 'static_key_enabled'
416 | if (!__builtin_types_compatible_p(typeof(*x), struct static_key) && \
| ^
In file included from drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:42:
drivers/net/ethernet/intel/ixgbe/ixgbe.h:784:1: error: control reaches end of non-void function [-Werror=return-type]
784 | }
| ^
cc1: some warnings being treated as errors
vim +/ixgbe_xdp_locking_key +780 drivers/net/ethernet/intel/ixgbe/ixgbe.h
777
778 static inline int ixgbe_determine_xdp_q_idx(int cpu)
779 {
> 780 if (static_key_enabled(&ixgbe_xdp_locking_key))
781 return cpu % IXGBE_MAX_XDP_QS;
782 else
783 return cpu;
784 }
785
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 2 weeks
[zen-kernel-zen-kernel:5.13/lru 5/6] mm/vmscan.c:181:54: error: 'CONFIG_ANON_MIN_KBYTES' undeclared here (not in a function)
by kernel test robot
tree: https://github.com/zen-kernel/zen-kernel 5.13/lru
head: 8cc9f2f188df7272b22e847af845d064189a0c29
commit: 9e72d53ecc77bf57b29d15eef29420d53a07d040 [5/6] mm/vmscan: add sysctl knobs for protecting the working set
config: alpha-randconfig-r021-20210831 (attached as .config)
compiler: alpha-linux-gcc (GCC) 11.2.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
# https://github.com/zen-kernel/zen-kernel/commit/9e72d53ecc77bf57b29d15eef...
git remote add zen-kernel-zen-kernel https://github.com/zen-kernel/zen-kernel
git fetch --no-tags zen-kernel-zen-kernel 5.13/lru
git checkout 9e72d53ecc77bf57b29d15eef29420d53a07d040
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=alpha SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> mm/vmscan.c:181:54: error: 'CONFIG_ANON_MIN_KBYTES' undeclared here (not in a function)
181 | unsigned long sysctl_anon_min_kbytes __read_mostly = CONFIG_ANON_MIN_KBYTES;
| ^~~~~~~~~~~~~~~~~~~~~~
mm/vmscan.c:182:55: error: 'CONFIG_CLEAN_LOW_KBYTES' undeclared here (not in a function)
182 | unsigned long sysctl_clean_low_kbytes __read_mostly = CONFIG_CLEAN_LOW_KBYTES;
| ^~~~~~~~~~~~~~~~~~~~~~~
mm/vmscan.c:183:55: error: 'CONFIG_CLEAN_MIN_KBYTES' undeclared here (not in a function)
183 | unsigned long sysctl_clean_min_kbytes __read_mostly = CONFIG_CLEAN_MIN_KBYTES;
| ^~~~~~~~~~~~~~~~~~~~~~~
vim +/CONFIG_ANON_MIN_KBYTES +181 mm/vmscan.c
180
> 181 unsigned long sysctl_anon_min_kbytes __read_mostly = CONFIG_ANON_MIN_KBYTES;
182 unsigned long sysctl_clean_low_kbytes __read_mostly = CONFIG_CLEAN_LOW_KBYTES;
183 unsigned long sysctl_clean_min_kbytes __read_mostly = CONFIG_CLEAN_MIN_KBYTES;
184
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 2 weeks
[zen-kernel-zen-kernel:5.13/lru 5/6] mm/vmscan.c:181:54: error: use of undeclared identifier 'CONFIG_ANON_MIN_KBYTES'
by kernel test robot
tree: https://github.com/zen-kernel/zen-kernel 5.13/lru
head: 8cc9f2f188df7272b22e847af845d064189a0c29
commit: 9e72d53ecc77bf57b29d15eef29420d53a07d040 [5/6] mm/vmscan: add sysctl knobs for protecting the working set
config: powerpc64-randconfig-r026-20210831 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 4b1fde8a2b681dad2ce0c082a5d6422caa06b0bc)
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
# install powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64le-linux-gnu
# https://github.com/zen-kernel/zen-kernel/commit/9e72d53ecc77bf57b29d15eef...
git remote add zen-kernel-zen-kernel https://github.com/zen-kernel/zen-kernel
git fetch --no-tags zen-kernel-zen-kernel 5.13/lru
git checkout 9e72d53ecc77bf57b29d15eef29420d53a07d040
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from mm/vmscan.c:19:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:45:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:115:1: note: expanded from here
__do_insw
^
arch/powerpc/include/asm/io.h:557:56: note: expanded from macro '__do_insw'
#define __do_insw(p, b, n) readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from mm/vmscan.c:19:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:117:1: note: expanded from here
__do_insl
^
arch/powerpc/include/asm/io.h:558:56: note: expanded from macro '__do_insl'
#define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from mm/vmscan.c:19:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:119:1: note: expanded from here
__do_outsb
^
arch/powerpc/include/asm/io.h:559:58: note: expanded from macro '__do_outsb'
#define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from mm/vmscan.c:19:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:121:1: note: expanded from here
__do_outsw
^
arch/powerpc/include/asm/io.h:560:58: note: expanded from macro '__do_outsw'
#define __do_outsw(p, b, n) writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from mm/vmscan.c:19:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:123:1: note: expanded from here
__do_outsl
^
arch/powerpc/include/asm/io.h:561:58: note: expanded from macro '__do_outsl'
#define __do_outsl(p, b, n) writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
>> mm/vmscan.c:181:54: error: use of undeclared identifier 'CONFIG_ANON_MIN_KBYTES'
unsigned long sysctl_anon_min_kbytes __read_mostly = CONFIG_ANON_MIN_KBYTES;
^
>> mm/vmscan.c:182:55: error: use of undeclared identifier 'CONFIG_CLEAN_LOW_KBYTES'
unsigned long sysctl_clean_low_kbytes __read_mostly = CONFIG_CLEAN_LOW_KBYTES;
^
>> mm/vmscan.c:183:55: error: use of undeclared identifier 'CONFIG_CLEAN_MIN_KBYTES'
unsigned long sysctl_clean_min_kbytes __read_mostly = CONFIG_CLEAN_MIN_KBYTES;
^
13 warnings and 3 errors generated.
vim +/CONFIG_ANON_MIN_KBYTES +181 mm/vmscan.c
180
> 181 unsigned long sysctl_anon_min_kbytes __read_mostly = CONFIG_ANON_MIN_KBYTES;
> 182 unsigned long sysctl_clean_low_kbytes __read_mostly = CONFIG_CLEAN_LOW_KBYTES;
> 183 unsigned long sysctl_clean_min_kbytes __read_mostly = CONFIG_CLEAN_MIN_KBYTES;
184
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 2 weeks
Re: [RFC PATCH] media: staging: ipu3-imgu: add the AWB memory layout
by kernel test robot
Hi Jean-Michel,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on staging/staging-testing]
url: https://github.com/0day-ci/linux/commits/Jean-Michel-Hautbois/media-stagi...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git 4adb389e08c95fdf91995271932c59250ff0d561
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/e9de209cdb5156e33f665630622ea9f47...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Jean-Michel-Hautbois/media-staging-ipu3-imgu-add-the-AWB-memory-layout/20210901-025225
git checkout e9de209cdb5156e33f665630622ea9f4769937f3
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/staging/media/ipu3/ipu3-abi.h:7,
from drivers/staging/media/ipu3/ipu3-css.h:10,
from drivers/staging/media/ipu3/ipu3.h:14,
from drivers/staging/media/ipu3/ipu3-dmamap.c:12:
>> drivers/staging/media/ipu3/include/uapi/intel-ipu3.h:105:8: error: redefinition of 'struct ipu3_uapi_awb_raw_buffer'
105 | struct ipu3_uapi_awb_raw_buffer {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/media/ipu3/include/uapi/intel-ipu3.h:76:8: note: originally defined here
76 | struct ipu3_uapi_awb_raw_buffer {
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/staging/media/ipu3/include/uapi/intel-ipu3.h:106:34: error: array type has incomplete element type 'struct ipu3_uapi_awb_raw_buffer'
106 | struct ipu3_uapi_awb_raw_buffer meta_data[IPU3_UAPI_AWB_MAX_BUFFER_SIZE]
| ^~~~~~~~~
vim +105 drivers/staging/media/ipu3/include/uapi/intel-ipu3.h
e9de209cdb5156 drivers/staging/media/ipu3/include/uapi/intel-ipu3.h Jean-Michel Hautbois 2021-08-31 86
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 87 /*
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 88 * The grid based data is divided into "slices" called set, each slice of setX
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 89 * refers to ipu3_uapi_grid_config width * height_per_slice.
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 90 */
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 91 #define IPU3_UAPI_AWB_MAX_SETS 60
e9de209cdb5156 drivers/staging/media/ipu3/include/uapi/intel-ipu3.h Jean-Michel Hautbois 2021-08-31 92 #define AWB_PUBLIC_NUM_OF_ITEMS_IN_SET 160
e9de209cdb5156 drivers/staging/media/ipu3/include/uapi/intel-ipu3.h Jean-Michel Hautbois 2021-08-31 93 /* Based on max grid height + Spare for bubbles */
e9de209cdb5156 drivers/staging/media/ipu3/include/uapi/intel-ipu3.h Jean-Michel Hautbois 2021-08-31 94 #define AWB_PUBLIC_NUM_OF_SETS_IN_BUFFER IPU3_UAPI_AWB_MAX_SETS + \
e9de209cdb5156 drivers/staging/media/ipu3/include/uapi/intel-ipu3.h Jean-Michel Hautbois 2021-08-31 95 (IPU3_UAPI_MAX_BUBBLE_SIZE * IPU3_UAPI_MAX_STRIPES)
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 96 #define IPU3_UAPI_AWB_MAX_BUFFER_SIZE \
e9de209cdb5156 drivers/staging/media/ipu3/include/uapi/intel-ipu3.h Jean-Michel Hautbois 2021-08-31 97 AWB_PUBLIC_NUM_OF_SETS_IN_BUFFER * AWB_PUBLIC_NUM_OF_ITEMS_IN_SET
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 98
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 99 /**
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 100 * struct ipu3_uapi_awb_raw_buffer - AWB raw buffer
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 101 *
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 102 * @meta_data: buffer to hold auto white balance meta data which is
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 103 * the average values for each color channel.
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 104 */
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 @105 struct ipu3_uapi_awb_raw_buffer {
e9de209cdb5156 drivers/staging/media/ipu3/include/uapi/intel-ipu3.h Jean-Michel Hautbois 2021-08-31 @106 struct ipu3_uapi_awb_raw_buffer meta_data[IPU3_UAPI_AWB_MAX_BUFFER_SIZE]
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 107 __attribute__((aligned(32)));
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 108 } __packed;
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 109
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 2 weeks
[dアカウント]サービス通知
by info
dアカウントのサービスはまもなく停止します 。
下記の接続から停止原因を確認してください
https://ntt-docomo-co-jp.uno
(直接アクセスできない場合は、手動でブラウザにコピーして開いてください)
※このメールは送信専用のため、返信はできません。
※登録したメールアドレスがご本人の所有でなくなったなど、受信可能なメールアドレスでなくなった場合は速やかに変更をしてください。
※このメールにお心当たりがない場合は、お手数ですがメールの破棄をお願いします。
--------------------------------
株式会社NTTドコモ
8 months, 2 weeks
[mcgrof-next:20210830-for-axboe-add-disk-error-handling-v2 33/68] drivers/block/paride/pd.c:946:26: error: passing argument 1 of 'blk_cleanup_disk' from incompatible pointer type
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20210830-for-axboe-add-disk-error-handling-v2
head: 997320ae7fef21afc2fbb5dab325858c5631b6b0
commit: 8d7d9d47bce01899e01b794b38cb1484883a08d7 [33/68] pd: add error handling support for add_disk()
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 11.2.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
# https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/com...
git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
git fetch --no-tags mcgrof-next 20210830-for-axboe-add-disk-error-handling-v2
git checkout 8d7d9d47bce01899e01b794b38cb1484883a08d7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/block/paride/pd.c: In function 'pd_probe_drive':
>> drivers/block/paride/pd.c:946:26: error: passing argument 1 of 'blk_cleanup_disk' from incompatible pointer type [-Werror=incompatible-pointer-types]
946 | blk_cleanup_disk(&disk);
| ^~~~~
| |
| struct pd_unit **
In file included from include/linux/blkdev.h:8,
from include/linux/blk-mq.h:5,
from drivers/block/paride/pd.c:154:
include/linux/genhd.h:281:39: note: expected 'struct gendisk *' but argument is of type 'struct pd_unit **'
281 | void blk_cleanup_disk(struct gendisk *disk);
| ~~~~~~~~~~~~~~~~^~~~
cc1: some warnings being treated as errors
vim +/blk_cleanup_disk +946 drivers/block/paride/pd.c
877
878 static int pd_probe_drive(struct pd_unit *disk, int autoprobe, int port,
879 int mode, int unit, int protocol, int delay)
880 {
881 int index = disk - pd;
882 int *parm = *drives[index];
883 struct gendisk *p;
884 int ret;
885
886 disk->pi = &disk->pia;
887 disk->access = 0;
888 disk->changed = 1;
889 disk->capacity = 0;
890 disk->drive = parm[D_SLV];
891 snprintf(disk->name, PD_NAMELEN, "%s%c", name, 'a' + index);
892 disk->alt_geom = parm[D_GEO];
893 disk->standby = parm[D_SBY];
894 INIT_LIST_HEAD(&disk->rq_list);
895
896 if (!pi_init(disk->pi, autoprobe, port, mode, unit, protocol, delay,
897 pd_scratch, PI_PD, verbose, disk->name))
898 return -ENXIO;
899
900 memset(&disk->tag_set, 0, sizeof(disk->tag_set));
901 disk->tag_set.ops = &pd_mq_ops;
902 disk->tag_set.cmd_size = sizeof(struct pd_req);
903 disk->tag_set.nr_hw_queues = 1;
904 disk->tag_set.nr_maps = 1;
905 disk->tag_set.queue_depth = 2;
906 disk->tag_set.numa_node = NUMA_NO_NODE;
907 disk->tag_set.flags = BLK_MQ_F_SHOULD_MERGE | BLK_MQ_F_BLOCKING;
908 ret = blk_mq_alloc_tag_set(&disk->tag_set);
909 if (ret)
910 goto pi_release;
911
912 p = blk_mq_alloc_disk(&disk->tag_set, disk);
913 if (IS_ERR(p)) {
914 ret = PTR_ERR(p);
915 goto free_tag_set;
916 }
917 disk->gd = p;
918
919 strcpy(p->disk_name, disk->name);
920 p->fops = &pd_fops;
921 p->major = major;
922 p->first_minor = (disk - pd) << PD_BITS;
923 p->minors = 1 << PD_BITS;
924 p->events = DISK_EVENT_MEDIA_CHANGE;
925 p->private_data = disk;
926 blk_queue_max_hw_sectors(p->queue, cluster);
927 blk_queue_bounce_limit(p->queue, BLK_BOUNCE_HIGH);
928
929 if (disk->drive == -1) {
930 for (disk->drive = 0; disk->drive <= 1; disk->drive++) {
931 ret = pd_special_command(disk, pd_identify);
932 if (ret == 0)
933 break;
934 }
935 } else {
936 ret = pd_special_command(disk, pd_identify);
937 }
938 if (ret)
939 goto put_disk;
940 set_capacity(disk->gd, disk->capacity);
941 ret = add_disk(disk->gd);
942 if (ret)
943 goto cleanup_disk;
944 return 0;
945 cleanup_disk:
> 946 blk_cleanup_disk(&disk);
947 put_disk:
948 put_disk(p);
949 disk->gd = NULL;
950 free_tag_set:
951 blk_mq_free_tag_set(&disk->tag_set);
952 pi_release:
953 pi_release(disk->pi);
954 return ret;
955 }
956
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 2 weeks
Re: [RFC PATCH] media: staging: ipu3-imgu: add the AWB memory layout
by kernel test robot
Hi Jean-Michel,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on staging/staging-testing]
url: https://github.com/0day-ci/linux/commits/Jean-Michel-Hautbois/media-stagi...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git 4adb389e08c95fdf91995271932c59250ff0d561
config: x86_64-randconfig-a013-20210831 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 4b1fde8a2b681dad2ce0c082a5d6422caa06b0bc)
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
# https://github.com/0day-ci/linux/commit/e9de209cdb5156e33f665630622ea9f47...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Jean-Michel-Hautbois/media-staging-ipu3-imgu-add-the-AWB-memory-layout/20210901-025225
git checkout e9de209cdb5156e33f665630622ea9f4769937f3
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/staging/media/ipu3/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/staging/media/ipu3/ipu3-dmamap.c:12:
In file included from drivers/staging/media/ipu3/ipu3.h:14:
In file included from drivers/staging/media/ipu3/ipu3-css.h:10:
In file included from drivers/staging/media/ipu3/ipu3-abi.h:7:
>> drivers/staging/media/ipu3/include/uapi/intel-ipu3.h:105:8: error: redefinition of 'ipu3_uapi_awb_raw_buffer'
struct ipu3_uapi_awb_raw_buffer {
^
drivers/staging/media/ipu3/include/uapi/intel-ipu3.h:76:8: note: previous definition is here
struct ipu3_uapi_awb_raw_buffer {
^
1 error generated.
--
In file included from drivers/staging/media/ipu3/ipu3-css-params.c:6:
In file included from drivers/staging/media/ipu3/ipu3-css.h:10:
In file included from drivers/staging/media/ipu3/ipu3-abi.h:7:
>> drivers/staging/media/ipu3/include/uapi/intel-ipu3.h:105:8: error: redefinition of 'ipu3_uapi_awb_raw_buffer'
struct ipu3_uapi_awb_raw_buffer {
^
drivers/staging/media/ipu3/include/uapi/intel-ipu3.h:76:8: note: previous definition is here
struct ipu3_uapi_awb_raw_buffer {
^
drivers/staging/media/ipu3/ipu3-css-params.c:774:8: warning: variable 'pin_scale' set but not used [-Wunused-but-set-variable]
int pin_scale = 0;
^
1 warning and 1 error generated.
vim +/ipu3_uapi_awb_raw_buffer +105 drivers/staging/media/ipu3/include/uapi/intel-ipu3.h
e9de209cdb5156 drivers/staging/media/ipu3/include/uapi/intel-ipu3.h Jean-Michel Hautbois 2021-08-31 86
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 87 /*
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 88 * The grid based data is divided into "slices" called set, each slice of setX
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 89 * refers to ipu3_uapi_grid_config width * height_per_slice.
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 90 */
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 91 #define IPU3_UAPI_AWB_MAX_SETS 60
e9de209cdb5156 drivers/staging/media/ipu3/include/uapi/intel-ipu3.h Jean-Michel Hautbois 2021-08-31 92 #define AWB_PUBLIC_NUM_OF_ITEMS_IN_SET 160
e9de209cdb5156 drivers/staging/media/ipu3/include/uapi/intel-ipu3.h Jean-Michel Hautbois 2021-08-31 93 /* Based on max grid height + Spare for bubbles */
e9de209cdb5156 drivers/staging/media/ipu3/include/uapi/intel-ipu3.h Jean-Michel Hautbois 2021-08-31 94 #define AWB_PUBLIC_NUM_OF_SETS_IN_BUFFER IPU3_UAPI_AWB_MAX_SETS + \
e9de209cdb5156 drivers/staging/media/ipu3/include/uapi/intel-ipu3.h Jean-Michel Hautbois 2021-08-31 95 (IPU3_UAPI_MAX_BUBBLE_SIZE * IPU3_UAPI_MAX_STRIPES)
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 96 #define IPU3_UAPI_AWB_MAX_BUFFER_SIZE \
e9de209cdb5156 drivers/staging/media/ipu3/include/uapi/intel-ipu3.h Jean-Michel Hautbois 2021-08-31 97 AWB_PUBLIC_NUM_OF_SETS_IN_BUFFER * AWB_PUBLIC_NUM_OF_ITEMS_IN_SET
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 98
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 99 /**
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 100 * struct ipu3_uapi_awb_raw_buffer - AWB raw buffer
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 101 *
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 102 * @meta_data: buffer to hold auto white balance meta data which is
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 103 * the average values for each color channel.
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 104 */
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 @105 struct ipu3_uapi_awb_raw_buffer {
e9de209cdb5156 drivers/staging/media/ipu3/include/uapi/intel-ipu3.h Jean-Michel Hautbois 2021-08-31 106 struct ipu3_uapi_awb_raw_buffer meta_data[IPU3_UAPI_AWB_MAX_BUFFER_SIZE]
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 107 __attribute__((aligned(32)));
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 108 } __packed;
41158dabfd913c drivers/staging/media/ipu3/include/intel-ipu3.h Yong Zhi 2018-12-06 109
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 2 weeks