[intel-linux-intel-lts:5.4/yocto 1/1] drivers/counter/intel-qep.c:863:34: sparse: sparse: incorrect type in argument 1 (different address spaces)
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: 2e228f3df9479e9e061cc7e0b7aba0c071ea22bf
commit: 2e228f3df9479e9e061cc7e0b7aba0c071ea22bf [1/1] REVERT-ME: Temporary Enable D0i3 flow for PSE IOs
config: i386-randconfig-s001-20210820 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-348-gf0e6938b-dirty
# https://github.com/intel/linux-intel-lts/commit/2e228f3df9479e9e061cc7e0b...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout 2e228f3df9479e9e061cc7e0b7aba0c071ea22bf
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/counter/intel-qep.c:863:34: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] <asn:2> *base @@ got struct device *dev @@
drivers/counter/intel-qep.c:863:34: sparse: expected void [noderef] <asn:2> *base
drivers/counter/intel-qep.c:863:34: sparse: got struct device *dev
drivers/counter/intel-qep.c:864:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] <asn:2> *base @@ got struct device *dev @@
drivers/counter/intel-qep.c:864:45: sparse: expected void [noderef] <asn:2> *base
drivers/counter/intel-qep.c:864:45: sparse: got struct device *dev
vim +863 drivers/counter/intel-qep.c
837
838 static int intel_qep_runtime_resume(struct device *dev)
839 {
840 struct pci_dev *pdev = container_of(dev, struct pci_dev, dev);
841 struct intel_qep *qep = pci_get_drvdata(pdev);
842 u32 d0i3c_reg;
843 u32 cgsr_reg;
844
845 cgsr_reg = intel_qep_readl(qep->regs, INTEL_QEP_CGSR);
846
847 if (cgsr_reg & INTEL_QEP_CGSR_CG)
848 intel_qep_writel(qep->regs, INTEL_QEP_CGSR,
849 (cgsr_reg & ~INTEL_QEP_CGSR_CG));
850
851 d0i3c_reg = intel_qep_readl(qep->regs, INTEL_QEP_D0I3C);
852
853 if (d0i3c_reg & INTEL_QEP_D0I3_CIP) {
854 dev_info(dev, "%s d0i3c CIP detected", __func__);
855 } else {
856
857 if (d0i3c_reg & INTEL_QEP_D0I3_EN)
858 d0i3c_reg &= ~INTEL_QEP_D0I3_EN;
859
860 if (d0i3c_reg & INTEL_QEP_D0I3_RR)
861 d0i3c_reg |= INTEL_QEP_D0I3_RR;
862
> 863 intel_qep_writel(dev, INTEL_QEP_D0I3C, d0i3c_reg);
864 d0i3c_reg = intel_qep_readl(dev, INTEL_QEP_D0I3C);
865 }
866
867 intel_qep_init(qep, false);
868
869 return 0;
870 }
871 #endif
872
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
Re: [PATCH 1/4] habanalabs: add "in device creation" status
by kernel test robot
Hi Oded,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on char-misc/char-misc-testing]
[also build test WARNING on linux/master linus/master v5.14-rc6 next-20210820]
[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/Oded-Gabbay/habanalabs-add-in-de...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git 1bd35e77ac2aadc1c22ca7335d4157eeae4a2fb8
config: sparc-randconfig-r014-20210816 (attached as .config)
compiler: sparc-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/c88e36085a6e21fde7e1ebcea36144a7d...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Oded-Gabbay/habanalabs-add-in-device-creation-status/20210820-230930
git checkout c88e36085a6e21fde7e1ebcea36144a7d6df8d95
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=sparc
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/misc/habanalabs/common/sysfs.c: In function 'status_show':
>> drivers/misc/habanalabs/common/sysfs.c:290:9: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
290 | strncpy(str, hdev->status[hl_device_status(hdev)], HL_STR_MAX);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/strncpy +290 drivers/misc/habanalabs/common/sysfs.c
283
284 static ssize_t status_show(struct device *dev, struct device_attribute *attr,
285 char *buf)
286 {
287 struct hl_device *hdev = dev_get_drvdata(dev);
288 char str[HL_STR_MAX];
289
> 290 strncpy(str, hdev->status[hl_device_status(hdev)], HL_STR_MAX);
291
292 /* use uppercase for backward compatibility */
293 str[0] = 'A' + (str[0] - 'a');
294
295 return sprintf(buf, "%s\n", str);
296 }
297
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c:90:25: warning: 'strncpy' specified bound depends on the length of the source argument
by kernel test robot
Hi Huazhong,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d992fe5318d8d7af9510b879439a3c7f283da442
commit: 1556ea9120ffcf4faf7ac6b62a6e28216f260a23 net: hns3: refactor dump mac list of debugfs
date: 3 months ago
config: csky-buildonly-randconfig-r004-20210812 (attached as .config)
compiler: csky-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/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 1556ea9120ffcf4faf7ac6b62a6e28216f260a23
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=csky
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/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c: In function 'hclge_dbg_fill_content.constprop':
>> drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c:90:25: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation]
90 | strncpy(pos, items[i].name, strlen(items[i].name));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c:88:25: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation]
88 | strncpy(pos, result[i], strlen(result[i]));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for LOCKDEP
Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86)
Selected by
- PROVE_LOCKING && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
- DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
vim +/strncpy +90 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c
77
78 static void hclge_dbg_fill_content(char *content, u16 len,
79 const struct hclge_dbg_item *items,
80 const char **result, u16 size)
81 {
82 char *pos = content;
83 u16 i;
84
85 memset(content, ' ', len);
86 for (i = 0; i < size; i++) {
87 if (result)
88 strncpy(pos, result[i], strlen(result[i]));
89 else
> 90 strncpy(pos, items[i].name, strlen(items[i].name));
91 pos += strlen(items[i].name) + items[i].interval;
92 }
93 *pos++ = '\n';
94 *pos++ = '\0';
95 }
96
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
Re: [PATCH linux-next] scsi/ncr53c8xx: Use bitwise instead of arithmetic operator for flags
by kernel test robot
Hi CGEL,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on next-20210819]
url: https://github.com/0day-ci/linux/commits/CGEL/scsi-ncr53c8xx-Use-bitwise-...
base: 33e65b1f975cd2814fc0ea9617250fc4c1d7a553
config: parisc-defconfig (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/1c952d92c3d9f7e1609d3770e0c9194fd...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review CGEL/scsi-ncr53c8xx-Use-bitwise-instead-of-arithmetic-operator-for-flags/20210820-111510
git checkout 1c952d92c3d9f7e1609d3770e0c9194fdcf05603
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.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 warnings (new ones prefixed by >>):
drivers/scsi/ncr53c8xx.c: In function 'ncr_getclock':
>> drivers/scsi/ncr53c8xx.c:7913:53: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
7913 | if (mult > 1 && (stest1 & (DBLEN | DBLSEL)) == DBLEN | DBLSEL) {
vim +7913 drivers/scsi/ncr53c8xx.c
7897
7898 /*
7899 * Get/probe NCR SCSI clock frequency
7900 */
7901 static void __init ncr_getclock (struct ncb *np, int mult)
7902 {
7903 unsigned char scntl3 = INB(nc_scntl3);
7904 unsigned char stest1 = INB(nc_stest1);
7905 unsigned f1;
7906
7907 np->multiplier = 1;
7908 f1 = 40000;
7909
7910 /*
7911 ** True with 875 or 895 with clock multiplier selected
7912 */
> 7913 if (mult > 1 && (stest1 & (DBLEN | DBLSEL)) == DBLEN | DBLSEL) {
7914 if (bootverbose >= 2)
7915 printk ("%s: clock multiplier found\n", ncr_name(np));
7916 np->multiplier = mult;
7917 }
7918
7919 /*
7920 ** If multiplier not found or scntl3 not 7,5,3,
7921 ** reset chip and get frequency from general purpose timer.
7922 ** Otherwise trust scntl3 BIOS setting.
7923 */
7924 if (np->multiplier != mult || (scntl3 & 7) < 3 || !(scntl3 & 1)) {
7925 unsigned f2;
7926
7927 ncr_chip_reset(np, 5);
7928
7929 (void) ncrgetfreq (np, 11); /* throw away first result */
7930 f1 = ncrgetfreq (np, 11);
7931 f2 = ncrgetfreq (np, 11);
7932
7933 if(bootverbose)
7934 printk ("%s: NCR clock is %uKHz, %uKHz\n", ncr_name(np), f1, f2);
7935
7936 if (f1 > f2) f1 = f2; /* trust lower result */
7937
7938 if (f1 < 45000) f1 = 40000;
7939 else if (f1 < 55000) f1 = 50000;
7940 else f1 = 80000;
7941
7942 if (f1 < 80000 && mult > 1) {
7943 if (bootverbose >= 2)
7944 printk ("%s: clock multiplier assumed\n", ncr_name(np));
7945 np->multiplier = mult;
7946 }
7947 } else {
7948 if ((scntl3 & 7) == 3) f1 = 40000;
7949 else if ((scntl3 & 7) == 5) f1 = 80000;
7950 else f1 = 160000;
7951
7952 f1 /= np->multiplier;
7953 }
7954
7955 /*
7956 ** Compute controller synchronous parameters.
7957 */
7958 f1 *= np->multiplier;
7959 np->clock_khz = f1;
7960 }
7961
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[mcgrof-next:20210819-add-disk-error-handling-next 67/90] drivers/memstick/core/ms_block.c:2166:19: error: incompatible pointer types passing 'struct request_queue *' to parameter of type 'struct gendisk *'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20210819-add-disk-error-handling-next
head: 4a644c3aee4465306a79d393956c84ce8925fa6b
commit: 11db06272f02ef4208857a2825c3799afa048f13 [67/90] ms_block: add error handling support for add_disk()
config: x86_64-randconfig-a014-20210820 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d9c5613e856cf2addfbf892fc4c1ce9ef9feceaa)
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 20210819-add-disk-error-handling-next
git checkout 11db06272f02ef4208857a2825c3799afa048f13
# 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 errors (new ones prefixed by >>):
>> drivers/memstick/core/ms_block.c:2166:19: error: incompatible pointer types passing 'struct request_queue *' to parameter of type 'struct gendisk *' [-Werror,-Wincompatible-pointer-types]
blk_cleanup_disk(msb->queue);
^~~~~~~~~~
include/linux/genhd.h:281:39: note: passing argument to parameter 'disk' here
void blk_cleanup_disk(struct gendisk *disk);
^
1 error generated.
vim +2166 drivers/memstick/core/ms_block.c
2108
2109 /* Registers the block device */
2110 static int msb_init_disk(struct memstick_dev *card)
2111 {
2112 struct msb_data *msb = memstick_get_drvdata(card);
2113 int rc;
2114 unsigned long capacity;
2115
2116 mutex_lock(&msb_disk_lock);
2117 msb->disk_id = idr_alloc(&msb_disk_idr, card, 0, 256, GFP_KERNEL);
2118 mutex_unlock(&msb_disk_lock);
2119
2120 if (msb->disk_id < 0)
2121 return msb->disk_id;
2122
2123 rc = blk_mq_alloc_sq_tag_set(&msb->tag_set, &msb_mq_ops, 2,
2124 BLK_MQ_F_SHOULD_MERGE);
2125 if (rc)
2126 goto out_release_id;
2127
2128 msb->disk = blk_mq_alloc_disk(&msb->tag_set, card);
2129 if (IS_ERR(msb->disk)) {
2130 rc = PTR_ERR(msb->disk);
2131 goto out_free_tag_set;
2132 }
2133 msb->queue = msb->disk->queue;
2134
2135 blk_queue_max_hw_sectors(msb->queue, MS_BLOCK_MAX_PAGES);
2136 blk_queue_max_segments(msb->queue, MS_BLOCK_MAX_SEGS);
2137 blk_queue_max_segment_size(msb->queue,
2138 MS_BLOCK_MAX_PAGES * msb->page_size);
2139 blk_queue_logical_block_size(msb->queue, msb->page_size);
2140
2141 sprintf(msb->disk->disk_name, "msblk%d", msb->disk_id);
2142 msb->disk->fops = &msb_bdops;
2143 msb->disk->private_data = msb;
2144
2145 capacity = msb->pages_in_block * msb->logical_block_count;
2146 capacity *= (msb->page_size / 512);
2147 set_capacity(msb->disk, capacity);
2148 dbg("Set total disk size to %lu sectors", capacity);
2149
2150 msb->usage_count = 1;
2151 msb->io_queue = alloc_ordered_workqueue("ms_block", WQ_MEM_RECLAIM);
2152 INIT_WORK(&msb->io_work, msb_io_work);
2153 sg_init_table(msb->prealloc_sg, MS_BLOCK_MAX_SEGS+1);
2154
2155 if (msb->read_only)
2156 set_disk_ro(msb->disk, 1);
2157
2158 msb_start(card);
2159 rc = device_add_disk(&card->dev, msb->disk, NULL);
2160 if (rc)
2161 goto out_cleanup_disk;
2162 dbg("Disk added");
2163 return 0;
2164
2165 out_cleanup_disk:
> 2166 blk_cleanup_disk(msb->queue);
2167 out_free_tag_set:
2168 blk_mq_free_tag_set(&msb->tag_set);
2169 out_release_id:
2170 mutex_lock(&msb_disk_lock);
2171 idr_remove(&msb_disk_idr, msb->disk_id);
2172 mutex_unlock(&msb_disk_lock);
2173 return rc;
2174 }
2175
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[android-common:android12-5.10 1/1] include/linux/mm.h:1819:25: warning: unused parameter 'regs'
by kernel test robot
tree: https://android.googlesource.com/kernel/common android12-5.10
head: 458e81ecf742382f585af598262cce81ab882c83
commit: 458e81ecf742382f585af598262cce81ab882c83 [1/1] ANDROID: mm: spf: fix task fault accounting
config: i386-randconfig-r021-20210816 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 2c6448cdc2f68f8c28fd0bd9404182b81306e6e6)
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 remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android12-5.10
git checkout 458e81ecf742382f585af598262cce81ab882c83
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=i386
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 >>):
include/linux/huge_mm.h:311:43: warning: unused parameter 'pud' [-Wunused-parameter]
static inline bool is_huge_zero_pud(pud_t pud)
^
In file included from drivers/gpu/drm/i915/i915_drv.c:32:
In file included from include/linux/oom.h:11:
include/linux/mm.h:1150:59: warning: unused parameter 'page' [-Wunused-parameter]
static inline bool is_zone_device_page(const struct page *page)
^
include/linux/mm.h:1179:56: warning: unused parameter 'page' [-Wunused-parameter]
static inline bool page_is_devmap_managed(struct page *page)
^
include/linux/mm.h:1184:57: warning: unused parameter 'page' [-Wunused-parameter]
static inline void put_devmap_managed_page(struct page *page)
^
include/linux/mm.h:1427:64: warning: unused parameter 'cpupid' [-Wunused-parameter]
static inline int page_cpupid_xchg_last(struct page *page, int cpupid)
^
include/linux/mm.h:1437:37: warning: unused parameter 'cpupid' [-Wunused-parameter]
static inline int cpupid_to_nid(int cpupid)
^
include/linux/mm.h:1442:37: warning: unused parameter 'cpupid' [-Wunused-parameter]
static inline int cpupid_to_pid(int cpupid)
^
include/linux/mm.h:1447:37: warning: unused parameter 'cpupid' [-Wunused-parameter]
static inline int cpupid_to_cpu(int cpupid)
^
include/linux/mm.h:1452:41: warning: unused parameter 'nid' [-Wunused-parameter]
static inline int cpu_pid_to_cpupid(int nid, int pid)
^
include/linux/mm.h:1452:50: warning: unused parameter 'pid' [-Wunused-parameter]
static inline int cpu_pid_to_cpupid(int nid, int pid)
^
include/linux/mm.h:1457:41: warning: unused parameter 'cpupid' [-Wunused-parameter]
static inline bool cpupid_pid_unset(int cpupid)
^
include/linux/mm.h:1462:56: warning: unused parameter 'page' [-Wunused-parameter]
static inline void page_cpupid_reset_last(struct page *page)
^
include/linux/mm.h:1466:57: warning: unused parameter 'task' [-Wunused-parameter]
static inline bool cpupid_match_pid(struct task_struct *task, int cpupid)
^
include/linux/mm.h:1466:67: warning: unused parameter 'cpupid' [-Wunused-parameter]
static inline bool cpupid_match_pid(struct task_struct *task, int cpupid)
^
include/linux/mm.h:1509:52: warning: unused parameter 'page' [-Wunused-parameter]
static inline u8 page_kasan_tag(const struct page *page)
^
include/linux/mm.h:1514:52: warning: unused parameter 'page' [-Wunused-parameter]
static inline void page_kasan_tag_set(struct page *page, u8 tag) { }
^
include/linux/mm.h:1514:61: warning: unused parameter 'tag' [-Wunused-parameter]
static inline void page_kasan_tag_set(struct page *page, u8 tag) { }
^
include/linux/mm.h:1515:54: warning: unused parameter 'page' [-Wunused-parameter]
static inline void page_kasan_tag_reset(struct page *page) { }
^
include/linux/mm.h:1524:56: warning: unused parameter 'page' [-Wunused-parameter]
static inline pg_data_t *page_pgdat(const struct page *page)
^
include/linux/mm.h:1555:36: warning: unused parameter 'pfn' [-Wunused-parameter]
unsigned long node, unsigned long pfn)
^
include/linux/mm.h:1575:58: warning: unused parameter 'page' [-Wunused-parameter]
static inline struct mem_cgroup *page_memcg(struct page *page)
^
include/linux/mm.h:1579:62: warning: unused parameter 'page' [-Wunused-parameter]
static inline struct mem_cgroup *page_memcg_rcu(struct page *page)
^
In file included from drivers/gpu/drm/i915/i915_drv.c:32:
In file included from include/linux/oom.h:11:
In file included from include/linux/mm.h:1589:
include/linux/vmstat.h:392:42: warning: unused parameter 'cpu' [-Wunused-parameter]
static inline void cpu_vm_stats_fold(int cpu) { }
^
include/linux/vmstat.h:395:48: warning: unused parameter 'zone' [-Wunused-parameter]
static inline void drain_zonestat(struct zone *zone,
^
include/linux/vmstat.h:396:28: warning: unused parameter 'pset' [-Wunused-parameter]
struct per_cpu_pageset *pset) { }
^
In file included from drivers/gpu/drm/i915/i915_drv.c:32:
In file included from include/linux/oom.h:11:
include/linux/mm.h:1767:58: warning: unused parameter 'vma' [-Wunused-parameter]
static inline void vm_write_begin(struct vm_area_struct *vma)
^
include/linux/mm.h:1770:56: warning: unused parameter 'vma' [-Wunused-parameter]
static inline void vm_write_end(struct vm_area_struct *vma)
^
include/linux/mm.h:1815:69: warning: unused parameter 'mm' [-Wunused-parameter]
static inline vm_fault_t handle_speculative_fault(struct mm_struct *mm,
^
include/linux/mm.h:1816:23: warning: unused parameter 'address' [-Wunused-parameter]
unsigned long address,
^
include/linux/mm.h:1817:22: warning: unused parameter 'flags' [-Wunused-parameter]
unsigned int flags,
^
include/linux/mm.h:1818:33: warning: unused parameter 'vma' [-Wunused-parameter]
struct vm_area_struct **vma,
^
>> include/linux/mm.h:1819:25: warning: unused parameter 'regs' [-Wunused-parameter]
struct pt_regs *regs)
^
include/linux/mm.h:1823:61: warning: unused parameter 'vma' [-Wunused-parameter]
static inline bool can_reuse_spf_vma(struct vm_area_struct *vma,
^
include/linux/mm.h:1824:24: warning: unused parameter 'address' [-Wunused-parameter]
unsigned long address)
^
include/linux/mm.h:2120:50: warning: unused parameter 'mm' [-Wunused-parameter]
static inline void sync_mm_rss(struct mm_struct *mm)
^
include/linux/mm.h:2138:36: warning: unused parameter 'pte' [-Wunused-parameter]
static inline int pte_devmap(pte_t pte)
^
include/linux/mm.h:2157:49: warning: unused parameter 'mm' [-Wunused-parameter]
static inline int __p4d_alloc(struct mm_struct *mm, pgd_t *pgd,
^
include/linux/mm.h:2157:60: warning: unused parameter 'pgd' [-Wunused-parameter]
static inline int __p4d_alloc(struct mm_struct *mm, pgd_t *pgd,
^
include/linux/mm.h:2158:21: warning: unused parameter 'address' [-Wunused-parameter]
unsigned long address)
^
include/linux/mm.h:2167:49: warning: unused parameter 'mm' [-Wunused-parameter]
static inline int __pud_alloc(struct mm_struct *mm, p4d_t *p4d,
^
include/linux/mm.h:2167:60: warning: unused parameter 'p4d' [-Wunused-parameter]
static inline int __pud_alloc(struct mm_struct *mm, p4d_t *p4d,
^
include/linux/mm.h:2168:21: warning: unused parameter 'address' [-Wunused-parameter]
unsigned long address)
^
include/linux/mm.h:2172:53: warning: unused parameter 'mm' [-Wunused-parameter]
static inline void mm_inc_nr_puds(struct mm_struct *mm) {}
^
include/linux/mm.h:2173:53: warning: unused parameter 'mm' [-Wunused-parameter]
static inline void mm_dec_nr_puds(struct mm_struct *mm) {}
^
include/linux/mm.h:2334:68: warning: unused parameter 'pmd' [-Wunused-parameter]
static inline spinlock_t *pte_lockptr(struct mm_struct *mm, pmd_t *pmd)
^
include/linux/mm.h:2339:45: warning: unused parameter 'page' [-Wunused-parameter]
static inline bool ptlock_init(struct page *page) { return true; }
^
include/linux/mm.h:2340:45: warning: unused parameter 'page' [-Wunused-parameter]
static inline void ptlock_free(struct page *page) {}
^
include/linux/mm.h:2425:68: warning: unused parameter 'pmd' [-Wunused-parameter]
static inline spinlock_t *pmd_lockptr(struct mm_struct *mm, pmd_t *pmd)
^
include/linux/mm.h:2430:49: warning: unused parameter 'page' [-Wunused-parameter]
static inline bool pmd_ptlock_init(struct page *page) { return true; }
^
include/linux/mm.h:2431:49: warning: unused parameter 'page' [-Wunused-parameter]
static inline void pmd_ptlock_free(struct page *page) {}
^
include/linux/mm.h:2466:68: warning: unused parameter 'pud' [-Wunused-parameter]
static inline spinlock_t *pud_lockptr(struct mm_struct *mm, pud_t *pud)
^
include/linux/mm.h:2577:50: warning: unused parameter 'pfn' [-Wunused-parameter]
static inline int early_pfn_to_nid(unsigned long pfn)
^
include/linux/mm.h:3156:69: warning: unused parameter 'mm' [-Wunused-parameter]
static inline struct vm_area_struct *get_gate_vma(struct mm_struct *mm)
^
include/linux/mm.h:3160:52: warning: unused parameter 'addr' [-Wunused-parameter]
static inline int in_gate_area_no_mm(unsigned long addr) { return 0; }
^
include/linux/mm.h:3161:50: warning: unused parameter 'mm' [-Wunused-parameter]
static inline int in_gate_area(struct mm_struct *mm, unsigned long addr)
^
include/linux/mm.h:3161:68: warning: unused parameter 'addr' [-Wunused-parameter]
static inline int in_gate_area(struct mm_struct *mm, unsigned long addr)
^
include/linux/mm.h:3327:47: warning: unused parameter 'page' [-Wunused-parameter]
static inline bool page_is_guard(struct page *page) { return false; }
^
In file included from drivers/gpu/drm/i915/i915_drv.c:34:
In file included from include/linux/pci.h:38:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:5:
include/linux/context_tracking_state.h:51:53: warning: unused parameter 'cpu' [-Wunused-parameter]
static inline bool context_tracking_enabled_cpu(int cpu) { return false; }
^
In file included from drivers/gpu/drm/i915/i915_drv.c:34:
In file included from include/linux/pci.h:38:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:9:
include/linux/vtime.h:54:53: warning: unused parameter 'cpu' [-Wunused-parameter]
static inline bool vtime_accounting_enabled_cpu(int cpu) {return false; }
^
include/linux/vtime.h:56:58: warning: unused parameter 'prev' [-Wunused-parameter]
static inline void vtime_task_switch(struct task_struct *prev) { }
^
include/linux/vtime.h:67:61: warning: unused parameter 'tsk' [-Wunused-parameter]
static inline void vtime_account_kernel(struct task_struct *tsk) { }
^
include/linux/vtime.h:78:57: warning: unused parameter 'tsk' [-Wunused-parameter]
static inline void vtime_user_enter(struct task_struct *tsk) { }
^
--
In file included from arch/x86/include/asm/iomap.h:10:
include/linux/mm.h:1150:59: warning: unused parameter 'page' [-Wunused-parameter]
static inline bool is_zone_device_page(const struct page *page)
^
include/linux/mm.h:1179:56: warning: unused parameter 'page' [-Wunused-parameter]
static inline bool page_is_devmap_managed(struct page *page)
^
include/linux/mm.h:1184:57: warning: unused parameter 'page' [-Wunused-parameter]
static inline void put_devmap_managed_page(struct page *page)
^
include/linux/mm.h:1427:64: warning: unused parameter 'cpupid' [-Wunused-parameter]
static inline int page_cpupid_xchg_last(struct page *page, int cpupid)
^
include/linux/mm.h:1437:37: warning: unused parameter 'cpupid' [-Wunused-parameter]
static inline int cpupid_to_nid(int cpupid)
^
include/linux/mm.h:1442:37: warning: unused parameter 'cpupid' [-Wunused-parameter]
static inline int cpupid_to_pid(int cpupid)
^
include/linux/mm.h:1447:37: warning: unused parameter 'cpupid' [-Wunused-parameter]
static inline int cpupid_to_cpu(int cpupid)
^
include/linux/mm.h:1452:41: warning: unused parameter 'nid' [-Wunused-parameter]
static inline int cpu_pid_to_cpupid(int nid, int pid)
^
include/linux/mm.h:1452:50: warning: unused parameter 'pid' [-Wunused-parameter]
static inline int cpu_pid_to_cpupid(int nid, int pid)
^
include/linux/mm.h:1457:41: warning: unused parameter 'cpupid' [-Wunused-parameter]
static inline bool cpupid_pid_unset(int cpupid)
^
include/linux/mm.h:1462:56: warning: unused parameter 'page' [-Wunused-parameter]
static inline void page_cpupid_reset_last(struct page *page)
^
include/linux/mm.h:1466:57: warning: unused parameter 'task' [-Wunused-parameter]
static inline bool cpupid_match_pid(struct task_struct *task, int cpupid)
^
include/linux/mm.h:1466:67: warning: unused parameter 'cpupid' [-Wunused-parameter]
static inline bool cpupid_match_pid(struct task_struct *task, int cpupid)
^
include/linux/mm.h:1509:52: warning: unused parameter 'page' [-Wunused-parameter]
static inline u8 page_kasan_tag(const struct page *page)
^
include/linux/mm.h:1514:52: warning: unused parameter 'page' [-Wunused-parameter]
static inline void page_kasan_tag_set(struct page *page, u8 tag) { }
^
include/linux/mm.h:1514:61: warning: unused parameter 'tag' [-Wunused-parameter]
static inline void page_kasan_tag_set(struct page *page, u8 tag) { }
^
include/linux/mm.h:1515:54: warning: unused parameter 'page' [-Wunused-parameter]
static inline void page_kasan_tag_reset(struct page *page) { }
^
include/linux/mm.h:1524:56: warning: unused parameter 'page' [-Wunused-parameter]
static inline pg_data_t *page_pgdat(const struct page *page)
^
include/linux/mm.h:1555:36: warning: unused parameter 'pfn' [-Wunused-parameter]
unsigned long node, unsigned long pfn)
^
include/linux/mm.h:1575:58: warning: unused parameter 'page' [-Wunused-parameter]
static inline struct mem_cgroup *page_memcg(struct page *page)
^
include/linux/mm.h:1579:62: warning: unused parameter 'page' [-Wunused-parameter]
static inline struct mem_cgroup *page_memcg_rcu(struct page *page)
^
In file included from drivers/gpu/drm/i915/i915_config.c:6:
In file included from drivers/gpu/drm/i915/i915_drv.h:38:
In file included from include/linux/io-mapping.h:33:
In file included from arch/x86/include/asm/iomap.h:10:
In file included from include/linux/mm.h:1589:
include/linux/vmstat.h:392:42: warning: unused parameter 'cpu' [-Wunused-parameter]
static inline void cpu_vm_stats_fold(int cpu) { }
^
include/linux/vmstat.h:395:48: warning: unused parameter 'zone' [-Wunused-parameter]
static inline void drain_zonestat(struct zone *zone,
^
include/linux/vmstat.h:396:28: warning: unused parameter 'pset' [-Wunused-parameter]
struct per_cpu_pageset *pset) { }
^
In file included from drivers/gpu/drm/i915/i915_config.c:6:
In file included from drivers/gpu/drm/i915/i915_drv.h:38:
In file included from include/linux/io-mapping.h:33:
In file included from arch/x86/include/asm/iomap.h:10:
include/linux/mm.h:1767:58: warning: unused parameter 'vma' [-Wunused-parameter]
static inline void vm_write_begin(struct vm_area_struct *vma)
^
include/linux/mm.h:1770:56: warning: unused parameter 'vma' [-Wunused-parameter]
static inline void vm_write_end(struct vm_area_struct *vma)
^
include/linux/mm.h:1815:69: warning: unused parameter 'mm' [-Wunused-parameter]
static inline vm_fault_t handle_speculative_fault(struct mm_struct *mm,
^
include/linux/mm.h:1816:23: warning: unused parameter 'address' [-Wunused-parameter]
unsigned long address,
^
include/linux/mm.h:1817:22: warning: unused parameter 'flags' [-Wunused-parameter]
unsigned int flags,
^
include/linux/mm.h:1818:33: warning: unused parameter 'vma' [-Wunused-parameter]
struct vm_area_struct **vma,
^
>> include/linux/mm.h:1819:25: warning: unused parameter 'regs' [-Wunused-parameter]
struct pt_regs *regs)
^
include/linux/mm.h:1823:61: warning: unused parameter 'vma' [-Wunused-parameter]
static inline bool can_reuse_spf_vma(struct vm_area_struct *vma,
^
include/linux/mm.h:1824:24: warning: unused parameter 'address' [-Wunused-parameter]
unsigned long address)
^
include/linux/mm.h:2120:50: warning: unused parameter 'mm' [-Wunused-parameter]
static inline void sync_mm_rss(struct mm_struct *mm)
^
include/linux/mm.h:2138:36: warning: unused parameter 'pte' [-Wunused-parameter]
static inline int pte_devmap(pte_t pte)
^
include/linux/mm.h:2157:49: warning: unused parameter 'mm' [-Wunused-parameter]
static inline int __p4d_alloc(struct mm_struct *mm, pgd_t *pgd,
^
include/linux/mm.h:2157:60: warning: unused parameter 'pgd' [-Wunused-parameter]
static inline int __p4d_alloc(struct mm_struct *mm, pgd_t *pgd,
^
include/linux/mm.h:2158:21: warning: unused parameter 'address' [-Wunused-parameter]
unsigned long address)
^
include/linux/mm.h:2167:49: warning: unused parameter 'mm' [-Wunused-parameter]
static inline int __pud_alloc(struct mm_struct *mm, p4d_t *p4d,
^
include/linux/mm.h:2167:60: warning: unused parameter 'p4d' [-Wunused-parameter]
static inline int __pud_alloc(struct mm_struct *mm, p4d_t *p4d,
^
include/linux/mm.h:2168:21: warning: unused parameter 'address' [-Wunused-parameter]
unsigned long address)
^
include/linux/mm.h:2172:53: warning: unused parameter 'mm' [-Wunused-parameter]
static inline void mm_inc_nr_puds(struct mm_struct *mm) {}
^
include/linux/mm.h:2173:53: warning: unused parameter 'mm' [-Wunused-parameter]
static inline void mm_dec_nr_puds(struct mm_struct *mm) {}
^
include/linux/mm.h:2334:68: warning: unused parameter 'pmd' [-Wunused-parameter]
static inline spinlock_t *pte_lockptr(struct mm_struct *mm, pmd_t *pmd)
^
include/linux/mm.h:2339:45: warning: unused parameter 'page' [-Wunused-parameter]
static inline bool ptlock_init(struct page *page) { return true; }
^
include/linux/mm.h:2340:45: warning: unused parameter 'page' [-Wunused-parameter]
static inline void ptlock_free(struct page *page) {}
^
include/linux/mm.h:2425:68: warning: unused parameter 'pmd' [-Wunused-parameter]
static inline spinlock_t *pmd_lockptr(struct mm_struct *mm, pmd_t *pmd)
^
include/linux/mm.h:2430:49: warning: unused parameter 'page' [-Wunused-parameter]
static inline bool pmd_ptlock_init(struct page *page) { return true; }
^
include/linux/mm.h:2431:49: warning: unused parameter 'page' [-Wunused-parameter]
static inline void pmd_ptlock_free(struct page *page) {}
^
include/linux/mm.h:2466:68: warning: unused parameter 'pud' [-Wunused-parameter]
static inline spinlock_t *pud_lockptr(struct mm_struct *mm, pud_t *pud)
^
include/linux/mm.h:2577:50: warning: unused parameter 'pfn' [-Wunused-parameter]
static inline int early_pfn_to_nid(unsigned long pfn)
^
include/linux/mm.h:3156:69: warning: unused parameter 'mm' [-Wunused-parameter]
static inline struct vm_area_struct *get_gate_vma(struct mm_struct *mm)
^
include/linux/mm.h:3160:52: warning: unused parameter 'addr' [-Wunused-parameter]
static inline int in_gate_area_no_mm(unsigned long addr) { return 0; }
^
include/linux/mm.h:3161:50: warning: unused parameter 'mm' [-Wunused-parameter]
static inline int in_gate_area(struct mm_struct *mm, unsigned long addr)
^
include/linux/mm.h:3161:68: warning: unused parameter 'addr' [-Wunused-parameter]
static inline int in_gate_area(struct mm_struct *mm, unsigned long addr)
^
include/linux/mm.h:3327:47: warning: unused parameter 'page' [-Wunused-parameter]
static inline bool page_is_guard(struct page *page) { return false; }
^
In file included from drivers/gpu/drm/i915/i915_config.c:6:
In file included from drivers/gpu/drm/i915/i915_drv.h:38:
In file included from include/linux/io-mapping.h:33:
In file included from arch/x86/include/asm/iomap.h:12:
In file included from arch/x86/include/asm/cacheflush.h:8:
include/asm-generic/cacheflush.h:21:53: warning: unused parameter 'mm' [-Wunused-parameter]
static inline void flush_cache_mm(struct mm_struct *mm)
^
include/asm-generic/cacheflush.h:27:57: warning: unused parameter 'mm' [-Wunused-parameter]
static inline void flush_cache_dup_mm(struct mm_struct *mm)
^
include/asm-generic/cacheflush.h:33:61: warning: unused parameter 'vma' [-Wunused-parameter]
static inline void flush_cache_range(struct vm_area_struct *vma,
^
include/asm-generic/cacheflush.h:34:24: warning: unused parameter 'start' [-Wunused-parameter]
unsigned long start,
^
include/asm-generic/cacheflush.h:35:24: warning: unused parameter 'end' [-Wunused-parameter]
unsigned long end)
^
include/asm-generic/cacheflush.h:41:60: warning: unused parameter 'vma' [-Wunused-parameter]
static inline void flush_cache_page(struct vm_area_struct *vma,
^
..
vim +/regs +1819 include/linux/mm.h
1782
1783 #ifdef CONFIG_MMU
1784 extern vm_fault_t handle_mm_fault(struct vm_area_struct *vma,
1785 unsigned long address, unsigned int flags,
1786 struct pt_regs *regs);
1787 extern int fixup_user_fault(struct mm_struct *mm,
1788 unsigned long address, unsigned int fault_flags,
1789 bool *unlocked);
1790
1791 #ifdef CONFIG_SPECULATIVE_PAGE_FAULT
1792 extern vm_fault_t __handle_speculative_fault(struct mm_struct *mm,
1793 unsigned long address,
1794 unsigned int flags,
1795 struct vm_area_struct **vma,
1796 struct pt_regs *regs);
1797 static inline vm_fault_t handle_speculative_fault(struct mm_struct *mm,
1798 unsigned long address,
1799 unsigned int flags,
1800 struct vm_area_struct **vma,
1801 struct pt_regs *regs)
1802 {
1803 /*
1804 * Try speculative page fault for multithreaded user space task only.
1805 */
1806 if (!(flags & FAULT_FLAG_USER) || atomic_read(&mm->mm_users) == 1) {
1807 *vma = NULL;
1808 return VM_FAULT_RETRY;
1809 }
1810 return __handle_speculative_fault(mm, address, flags, vma, regs);
1811 }
1812 extern bool can_reuse_spf_vma(struct vm_area_struct *vma,
1813 unsigned long address);
1814 #else
1815 static inline vm_fault_t handle_speculative_fault(struct mm_struct *mm,
> 1816 unsigned long address,
1817 unsigned int flags,
1818 struct vm_area_struct **vma,
> 1819 struct pt_regs *regs)
1820 {
1821 return VM_FAULT_RETRY;
1822 }
1823 static inline bool can_reuse_spf_vma(struct vm_area_struct *vma,
1824 unsigned long address)
1825 {
1826 return false;
1827 }
1828 #endif /* CONFIG_SPECULATIVE_PAGE_FAULT */
1829
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[freescale-fslc:pr/416 11826/20667] include/asm-generic/div64.h:243:36: error: passing argument 1 of '__div64_32' from incompatible pointer type
by kernel test robot
Hi Adrian,
FYI, the error/warning still remains.
tree: https://github.com/Freescale/linux-fslc pr/416
head: 915e71b823c877d351de1cbe650344ef6eace94b
commit: cdfd304a32248295f7d77f61d32137f1bb5bf64e [11826/20667] MLK-24423: sound: soc: fsl: imx pdm: fixed mclk improve voice
config: sh-allmodconfig (attached as .config)
compiler: sh4-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/Freescale/linux-fslc/commit/cdfd304a32248295f7d77f61d3...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/416
git checkout cdfd304a32248295f7d77f61d32137f1bb5bf64e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=sh
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 ./arch/sh/include/generated/asm/div64.h:1,
from include/linux/kernel.h:18,
from include/linux/list.h:9,
from include/linux/module.h:9,
from sound/soc/fsl/imx-pdm.c:12:
sound/soc/fsl/imx-pdm.c: In function 'imx_pdm_mic_hw_params':
include/asm-generic/div64.h:226:35: warning: comparison of distinct pointer types lacks a cast
226 | (void)(((typeof((n)) *)0) == ((uint64_t *)0)); \
| ^~
sound/soc/fsl/imx-pdm.c:241:30: note: in expansion of macro 'do_div'
241 | mclk_freq = (do_div(sample_rate, 8000) ?
| ^~~~~~
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/module.h:9,
from sound/soc/fsl/imx-pdm.c:12:
include/asm-generic/div64.h:239:32: warning: right shift count >= width of type [-Wshift-count-overflow]
239 | } else if (likely(((n) >> 32) == 0)) { \
| ^~
include/linux/compiler.h:77:45: note: in definition of macro 'likely'
77 | # define likely(x) __builtin_expect(!!(x), 1)
| ^
sound/soc/fsl/imx-pdm.c:241:30: note: in expansion of macro 'do_div'
241 | mclk_freq = (do_div(sample_rate, 8000) ?
| ^~~~~~
In file included from ./arch/sh/include/generated/asm/div64.h:1,
from include/linux/kernel.h:18,
from include/linux/list.h:9,
from include/linux/module.h:9,
from sound/soc/fsl/imx-pdm.c:12:
>> include/asm-generic/div64.h:243:36: error: passing argument 1 of '__div64_32' from incompatible pointer type [-Werror=incompatible-pointer-types]
243 | __rem = __div64_32(&(n), __base); \
| ^~~~
| |
| unsigned int *
sound/soc/fsl/imx-pdm.c:241:30: note: in expansion of macro 'do_div'
241 | mclk_freq = (do_div(sample_rate, 8000) ?
| ^~~~~~
include/asm-generic/div64.h:217:38: note: expected 'uint64_t *' {aka 'long long unsigned int *'} but argument is of type 'unsigned int *'
217 | extern uint32_t __div64_32(uint64_t *dividend, uint32_t divisor);
| ~~~~~~~~~~^~~~~~~~
cc1: some warnings being treated as errors
vim +/__div64_32 +243 include/asm-generic/div64.h
^1da177e4c3f41 Linus Torvalds 2005-04-16 219
^1da177e4c3f41 Linus Torvalds 2005-04-16 220 /* The unnecessary pointer compare is there
^1da177e4c3f41 Linus Torvalds 2005-04-16 221 * to check for type safety (n must be 64bit)
^1da177e4c3f41 Linus Torvalds 2005-04-16 222 */
^1da177e4c3f41 Linus Torvalds 2005-04-16 223 # define do_div(n,base) ({ \
^1da177e4c3f41 Linus Torvalds 2005-04-16 224 uint32_t __base = (base); \
^1da177e4c3f41 Linus Torvalds 2005-04-16 225 uint32_t __rem; \
^1da177e4c3f41 Linus Torvalds 2005-04-16 226 (void)(((typeof((n)) *)0) == ((uint64_t *)0)); \
911918aa7ef6f8 Nicolas Pitre 2015-11-02 227 if (__builtin_constant_p(__base) && \
911918aa7ef6f8 Nicolas Pitre 2015-11-02 228 is_power_of_2(__base)) { \
911918aa7ef6f8 Nicolas Pitre 2015-11-02 229 __rem = (n) & (__base - 1); \
911918aa7ef6f8 Nicolas Pitre 2015-11-02 230 (n) >>= ilog2(__base); \
461a5e51060c93 Nicolas Pitre 2015-10-30 231 } else if (__div64_const32_is_OK && \
461a5e51060c93 Nicolas Pitre 2015-10-30 232 __builtin_constant_p(__base) && \
461a5e51060c93 Nicolas Pitre 2015-10-30 233 __base != 0) { \
461a5e51060c93 Nicolas Pitre 2015-10-30 234 uint32_t __res_lo, __n_lo = (n); \
461a5e51060c93 Nicolas Pitre 2015-10-30 235 (n) = __div64_const32(n, __base); \
461a5e51060c93 Nicolas Pitre 2015-10-30 236 /* the remainder can be computed with 32-bit regs */ \
461a5e51060c93 Nicolas Pitre 2015-10-30 237 __res_lo = (n); \
461a5e51060c93 Nicolas Pitre 2015-10-30 238 __rem = __n_lo - __res_lo * __base; \
911918aa7ef6f8 Nicolas Pitre 2015-11-02 239 } else if (likely(((n) >> 32) == 0)) { \
^1da177e4c3f41 Linus Torvalds 2005-04-16 240 __rem = (uint32_t)(n) % __base; \
^1da177e4c3f41 Linus Torvalds 2005-04-16 241 (n) = (uint32_t)(n) / __base; \
^1da177e4c3f41 Linus Torvalds 2005-04-16 242 } else \
^1da177e4c3f41 Linus Torvalds 2005-04-16 @243 __rem = __div64_32(&(n), __base); \
^1da177e4c3f41 Linus Torvalds 2005-04-16 244 __rem; \
^1da177e4c3f41 Linus Torvalds 2005-04-16 245 })
^1da177e4c3f41 Linus Torvalds 2005-04-16 246
:::::: The code at line 243 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds(a)ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds(a)ppc970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[linux-stable-rc:linux-5.10.y 3189/3969] drivers/scsi/qla4xxx/ql4_nx.c:3239:6: warning: stack frame size (2320) exceeds limit (2048) in function 'qla4_8xxx_get_minidump'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.10.y
head: 65f1995ea1e930674e76c5888b4643581e11434c
commit: 5f2f616343b1d62d26f24316fbfc107ecf0983a9 [3189/3969] linux/compiler-clang.h: define HAVE_BUILTIN_BSWAP*
config: powerpc64-randconfig-r014-20210820 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d9c5613e856cf2addfbf892fc4c1ce9ef9feceaa)
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-powerpc64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gi...
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-5.10.y
git checkout 5f2f616343b1d62d26f24316fbfc107ecf0983a9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 warnings (new ones prefixed by >>):
In file included from drivers/scsi/qla4xxx/ql4_nx.c:6:
In file included from include/linux/delay.h:22:
In file included from include/linux/kernel.h:12:
In file included from include/linux/bitops.h:29:
In file included from arch/powerpc/include/asm/bitops.h:62:
arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
#define __lwsync() __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
^
<built-in>:310:9: note: previous definition is here
#define __lwsync __builtin_ppc_lwsync
^
drivers/scsi/qla4xxx/ql4_nx.c:3651:1: warning: unused function 'flash_data_addr' [-Wunused-function]
flash_data_addr(struct ql82xx_hw_data *hw, uint32_t faddr)
^
>> drivers/scsi/qla4xxx/ql4_nx.c:3239:6: warning: stack frame size (2320) exceeds limit (2048) in function 'qla4_8xxx_get_minidump' [-Wframe-larger-than]
void qla4_8xxx_get_minidump(struct scsi_qla_host *ha)
^
3 warnings generated.
vim +/qla4_8xxx_get_minidump +3239 drivers/scsi/qla4xxx/ql4_nx.c
068237c87c6474 Tej Parkash 2012-05-18 3238
6e7b429259fc0b Vikas Chaudhary 2012-08-22 @3239 void qla4_8xxx_get_minidump(struct scsi_qla_host *ha)
aec07caedbb769 Vikas Chaudhary 2012-08-22 3240 {
aec07caedbb769 Vikas Chaudhary 2012-08-22 3241 if (ql4xenablemd && test_bit(AF_FW_RECOVERY, &ha->flags) &&
aec07caedbb769 Vikas Chaudhary 2012-08-22 3242 !test_bit(AF_82XX_FW_DUMPED, &ha->flags)) {
aec07caedbb769 Vikas Chaudhary 2012-08-22 3243 if (!qla4_8xxx_collect_md_data(ha)) {
aec07caedbb769 Vikas Chaudhary 2012-08-22 3244 qla4_8xxx_uevent_emit(ha, QL4_UEVENT_CODE_FW_DUMP);
aec07caedbb769 Vikas Chaudhary 2012-08-22 3245 set_bit(AF_82XX_FW_DUMPED, &ha->flags);
aec07caedbb769 Vikas Chaudhary 2012-08-22 3246 } else {
aec07caedbb769 Vikas Chaudhary 2012-08-22 3247 ql4_printk(KERN_INFO, ha, "%s: Unable to collect minidump\n",
aec07caedbb769 Vikas Chaudhary 2012-08-22 3248 __func__);
aec07caedbb769 Vikas Chaudhary 2012-08-22 3249 }
aec07caedbb769 Vikas Chaudhary 2012-08-22 3250 }
aec07caedbb769 Vikas Chaudhary 2012-08-22 3251 }
aec07caedbb769 Vikas Chaudhary 2012-08-22 3252
:::::: The code at line 3239 was first introduced by commit
:::::: 6e7b429259fc0b7f2d9b1147466656b34d114815 [SCSI] qla4xxx: Added support for ISP83XX
:::::: TO: Vikas Chaudhary <vikas.chaudhary(a)qlogic.com>
:::::: CC: James Bottomley <JBottomley(a)Parallels.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[linux-next:master 8817/9522] drivers/net/can/rcar/rcar_canfd.c:1185:0: warning: Redundant assignment of 'priv' to itself. [selfAssignment]
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 86ed57fd8c93fdfaabb4f58e78455180fa7d8a84
commit: 76e9353a80e9e9ff65b362a6dd8545d84427ec30 [8817/9522] can: rcar_canfd: Add support for RZ/G2L family
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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/net/can/rcar/rcar_canfd.c:1185:0: warning: Redundant assignment of 'priv' to itself. [selfAssignment]
struct rcar_canfd_channel *priv = priv = gpriv->ch[ch];
^
vim +/priv +1185 drivers/net/can/rcar/rcar_canfd.c
1182
1183 static void rcar_canfd_handle_channel_tx(struct rcar_canfd_global *gpriv, u32 ch)
1184 {
> 1185 struct rcar_canfd_channel *priv = priv = gpriv->ch[ch];
1186 struct net_device *ndev = priv->ndev;
1187 u32 sts;
1188
1189 /* Handle Tx interrupts */
1190 sts = rcar_canfd_read(priv->base,
1191 RCANFD_CFSTS(ch, RCANFD_CFFIFO_IDX));
1192 if (likely(sts & RCANFD_CFSTS_CFTXIF))
1193 rcar_canfd_tx_done(ndev);
1194 }
1195
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month