Re: [PATCH v2 2/4] [RFC] x86/trampfd: Provide support for the trampoline file descriptor
by kernel test robot
Hi,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on arm64/for-next/core]
[also build test WARNING on arm/for-next linus/master v5.9-rc5]
[cannot apply to next-20200916]
[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/madvenka-linux-microsoft-com/Imp...
base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
config: s390-randconfig-r022-20200916 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 1321160a26e7e489baf9b10d6de90a342f898960)
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 s390 cross compiling tool for clang build
# apt-get install binutils-s390x-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390
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 >>):
>> <stdin>:1526:2: warning: syscall trampfd not implemented [-W#warnings]
#warning syscall trampfd not implemented
^
1 warning generated.
--
>> <stdin>:1526:2: warning: syscall trampfd not implemented [-W#warnings]
#warning syscall trampfd not implemented
^
1 warning generated.
--
In file included from arch/s390/include/asm/diag.h:12:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:72:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : \
^
include/uapi/linux/swab.h:21:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0x00ff0000UL) >> 8) | \
^
In file included from arch/s390/kernel/asm-offsets.c:11:
In file included from include/linux/kvm_host.h:32:
In file included from include/linux/kvm_para.h:5:
In file included from include/uapi/linux/kvm_para.h:36:
In file included from arch/s390/include/asm/kvm_para.h:25:
In file included from arch/s390/include/asm/diag.h:12:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:72:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : \
^
include/uapi/linux/swab.h:22:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0xff000000UL) >> 24)))
^
In file included from arch/s390/kernel/asm-offsets.c:11:
In file included from include/linux/kvm_host.h:32:
In file included from include/linux/kvm_para.h:5:
In file included from include/uapi/linux/kvm_para.h:36:
In file included from arch/s390/include/asm/kvm_para.h:25:
In file included from arch/s390/include/asm/diag.h:12:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:72:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:120:12: note: expanded from macro '__swab32'
__fswab32(x))
^
In file included from arch/s390/kernel/asm-offsets.c:11:
In file included from include/linux/kvm_host.h:32:
In file included from include/linux/kvm_para.h:5:
In file included from include/uapi/linux/kvm_para.h:36:
In file included from arch/s390/include/asm/kvm_para.h:25:
In file included from arch/s390/include/asm/diag.h:12:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:72:
include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writeb(value, PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:511:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:521:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:609:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:617:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:625:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:634:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:643:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:652:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
20 warnings generated.
>> <stdin>:1526:2: warning: syscall trampfd not implemented [-W#warnings]
#warning syscall trampfd not implemented
^
1 warning generated.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
Re: [RFC PATCH] Add bridge driver to connect sensors to CIO2 device via software nodes on ACPI platforms
by kernel test robot
Hi Daniel,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on linus/master]
[also build test WARNING on sparc-next/master v5.9-rc5 next-20200916]
[cannot apply to linuxtv-media/master]
[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/Daniel-Scally/Add-bridge-driver-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 5925fa68fe8244651b3f78a88c4af99190a88f0d
config: x86_64-randconfig-a013-20200916 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 9e3842d60351f986d77dfe0a94f76e4fd895f188)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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 >>):
>> drivers/media/pci/intel/ipu3/ipu3-cio2.c:1746:6: warning: no previous prototype for function 'cio2_sync_state' [-Wmissing-prototypes]
void cio2_sync_state(struct device *dev)
^
drivers/media/pci/intel/ipu3/ipu3-cio2.c:1746:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void cio2_sync_state(struct device *dev)
^
static
1 warning generated.
# https://github.com/0day-ci/linux/commit/d8d13ef927def4ddc8948d05ba7c60625...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Daniel-Scally/Add-bridge-driver-to-connect-sensors-to-CIO2-device-via-software-nodes-on-ACPI-platforms/20200917-053714
git checkout d8d13ef927def4ddc8948d05ba7c606253a1e1df
vim +/cio2_sync_state +1746 drivers/media/pci/intel/ipu3/ipu3-cio2.c
1745
> 1746 void cio2_sync_state(struct device *dev)
1747 {
1748 struct cio2_device *cio2;
1749 int ret = 0;
1750
1751 if (IS_ENABLED(CONFIG_ACPI)) {
1752 cio2 = dev_get_drvdata(dev);
1753
1754 if (!cio2) {
1755 dev_err(dev, "Failed to retrieve driver data\n");
1756 return;
1757 }
1758
1759 /* insert the bridge driver to connect sensors via software nodes */
1760 ret = request_module("cio2-bridge");
1761
1762 if (ret)
1763 dev_err(dev, "Failed to insert cio2-bridge\n");
1764
1765 ret = cio2_parse_firmware(cio2);
1766
1767 if (ret) {
1768 v4l2_async_notifier_unregister(&cio2->notifier);
1769 v4l2_async_notifier_cleanup(&cio2->notifier);
1770 cio2_queues_exit(cio2);
1771 }
1772 }
1773 }
1774
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[arm-platforms:kvm/protected-memory 15/16] arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:2184:9: error: implicit declaration of function 'ioremap_cache_force'; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git kvm/protected-memory
head: d9455e6eabef4b9be5f33c418a8046e0389edade
commit: 7e178d6590c1e43e5df2d65490a273d030798d3b [15/16] KVM: Handle protected memory in __kvm_map_gfn()/__kvm_unmap_gfn()
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-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 7e178d6590c1e43e5df2d65490a273d030798d3b
# 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: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c: In function 'hva_to_pfn_slow':
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:1864:26: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
1864 | down_read(¤t->mm->mmap_sem);
| ^~~~~~~~
| mmap_base
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:1867:25: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
1867 | up_read(¤t->mm->mmap_sem);
| ^~~~~~~~
| mmap_base
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:1872:24: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
1872 | up_read(¤t->mm->mmap_sem);
| ^~~~~~~~
| mmap_base
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c: In function '__kvm_map_gfn':
>> arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:2184:9: error: implicit declaration of function 'ioremap_cache_force'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
2184 | hva = ioremap_cache_force(pfn_to_hpa(pfn), PAGE_SIZE);
| ^~~~~~~~~~~~~~~~~~~
| ioremap_cache
>> arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:2184:7: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
2184 | hva = ioremap_cache_force(pfn_to_hpa(pfn), PAGE_SIZE);
| ^
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c: In function 'map_page_atomic':
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:2360:2: error: implicit declaration of function 'set_pte'; did you mean 'set_tb'? [-Werror=implicit-function-declaration]
2360 | set_pte(pte, mk_pte(page, PAGE_KERNEL));
| ^~~~~~~
| set_tb
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c: In function 'unmap_page_atomic':
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:2368:2: error: implicit declaration of function '__flush_tlb_one_kernel'; did you mean '__flush_tlb_pending'? [-Werror=implicit-function-declaration]
2368 | __flush_tlb_one_kernel((unsigned long)vaddr);
| ^~~~~~~~~~~~~~~~~~~~~~
| __flush_tlb_pending
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c: In function 'protect_memory':
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:2801:31: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
2801 | if (down_write_killable(&mm->mmap_sem))
| ^~~~~~~~
| mmap_base
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:2855:16: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
2855 | up_write(&mm->mmap_sem);
| ^~~~~~~~
| mmap_base
cc1: some warnings being treated as errors
# https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/com...
git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
git fetch --no-tags arm-platforms kvm/protected-memory
git checkout 7e178d6590c1e43e5df2d65490a273d030798d3b
vim +2184 arch/powerpc/kvm/../../../virt/kvm/kvm_main.c
2149
2150 static int __kvm_map_gfn(struct kvm_memslots *slots, gfn_t gfn,
2151 struct kvm_host_map *map,
2152 struct gfn_to_pfn_cache *cache,
2153 bool atomic)
2154 {
2155 kvm_pfn_t pfn;
2156 void *hva = NULL;
2157 struct page *page = KVM_UNMAPPED_PAGE;
2158 struct kvm_memory_slot *slot = __gfn_to_memslot(slots, gfn);
2159 bool protected = false;
2160 u64 gen = slots->generation;
2161
2162 if (!map)
2163 return -EINVAL;
2164
2165 if (cache) {
2166 if (!cache->pfn || cache->gfn != gfn ||
2167 cache->generation != gen) {
2168 if (atomic)
2169 return -EAGAIN;
2170 kvm_cache_gfn_to_pfn(slot, gfn, cache, gen);
2171 }
2172 pfn = cache->pfn;
2173 } else {
2174 if (atomic)
2175 return -EAGAIN;
2176 pfn = gfn_to_pfn_memslot_protected(slot, gfn, &protected);
2177 }
2178 if (is_error_noslot_pfn(pfn))
2179 return -EINVAL;
2180
2181 if (protected) {
2182 if (atomic)
2183 return -EAGAIN;
> 2184 hva = ioremap_cache_force(pfn_to_hpa(pfn), PAGE_SIZE);
2185 } else if (pfn_valid(pfn)) {
2186 page = pfn_to_page(pfn);
2187 if (atomic)
2188 hva = kmap_atomic(page);
2189 else
2190 hva = kmap(page);
2191 #ifdef CONFIG_HAS_IOMEM
2192 } else if (!atomic) {
2193 hva = memremap(pfn_to_hpa(pfn), PAGE_SIZE, MEMREMAP_WB);
2194 } else {
2195 return -EINVAL;
2196 #endif
2197 }
2198
2199 if (!hva)
2200 return -EFAULT;
2201
2202 map->page = page;
2203 map->hva = hva;
2204 map->pfn = pfn;
2205 map->gfn = gfn;
2206 map->protected = protected;
2207
2208 return 0;
2209 }
2210
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[hverkuil-media:tegrav5 4/18] drivers/media/i2c/imx274.c:1864:10: warning: Uninitialized variable: ret
by kernel test robot
tree: git://linuxtv.org/hverkuil/media_tree.git tegrav5
head: 3ab57682384cccc052812543e535ba545b50d3c0
commit: 1db17015125eb03cd05ce850e47e21f033b950ba [4/18] media: i2c: Add support for IMX274 supplies and external clock
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
cppcheck warnings: (new ones prefixed by >>)
>> drivers/media/i2c/smiapp/smiapp-core.c:2003:0: warning: syntax error [syntaxError]
^
--
>> drivers/media/i2c/imx274.c:1864:10: warning: Uninitialized variable: ret [uninitvar]
return ret;
^
git remote add hverkuil-media git://linuxtv.org/hverkuil/media_tree.git
git fetch --no-tags hverkuil-media tegrav5
git checkout 1db17015125eb03cd05ce850e47e21f033b950ba
vim +1864 drivers/media/i2c/imx274.c
1847
1848 static int imx274_probe(struct i2c_client *client)
1849 {
1850 struct v4l2_subdev *sd;
1851 struct stimx274 *imx274;
1852 int ret;
1853
1854 /* initialize imx274 */
1855 imx274 = devm_kzalloc(&client->dev, sizeof(*imx274), GFP_KERNEL);
1856 if (!imx274)
1857 return -ENOMEM;
1858
1859 mutex_init(&imx274->lock);
1860
1861 imx274->xclk = devm_clk_get(&client->dev, "xclk");
1862 if (IS_ERR(imx274->xclk)) {
1863 dev_err(&client->dev, "Failed to get xclk\n");
> 1864 return ret;
1865 }
1866
1867 ret = clk_set_rate(imx274->xclk, IMX274_DEFAULT_CLK_FREQ);
1868 if (ret < 0) {
1869 dev_err(&client->dev, "Failed to set xclk rate\n");
1870 return ret;
1871 }
1872
1873 ret = imx274_get_regulators(&client->dev, imx274);
1874 if (ret) {
1875 dev_err(&client->dev, "Failed to get power regulators, err: %d\n", ret);
1876 return ret;
1877 }
1878
1879 /* initialize format */
1880 imx274->mode = &imx274_modes[IMX274_DEFAULT_BINNING];
1881 imx274->crop.width = IMX274_MAX_WIDTH;
1882 imx274->crop.height = IMX274_MAX_HEIGHT;
1883 imx274->format.width = imx274->crop.width / imx274->mode->bin_ratio;
1884 imx274->format.height = imx274->crop.height / imx274->mode->bin_ratio;
1885 imx274->format.field = V4L2_FIELD_NONE;
1886 imx274->format.code = MEDIA_BUS_FMT_SRGGB10_1X10;
1887 imx274->format.colorspace = V4L2_COLORSPACE_SRGB;
1888 imx274->frame_interval.numerator = 1;
1889 imx274->frame_interval.denominator = IMX274_DEF_FRAME_RATE;
1890
1891 /* initialize regmap */
1892 imx274->regmap = devm_regmap_init_i2c(client, &imx274_regmap_config);
1893 if (IS_ERR(imx274->regmap)) {
1894 dev_err(&client->dev,
1895 "regmap init failed: %ld\n", PTR_ERR(imx274->regmap));
1896 ret = -ENODEV;
1897 goto err_regmap;
1898 }
1899
1900 /* initialize subdevice */
1901 imx274->client = client;
1902 sd = &imx274->sd;
1903 v4l2_i2c_subdev_init(sd, client, &imx274_subdev_ops);
1904 sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE | V4L2_SUBDEV_FL_HAS_EVENTS;
1905
1906 /* initialize subdev media pad */
1907 imx274->pad.flags = MEDIA_PAD_FL_SOURCE;
1908 sd->entity.function = MEDIA_ENT_F_CAM_SENSOR;
1909 ret = media_entity_pads_init(&sd->entity, 1, &imx274->pad);
1910 if (ret < 0) {
1911 dev_err(&client->dev,
1912 "%s : media entity init Failed %d\n", __func__, ret);
1913 goto err_regmap;
1914 }
1915
1916 /* initialize sensor reset gpio */
1917 imx274->reset_gpio = devm_gpiod_get_optional(&client->dev, "reset",
1918 GPIOD_OUT_HIGH);
1919 if (IS_ERR(imx274->reset_gpio)) {
1920 if (PTR_ERR(imx274->reset_gpio) != -EPROBE_DEFER)
1921 dev_err(&client->dev, "Reset GPIO not setup in DT");
1922 ret = PTR_ERR(imx274->reset_gpio);
1923 goto err_me;
1924 }
1925
1926 /* initialize controls */
1927 ret = v4l2_ctrl_handler_init(&imx274->ctrls.handler, 4);
1928 if (ret < 0) {
1929 dev_err(&client->dev,
1930 "%s : ctrl handler init Failed\n", __func__);
1931 goto err_me;
1932 }
1933
1934 imx274->ctrls.handler.lock = &imx274->lock;
1935
1936 /* add new controls */
1937 imx274->ctrls.test_pattern = v4l2_ctrl_new_std_menu_items(
1938 &imx274->ctrls.handler, &imx274_ctrl_ops,
1939 V4L2_CID_TEST_PATTERN,
1940 ARRAY_SIZE(tp_qmenu) - 1, 0, 0, tp_qmenu);
1941
1942 imx274->ctrls.gain = v4l2_ctrl_new_std(
1943 &imx274->ctrls.handler,
1944 &imx274_ctrl_ops,
1945 V4L2_CID_GAIN, IMX274_MIN_GAIN,
1946 IMX274_MAX_DIGITAL_GAIN * IMX274_MAX_ANALOG_GAIN, 1,
1947 IMX274_DEF_GAIN);
1948
1949 imx274->ctrls.exposure = v4l2_ctrl_new_std(
1950 &imx274->ctrls.handler,
1951 &imx274_ctrl_ops,
1952 V4L2_CID_EXPOSURE, IMX274_MIN_EXPOSURE_TIME,
1953 1000000 / IMX274_DEF_FRAME_RATE, 1,
1954 IMX274_MIN_EXPOSURE_TIME);
1955
1956 imx274->ctrls.vflip = v4l2_ctrl_new_std(
1957 &imx274->ctrls.handler,
1958 &imx274_ctrl_ops,
1959 V4L2_CID_VFLIP, 0, 1, 1, 0);
1960
1961 imx274->sd.ctrl_handler = &imx274->ctrls.handler;
1962 if (imx274->ctrls.handler.error) {
1963 ret = imx274->ctrls.handler.error;
1964 goto err_ctrls;
1965 }
1966
1967 /* power on the sensor */
1968 ret = imx274_power_on(&client->dev);
1969 if (ret < 0) {
1970 dev_err(&client->dev,
1971 "%s : imx274 power on failed\n", __func__);
1972 goto err_ctrls;
1973 }
1974
1975 /* setup default controls */
1976 ret = v4l2_ctrl_handler_setup(&imx274->ctrls.handler);
1977 if (ret) {
1978 dev_err(&client->dev,
1979 "Error %d setup default controls\n", ret);
1980 goto err_power_off;
1981 }
1982
1983 /* load default control values */
1984 ret = imx274_load_default(imx274);
1985 if (ret) {
1986 dev_err(&client->dev,
1987 "%s : imx274_load_default failed %d\n",
1988 __func__, ret);
1989 goto err_power_off;
1990 }
1991
1992 /* register subdevice */
1993 ret = v4l2_async_register_subdev(sd);
1994 if (ret < 0) {
1995 dev_err(&client->dev,
1996 "%s : v4l2_async_register_subdev failed %d\n",
1997 __func__, ret);
1998 goto err_power_off;
1999 }
2000
2001 dev_info(&client->dev, "imx274 : imx274 probe success !\n");
2002 return 0;
2003
2004 err_power_off:
2005 imx274_power_off(&client->dev);
2006 err_ctrls:
2007 v4l2_ctrl_handler_free(&imx274->ctrls.handler);
2008 err_me:
2009 media_entity_cleanup(&sd->entity);
2010 err_regmap:
2011 mutex_destroy(&imx274->lock);
2012 return ret;
2013 }
2014
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
Re: [RFC PATCH 2/2] mm: vmscan: remove shrinker's nr_deferred
by kernel test robot
Hi Yang,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on tip/perf/core]
[also build test ERROR on linux/master linus/master v5.9-rc5 next-20200916]
[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/Yang-Shi/Remove-shrinker-s-nr_de...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 221bfce5ebbdf72ff08b3bf2510ae81058ee568b
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
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/gpu/drm/msm/msm_gem_shrinker.c: In function 'msm_gem_shrinker_cleanup':
>> drivers/gpu/drm/msm/msm_gem_shrinker.c:159:20: error: 'struct shrinker' has no member named 'nr_deferred'
159 | if (priv->shrinker.nr_deferred) {
| ^
# https://github.com/0day-ci/linux/commit/87eb1412074d8c1cf3d95f51462e6ac6a...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Yang-Shi/Remove-shrinker-s-nr_deferred/20200917-025923
git checkout 87eb1412074d8c1cf3d95f51462e6ac6ac088b68
vim +159 drivers/gpu/drm/msm/msm_gem_shrinker.c
68209390f11603 Rob Clark 2016-05-17 148
68209390f11603 Rob Clark 2016-05-17 149 /**
68209390f11603 Rob Clark 2016-05-17 150 * msm_gem_shrinker_cleanup - Clean up msm shrinker
68209390f11603 Rob Clark 2016-05-17 151 * @dev_priv: msm device
68209390f11603 Rob Clark 2016-05-17 152 *
68209390f11603 Rob Clark 2016-05-17 153 * This function unregisters the msm shrinker.
68209390f11603 Rob Clark 2016-05-17 154 */
68209390f11603 Rob Clark 2016-05-17 155 void msm_gem_shrinker_cleanup(struct drm_device *dev)
68209390f11603 Rob Clark 2016-05-17 156 {
68209390f11603 Rob Clark 2016-05-17 157 struct msm_drm_private *priv = dev->dev_private;
16976085a114ae Archit Taneja 2016-11-03 158
16976085a114ae Archit Taneja 2016-11-03 @159 if (priv->shrinker.nr_deferred) {
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
Re: [RFC PATCH 2/2] mm: vmscan: remove shrinker's nr_deferred
by kernel test robot
Hi Yang,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on tip/perf/core]
[also build test ERROR on hnaz-linux-mm/master linux/master linus/master v5.9-rc5 next-20200916]
[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/Yang-Shi/Remove-shrinker-s-nr_de...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 221bfce5ebbdf72ff08b3bf2510ae81058ee568b
config: arm64-randconfig-r015-20200916 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 9e3842d60351f986d77dfe0a94f76e4fd895f188)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
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/gpu/drm/panfrost/panfrost_gem_shrinker.c:111:22: error: no member named 'nr_deferred' in 'struct shrinker'
if (pfdev->shrinker.nr_deferred) {
~~~~~~~~~~~~~~~ ^
1 error generated.
# https://github.com/0day-ci/linux/commit/87eb1412074d8c1cf3d95f51462e6ac6a...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Yang-Shi/Remove-shrinker-s-nr_deferred/20200917-025923
git checkout 87eb1412074d8c1cf3d95f51462e6ac6ac088b68
vim +111 drivers/gpu/drm/panfrost/panfrost_gem_shrinker.c
013b6510131568 Rob Herring 2019-08-05 100
013b6510131568 Rob Herring 2019-08-05 101 /**
013b6510131568 Rob Herring 2019-08-05 102 * panfrost_gem_shrinker_cleanup - Clean up panfrost shrinker
013b6510131568 Rob Herring 2019-08-05 103 * @dev: DRM device
013b6510131568 Rob Herring 2019-08-05 104 *
013b6510131568 Rob Herring 2019-08-05 105 * This function unregisters the panfrost shrinker.
013b6510131568 Rob Herring 2019-08-05 106 */
013b6510131568 Rob Herring 2019-08-05 107 void panfrost_gem_shrinker_cleanup(struct drm_device *dev)
013b6510131568 Rob Herring 2019-08-05 108 {
013b6510131568 Rob Herring 2019-08-05 109 struct panfrost_device *pfdev = dev->dev_private;
013b6510131568 Rob Herring 2019-08-05 110
013b6510131568 Rob Herring 2019-08-05 @111 if (pfdev->shrinker.nr_deferred) {
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
Re: [PATCH v2 2/4] [RFC] x86/trampfd: Provide support for the trampoline file descriptor
by kernel test robot
Hi,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on arm64/for-next/core]
[also build test WARNING on arm/for-next tip/x86/core linus/master v5.9-rc5]
[cannot apply to next-20200916]
[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/madvenka-linux-microsoft-com/Imp...
base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
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 >>):
>> arch/x86/kernel/trampfd.c:25:6: warning: no previous prototype for 'trampfd_arch' [-Wmissing-prototypes]
25 | void trampfd_arch(struct trampfd_info *info)
| ^~~~~~~~~~~~
>> arch/x86/kernel/trampfd.c:39:5: warning: no previous prototype for 'trampfd_code_arch' [-Wmissing-prototypes]
39 | int trampfd_code_arch(struct trampfd_code *code)
| ^~~~~~~~~~~~~~~~~
>> arch/x86/kernel/trampfd.c:65:5: warning: no previous prototype for 'trampfd_data_arch' [-Wmissing-prototypes]
65 | int trampfd_data_arch(struct trampfd_data *data)
| ^~~~~~~~~~~~~~~~~
>> arch/x86/kernel/trampfd.c:232:6: warning: no previous prototype for 'trampfd_code_fill' [-Wmissing-prototypes]
232 | void trampfd_code_fill(struct trampfd *trampfd, char *addr)
| ^~~~~~~~~~~~~~~~~
# https://github.com/0day-ci/linux/commit/39793e95da2e549df500290870cd5eea7...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review madvenka-linux-microsoft-com/Implement-Trampoline-File-Descriptor/20200917-023228
git checkout 39793e95da2e549df500290870cd5eea767f66ff
vim +/trampfd_arch +25 arch/x86/kernel/trampfd.c
21
22 /*
23 * trampfd syscall.
24 */
> 25 void trampfd_arch(struct trampfd_info *info)
26 {
27 if (is_compat())
28 info->code_size = TRAMPFD_CODE_32_SIZE;
29 else
30 info->code_size = TRAMPFD_CODE_64_SIZE;
31 info->ntrampolines = PAGE_SIZE / info->code_size;
32 info->code_offset = TRAMPFD_CODE_PGOFF << PAGE_SHIFT;
33 info->reserved = 0;
34 }
35
36 /*
37 * trampfd code descriptor check.
38 */
> 39 int trampfd_code_arch(struct trampfd_code *code)
40 {
41 int ntrampolines;
42 int min, max;
43
44 if (is_compat()) {
45 min = x32_min;
46 max = x32_max;
47 ntrampolines = PAGE_SIZE / TRAMPFD_CODE_32_SIZE;
48 } else {
49 min = x64_min;
50 max = x64_max;
51 ntrampolines = PAGE_SIZE / TRAMPFD_CODE_64_SIZE;
52 }
53
54 if (code->reg < min || code->reg >= max)
55 return -EINVAL;
56
57 if (!code->ntrampolines || code->ntrampolines > ntrampolines)
58 return -EINVAL;
59 return 0;
60 }
61
62 /*
63 * trampfd data descriptor check.
64 */
> 65 int trampfd_data_arch(struct trampfd_data *data)
66 {
67 int min, max;
68
69 if (is_compat()) {
70 min = x32_min;
71 max = x32_max;
72 } else {
73 min = x64_min;
74 max = x64_max;
75 }
76
77 if (data->reg < min || data->reg >= max)
78 return -EINVAL;
79 return 0;
80 }
81
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[char-misc:char-misc-testing 35/47] hppa-linux-ld: drivers/misc/hisi_hikey_usb.c:181: undefined reference to `usb_role_switch_put'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git char-misc-testing
head: 7c33e3c4c79ac5def79e7c773e38a7113eb14204
commit: 7a6ff4c4cbc3570a1ae483a833b3fb12b1a56a9d [35/47] misc: hisi_hikey_usb: Driver to support onboard USB gpio hub on Hikey960
config: parisc-randconfig-r033-20200917 (attached as .config)
compiler: hppa-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 7a6ff4c4cbc3570a1ae483a833b3fb12b1a56a9d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
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 >>):
hppa-linux-ld: drivers/misc/hisi_hikey_usb.o: in function `hisi_hikey_usb_remove':
drivers/misc/hisi_hikey_usb.c:178: undefined reference to `usb_role_switch_unregister'
>> hppa-linux-ld: drivers/misc/hisi_hikey_usb.c:181: undefined reference to `usb_role_switch_put'
hppa-linux-ld: drivers/misc/hisi_hikey_usb.o: in function `hub_usb_role_switch_set':
drivers/misc/hisi_hikey_usb.c:106: undefined reference to `usb_role_switch_get_drvdata'
hppa-linux-ld: drivers/misc/hisi_hikey_usb.o: in function `hisi_hikey_usb_probe':
drivers/misc/hisi_hikey_usb.c:146: undefined reference to `usb_role_switch_get'
>> hppa-linux-ld: drivers/misc/hisi_hikey_usb.c:160: undefined reference to `usb_role_switch_register'
hppa-linux-ld: drivers/misc/hisi_hikey_usb.c:164: undefined reference to `usb_role_switch_put'
hppa-linux-ld: drivers/misc/hisi_hikey_usb.o: in function `relay_set_role_switch':
drivers/misc/hisi_hikey_usb.c:101: undefined reference to `usb_role_switch_set_role'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
Re: [RFC PATCH] Add bridge driver to connect sensors to CIO2 device via software nodes on ACPI platforms
by kernel test robot
Hi Daniel,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on linus/master]
[also build test WARNING on sparc-next/master v5.9-rc5 next-20200916]
[cannot apply to linuxtv-media/master]
[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/Daniel-Scally/Add-bridge-driver-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 5925fa68fe8244651b3f78a88c4af99190a88f0d
config: s390-allyesconfig (attached as .config)
compiler: s390-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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390
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 >>):
>> drivers/media/pci/intel/ipu3/ipu3-cio2.c:1746:6: warning: no previous prototype for 'cio2_sync_state' [-Wmissing-prototypes]
1746 | void cio2_sync_state(struct device *dev)
| ^~~~~~~~~~~~~~~
# https://github.com/0day-ci/linux/commit/d8d13ef927def4ddc8948d05ba7c60625...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Daniel-Scally/Add-bridge-driver-to-connect-sensors-to-CIO2-device-via-software-nodes-on-ACPI-platforms/20200917-053714
git checkout d8d13ef927def4ddc8948d05ba7c606253a1e1df
vim +/cio2_sync_state +1746 drivers/media/pci/intel/ipu3/ipu3-cio2.c
1745
> 1746 void cio2_sync_state(struct device *dev)
1747 {
1748 struct cio2_device *cio2;
1749 int ret = 0;
1750
1751 if (IS_ENABLED(CONFIG_ACPI)) {
1752 cio2 = dev_get_drvdata(dev);
1753
1754 if (!cio2) {
1755 dev_err(dev, "Failed to retrieve driver data\n");
1756 return;
1757 }
1758
1759 /* insert the bridge driver to connect sensors via software nodes */
1760 ret = request_module("cio2-bridge");
1761
1762 if (ret)
1763 dev_err(dev, "Failed to insert cio2-bridge\n");
1764
1765 ret = cio2_parse_firmware(cio2);
1766
1767 if (ret) {
1768 v4l2_async_notifier_unregister(&cio2->notifier);
1769 v4l2_async_notifier_cleanup(&cio2->notifier);
1770 cio2_queues_exit(cio2);
1771 }
1772 }
1773 }
1774
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[hch-misc:alloc_vm_area 3/7] ERROR: modpost: "find_vm_area" undefined!
by kernel test robot
tree: git://git.infradead.org/users/hch/misc.git alloc_vm_area
head: 19ad9d08553039e79448386da6798ee9578fea25
commit: 9ed11c06e74beb6a7081649530c7fb40e66d5308 [3/7] drm/i915: use vmap in shmem_pin_map
config: x86_64-rhel (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
git checkout 9ed11c06e74beb6a7081649530c7fb40e66d5308
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
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 >>, old ones prefixed by <<):
>> ERROR: modpost: "find_vm_area" [drivers/gpu/drm/i915/i915.ko] undefined!
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years