[hare-scsi-devel:eh-rework.v2 50/51] drivers/scsi/scsi_error.c:859:13: warning: conflicting types for '__scsi_report_device_reset'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git eh-rework.v2
head: 7603e2e1f37e470064b8c865b5d6470137baa79b
commit: 7285b348b4837b6bcbeffaf829372e63cd180b09 [50/51] scsi: Do not allocate scsi command in scsi_ioctl_reset()
config: x86_64-randconfig-a006-20210816 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git/commi...
git remote add hare-scsi-devel https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git
git fetch --no-tags hare-scsi-devel eh-rework.v2
git checkout 7285b348b4837b6bcbeffaf829372e63cd180b09
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/scsi/
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/scsi_error.c: In function 'scsi_try_host_reset':
drivers/scsi/scsi_error.c:821:4: error: implicit declaration of function '__scsi_report_device_reset'; did you mean 'scsi_report_device_reset'? [-Werror=implicit-function-declaration]
821 | __scsi_report_device_reset(sdev);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| scsi_report_device_reset
drivers/scsi/scsi_error.c: At top level:
>> drivers/scsi/scsi_error.c:859:13: warning: conflicting types for '__scsi_report_device_reset'
859 | static void __scsi_report_device_reset(struct scsi_device *sdev, void *data)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/scsi_error.c:859:13: error: static declaration of '__scsi_report_device_reset' follows non-static declaration
drivers/scsi/scsi_error.c:821:4: note: previous implicit declaration of '__scsi_report_device_reset' was here
821 | __scsi_report_device_reset(sdev);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/scsi_error.c: In function 'scsi_try_target_reset':
drivers/scsi/scsi_error.c:893:5: error: too few arguments to function '__scsi_report_device_reset'
893 | __scsi_report_device_reset(sdev);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/scsi_error.c:859:13: note: declared here
859 | static void __scsi_report_device_reset(struct scsi_device *sdev, void *data)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/scsi_error.c: At top level:
drivers/scsi/scsi_error.c:1217:6: warning: no previous prototype for '__scsi_eh_finish_cmd' [-Wmissing-prototypes]
1217 | void __scsi_eh_finish_cmd(struct scsi_cmnd *scmd, struct list_head *done_q,
| ^~~~~~~~~~~~~~~~~~~~
drivers/scsi/scsi_error.c: In function 'scsi_ioctl_reset':
drivers/scsi/scsi_error.c:2443:1: warning: label 'out_put_autopm_host' defined but not used [-Wunused-label]
2443 | out_put_autopm_host:
| ^~~~~~~~~~~~~~~~~~~
At top level:
drivers/scsi/scsi_error.c:2365:1: warning: 'scsi_reset_provider_done_command' defined but not used [-Wunused-function]
2365 | scsi_reset_provider_done_command(struct scsi_cmnd *scmd)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/__scsi_report_device_reset +859 drivers/scsi/scsi_error.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 796
292148f8bb2b5d Brian King 2007-01-30 797 /**
292148f8bb2b5d Brian King 2007-01-30 798 * scsi_try_host_reset - ask host adapter to reset itself
7285b348b4837b Hannes Reinecke 2021-08-17 799 * @host: SCSI host to be reset.
dc8875e1078961 Randy Dunlap 2007-11-15 800 */
7285b348b4837b Hannes Reinecke 2021-08-17 801 static enum scsi_disposition scsi_try_host_reset(struct Scsi_Host *host)
292148f8bb2b5d Brian King 2007-01-30 802 {
292148f8bb2b5d Brian King 2007-01-30 803 unsigned long flags;
b8e162f9e7e2da Bart Van Assche 2021-04-15 804 enum scsi_disposition rtn;
0bf8c869701039 Jesper Juhl 2011-03-21 805 struct scsi_host_template *hostt = host->hostt;
7285b348b4837b Hannes Reinecke 2021-08-17 806 struct scsi_device *sdev;
292148f8bb2b5d Brian King 2007-01-30 807
91921e016a2199 Hannes Reinecke 2014-06-25 808 SCSI_LOG_ERROR_RECOVERY(3,
91921e016a2199 Hannes Reinecke 2014-06-25 809 shost_printk(KERN_INFO, host, "Snd Host RST\n"));
292148f8bb2b5d Brian King 2007-01-30 810
0bf8c869701039 Jesper Juhl 2011-03-21 811 if (!hostt->eh_host_reset_handler)
292148f8bb2b5d Brian King 2007-01-30 812 return FAILED;
292148f8bb2b5d Brian King 2007-01-30 813
1b973982217b36 Hannes Reinecke 2021-08-16 814 rtn = hostt->eh_host_reset_handler(host);
292148f8bb2b5d Brian King 2007-01-30 815
292148f8bb2b5d Brian King 2007-01-30 816 if (rtn == SUCCESS) {
0bf8c869701039 Jesper Juhl 2011-03-21 817 if (!hostt->skip_settle_delay)
292148f8bb2b5d Brian King 2007-01-30 818 ssleep(HOST_RESET_SETTLE_TIME);
0bf8c869701039 Jesper Juhl 2011-03-21 819 spin_lock_irqsave(host->host_lock, flags);
7285b348b4837b Hannes Reinecke 2021-08-17 820 __shost_for_each_device(sdev, host)
7285b348b4837b Hannes Reinecke 2021-08-17 @821 __scsi_report_device_reset(sdev);
0bf8c869701039 Jesper Juhl 2011-03-21 822 spin_unlock_irqrestore(host->host_lock, flags);
292148f8bb2b5d Brian King 2007-01-30 823 }
292148f8bb2b5d Brian King 2007-01-30 824
292148f8bb2b5d Brian King 2007-01-30 825 return rtn;
292148f8bb2b5d Brian King 2007-01-30 826 }
292148f8bb2b5d Brian King 2007-01-30 827
292148f8bb2b5d Brian King 2007-01-30 828 /**
292148f8bb2b5d Brian King 2007-01-30 829 * scsi_try_bus_reset - ask host to perform a bus reset
7285b348b4837b Hannes Reinecke 2021-08-17 830 * @host: SCSI host to send bus reset.
7285b348b4837b Hannes Reinecke 2021-08-17 831 * @channel: Number of the bus to be reset
dc8875e1078961 Randy Dunlap 2007-11-15 832 */
7285b348b4837b Hannes Reinecke 2021-08-17 833 static enum scsi_disposition scsi_try_bus_reset(struct Scsi_Host *host,
7285b348b4837b Hannes Reinecke 2021-08-17 834 int channel)
292148f8bb2b5d Brian King 2007-01-30 835 {
292148f8bb2b5d Brian King 2007-01-30 836 unsigned long flags;
b8e162f9e7e2da Bart Van Assche 2021-04-15 837 enum scsi_disposition rtn;
0bf8c869701039 Jesper Juhl 2011-03-21 838 struct scsi_host_template *hostt = host->hostt;
292148f8bb2b5d Brian King 2007-01-30 839
7285b348b4837b Hannes Reinecke 2021-08-17 840 SCSI_LOG_ERROR_RECOVERY(3, shost_printk(KERN_INFO, host,
7285b348b4837b Hannes Reinecke 2021-08-17 841 "%s: Snd Bus RST to bus %d\n", __func__, channel));
292148f8bb2b5d Brian King 2007-01-30 842
0bf8c869701039 Jesper Juhl 2011-03-21 843 if (!hostt->eh_bus_reset_handler)
292148f8bb2b5d Brian King 2007-01-30 844 return FAILED;
292148f8bb2b5d Brian King 2007-01-30 845
7285b348b4837b Hannes Reinecke 2021-08-17 846 rtn = hostt->eh_bus_reset_handler(host, channel);
292148f8bb2b5d Brian King 2007-01-30 847
292148f8bb2b5d Brian King 2007-01-30 848 if (rtn == SUCCESS) {
0bf8c869701039 Jesper Juhl 2011-03-21 849 if (!hostt->skip_settle_delay)
292148f8bb2b5d Brian King 2007-01-30 850 ssleep(BUS_RESET_SETTLE_TIME);
0bf8c869701039 Jesper Juhl 2011-03-21 851 spin_lock_irqsave(host->host_lock, flags);
7285b348b4837b Hannes Reinecke 2021-08-17 852 scsi_report_bus_reset(host, channel);
0bf8c869701039 Jesper Juhl 2011-03-21 853 spin_unlock_irqrestore(host->host_lock, flags);
292148f8bb2b5d Brian King 2007-01-30 854 }
292148f8bb2b5d Brian King 2007-01-30 855
292148f8bb2b5d Brian King 2007-01-30 856 return rtn;
292148f8bb2b5d Brian King 2007-01-30 857 }
292148f8bb2b5d Brian King 2007-01-30 858
30bd7df8ced23e Mike Christie 2008-02-29 @859 static void __scsi_report_device_reset(struct scsi_device *sdev, void *data)
30bd7df8ced23e Mike Christie 2008-02-29 860 {
30bd7df8ced23e Mike Christie 2008-02-29 861 sdev->was_reset = 1;
30bd7df8ced23e Mike Christie 2008-02-29 862 sdev->expecting_cc_ua = 1;
30bd7df8ced23e Mike Christie 2008-02-29 863 }
30bd7df8ced23e Mike Christie 2008-02-29 864
:::::: The code at line 859 was first introduced by commit
:::::: 30bd7df8ced23eefec87a5cda96dc99b002ed9da [SCSI] scsi_error: add target reset handler
:::::: TO: Mike Christie <michaelc(a)cs.wisc.edu>
:::::: CC: James Bottomley <James.Bottomley(a)HansenPartnership.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[hare-scsi-devel:eh-rework.v2 49/51] drivers/scsi/scsi_error.c:1207:6: warning: no previous prototype for function '__scsi_eh_finish_cmd'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git eh-rework.v2
head: 7603e2e1f37e470064b8c865b5d6470137baa79b
commit: a5bf3d7edeb8669d4c307b527f1164788d7aefb8 [49/51] scsi: Move eh_device_reset_handler() to use scsi_device as argument
config: i386-randconfig-r022-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
# https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git/commi...
git remote add hare-scsi-devel https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git
git fetch --no-tags hare-scsi-devel eh-rework.v2
git checkout a5bf3d7edeb8669d4c307b527f1164788d7aefb8
# 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 >>):
>> drivers/scsi/scsi_error.c:1207:6: warning: no previous prototype for function '__scsi_eh_finish_cmd' [-Wmissing-prototypes]
void __scsi_eh_finish_cmd(struct scsi_cmnd *scmd, struct list_head *done_q,
^
drivers/scsi/scsi_error.c:1207:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __scsi_eh_finish_cmd(struct scsi_cmnd *scmd, struct list_head *done_q,
^
static
1 warning generated.
vim +/__scsi_eh_finish_cmd +1207 drivers/scsi/scsi_error.c
1193
1194 /**
1195 * scsi_eh_finish_cmd - Handle a cmd that eh is finished with.
1196 * @scmd: Original SCSI cmd that eh has finished.
1197 * @done_q: Queue for processed commands.
1198 * @result: Final command status to be set
1199 *
1200 * Notes:
1201 * We don't want to use the normal command completion while we are are
1202 * still handling errors - it may cause other commands to be queued,
1203 * and that would disturb what we are doing. Thus we really want to
1204 * keep a list of pending commands for final completion, and once we
1205 * are ready to leave error handling we handle completion for real.
1206 */
> 1207 void __scsi_eh_finish_cmd(struct scsi_cmnd *scmd, struct list_head *done_q,
1208 int host_byte)
1209 {
1210 if (host_byte)
1211 set_host_byte(scmd, host_byte);
1212 list_move_tail(&scmd->eh_entry, done_q);
1213 }
1214
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[ti:ti-rt-linux-5.10.y 6649/6833] include/net/sock.h:2523:29: error: use of undeclared identifier 'SCM_REDUNDANT'
by kernel test robot
Hi WingMan,
FYI, the error/warning still remains.
tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.10.y
head: ac3657d2050406e974383b1490184f42a06b73cc
commit: e355bf097bb11257afeadf6665e51f224eeb93a7 [6649/6833] net: packet: Pass on redundant net info in packet_recvmsg
config: mips-randconfig-r025-20210817 (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
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
git remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
git fetch --no-tags ti ti-rt-linux-5.10.y
git checkout e355bf097bb11257afeadf6665e51f224eeb93a7
# 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 drivers/
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/w1/w1.c:25:
In file included from drivers/w1/w1_netlink.h:10:
In file included from include/linux/connector.h:17:
>> include/net/sock.h:2523:29: error: use of undeclared identifier 'SCM_REDUNDANT'
put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
^
1 error generated.
vim +/SCM_REDUNDANT +2523 include/net/sock.h
2514
2515 DECLARE_STATIC_KEY_FALSE(tcp_rx_skb_cache_key);
2516 static inline void sock_recv_redundant_info(struct msghdr *msg, struct sock *sk,
2517 struct sk_buff *skb)
2518 {
2519 struct skb_redundant_info *sred;
2520
2521 sred = skb_redinfo(skb);
2522 if (sred->lsdu_size)
> 2523 put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
2524 }
2525
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[mcgrof:20210816-add-disk-error-handling 19/64] drivers/block/paride/pd.c:943:20: error: expected ';' after goto statement
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git 20210816-add-disk-error-handling
head: e1e79332ea1bba0e751529b114ef9d301bf962a5
commit: b7e9e637531f1679afe287c382cfaa1af857012b [19/64] pd: add error handling support for add_disk()
config: arm-randconfig-r022-20210817 (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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git/commit/?...
git remote add mcgrof https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git
git fetch --no-tags mcgrof 20210816-add-disk-error-handling
git checkout b7e9e637531f1679afe287c382cfaa1af857012b
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=arm 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 >>):
>> drivers/block/paride/pd.c:943:20: error: expected ';' after goto statement
goto cleanup_disk:
^
;
>> drivers/block/paride/pd.c:946:19: error: incompatible pointer types passing 'struct pd_unit *' to parameter of type 'struct gendisk *' [-Werror,-Wincompatible-pointer-types]
blk_cleanup_disk(disk);
^~~~
include/linux/genhd.h:281:39: note: passing argument to parameter 'disk' here
void blk_cleanup_disk(struct gendisk *disk);
^
2 errors generated.
vim +943 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
1 year, 1 month
[hare-scsi-devel:eh-rework.v2 50/51] drivers/scsi/scsi_error.c:859:13: warning: conflicting types for '__scsi_report_device_reset'; have 'void(struct scsi_device *, void *)'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git eh-rework.v2
head: 7603e2e1f37e470064b8c865b5d6470137baa79b
commit: 7285b348b4837b6bcbeffaf829372e63cd180b09 [50/51] scsi: Do not allocate scsi command in scsi_ioctl_reset()
config: parisc-randconfig-r021-20210816 (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://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git/commi...
git remote add hare-scsi-devel https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git
git fetch --no-tags hare-scsi-devel eh-rework.v2
git checkout 7285b348b4837b6bcbeffaf829372e63cd180b09
# 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/scsi_error.c: In function 'scsi_try_host_reset':
drivers/scsi/scsi_error.c:821:25: error: implicit declaration of function '__scsi_report_device_reset'; did you mean 'scsi_report_device_reset'? [-Werror=implicit-function-declaration]
821 | __scsi_report_device_reset(sdev);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| scsi_report_device_reset
drivers/scsi/scsi_error.c: At top level:
>> drivers/scsi/scsi_error.c:859:13: warning: conflicting types for '__scsi_report_device_reset'; have 'void(struct scsi_device *, void *)'
859 | static void __scsi_report_device_reset(struct scsi_device *sdev, void *data)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/scsi_error.c:859:13: error: static declaration of '__scsi_report_device_reset' follows non-static declaration
drivers/scsi/scsi_error.c:821:25: note: previous implicit declaration of '__scsi_report_device_reset' with type 'void(struct scsi_device *, void *)'
821 | __scsi_report_device_reset(sdev);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/scsi_error.c: In function 'scsi_try_target_reset':
drivers/scsi/scsi_error.c:893:33: error: too few arguments to function '__scsi_report_device_reset'
893 | __scsi_report_device_reset(sdev);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/scsi_error.c:859:13: note: declared here
859 | static void __scsi_report_device_reset(struct scsi_device *sdev, void *data)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/scsi_error.c: At top level:
drivers/scsi/scsi_error.c:1217:6: warning: no previous prototype for '__scsi_eh_finish_cmd' [-Wmissing-prototypes]
1217 | void __scsi_eh_finish_cmd(struct scsi_cmnd *scmd, struct list_head *done_q,
| ^~~~~~~~~~~~~~~~~~~~
drivers/scsi/scsi_error.c: In function 'scsi_ioctl_reset':
drivers/scsi/scsi_error.c:2443:1: warning: label 'out_put_autopm_host' defined but not used [-Wunused-label]
2443 | out_put_autopm_host:
| ^~~~~~~~~~~~~~~~~~~
At top level:
drivers/scsi/scsi_error.c:2365:1: warning: 'scsi_reset_provider_done_command' defined but not used [-Wunused-function]
2365 | scsi_reset_provider_done_command(struct scsi_cmnd *scmd)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +859 drivers/scsi/scsi_error.c
292148f8bb2b5d Brian King 2007-01-30 858
30bd7df8ced23e Mike Christie 2008-02-29 @859 static void __scsi_report_device_reset(struct scsi_device *sdev, void *data)
30bd7df8ced23e Mike Christie 2008-02-29 860 {
30bd7df8ced23e Mike Christie 2008-02-29 861 sdev->was_reset = 1;
30bd7df8ced23e Mike Christie 2008-02-29 862 sdev->expecting_cc_ua = 1;
30bd7df8ced23e Mike Christie 2008-02-29 863 }
30bd7df8ced23e Mike Christie 2008-02-29 864
:::::: The code at line 859 was first introduced by commit
:::::: 30bd7df8ced23eefec87a5cda96dc99b002ed9da [SCSI] scsi_error: add target reset handler
:::::: TO: Mike Christie <michaelc(a)cs.wisc.edu>
:::::: CC: James Bottomley <James.Bottomley(a)HansenPartnership.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[ti:ti-rt-linux-5.10.y 6650/6833] net/socket.c:861:26: error: 'SCM_RED_TIMESTAMPING' undeclared
by kernel test robot
Hi WingMan,
FYI, the error/warning still remains.
tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.10.y
head: ac3657d2050406e974383b1490184f42a06b73cc
commit: b98f7ec080e0de442e0be84994ec8d26bdc39eeb [6650/6833] net: socket: Forward extra timestamp of received skb to user space
config: alpha-randconfig-r023-20210817 (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
git remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
git fetch --no-tags ti ti-rt-linux-5.10.y
git checkout b98f7ec080e0de442e0be84994ec8d26bdc39eeb
# 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 >>):
In file included from include/net/cls_cgroup.h:14,
from net/socket.c:95:
include/net/sock.h: In function 'sock_recv_redundant_info':
include/net/sock.h:2525:43: error: 'SCM_REDUNDANT' undeclared (first use in this function)
2525 | put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2525:43: note: each undeclared identifier is reported only once for each function it appears in
net/socket.c: In function '__sock_recv_redinfo_timestamp':
>> net/socket.c:861:26: error: 'SCM_RED_TIMESTAMPING' undeclared (first use in this function)
861 | SCM_RED_TIMESTAMPING, sizeof(tss), &tss);
| ^~~~~~~~~~~~~~~~~~~~
vim +/SCM_RED_TIMESTAMPING +861 net/socket.c
845
846 void __sock_recv_redinfo_timestamp(struct msghdr *msg, struct sock *sk,
847 struct sk_buff *skb)
848 {
849 struct scm_timestamping_internal tss;
850 int empty = 1;
851 struct skb_shared_hwtstamps *red_shhwtstamps =
852 skb_redinfo_hwtstamps(skb);
853
854 if (red_shhwtstamps &&
855 (sk->sk_tsflags & SOF_TIMESTAMPING_RAW_HARDWARE) &&
856 ktime_to_timespec64_cond(red_shhwtstamps->hwtstamp, tss.ts + 2))
857 empty = 0;
858
859 if (!empty)
860 put_cmsg(msg, SOL_SOCKET,
> 861 SCM_RED_TIMESTAMPING, sizeof(tss), &tss);
862 }
863 EXPORT_SYMBOL_GPL(__sock_recv_redinfo_timestamp);
864
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[chrome-os:chromeos-5.10 18970/18992] drivers/gpu/arm/midgard/mali_kbase_mmu.c:218:6: warning: variable 'ret' set but not used
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head: aa781ee2afbcc219c70046dc804b319565e18372
commit: 38d69e2e44ad116b6859968ea996a2701e006cd1 [18970/18992] CHROMIUM: MALI: fixup midgard compilation for kernel 5.10
config: arm-randconfig-r024-20210817 (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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.10
git checkout 38d69e2e44ad116b6859968ea996a2701e006cd1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 warnings (new ones prefixed by >>):
>> drivers/gpu/arm/midgard/mali_kbase_mmu.c:218:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
int ret;
^
1 warning generated.
--
>> drivers/gpu/arm/midgard/ipa/mali_kbase_ipa.c:88:13: warning: no previous prototype for function 'kbase_ipa_model_name_from_id' [-Wmissing-prototypes]
const char *kbase_ipa_model_name_from_id(u32 gpu_id)
^
drivers/gpu/arm/midgard/ipa/mali_kbase_ipa.c:88:7: note: declare 'static' if the function is not intended to be used outside of this translation unit
const char *kbase_ipa_model_name_from_id(u32 gpu_id)
^
static
>> drivers/gpu/arm/midgard/ipa/mali_kbase_ipa.c:422:5: warning: no previous prototype for function 'kbase_scale_static_power' [-Wmissing-prototypes]
u32 kbase_scale_static_power(const u32 c, const u32 voltage)
^
drivers/gpu/arm/midgard/ipa/mali_kbase_ipa.c:422:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
u32 kbase_scale_static_power(const u32 c, const u32 voltage)
^
static
>> drivers/gpu/arm/midgard/ipa/mali_kbase_ipa.c:577:5: warning: no previous prototype for function 'kbase_get_real_power_locked' [-Wmissing-prototypes]
int kbase_get_real_power_locked(struct kbase_device *kbdev, u32 *power,
^
drivers/gpu/arm/midgard/ipa/mali_kbase_ipa.c:577:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int kbase_get_real_power_locked(struct kbase_device *kbdev, u32 *power,
^
static
3 warnings generated.
--
>> drivers/gpu/arm/midgard/backend/gpu/mali_kbase_irq_linux.c:181:5: warning: no previous prototype for function 'kbase_set_custom_irq_handler' [-Wmissing-prototypes]
int kbase_set_custom_irq_handler(struct kbase_device *kbdev,
^
drivers/gpu/arm/midgard/backend/gpu/mali_kbase_irq_linux.c:181:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int kbase_set_custom_irq_handler(struct kbase_device *kbdev,
^
static
1 warning generated.
--
>> drivers/gpu/arm/midgard/backend/gpu/mali_kbase_devfreq.c:424:5: warning: no previous prototype for function 'kbase_devfreq_init' [-Wmissing-prototypes]
int kbase_devfreq_init(struct kbase_device *kbdev)
^
drivers/gpu/arm/midgard/backend/gpu/mali_kbase_devfreq.c:424:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int kbase_devfreq_init(struct kbase_device *kbdev)
^
static
>> drivers/gpu/arm/midgard/backend/gpu/mali_kbase_devfreq.c:518:6: warning: no previous prototype for function 'kbase_devfreq_term' [-Wmissing-prototypes]
void kbase_devfreq_term(struct kbase_device *kbdev)
^
drivers/gpu/arm/midgard/backend/gpu/mali_kbase_devfreq.c:518:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void kbase_devfreq_term(struct kbase_device *kbdev)
^
static
2 warnings generated.
vim +/ret +218 drivers/gpu/arm/midgard/mali_kbase_mmu.c
091c39ecb4a279 Brian Norris 2021-07-16 209
091c39ecb4a279 Brian Norris 2021-07-16 210 static void kbase_gpu_mmu_handle_write_fault(struct kbase_context *kctx,
091c39ecb4a279 Brian Norris 2021-07-16 211 struct kbase_as *faulting_as)
091c39ecb4a279 Brian Norris 2021-07-16 212 {
091c39ecb4a279 Brian Norris 2021-07-16 213 struct kbasep_gwt_list_element *pos;
091c39ecb4a279 Brian Norris 2021-07-16 214 struct kbase_va_region *region;
091c39ecb4a279 Brian Norris 2021-07-16 215 struct kbase_device *kbdev;
091c39ecb4a279 Brian Norris 2021-07-16 216 u64 fault_pfn, pfn_offset;
091c39ecb4a279 Brian Norris 2021-07-16 217 u32 op;
091c39ecb4a279 Brian Norris 2021-07-16 @218 int ret;
091c39ecb4a279 Brian Norris 2021-07-16 219 int as_no;
091c39ecb4a279 Brian Norris 2021-07-16 220
091c39ecb4a279 Brian Norris 2021-07-16 221 as_no = faulting_as->number;
091c39ecb4a279 Brian Norris 2021-07-16 222 kbdev = container_of(faulting_as, struct kbase_device, as[as_no]);
091c39ecb4a279 Brian Norris 2021-07-16 223 fault_pfn = faulting_as->fault_addr >> PAGE_SHIFT;
091c39ecb4a279 Brian Norris 2021-07-16 224
091c39ecb4a279 Brian Norris 2021-07-16 225 kbase_gpu_vm_lock(kctx);
091c39ecb4a279 Brian Norris 2021-07-16 226
091c39ecb4a279 Brian Norris 2021-07-16 227 /* Find region and check if it should be writable. */
091c39ecb4a279 Brian Norris 2021-07-16 228 region = kbase_region_tracker_find_region_enclosing_address(kctx,
091c39ecb4a279 Brian Norris 2021-07-16 229 faulting_as->fault_addr);
091c39ecb4a279 Brian Norris 2021-07-16 230 if (kbase_is_region_invalid_or_free(region)) {
091c39ecb4a279 Brian Norris 2021-07-16 231 kbase_gpu_vm_unlock(kctx);
091c39ecb4a279 Brian Norris 2021-07-16 232 kbase_mmu_report_fault_and_kill(kctx, faulting_as,
091c39ecb4a279 Brian Norris 2021-07-16 233 "Memory is not mapped on the GPU");
091c39ecb4a279 Brian Norris 2021-07-16 234 return;
091c39ecb4a279 Brian Norris 2021-07-16 235 }
091c39ecb4a279 Brian Norris 2021-07-16 236
091c39ecb4a279 Brian Norris 2021-07-16 237 if (!(region->flags & KBASE_REG_GPU_WR)) {
091c39ecb4a279 Brian Norris 2021-07-16 238 kbase_gpu_vm_unlock(kctx);
091c39ecb4a279 Brian Norris 2021-07-16 239 kbase_mmu_report_fault_and_kill(kctx, faulting_as,
091c39ecb4a279 Brian Norris 2021-07-16 240 "Region does not have write permissions");
091c39ecb4a279 Brian Norris 2021-07-16 241 return;
091c39ecb4a279 Brian Norris 2021-07-16 242 }
091c39ecb4a279 Brian Norris 2021-07-16 243
091c39ecb4a279 Brian Norris 2021-07-16 244 /* Capture addresses of faulting write location
091c39ecb4a279 Brian Norris 2021-07-16 245 * for job dumping if write tracking is enabled.
091c39ecb4a279 Brian Norris 2021-07-16 246 */
091c39ecb4a279 Brian Norris 2021-07-16 247 if (kctx->gwt_enabled) {
091c39ecb4a279 Brian Norris 2021-07-16 248 u64 page_addr = faulting_as->fault_addr & PAGE_MASK;
091c39ecb4a279 Brian Norris 2021-07-16 249 bool found = false;
091c39ecb4a279 Brian Norris 2021-07-16 250 /* Check if this write was already handled. */
091c39ecb4a279 Brian Norris 2021-07-16 251 list_for_each_entry(pos, &kctx->gwt_current_list, link) {
091c39ecb4a279 Brian Norris 2021-07-16 252 if (page_addr == pos->page_addr) {
091c39ecb4a279 Brian Norris 2021-07-16 253 found = true;
091c39ecb4a279 Brian Norris 2021-07-16 254 break;
091c39ecb4a279 Brian Norris 2021-07-16 255 }
091c39ecb4a279 Brian Norris 2021-07-16 256 }
091c39ecb4a279 Brian Norris 2021-07-16 257
091c39ecb4a279 Brian Norris 2021-07-16 258 if (!found) {
091c39ecb4a279 Brian Norris 2021-07-16 259 pos = kmalloc(sizeof(*pos), GFP_KERNEL);
091c39ecb4a279 Brian Norris 2021-07-16 260 if (pos) {
091c39ecb4a279 Brian Norris 2021-07-16 261 pos->region = region;
091c39ecb4a279 Brian Norris 2021-07-16 262 pos->page_addr = page_addr;
091c39ecb4a279 Brian Norris 2021-07-16 263 pos->num_pages = 1;
091c39ecb4a279 Brian Norris 2021-07-16 264 list_add(&pos->link, &kctx->gwt_current_list);
091c39ecb4a279 Brian Norris 2021-07-16 265 } else {
091c39ecb4a279 Brian Norris 2021-07-16 266 dev_warn(kbdev->dev, "kmalloc failure");
091c39ecb4a279 Brian Norris 2021-07-16 267 }
091c39ecb4a279 Brian Norris 2021-07-16 268 }
091c39ecb4a279 Brian Norris 2021-07-16 269 }
091c39ecb4a279 Brian Norris 2021-07-16 270
091c39ecb4a279 Brian Norris 2021-07-16 271 pfn_offset = fault_pfn - region->start_pfn;
091c39ecb4a279 Brian Norris 2021-07-16 272 /* Now make this faulting page writable to GPU. */
091c39ecb4a279 Brian Norris 2021-07-16 273 ret = kbase_mmu_update_pages_no_flush(kctx, fault_pfn,
091c39ecb4a279 Brian Norris 2021-07-16 274 &kbase_get_gpu_phy_pages(region)[pfn_offset],
091c39ecb4a279 Brian Norris 2021-07-16 275 1, region->flags);
091c39ecb4a279 Brian Norris 2021-07-16 276
091c39ecb4a279 Brian Norris 2021-07-16 277 /* flush L2 and unlock the VA (resumes the MMU) */
091c39ecb4a279 Brian Norris 2021-07-16 278 if (kbase_hw_has_issue(kbdev, BASE_HW_ISSUE_6367))
091c39ecb4a279 Brian Norris 2021-07-16 279 op = AS_COMMAND_FLUSH;
091c39ecb4a279 Brian Norris 2021-07-16 280 else
091c39ecb4a279 Brian Norris 2021-07-16 281 op = AS_COMMAND_FLUSH_PT;
091c39ecb4a279 Brian Norris 2021-07-16 282
091c39ecb4a279 Brian Norris 2021-07-16 283 kbase_gpu_mmu_handle_write_faulting_as(kbdev, faulting_as,
091c39ecb4a279 Brian Norris 2021-07-16 284 fault_pfn, 1, op);
091c39ecb4a279 Brian Norris 2021-07-16 285
091c39ecb4a279 Brian Norris 2021-07-16 286 kbase_gpu_vm_unlock(kctx);
091c39ecb4a279 Brian Norris 2021-07-16 287 }
091c39ecb4a279 Brian Norris 2021-07-16 288
:::::: The code at line 218 was first introduced by commit
:::::: 091c39ecb4a279d5ecdcfc2442d2a9306fcb0344 CHROMIUM: MALI: import midgard gpu driver from v4.19
:::::: TO: Brian Norris <briannorris(a)chromium.org>
:::::: CC: Commit Bot <commit-bot(a)chromium.org>
---
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 15408/20667] drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_drm.c:79:17: error: no previous prototype for 'viv_gem_prime_export'
by kernel test robot
Hi Xianzhong,
FYI, the error/warning still remains.
tree: https://github.com/Freescale/linux-fslc pr/416
head: 915e71b823c877d351de1cbe650344ef6eace94b
commit: 0cbc4419bd2f810d1689d81f24884bb527bbe5fd [15408/20667] MGS-4929 [#imx-2382] enable vivante drm for linux build
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-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/0cbc4419bd2f810d1689d81f24...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/416
git checkout 0cbc4419bd2f810d1689d81f24884bb527bbe5fd
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.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 >>):
cc1: error: arch/arm/mm: No such file or directory [-Werror=missing-include-dirs]
>> drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_drm.c:79:17: error: no previous prototype for 'viv_gem_prime_export' [-Werror=missing-prototypes]
79 | struct dma_buf *viv_gem_prime_export(struct drm_gem_object *gem_obj,
| ^~~~~~~~~~~~~~~~~~~~
>> drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_drm.c:103:24: error: no previous prototype for 'viv_gem_prime_import' [-Werror=missing-prototypes]
103 | struct drm_gem_object *viv_gem_prime_import(struct drm_device *drm,
| ^~~~~~~~~~~~~~~~~~~~
>> drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_drm.c:145:6: error: no previous prototype for 'viv_gem_free_object' [-Werror=missing-prototypes]
145 | void viv_gem_free_object(struct drm_gem_object *gem_obj)
| ^~~~~~~~~~~~~~~~~~~
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_drm.c: In function 'viv_ioctl_gem_create':
>> drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_drm.c:166:9: error: variable 'ret' set but not used [-Werror=unused-but-set-variable]
166 | int ret = 0;
| ^~~
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_drm.c: At top level:
>> drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_drm.c:739:5: error: no previous prototype for 'viv_drm_open' [-Werror=missing-prototypes]
739 | int viv_drm_open(struct drm_device *drm, struct drm_file *file)
| ^~~~~~~~~~~~
>> drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_drm.c:759:6: error: no previous prototype for 'viv_drm_postclose' [-Werror=missing-prototypes]
759 | void viv_drm_postclose(struct drm_device *drm, struct drm_file *file)
| ^~~~~~~~~~~~~~~~~
>> drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_drm.c:814:5: error: no previous prototype for 'viv_drm_probe' [-Werror=missing-prototypes]
814 | int viv_drm_probe(struct device *dev)
| ^~~~~~~~~~~~~
>> drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_drm.c:856:5: error: no previous prototype for 'viv_drm_remove' [-Werror=missing-prototypes]
856 | int viv_drm_remove(struct device *dev)
| ^~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/viv_gem_prime_export +79 drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_drm.c
30638182fdab7c Xianzhong 2019-01-29 77
9821cda5105e7d Richard Liu 2019-12-25 78 #if LINUX_VERSION_CODE >= KERNEL_VERSION(5,4,0)
9821cda5105e7d Richard Liu 2019-12-25 @79 struct dma_buf *viv_gem_prime_export(struct drm_gem_object *gem_obj,
9821cda5105e7d Richard Liu 2019-12-25 80 int flags)
9821cda5105e7d Richard Liu 2019-12-25 81 {
9821cda5105e7d Richard Liu 2019-12-25 82 struct drm_device *drm = gem_obj->dev;
9821cda5105e7d Richard Liu 2019-12-25 83 #else
30638182fdab7c Xianzhong 2019-01-29 84 struct dma_buf *viv_gem_prime_export(struct drm_device *drm,
30638182fdab7c Xianzhong 2019-01-29 85 struct drm_gem_object *gem_obj,
30638182fdab7c Xianzhong 2019-01-29 86 int flags)
30638182fdab7c Xianzhong 2019-01-29 87 {
9821cda5105e7d Richard Liu 2019-12-25 88 #endif
30638182fdab7c Xianzhong 2019-01-29 89 struct viv_gem_object *viv_obj = container_of(gem_obj, struct viv_gem_object, base);
30638182fdab7c Xianzhong 2019-01-29 90 struct dma_buf *dmabuf = gcvNULL;
30638182fdab7c Xianzhong 2019-01-29 91 gckGALDEVICE gal_dev = (gckGALDEVICE)drm->dev_private;
30638182fdab7c Xianzhong 2019-01-29 92
30638182fdab7c Xianzhong 2019-01-29 93 if (gal_dev)
30638182fdab7c Xianzhong 2019-01-29 94 {
30638182fdab7c Xianzhong 2019-01-29 95 gckKERNEL kernel = gal_dev->device->map[gal_dev->device->defaultHwType].kernels[0];
e9371a70921300 Minjie Zhuang 2019-09-23 96 gcmkVERIFY_OK(gckVIDMEM_NODE_Export(kernel, viv_obj->node_object, flags,
30638182fdab7c Xianzhong 2019-01-29 97 (gctPOINTER*)&dmabuf, gcvNULL));
30638182fdab7c Xianzhong 2019-01-29 98 }
30638182fdab7c Xianzhong 2019-01-29 99
30638182fdab7c Xianzhong 2019-01-29 100 return dmabuf;
30638182fdab7c Xianzhong 2019-01-29 101 }
30638182fdab7c Xianzhong 2019-01-29 102
30638182fdab7c Xianzhong 2019-01-29 @103 struct drm_gem_object *viv_gem_prime_import(struct drm_device *drm,
30638182fdab7c Xianzhong 2019-01-29 104 struct dma_buf *dmabuf)
30638182fdab7c Xianzhong 2019-01-29 105 {
30638182fdab7c Xianzhong 2019-01-29 106 struct drm_gem_object *gem_obj = gcvNULL;
30638182fdab7c Xianzhong 2019-01-29 107 struct viv_gem_object *viv_obj;
30638182fdab7c Xianzhong 2019-01-29 108
30638182fdab7c Xianzhong 2019-01-29 109 gcsHAL_INTERFACE iface;
30638182fdab7c Xianzhong 2019-01-29 110 gckGALDEVICE gal_dev;
30638182fdab7c Xianzhong 2019-01-29 111 gckKERNEL kernel;
30638182fdab7c Xianzhong 2019-01-29 112 gctUINT32 processID;
30638182fdab7c Xianzhong 2019-01-29 113 gckVIDMEM_NODE nodeObject;
30638182fdab7c Xianzhong 2019-01-29 114 gceSTATUS status = gcvSTATUS_OK;
30638182fdab7c Xianzhong 2019-01-29 115
30638182fdab7c Xianzhong 2019-01-29 116 gal_dev = (gckGALDEVICE)drm->dev_private;
30638182fdab7c Xianzhong 2019-01-29 117 if (!gal_dev)
30638182fdab7c Xianzhong 2019-01-29 118 {
30638182fdab7c Xianzhong 2019-01-29 119 gcmkONERROR(gcvSTATUS_INVALID_ARGUMENT);
30638182fdab7c Xianzhong 2019-01-29 120 }
30638182fdab7c Xianzhong 2019-01-29 121
30638182fdab7c Xianzhong 2019-01-29 122 gckOS_ZeroMemory(&iface, sizeof(iface));
30638182fdab7c Xianzhong 2019-01-29 123 iface.command = gcvHAL_WRAP_USER_MEMORY;
30638182fdab7c Xianzhong 2019-01-29 124 iface.hardwareType = gal_dev->device->defaultHwType;
30638182fdab7c Xianzhong 2019-01-29 125 iface.u.WrapUserMemory.desc.flag = gcvALLOC_FLAG_DMABUF;
30638182fdab7c Xianzhong 2019-01-29 126 iface.u.WrapUserMemory.desc.handle = -1;
30638182fdab7c Xianzhong 2019-01-29 127 iface.u.WrapUserMemory.desc.dmabuf = gcmPTR_TO_UINT64(dmabuf);
30638182fdab7c Xianzhong 2019-01-29 128 gcmkONERROR(gckDEVICE_Dispatch(gal_dev->device, &iface));
30638182fdab7c Xianzhong 2019-01-29 129
30638182fdab7c Xianzhong 2019-01-29 130 kernel = gal_dev->device->map[gal_dev->device->defaultHwType].kernels[0];
30638182fdab7c Xianzhong 2019-01-29 131 gcmkONERROR(gckOS_GetProcessID(&processID));
30638182fdab7c Xianzhong 2019-01-29 132 gcmkONERROR(gckVIDMEM_HANDLE_Lookup(kernel, processID, iface.u.WrapUserMemory.node, &nodeObject));
30638182fdab7c Xianzhong 2019-01-29 133
30638182fdab7c Xianzhong 2019-01-29 134 /* ioctl output */
30638182fdab7c Xianzhong 2019-01-29 135 gem_obj = kzalloc(sizeof(struct viv_gem_object), GFP_KERNEL);
30638182fdab7c Xianzhong 2019-01-29 136 drm_gem_private_object_init(drm, gem_obj, dmabuf->size);
30638182fdab7c Xianzhong 2019-01-29 137 viv_obj = container_of(gem_obj, struct viv_gem_object, base);
30638182fdab7c Xianzhong 2019-01-29 138 viv_obj->node_handle = iface.u.WrapUserMemory.node;
30638182fdab7c Xianzhong 2019-01-29 139 viv_obj->node_object = nodeObject;
30638182fdab7c Xianzhong 2019-01-29 140
30638182fdab7c Xianzhong 2019-01-29 141 OnError:
30638182fdab7c Xianzhong 2019-01-29 142 return gem_obj;
30638182fdab7c Xianzhong 2019-01-29 143 }
30638182fdab7c Xianzhong 2019-01-29 144
30638182fdab7c Xianzhong 2019-01-29 @145 void viv_gem_free_object(struct drm_gem_object *gem_obj)
30638182fdab7c Xianzhong 2019-01-29 146 {
30638182fdab7c Xianzhong 2019-01-29 147 struct viv_gem_object *viv_obj = container_of(gem_obj, struct viv_gem_object, base);
30638182fdab7c Xianzhong 2019-01-29 148 struct drm_device *drm = gem_obj->dev;
30638182fdab7c Xianzhong 2019-01-29 149
30638182fdab7c Xianzhong 2019-01-29 150 gcsHAL_INTERFACE iface;
30638182fdab7c Xianzhong 2019-01-29 151 gckGALDEVICE gal_dev = (gckGALDEVICE)drm->dev_private;
30638182fdab7c Xianzhong 2019-01-29 152
30638182fdab7c Xianzhong 2019-01-29 153 gckOS_ZeroMemory(&iface, sizeof(iface));
30638182fdab7c Xianzhong 2019-01-29 154 iface.command = gcvHAL_RELEASE_VIDEO_MEMORY;
30638182fdab7c Xianzhong 2019-01-29 155 iface.hardwareType = gal_dev->device->defaultHwType;
30638182fdab7c Xianzhong 2019-01-29 156 iface.u.ReleaseVideoMemory.node = viv_obj->node_handle;
30638182fdab7c Xianzhong 2019-01-29 157 gcmkVERIFY_OK(gckDEVICE_Dispatch(gal_dev->device, &iface));
30638182fdab7c Xianzhong 2019-01-29 158
30638182fdab7c Xianzhong 2019-01-29 159 drm_gem_object_release(gem_obj);
30638182fdab7c Xianzhong 2019-01-29 160 kfree(gem_obj);
30638182fdab7c Xianzhong 2019-01-29 161 }
30638182fdab7c Xianzhong 2019-01-29 162
30638182fdab7c Xianzhong 2019-01-29 163 static int viv_ioctl_gem_create(struct drm_device *drm, void *data,
30638182fdab7c Xianzhong 2019-01-29 164 struct drm_file *file)
30638182fdab7c Xianzhong 2019-01-29 165 {
30638182fdab7c Xianzhong 2019-01-29 @166 int ret = 0;
30638182fdab7c Xianzhong 2019-01-29 167 struct drm_viv_gem_create *args = (struct drm_viv_gem_create*)data;
30638182fdab7c Xianzhong 2019-01-29 168 struct drm_gem_object *gem_obj = gcvNULL;
30638182fdab7c Xianzhong 2019-01-29 169 struct viv_gem_object *viv_obj = gcvNULL;
30638182fdab7c Xianzhong 2019-01-29 170
30638182fdab7c Xianzhong 2019-01-29 171 gcsHAL_INTERFACE iface;
30638182fdab7c Xianzhong 2019-01-29 172 gckGALDEVICE gal_dev;
30638182fdab7c Xianzhong 2019-01-29 173 gckKERNEL kernel;
30638182fdab7c Xianzhong 2019-01-29 174 gctUINT32 processID;
30638182fdab7c Xianzhong 2019-01-29 175 gckVIDMEM_NODE nodeObject;
30638182fdab7c Xianzhong 2019-01-29 176 gctUINT32 flags = gcvALLOC_FLAG_DMABUF_EXPORTABLE;
30638182fdab7c Xianzhong 2019-01-29 177 gceSTATUS status = gcvSTATUS_OK;
e9371a70921300 Minjie Zhuang 2019-09-23 178 gctUINT64 alignSize = PAGE_ALIGN(args->size);
30638182fdab7c Xianzhong 2019-01-29 179
30638182fdab7c Xianzhong 2019-01-29 180 gal_dev = (gckGALDEVICE)drm->dev_private;
30638182fdab7c Xianzhong 2019-01-29 181 if (!gal_dev)
30638182fdab7c Xianzhong 2019-01-29 182 {
30638182fdab7c Xianzhong 2019-01-29 183 gcmkONERROR(gcvSTATUS_INVALID_ARGUMENT);
30638182fdab7c Xianzhong 2019-01-29 184 }
30638182fdab7c Xianzhong 2019-01-29 185
30638182fdab7c Xianzhong 2019-01-29 186 if (args->flags & DRM_VIV_GEM_CONTIGUOUS)
30638182fdab7c Xianzhong 2019-01-29 187 {
30638182fdab7c Xianzhong 2019-01-29 188 flags |= gcvALLOC_FLAG_CONTIGUOUS;
30638182fdab7c Xianzhong 2019-01-29 189 }
30638182fdab7c Xianzhong 2019-01-29 190 if (args->flags & DRM_VIV_GEM_CACHED)
30638182fdab7c Xianzhong 2019-01-29 191 {
30638182fdab7c Xianzhong 2019-01-29 192 flags |= gcvALLOC_FLAG_CACHEABLE;
30638182fdab7c Xianzhong 2019-01-29 193 }
30638182fdab7c Xianzhong 2019-01-29 194 if (args->flags & DRM_VIV_GEM_SECURE)
30638182fdab7c Xianzhong 2019-01-29 195 {
30638182fdab7c Xianzhong 2019-01-29 196 flags |= gcvALLOC_FLAG_SECURITY;
30638182fdab7c Xianzhong 2019-01-29 197 }
30638182fdab7c Xianzhong 2019-01-29 198 if (args->flags & DRM_VIV_GEM_CMA_LIMIT)
30638182fdab7c Xianzhong 2019-01-29 199 {
30638182fdab7c Xianzhong 2019-01-29 200 flags |= gcvALLOC_FLAG_CMA_LIMIT;
30638182fdab7c Xianzhong 2019-01-29 201 }
30638182fdab7c Xianzhong 2019-01-29 202
30638182fdab7c Xianzhong 2019-01-29 203 gckOS_ZeroMemory(&iface, sizeof(iface));
30638182fdab7c Xianzhong 2019-01-29 204 iface.command = gcvHAL_ALLOCATE_LINEAR_VIDEO_MEMORY;
30638182fdab7c Xianzhong 2019-01-29 205 iface.hardwareType = gal_dev->device->defaultHwType;
e9371a70921300 Minjie Zhuang 2019-09-23 206 iface.u.AllocateLinearVideoMemory.bytes = alignSize;
30638182fdab7c Xianzhong 2019-01-29 207 iface.u.AllocateLinearVideoMemory.alignment = 256;
e9371a70921300 Minjie Zhuang 2019-09-23 208 iface.u.AllocateLinearVideoMemory.type = gcvVIDMEM_TYPE_GENERIC;
30638182fdab7c Xianzhong 2019-01-29 209 iface.u.AllocateLinearVideoMemory.flag = flags;
e9371a70921300 Minjie Zhuang 2019-09-23 210 iface.u.AllocateLinearVideoMemory.pool = gcvPOOL_DEFAULT;
30638182fdab7c Xianzhong 2019-01-29 211 gcmkONERROR(gckDEVICE_Dispatch(gal_dev->device, &iface));
30638182fdab7c Xianzhong 2019-01-29 212
30638182fdab7c Xianzhong 2019-01-29 213 kernel = gal_dev->device->map[gal_dev->device->defaultHwType].kernels[0];
30638182fdab7c Xianzhong 2019-01-29 214 gcmkONERROR(gckOS_GetProcessID(&processID));
30638182fdab7c Xianzhong 2019-01-29 215 gcmkONERROR(gckVIDMEM_HANDLE_Lookup(kernel, processID, iface.u.AllocateLinearVideoMemory.node, &nodeObject));
30638182fdab7c Xianzhong 2019-01-29 216
30638182fdab7c Xianzhong 2019-01-29 217 /* ioctl output */
30638182fdab7c Xianzhong 2019-01-29 218 gem_obj = kzalloc(sizeof(struct viv_gem_object), GFP_KERNEL);
e9371a70921300 Minjie Zhuang 2019-09-23 219 drm_gem_private_object_init(drm, gem_obj, (size_t)alignSize);
30638182fdab7c Xianzhong 2019-01-29 220 ret = drm_gem_handle_create(file, gem_obj, &args->handle);
30638182fdab7c Xianzhong 2019-01-29 221
30638182fdab7c Xianzhong 2019-01-29 222 viv_obj = container_of(gem_obj, struct viv_gem_object, base);
30638182fdab7c Xianzhong 2019-01-29 223 viv_obj->node_handle = iface.u.AllocateLinearVideoMemory.node;
30638182fdab7c Xianzhong 2019-01-29 224 viv_obj->node_object = nodeObject;
30638182fdab7c Xianzhong 2019-01-29 225 viv_obj->cacheable = flags & gcvALLOC_FLAG_CACHEABLE;
30638182fdab7c Xianzhong 2019-01-29 226
30638182fdab7c Xianzhong 2019-01-29 227 /* drop reference from allocate - handle holds it now */
30638182fdab7c Xianzhong 2019-01-29 228 drm_gem_object_unreference_unlocked(gem_obj);
30638182fdab7c Xianzhong 2019-01-29 229
30638182fdab7c Xianzhong 2019-01-29 230 OnError:
30638182fdab7c Xianzhong 2019-01-29 231 return gcmIS_ERROR(status) ? -ENOTTY : 0;
30638182fdab7c Xianzhong 2019-01-29 232 }
30638182fdab7c Xianzhong 2019-01-29 233
:::::: The code at line 79 was first introduced by commit
:::::: 9821cda5105e7d6bf026a4f21f927745a3f6b931 MA-16168 [#imx-1903] Fix GPU driver build error and not work issue on 5.4 kernel
:::::: TO: Richard Liu <xuegang.liu(a)nxp.com>
:::::: CC: Xianzhong <xianzhong.li(a)nxp.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[chrome-os:chromeos-5.10 18970/18992] drivers/gpu/arm/midgard/mali_kbase_mem_linux.c:2113:9: error: duplicate case value
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head: aa781ee2afbcc219c70046dc804b319565e18372
commit: 38d69e2e44ad116b6859968ea996a2701e006cd1 [18970/18992] CHROMIUM: MALI: fixup midgard compilation for kernel 5.10
config: arm64-randconfig-r021-20210817 (attached as .config)
compiler: aarch64-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
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.10
git checkout 38d69e2e44ad116b6859968ea996a2701e006cd1
# 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=arm64 SHELL=/bin/bash drivers/gpu/arm/midgard/
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 >>):
cc1: warning: -Idrivers/gpu/arm/midgard/../../../base: No such file or directory [-Wmissing-include-dirs]
drivers/gpu/arm/midgard/mali_kbase_mmu.c: In function 'kbasep_as_poke_timer_callback':
>> drivers/gpu/arm/midgard/mali_kbase_mmu.c:2457:13: warning: variable 'queue_work_ret' set but not used [-Wunused-but-set-variable]
2457 | int queue_work_ret;
| ^~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_kbase_mmu.c: In function 'kbase_as_poking_timer_release_atom':
drivers/gpu/arm/midgard/mali_kbase_mmu.c:2547:29: warning: variable 'queue_work_ret' set but not used [-Wunused-but-set-variable]
2547 | int queue_work_ret;
| ^~~~~~~~~~~~~~
In file included from drivers/gpu/arm/midgard/mali_kbase_defs.h:37,
from drivers/gpu/arm/midgard/mali_kbase.h:57,
from drivers/gpu/arm/midgard/mali_kbase_mmu.c:33:
At top level:
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1234:33: warning: 'base_hw_issues_model_tEGx' defined but not used [-Wunused-const-variable=]
1234 | static const enum base_hw_issue base_hw_issues_model_tEGx[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1227:33: warning: 'base_hw_issues_tEGx_r0p0' defined but not used [-Wunused-const-variable=]
1227 | static const enum base_hw_issue base_hw_issues_tEGx_r0p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1219:33: warning: 'base_hw_issues_model_tBOx' defined but not used [-Wunused-const-variable=]
1219 | static const enum base_hw_issue base_hw_issues_model_tBOx[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1212:33: warning: 'base_hw_issues_tBOx_r0p0' defined but not used [-Wunused-const-variable=]
1212 | static const enum base_hw_issue base_hw_issues_tBOx_r0p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1204:33: warning: 'base_hw_issues_model_tTRx' defined but not used [-Wunused-const-variable=]
1204 | static const enum base_hw_issue base_hw_issues_model_tTRx[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1197:33: warning: 'base_hw_issues_tTRx_r0p0' defined but not used [-Wunused-const-variable=]
1197 | static const enum base_hw_issue base_hw_issues_tTRx_r0p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1189:33: warning: 'base_hw_issues_model_tKAx' defined but not used [-Wunused-const-variable=]
1189 | static const enum base_hw_issue base_hw_issues_model_tKAx[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1182:33: warning: 'base_hw_issues_tKAx_r0p0' defined but not used [-Wunused-const-variable=]
1182 | static const enum base_hw_issue base_hw_issues_tKAx_r0p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1174:33: warning: 'base_hw_issues_model_tGOx' defined but not used [-Wunused-const-variable=]
1174 | static const enum base_hw_issue base_hw_issues_model_tGOx[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1166:33: warning: 'base_hw_issues_tGOx_r1p0' defined but not used [-Wunused-const-variable=]
1166 | static const enum base_hw_issue base_hw_issues_tGOx_r1p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1158:33: warning: 'base_hw_issues_tGOx_r0p0' defined but not used [-Wunused-const-variable=]
1158 | static const enum base_hw_issue base_hw_issues_tGOx_r0p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1150:33: warning: 'base_hw_issues_model_tNOx' defined but not used [-Wunused-const-variable=]
1150 | static const enum base_hw_issue base_hw_issues_model_tNOx[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1142:33: warning: 'base_hw_issues_tNOx_r0p0' defined but not used [-Wunused-const-variable=]
1142 | static const enum base_hw_issue base_hw_issues_tNOx_r0p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1134:33: warning: 'base_hw_issues_model_tDVx' defined but not used [-Wunused-const-variable=]
1134 | static const enum base_hw_issue base_hw_issues_model_tDVx[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1127:33: warning: 'base_hw_issues_tDVx_r0p0' defined but not used [-Wunused-const-variable=]
1127 | static const enum base_hw_issue base_hw_issues_tDVx_r0p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1119:33: warning: 'base_hw_issues_model_tSIx' defined but not used [-Wunused-const-variable=]
1119 | static const enum base_hw_issue base_hw_issues_model_tSIx[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1112:33: warning: 'base_hw_issues_tSIx_r1p1' defined but not used [-Wunused-const-variable=]
1112 | static const enum base_hw_issue base_hw_issues_tSIx_r1p1[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1104:33: warning: 'base_hw_issues_tSIx_r1p0' defined but not used [-Wunused-const-variable=]
1104 | static const enum base_hw_issue base_hw_issues_tSIx_r1p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1096:33: warning: 'base_hw_issues_tSIx_r0p1' defined but not used [-Wunused-const-variable=]
1096 | static const enum base_hw_issue base_hw_issues_tSIx_r0p1[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1088:33: warning: 'base_hw_issues_tSIx_r0p0' defined but not used [-Wunused-const-variable=]
1088 | static const enum base_hw_issue base_hw_issues_tSIx_r0p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1079:33: warning: 'base_hw_issues_model_tHEx' defined but not used [-Wunused-const-variable=]
1079 | static const enum base_hw_issue base_hw_issues_model_tHEx[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1070:33: warning: 'base_hw_issues_tHEx_r0p3' defined but not used [-Wunused-const-variable=]
1070 | static const enum base_hw_issue base_hw_issues_tHEx_r0p3[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1060:33: warning: 'base_hw_issues_tHEx_r0p2' defined but not used [-Wunused-const-variable=]
1060 | static const enum base_hw_issue base_hw_issues_tHEx_r0p2[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1050:33: warning: 'base_hw_issues_tHEx_r0p1' defined but not used [-Wunused-const-variable=]
1050 | static const enum base_hw_issue base_hw_issues_tHEx_r0p1[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1040:33: warning: 'base_hw_issues_tHEx_r0p0' defined but not used [-Wunused-const-variable=]
1040 | static const enum base_hw_issue base_hw_issues_tHEx_r0p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1026:33: warning: 'base_hw_issues_model_tMIx' defined but not used [-Wunused-const-variable=]
1026 | static const enum base_hw_issue base_hw_issues_model_tMIx[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1009:33: warning: 'base_hw_issues_tMIx_r0p1' defined but not used [-Wunused-const-variable=]
1009 | static const enum base_hw_issue base_hw_issues_tMIx_r0p1[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:992:33: warning: 'base_hw_issues_tMIx_r0p0' defined but not used [-Wunused-const-variable=]
992 | static const enum base_hw_issue base_hw_issues_tMIx_r0p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:975:33: warning: 'base_hw_issues_tMIx_r0p0_05dev0' defined but not used [-Wunused-const-variable=]
975 | static const enum base_hw_issue base_hw_issues_tMIx_r0p0_05dev0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:960:33: warning: 'base_hw_issues_model_t82x' defined but not used [-Wunused-const-variable=]
960 | static const enum base_hw_issue base_hw_issues_model_t82x[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
--
cc1: warning: -Idrivers/gpu/arm/midgard/../../../base: No such file or directory [-Wmissing-include-dirs]
drivers/gpu/arm/midgard/mali_kbase_jd.c: In function 'jd_cancel_worker':
>> drivers/gpu/arm/midgard/mali_kbase_jd.c:1420:14: warning: variable 'need_to_try_schedule_context' set but not used [-Wunused-but-set-variable]
1420 | bool need_to_try_schedule_context;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/arm/midgard/mali_kbase_defs.h:37,
from drivers/gpu/arm/midgard/mali_kbase.h:57,
from drivers/gpu/arm/midgard/mali_kbase_jd.c:31:
At top level:
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1234:33: warning: 'base_hw_issues_model_tEGx' defined but not used [-Wunused-const-variable=]
1234 | static const enum base_hw_issue base_hw_issues_model_tEGx[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1227:33: warning: 'base_hw_issues_tEGx_r0p0' defined but not used [-Wunused-const-variable=]
1227 | static const enum base_hw_issue base_hw_issues_tEGx_r0p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1219:33: warning: 'base_hw_issues_model_tBOx' defined but not used [-Wunused-const-variable=]
1219 | static const enum base_hw_issue base_hw_issues_model_tBOx[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1212:33: warning: 'base_hw_issues_tBOx_r0p0' defined but not used [-Wunused-const-variable=]
1212 | static const enum base_hw_issue base_hw_issues_tBOx_r0p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1204:33: warning: 'base_hw_issues_model_tTRx' defined but not used [-Wunused-const-variable=]
1204 | static const enum base_hw_issue base_hw_issues_model_tTRx[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1197:33: warning: 'base_hw_issues_tTRx_r0p0' defined but not used [-Wunused-const-variable=]
1197 | static const enum base_hw_issue base_hw_issues_tTRx_r0p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1189:33: warning: 'base_hw_issues_model_tKAx' defined but not used [-Wunused-const-variable=]
1189 | static const enum base_hw_issue base_hw_issues_model_tKAx[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1182:33: warning: 'base_hw_issues_tKAx_r0p0' defined but not used [-Wunused-const-variable=]
1182 | static const enum base_hw_issue base_hw_issues_tKAx_r0p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1174:33: warning: 'base_hw_issues_model_tGOx' defined but not used [-Wunused-const-variable=]
1174 | static const enum base_hw_issue base_hw_issues_model_tGOx[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1166:33: warning: 'base_hw_issues_tGOx_r1p0' defined but not used [-Wunused-const-variable=]
1166 | static const enum base_hw_issue base_hw_issues_tGOx_r1p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1158:33: warning: 'base_hw_issues_tGOx_r0p0' defined but not used [-Wunused-const-variable=]
1158 | static const enum base_hw_issue base_hw_issues_tGOx_r0p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1150:33: warning: 'base_hw_issues_model_tNOx' defined but not used [-Wunused-const-variable=]
1150 | static const enum base_hw_issue base_hw_issues_model_tNOx[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1142:33: warning: 'base_hw_issues_tNOx_r0p0' defined but not used [-Wunused-const-variable=]
1142 | static const enum base_hw_issue base_hw_issues_tNOx_r0p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1134:33: warning: 'base_hw_issues_model_tDVx' defined but not used [-Wunused-const-variable=]
1134 | static const enum base_hw_issue base_hw_issues_model_tDVx[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1127:33: warning: 'base_hw_issues_tDVx_r0p0' defined but not used [-Wunused-const-variable=]
1127 | static const enum base_hw_issue base_hw_issues_tDVx_r0p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1119:33: warning: 'base_hw_issues_model_tSIx' defined but not used [-Wunused-const-variable=]
1119 | static const enum base_hw_issue base_hw_issues_model_tSIx[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1112:33: warning: 'base_hw_issues_tSIx_r1p1' defined but not used [-Wunused-const-variable=]
1112 | static const enum base_hw_issue base_hw_issues_tSIx_r1p1[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1104:33: warning: 'base_hw_issues_tSIx_r1p0' defined but not used [-Wunused-const-variable=]
1104 | static const enum base_hw_issue base_hw_issues_tSIx_r1p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1096:33: warning: 'base_hw_issues_tSIx_r0p1' defined but not used [-Wunused-const-variable=]
1096 | static const enum base_hw_issue base_hw_issues_tSIx_r0p1[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1088:33: warning: 'base_hw_issues_tSIx_r0p0' defined but not used [-Wunused-const-variable=]
1088 | static const enum base_hw_issue base_hw_issues_tSIx_r0p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1079:33: warning: 'base_hw_issues_model_tHEx' defined but not used [-Wunused-const-variable=]
1079 | static const enum base_hw_issue base_hw_issues_model_tHEx[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1070:33: warning: 'base_hw_issues_tHEx_r0p3' defined but not used [-Wunused-const-variable=]
1070 | static const enum base_hw_issue base_hw_issues_tHEx_r0p3[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1060:33: warning: 'base_hw_issues_tHEx_r0p2' defined but not used [-Wunused-const-variable=]
1060 | static const enum base_hw_issue base_hw_issues_tHEx_r0p2[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1050:33: warning: 'base_hw_issues_tHEx_r0p1' defined but not used [-Wunused-const-variable=]
1050 | static const enum base_hw_issue base_hw_issues_tHEx_r0p1[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1040:33: warning: 'base_hw_issues_tHEx_r0p0' defined but not used [-Wunused-const-variable=]
1040 | static const enum base_hw_issue base_hw_issues_tHEx_r0p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1026:33: warning: 'base_hw_issues_model_tMIx' defined but not used [-Wunused-const-variable=]
1026 | static const enum base_hw_issue base_hw_issues_model_tMIx[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1009:33: warning: 'base_hw_issues_tMIx_r0p1' defined but not used [-Wunused-const-variable=]
1009 | static const enum base_hw_issue base_hw_issues_tMIx_r0p1[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:992:33: warning: 'base_hw_issues_tMIx_r0p0' defined but not used [-Wunused-const-variable=]
992 | static const enum base_hw_issue base_hw_issues_tMIx_r0p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:975:33: warning: 'base_hw_issues_tMIx_r0p0_05dev0' defined but not used [-Wunused-const-variable=]
975 | static const enum base_hw_issue base_hw_issues_tMIx_r0p0_05dev0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:960:33: warning: 'base_hw_issues_model_t82x' defined but not used [-Wunused-const-variable=]
960 | static const enum base_hw_issue base_hw_issues_model_t82x[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:939:33: warning: 'base_hw_issues_t82x_r1p0' defined but not used [-Wunused-const-variable=]
939 | static const enum base_hw_issue base_hw_issues_t82x_r1p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:917:33: warning: 'base_hw_issues_t82x_r0p1' defined but not used [-Wunused-const-variable=]
--
cc1: warning: -Idrivers/gpu/arm/midgard/../../../base: No such file or directory [-Wmissing-include-dirs]
drivers/gpu/arm/midgard/mali_kbase_jd_debugfs.c: In function 'kbase_jd_debugfs_fence_info':
>> drivers/gpu/arm/midgard/mali_kbase_jd_debugfs.c:49:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
49 | if (0 == res) {
| ^
drivers/gpu/arm/midgard/mali_kbase_jd_debugfs.c:54:9: note: here
54 | case BASE_JD_REQ_SOFT_FENCE_WAIT:
| ^~~~
In file included from drivers/gpu/arm/midgard/mali_kbase_defs.h:37,
from drivers/gpu/arm/midgard/mali_kbase.h:57,
from drivers/gpu/arm/midgard/mali_kbase_jd_debugfs.c:26:
At top level:
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1234:33: warning: 'base_hw_issues_model_tEGx' defined but not used [-Wunused-const-variable=]
1234 | static const enum base_hw_issue base_hw_issues_model_tEGx[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1227:33: warning: 'base_hw_issues_tEGx_r0p0' defined but not used [-Wunused-const-variable=]
1227 | static const enum base_hw_issue base_hw_issues_tEGx_r0p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1219:33: warning: 'base_hw_issues_model_tBOx' defined but not used [-Wunused-const-variable=]
1219 | static const enum base_hw_issue base_hw_issues_model_tBOx[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1212:33: warning: 'base_hw_issues_tBOx_r0p0' defined but not used [-Wunused-const-variable=]
1212 | static const enum base_hw_issue base_hw_issues_tBOx_r0p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1204:33: warning: 'base_hw_issues_model_tTRx' defined but not used [-Wunused-const-variable=]
1204 | static const enum base_hw_issue base_hw_issues_model_tTRx[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1197:33: warning: 'base_hw_issues_tTRx_r0p0' defined but not used [-Wunused-const-variable=]
1197 | static const enum base_hw_issue base_hw_issues_tTRx_r0p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1189:33: warning: 'base_hw_issues_model_tKAx' defined but not used [-Wunused-const-variable=]
1189 | static const enum base_hw_issue base_hw_issues_model_tKAx[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1182:33: warning: 'base_hw_issues_tKAx_r0p0' defined but not used [-Wunused-const-variable=]
1182 | static const enum base_hw_issue base_hw_issues_tKAx_r0p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1174:33: warning: 'base_hw_issues_model_tGOx' defined but not used [-Wunused-const-variable=]
1174 | static const enum base_hw_issue base_hw_issues_model_tGOx[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1166:33: warning: 'base_hw_issues_tGOx_r1p0' defined but not used [-Wunused-const-variable=]
1166 | static const enum base_hw_issue base_hw_issues_tGOx_r1p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1158:33: warning: 'base_hw_issues_tGOx_r0p0' defined but not used [-Wunused-const-variable=]
1158 | static const enum base_hw_issue base_hw_issues_tGOx_r0p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1150:33: warning: 'base_hw_issues_model_tNOx' defined but not used [-Wunused-const-variable=]
1150 | static const enum base_hw_issue base_hw_issues_model_tNOx[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1142:33: warning: 'base_hw_issues_tNOx_r0p0' defined but not used [-Wunused-const-variable=]
1142 | static const enum base_hw_issue base_hw_issues_tNOx_r0p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1134:33: warning: 'base_hw_issues_model_tDVx' defined but not used [-Wunused-const-variable=]
1134 | static const enum base_hw_issue base_hw_issues_model_tDVx[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1127:33: warning: 'base_hw_issues_tDVx_r0p0' defined but not used [-Wunused-const-variable=]
1127 | static const enum base_hw_issue base_hw_issues_tDVx_r0p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1119:33: warning: 'base_hw_issues_model_tSIx' defined but not used [-Wunused-const-variable=]
1119 | static const enum base_hw_issue base_hw_issues_model_tSIx[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1112:33: warning: 'base_hw_issues_tSIx_r1p1' defined but not used [-Wunused-const-variable=]
1112 | static const enum base_hw_issue base_hw_issues_tSIx_r1p1[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1104:33: warning: 'base_hw_issues_tSIx_r1p0' defined but not used [-Wunused-const-variable=]
1104 | static const enum base_hw_issue base_hw_issues_tSIx_r1p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1096:33: warning: 'base_hw_issues_tSIx_r0p1' defined but not used [-Wunused-const-variable=]
1096 | static const enum base_hw_issue base_hw_issues_tSIx_r0p1[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1088:33: warning: 'base_hw_issues_tSIx_r0p0' defined but not used [-Wunused-const-variable=]
1088 | static const enum base_hw_issue base_hw_issues_tSIx_r0p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1079:33: warning: 'base_hw_issues_model_tHEx' defined but not used [-Wunused-const-variable=]
1079 | static const enum base_hw_issue base_hw_issues_model_tHEx[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1070:33: warning: 'base_hw_issues_tHEx_r0p3' defined but not used [-Wunused-const-variable=]
1070 | static const enum base_hw_issue base_hw_issues_tHEx_r0p3[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1060:33: warning: 'base_hw_issues_tHEx_r0p2' defined but not used [-Wunused-const-variable=]
1060 | static const enum base_hw_issue base_hw_issues_tHEx_r0p2[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1050:33: warning: 'base_hw_issues_tHEx_r0p1' defined but not used [-Wunused-const-variable=]
1050 | static const enum base_hw_issue base_hw_issues_tHEx_r0p1[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1040:33: warning: 'base_hw_issues_tHEx_r0p0' defined but not used [-Wunused-const-variable=]
1040 | static const enum base_hw_issue base_hw_issues_tHEx_r0p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1026:33: warning: 'base_hw_issues_model_tMIx' defined but not used [-Wunused-const-variable=]
1026 | static const enum base_hw_issue base_hw_issues_model_tMIx[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:1009:33: warning: 'base_hw_issues_tMIx_r0p1' defined but not used [-Wunused-const-variable=]
1009 | static const enum base_hw_issue base_hw_issues_tMIx_r0p1[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:992:33: warning: 'base_hw_issues_tMIx_r0p0' defined but not used [-Wunused-const-variable=]
992 | static const enum base_hw_issue base_hw_issues_tMIx_r0p0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:975:33: warning: 'base_hw_issues_tMIx_r0p0_05dev0' defined but not used [-Wunused-const-variable=]
975 | static const enum base_hw_issue base_hw_issues_tMIx_r0p0_05dev0[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:960:33: warning: 'base_hw_issues_model_t82x' defined but not used [-Wunused-const-variable=]
960 | static const enum base_hw_issue base_hw_issues_model_t82x[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h:939:33: warning: 'base_hw_issues_t82x_r1p0' defined but not used [-Wunused-const-variable=]
..
vim +2113 drivers/gpu/arm/midgard/mali_kbase_mem_linux.c
091c39ecb4a279 Brian Norris 2021-07-16 2063
091c39ecb4a279 Brian Norris 2021-07-16 2064 int kbase_mmap(struct file *file, struct vm_area_struct *vma)
091c39ecb4a279 Brian Norris 2021-07-16 2065 {
091c39ecb4a279 Brian Norris 2021-07-16 2066 struct kbase_context *kctx = file->private_data;
091c39ecb4a279 Brian Norris 2021-07-16 2067 struct kbase_va_region *reg = NULL;
091c39ecb4a279 Brian Norris 2021-07-16 2068 void *kaddr = NULL;
091c39ecb4a279 Brian Norris 2021-07-16 2069 size_t nr_pages = (vma->vm_end - vma->vm_start) >> PAGE_SHIFT;
091c39ecb4a279 Brian Norris 2021-07-16 2070 int err = 0;
091c39ecb4a279 Brian Norris 2021-07-16 2071 int free_on_close = 0;
091c39ecb4a279 Brian Norris 2021-07-16 2072 struct device *dev = kctx->kbdev->dev;
091c39ecb4a279 Brian Norris 2021-07-16 2073 size_t aligned_offset = 0;
091c39ecb4a279 Brian Norris 2021-07-16 2074
091c39ecb4a279 Brian Norris 2021-07-16 2075 dev_dbg(dev, "kbase_mmap\n");
091c39ecb4a279 Brian Norris 2021-07-16 2076
091c39ecb4a279 Brian Norris 2021-07-16 2077 if (!(vma->vm_flags & VM_READ))
091c39ecb4a279 Brian Norris 2021-07-16 2078 vma->vm_flags &= ~VM_MAYREAD;
091c39ecb4a279 Brian Norris 2021-07-16 2079 if (!(vma->vm_flags & VM_WRITE))
091c39ecb4a279 Brian Norris 2021-07-16 2080 vma->vm_flags &= ~VM_MAYWRITE;
091c39ecb4a279 Brian Norris 2021-07-16 2081
091c39ecb4a279 Brian Norris 2021-07-16 2082 if (0 == nr_pages) {
091c39ecb4a279 Brian Norris 2021-07-16 2083 err = -EINVAL;
091c39ecb4a279 Brian Norris 2021-07-16 2084 goto out;
091c39ecb4a279 Brian Norris 2021-07-16 2085 }
091c39ecb4a279 Brian Norris 2021-07-16 2086
091c39ecb4a279 Brian Norris 2021-07-16 2087 if (!(vma->vm_flags & VM_SHARED)) {
091c39ecb4a279 Brian Norris 2021-07-16 2088 err = -EINVAL;
091c39ecb4a279 Brian Norris 2021-07-16 2089 goto out;
091c39ecb4a279 Brian Norris 2021-07-16 2090 }
091c39ecb4a279 Brian Norris 2021-07-16 2091
091c39ecb4a279 Brian Norris 2021-07-16 2092 kbase_gpu_vm_lock(kctx);
091c39ecb4a279 Brian Norris 2021-07-16 2093
091c39ecb4a279 Brian Norris 2021-07-16 2094 if (vma->vm_pgoff == PFN_DOWN(BASE_MEM_MAP_TRACKING_HANDLE)) {
091c39ecb4a279 Brian Norris 2021-07-16 2095 /* The non-mapped tracking helper page */
091c39ecb4a279 Brian Norris 2021-07-16 2096 err = kbase_tracking_page_setup(kctx, vma);
091c39ecb4a279 Brian Norris 2021-07-16 2097 goto out_unlock;
091c39ecb4a279 Brian Norris 2021-07-16 2098 }
091c39ecb4a279 Brian Norris 2021-07-16 2099
091c39ecb4a279 Brian Norris 2021-07-16 2100 /* if not the MTP, verify that the MTP has been mapped */
091c39ecb4a279 Brian Norris 2021-07-16 2101 rcu_read_lock();
091c39ecb4a279 Brian Norris 2021-07-16 2102 /* catches both when the special page isn't present or
091c39ecb4a279 Brian Norris 2021-07-16 2103 * when we've forked */
091c39ecb4a279 Brian Norris 2021-07-16 2104 if (rcu_dereference(kctx->process_mm) != current->mm) {
091c39ecb4a279 Brian Norris 2021-07-16 2105 err = -EINVAL;
091c39ecb4a279 Brian Norris 2021-07-16 2106 rcu_read_unlock();
091c39ecb4a279 Brian Norris 2021-07-16 2107 goto out_unlock;
091c39ecb4a279 Brian Norris 2021-07-16 2108 }
091c39ecb4a279 Brian Norris 2021-07-16 2109 rcu_read_unlock();
091c39ecb4a279 Brian Norris 2021-07-16 2110
091c39ecb4a279 Brian Norris 2021-07-16 2111 switch (vma->vm_pgoff) {
091c39ecb4a279 Brian Norris 2021-07-16 2112 case PFN_DOWN(BASEP_MEM_INVALID_HANDLE):
091c39ecb4a279 Brian Norris 2021-07-16 @2113 case PFN_DOWN(BASEP_MEM_WRITE_ALLOC_PAGES_HANDLE):
091c39ecb4a279 Brian Norris 2021-07-16 2114 /* Illegal handle for direct map */
091c39ecb4a279 Brian Norris 2021-07-16 2115 err = -EINVAL;
091c39ecb4a279 Brian Norris 2021-07-16 2116 goto out_unlock;
091c39ecb4a279 Brian Norris 2021-07-16 @2117 case PFN_DOWN(BASE_MEM_MMU_DUMP_HANDLE):
091c39ecb4a279 Brian Norris 2021-07-16 2118 /* MMU dump */
091c39ecb4a279 Brian Norris 2021-07-16 2119 err = kbase_mmu_dump_mmap(kctx, vma, ®, &kaddr);
091c39ecb4a279 Brian Norris 2021-07-16 2120 if (0 != err)
091c39ecb4a279 Brian Norris 2021-07-16 2121 goto out_unlock;
091c39ecb4a279 Brian Norris 2021-07-16 2122 /* free the region on munmap */
091c39ecb4a279 Brian Norris 2021-07-16 2123 free_on_close = 1;
091c39ecb4a279 Brian Norris 2021-07-16 2124 break;
091c39ecb4a279 Brian Norris 2021-07-16 2125 case PFN_DOWN(BASE_MEM_COOKIE_BASE) ...
091c39ecb4a279 Brian Norris 2021-07-16 2126 PFN_DOWN(BASE_MEM_FIRST_FREE_ADDRESS) - 1: {
091c39ecb4a279 Brian Norris 2021-07-16 2127 err = kbasep_reg_mmap(kctx, vma, ®, &nr_pages,
091c39ecb4a279 Brian Norris 2021-07-16 2128 &aligned_offset);
091c39ecb4a279 Brian Norris 2021-07-16 2129 if (0 != err)
091c39ecb4a279 Brian Norris 2021-07-16 2130 goto out_unlock;
091c39ecb4a279 Brian Norris 2021-07-16 2131 /* free the region on munmap */
091c39ecb4a279 Brian Norris 2021-07-16 2132 free_on_close = 1;
091c39ecb4a279 Brian Norris 2021-07-16 2133 break;
091c39ecb4a279 Brian Norris 2021-07-16 2134 }
091c39ecb4a279 Brian Norris 2021-07-16 2135 default: {
091c39ecb4a279 Brian Norris 2021-07-16 2136 reg = kbase_region_tracker_find_region_enclosing_address(kctx,
091c39ecb4a279 Brian Norris 2021-07-16 2137 (u64)vma->vm_pgoff << PAGE_SHIFT);
091c39ecb4a279 Brian Norris 2021-07-16 2138
091c39ecb4a279 Brian Norris 2021-07-16 2139 if (!kbase_is_region_invalid_or_free(reg)) {
091c39ecb4a279 Brian Norris 2021-07-16 2140 /* will this mapping overflow the size of the region? */
091c39ecb4a279 Brian Norris 2021-07-16 2141 if (nr_pages > (reg->nr_pages -
091c39ecb4a279 Brian Norris 2021-07-16 2142 (vma->vm_pgoff - reg->start_pfn))) {
091c39ecb4a279 Brian Norris 2021-07-16 2143 err = -ENOMEM;
091c39ecb4a279 Brian Norris 2021-07-16 2144 goto out_unlock;
091c39ecb4a279 Brian Norris 2021-07-16 2145 }
091c39ecb4a279 Brian Norris 2021-07-16 2146
091c39ecb4a279 Brian Norris 2021-07-16 2147 if ((vma->vm_flags & VM_READ &&
091c39ecb4a279 Brian Norris 2021-07-16 2148 !(reg->flags & KBASE_REG_CPU_RD)) ||
091c39ecb4a279 Brian Norris 2021-07-16 2149 (vma->vm_flags & VM_WRITE &&
091c39ecb4a279 Brian Norris 2021-07-16 2150 !(reg->flags & KBASE_REG_CPU_WR))) {
091c39ecb4a279 Brian Norris 2021-07-16 2151 /* VM flags inconsistent with region flags */
091c39ecb4a279 Brian Norris 2021-07-16 2152 err = -EPERM;
091c39ecb4a279 Brian Norris 2021-07-16 2153 dev_err(dev, "%s:%d inconsistent VM flags\n",
091c39ecb4a279 Brian Norris 2021-07-16 2154 __FILE__, __LINE__);
091c39ecb4a279 Brian Norris 2021-07-16 2155 goto out_unlock;
091c39ecb4a279 Brian Norris 2021-07-16 2156 }
091c39ecb4a279 Brian Norris 2021-07-16 2157
:::::: The code at line 2113 was first introduced by commit
:::::: 091c39ecb4a279d5ecdcfc2442d2a9306fcb0344 CHROMIUM: MALI: import midgard gpu driver from v4.19
:::::: TO: Brian Norris <briannorris(a)chromium.org>
:::::: CC: Commit Bot <commit-bot(a)chromium.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[hare-scsi-devel:eh-rework.v2 49/51] drivers/scsi/scsi_error.c:1207:6: warning: no previous prototype for '__scsi_eh_finish_cmd'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git eh-rework.v2
head: 7603e2e1f37e470064b8c865b5d6470137baa79b
commit: a5bf3d7edeb8669d4c307b527f1164788d7aefb8 [49/51] scsi: Move eh_device_reset_handler() to use scsi_device as argument
config: parisc-randconfig-r021-20210816 (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://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git/commi...
git remote add hare-scsi-devel https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git
git fetch --no-tags hare-scsi-devel eh-rework.v2
git checkout a5bf3d7edeb8669d4c307b527f1164788d7aefb8
# 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/scsi_error.c:1207:6: warning: no previous prototype for '__scsi_eh_finish_cmd' [-Wmissing-prototypes]
1207 | void __scsi_eh_finish_cmd(struct scsi_cmnd *scmd, struct list_head *done_q,
| ^~~~~~~~~~~~~~~~~~~~
vim +/__scsi_eh_finish_cmd +1207 drivers/scsi/scsi_error.c
1193
1194 /**
1195 * scsi_eh_finish_cmd - Handle a cmd that eh is finished with.
1196 * @scmd: Original SCSI cmd that eh has finished.
1197 * @done_q: Queue for processed commands.
1198 * @result: Final command status to be set
1199 *
1200 * Notes:
1201 * We don't want to use the normal command completion while we are are
1202 * still handling errors - it may cause other commands to be queued,
1203 * and that would disturb what we are doing. Thus we really want to
1204 * keep a list of pending commands for final completion, and once we
1205 * are ready to leave error handling we handle completion for real.
1206 */
> 1207 void __scsi_eh_finish_cmd(struct scsi_cmnd *scmd, struct list_head *done_q,
1208 int host_byte)
1209 {
1210 if (host_byte)
1211 set_host_byte(scmd, host_byte);
1212 list_move_tail(&scmd->eh_entry, done_q);
1213 }
1214
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month