[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202008240547.M0gTjLiH%lkp@intel.com>
Date: Mon, 24 Aug 2020 05:40:58 +0800
From: kernel test robot <lkp@...el.com>
To: Lee Jones <lee.jones@...aro.org>
Cc: kbuild-all@...ts.01.org, clang-built-linux@...glegroups.com,
linux-kernel@...r.kernel.org,
"Martin K. Petersen" <martin.petersen@...cle.com>
Subject: drivers/scsi/bfa/bfad_bsg.c:2748:1: warning: stack frame size of
2688 bytes in function 'bfad_iocmd_handler'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: cb95712138ec5e480db5160b41172bbc6f6494cc
commit: 3bbd8ef9f780749426d4e52be0dfa3f70656d92b scsi: bfa: Staticify all local functions
date: 4 weeks ago
config: x86_64-randconfig-r003-20200824 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project b587ca93be114d07ec3bf654add97d7872325281)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout 3bbd8ef9f780749426d4e52be0dfa3f70656d92b
# 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@...el.com>
All warnings (new ones prefixed by >>):
>> drivers/scsi/bfa/bfad_bsg.c:2748:1: warning: stack frame size of 2688 bytes in function 'bfad_iocmd_handler' [-Wframe-larger-than=]
bfad_iocmd_handler(struct bfad_s *bfad, unsigned int cmd, void *iocmd,
^
1 warning generated.
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3bbd8ef9f780749426d4e52be0dfa3f70656d92b
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 3bbd8ef9f780749426d4e52be0dfa3f70656d92b
vim +/bfad_iocmd_handler +2748 drivers/scsi/bfa/bfad_bsg.c
e6826c96ced7ea Krishna Gudipati 2012-09-21 2746
b85daafe46eeb0 Krishna Gudipati 2011-06-13 2747 static int
b85daafe46eeb0 Krishna Gudipati 2011-06-13 @2748 bfad_iocmd_handler(struct bfad_s *bfad, unsigned int cmd, void *iocmd,
b85daafe46eeb0 Krishna Gudipati 2011-06-13 2749 unsigned int payload_len)
b85daafe46eeb0 Krishna Gudipati 2011-06-13 2750 {
9afbcfab74d260 Krishna Gudipati 2011-07-20 2751 int rc = -EINVAL;
b85daafe46eeb0 Krishna Gudipati 2011-06-13 2752
b85daafe46eeb0 Krishna Gudipati 2011-06-13 2753 switch (cmd) {
601380669baa2b Krishna Gudipati 2011-06-24 2754 case IOCMD_IOC_ENABLE:
601380669baa2b Krishna Gudipati 2011-06-24 2755 rc = bfad_iocmd_ioc_enable(bfad, iocmd);
601380669baa2b Krishna Gudipati 2011-06-24 2756 break;
601380669baa2b Krishna Gudipati 2011-06-24 2757 case IOCMD_IOC_DISABLE:
601380669baa2b Krishna Gudipati 2011-06-24 2758 rc = bfad_iocmd_ioc_disable(bfad, iocmd);
601380669baa2b Krishna Gudipati 2011-06-24 2759 break;
b85daafe46eeb0 Krishna Gudipati 2011-06-13 2760 case IOCMD_IOC_GET_INFO:
b85daafe46eeb0 Krishna Gudipati 2011-06-13 2761 rc = bfad_iocmd_ioc_get_info(bfad, iocmd);
b85daafe46eeb0 Krishna Gudipati 2011-06-13 2762 break;
b85daafe46eeb0 Krishna Gudipati 2011-06-13 2763 case IOCMD_IOC_GET_ATTR:
b85daafe46eeb0 Krishna Gudipati 2011-06-13 2764 rc = bfad_iocmd_ioc_get_attr(bfad, iocmd);
b85daafe46eeb0 Krishna Gudipati 2011-06-13 2765 break;
601380669baa2b Krishna Gudipati 2011-06-24 2766 case IOCMD_IOC_GET_STATS:
601380669baa2b Krishna Gudipati 2011-06-24 2767 rc = bfad_iocmd_ioc_get_stats(bfad, iocmd);
601380669baa2b Krishna Gudipati 2011-06-24 2768 break;
601380669baa2b Krishna Gudipati 2011-06-24 2769 case IOCMD_IOC_GET_FWSTATS:
601380669baa2b Krishna Gudipati 2011-06-24 2770 rc = bfad_iocmd_ioc_get_fwstats(bfad, iocmd, payload_len);
601380669baa2b Krishna Gudipati 2011-06-24 2771 break;
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2772 case IOCMD_IOC_RESET_STATS:
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2773 case IOCMD_IOC_RESET_FWSTATS:
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2774 rc = bfad_iocmd_ioc_reset_stats(bfad, iocmd, cmd);
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2775 break;
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2776 case IOCMD_IOC_SET_ADAPTER_NAME:
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2777 case IOCMD_IOC_SET_PORT_NAME:
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2778 rc = bfad_iocmd_ioc_set_name(bfad, iocmd, cmd);
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2779 break;
601380669baa2b Krishna Gudipati 2011-06-24 2780 case IOCMD_IOCFC_GET_ATTR:
601380669baa2b Krishna Gudipati 2011-06-24 2781 rc = bfad_iocmd_iocfc_get_attr(bfad, iocmd);
601380669baa2b Krishna Gudipati 2011-06-24 2782 break;
601380669baa2b Krishna Gudipati 2011-06-24 2783 case IOCMD_IOCFC_SET_INTR:
601380669baa2b Krishna Gudipati 2011-06-24 2784 rc = bfad_iocmd_iocfc_set_intr(bfad, iocmd);
601380669baa2b Krishna Gudipati 2011-06-24 2785 break;
601380669baa2b Krishna Gudipati 2011-06-24 2786 case IOCMD_PORT_ENABLE:
601380669baa2b Krishna Gudipati 2011-06-24 2787 rc = bfad_iocmd_port_enable(bfad, iocmd);
601380669baa2b Krishna Gudipati 2011-06-24 2788 break;
601380669baa2b Krishna Gudipati 2011-06-24 2789 case IOCMD_PORT_DISABLE:
601380669baa2b Krishna Gudipati 2011-06-24 2790 rc = bfad_iocmd_port_disable(bfad, iocmd);
601380669baa2b Krishna Gudipati 2011-06-24 2791 break;
b85daafe46eeb0 Krishna Gudipati 2011-06-13 2792 case IOCMD_PORT_GET_ATTR:
b85daafe46eeb0 Krishna Gudipati 2011-06-13 2793 rc = bfad_iocmd_port_get_attr(bfad, iocmd);
b85daafe46eeb0 Krishna Gudipati 2011-06-13 2794 break;
601380669baa2b Krishna Gudipati 2011-06-24 2795 case IOCMD_PORT_GET_STATS:
601380669baa2b Krishna Gudipati 2011-06-24 2796 rc = bfad_iocmd_port_get_stats(bfad, iocmd, payload_len);
601380669baa2b Krishna Gudipati 2011-06-24 2797 break;
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2798 case IOCMD_PORT_RESET_STATS:
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2799 rc = bfad_iocmd_port_reset_stats(bfad, iocmd);
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2800 break;
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2801 case IOCMD_PORT_CFG_TOPO:
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2802 case IOCMD_PORT_CFG_SPEED:
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2803 case IOCMD_PORT_CFG_ALPA:
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2804 case IOCMD_PORT_CLR_ALPA:
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2805 rc = bfad_iocmd_set_port_cfg(bfad, iocmd, cmd);
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2806 break;
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2807 case IOCMD_PORT_CFG_MAXFRSZ:
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2808 rc = bfad_iocmd_port_cfg_maxfrsize(bfad, iocmd);
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2809 break;
bbe37a67d9da18 Vijaya Mohan Guvva 2013-05-13 2810 case IOCMD_PORT_BBCR_ENABLE:
bbe37a67d9da18 Vijaya Mohan Guvva 2013-05-13 2811 case IOCMD_PORT_BBCR_DISABLE:
bbe37a67d9da18 Vijaya Mohan Guvva 2013-05-13 2812 rc = bfad_iocmd_port_cfg_bbcr(bfad, cmd, iocmd);
bbe37a67d9da18 Vijaya Mohan Guvva 2013-05-13 2813 break;
bbe37a67d9da18 Vijaya Mohan Guvva 2013-05-13 2814 case IOCMD_PORT_BBCR_GET_ATTR:
bbe37a67d9da18 Vijaya Mohan Guvva 2013-05-13 2815 rc = bfad_iocmd_port_get_bbcr_attr(bfad, iocmd);
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2816 break;
b85daafe46eeb0 Krishna Gudipati 2011-06-13 2817 case IOCMD_LPORT_GET_ATTR:
b85daafe46eeb0 Krishna Gudipati 2011-06-13 2818 rc = bfad_iocmd_lport_get_attr(bfad, iocmd);
b85daafe46eeb0 Krishna Gudipati 2011-06-13 2819 break;
601380669baa2b Krishna Gudipati 2011-06-24 2820 case IOCMD_LPORT_GET_STATS:
601380669baa2b Krishna Gudipati 2011-06-24 2821 rc = bfad_iocmd_lport_get_stats(bfad, iocmd);
601380669baa2b Krishna Gudipati 2011-06-24 2822 break;
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2823 case IOCMD_LPORT_RESET_STATS:
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2824 rc = bfad_iocmd_lport_reset_stats(bfad, iocmd);
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2825 break;
601380669baa2b Krishna Gudipati 2011-06-24 2826 case IOCMD_LPORT_GET_IOSTATS:
601380669baa2b Krishna Gudipati 2011-06-24 2827 rc = bfad_iocmd_lport_get_iostats(bfad, iocmd);
601380669baa2b Krishna Gudipati 2011-06-24 2828 break;
601380669baa2b Krishna Gudipati 2011-06-24 2829 case IOCMD_LPORT_GET_RPORTS:
601380669baa2b Krishna Gudipati 2011-06-24 2830 rc = bfad_iocmd_lport_get_rports(bfad, iocmd, payload_len);
601380669baa2b Krishna Gudipati 2011-06-24 2831 break;
601380669baa2b Krishna Gudipati 2011-06-24 2832 case IOCMD_RPORT_GET_ATTR:
601380669baa2b Krishna Gudipati 2011-06-24 2833 rc = bfad_iocmd_rport_get_attr(bfad, iocmd);
601380669baa2b Krishna Gudipati 2011-06-24 2834 break;
b85daafe46eeb0 Krishna Gudipati 2011-06-13 2835 case IOCMD_RPORT_GET_ADDR:
b85daafe46eeb0 Krishna Gudipati 2011-06-13 2836 rc = bfad_iocmd_rport_get_addr(bfad, iocmd);
b85daafe46eeb0 Krishna Gudipati 2011-06-13 2837 break;
601380669baa2b Krishna Gudipati 2011-06-24 2838 case IOCMD_RPORT_GET_STATS:
601380669baa2b Krishna Gudipati 2011-06-24 2839 rc = bfad_iocmd_rport_get_stats(bfad, iocmd);
601380669baa2b Krishna Gudipati 2011-06-24 2840 break;
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2841 case IOCMD_RPORT_RESET_STATS:
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2842 rc = bfad_iocmd_rport_clr_stats(bfad, iocmd);
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2843 break;
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2844 case IOCMD_RPORT_SET_SPEED:
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2845 rc = bfad_iocmd_rport_set_speed(bfad, iocmd);
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2846 break;
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2847 case IOCMD_VPORT_GET_ATTR:
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2848 rc = bfad_iocmd_vport_get_attr(bfad, iocmd);
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2849 break;
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2850 case IOCMD_VPORT_GET_STATS:
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2851 rc = bfad_iocmd_vport_get_stats(bfad, iocmd);
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2852 break;
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2853 case IOCMD_VPORT_RESET_STATS:
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2854 rc = bfad_iocmd_vport_clr_stats(bfad, iocmd);
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2855 break;
b85daafe46eeb0 Krishna Gudipati 2011-06-13 2856 case IOCMD_FABRIC_GET_LPORTS:
b85daafe46eeb0 Krishna Gudipati 2011-06-13 2857 rc = bfad_iocmd_fabric_get_lports(bfad, iocmd, payload_len);
b85daafe46eeb0 Krishna Gudipati 2011-06-13 2858 break;
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2859 case IOCMD_RATELIM_ENABLE:
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2860 case IOCMD_RATELIM_DISABLE:
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2861 rc = bfad_iocmd_ratelim(bfad, cmd, iocmd);
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2862 break;
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2863 case IOCMD_RATELIM_DEF_SPEED:
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2864 rc = bfad_iocmd_ratelim_speed(bfad, cmd, iocmd);
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2865 break;
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2866 case IOCMD_FCPIM_FAILOVER:
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2867 rc = bfad_iocmd_cfg_fcpim(bfad, iocmd);
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2868 break;
601380669baa2b Krishna Gudipati 2011-06-24 2869 case IOCMD_FCPIM_MODSTATS:
601380669baa2b Krishna Gudipati 2011-06-24 2870 rc = bfad_iocmd_fcpim_get_modstats(bfad, iocmd);
601380669baa2b Krishna Gudipati 2011-06-24 2871 break;
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2872 case IOCMD_FCPIM_MODSTATSCLR:
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2873 rc = bfad_iocmd_fcpim_clr_modstats(bfad, iocmd);
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2874 break;
601380669baa2b Krishna Gudipati 2011-06-24 2875 case IOCMD_FCPIM_DEL_ITN_STATS:
601380669baa2b Krishna Gudipati 2011-06-24 2876 rc = bfad_iocmd_fcpim_get_del_itn_stats(bfad, iocmd);
601380669baa2b Krishna Gudipati 2011-06-24 2877 break;
b85daafe46eeb0 Krishna Gudipati 2011-06-13 2878 case IOCMD_ITNIM_GET_ATTR:
b85daafe46eeb0 Krishna Gudipati 2011-06-13 2879 rc = bfad_iocmd_itnim_get_attr(bfad, iocmd);
b85daafe46eeb0 Krishna Gudipati 2011-06-13 2880 break;
601380669baa2b Krishna Gudipati 2011-06-24 2881 case IOCMD_ITNIM_GET_IOSTATS:
601380669baa2b Krishna Gudipati 2011-06-24 2882 rc = bfad_iocmd_itnim_get_iostats(bfad, iocmd);
601380669baa2b Krishna Gudipati 2011-06-24 2883 break;
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2884 case IOCMD_ITNIM_RESET_STATS:
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2885 rc = bfad_iocmd_itnim_reset_stats(bfad, iocmd);
f2ee76017b30c8 Krishna Gudipati 2011-07-20 2886 break;
601380669baa2b Krishna Gudipati 2011-06-24 2887 case IOCMD_ITNIM_GET_ITNSTATS:
601380669baa2b Krishna Gudipati 2011-06-24 2888 rc = bfad_iocmd_itnim_get_itnstats(bfad, iocmd);
601380669baa2b Krishna Gudipati 2011-06-24 2889 break;
601380669baa2b Krishna Gudipati 2011-06-24 2890 case IOCMD_FCPORT_ENABLE:
601380669baa2b Krishna Gudipati 2011-06-24 2891 rc = bfad_iocmd_fcport_enable(bfad, iocmd);
601380669baa2b Krishna Gudipati 2011-06-24 2892 break;
601380669baa2b Krishna Gudipati 2011-06-24 2893 case IOCMD_FCPORT_DISABLE:
601380669baa2b Krishna Gudipati 2011-06-24 2894 rc = bfad_iocmd_fcport_disable(bfad, iocmd);
601380669baa2b Krishna Gudipati 2011-06-24 2895 break;
1a4d8e1bd81c01 Krishna Gudipati 2011-06-24 2896 case IOCMD_IOC_PCIFN_CFG:
1a4d8e1bd81c01 Krishna Gudipati 2011-06-24 2897 rc = bfad_iocmd_ioc_get_pcifn_cfg(bfad, iocmd);
1a4d8e1bd81c01 Krishna Gudipati 2011-06-24 2898 break;
28d358d01e1d27 Vijaya Mohan Guvva 2013-11-21 2899 case IOCMD_IOC_FW_SIG_INV:
28d358d01e1d27 Vijaya Mohan Guvva 2013-11-21 2900 rc = bfad_iocmd_ioc_fw_sig_inv(bfad, iocmd);
28d358d01e1d27 Vijaya Mohan Guvva 2013-11-21 2901 break;
1a4d8e1bd81c01 Krishna Gudipati 2011-06-24 2902 case IOCMD_PCIFN_CREATE:
1a4d8e1bd81c01 Krishna Gudipati 2011-06-24 2903 rc = bfad_iocmd_pcifn_create(bfad, iocmd);
1a4d8e1bd81c01 Krishna Gudipati 2011-06-24 2904 break;
1a4d8e1bd81c01 Krishna Gudipati 2011-06-24 2905 case IOCMD_PCIFN_DELETE:
1a4d8e1bd81c01 Krishna Gudipati 2011-06-24 2906 rc = bfad_iocmd_pcifn_delete(bfad, iocmd);
1a4d8e1bd81c01 Krishna Gudipati 2011-06-24 2907 break;
1a4d8e1bd81c01 Krishna Gudipati 2011-06-24 2908 case IOCMD_PCIFN_BW:
1a4d8e1bd81c01 Krishna Gudipati 2011-06-24 2909 rc = bfad_iocmd_pcifn_bw(bfad, iocmd);
1a4d8e1bd81c01 Krishna Gudipati 2011-06-24 2910 break;
1a4d8e1bd81c01 Krishna Gudipati 2011-06-24 2911 case IOCMD_ADAPTER_CFG_MODE:
1a4d8e1bd81c01 Krishna Gudipati 2011-06-24 2912 rc = bfad_iocmd_adapter_cfg_mode(bfad, iocmd);
1a4d8e1bd81c01 Krishna Gudipati 2011-06-24 2913 break;
1a4d8e1bd81c01 Krishna Gudipati 2011-06-24 2914 case IOCMD_PORT_CFG_MODE:
1a4d8e1bd81c01 Krishna Gudipati 2011-06-24 2915 rc = bfad_iocmd_port_cfg_mode(bfad, iocmd);
1a4d8e1bd81c01 Krishna Gudipati 2011-06-24 2916 break;
1a4d8e1bd81c01 Krishna Gudipati 2011-06-24 2917 case IOCMD_FLASH_ENABLE_OPTROM:
1a4d8e1bd81c01 Krishna Gudipati 2011-06-24 2918 case IOCMD_FLASH_DISABLE_OPTROM:
1a4d8e1bd81c01 Krishna Gudipati 2011-06-24 2919 rc = bfad_iocmd_ablk_optrom(bfad, cmd, iocmd);
1a4d8e1bd81c01 Krishna Gudipati 2011-06-24 2920 break;
a714134a857d39 Krishna Gudipati 2011-06-24 2921 case IOCMD_FAA_QUERY:
a714134a857d39 Krishna Gudipati 2011-06-24 2922 rc = bfad_iocmd_faa_query(bfad, iocmd);
a714134a857d39 Krishna Gudipati 2011-06-24 2923 break;
148d61039c625f Krishna Gudipati 2011-06-24 2924 case IOCMD_CEE_GET_ATTR:
148d61039c625f Krishna Gudipati 2011-06-24 2925 rc = bfad_iocmd_cee_attr(bfad, iocmd, payload_len);
148d61039c625f Krishna Gudipati 2011-06-24 2926 break;
148d61039c625f Krishna Gudipati 2011-06-24 2927 case IOCMD_CEE_GET_STATS:
148d61039c625f Krishna Gudipati 2011-06-24 2928 rc = bfad_iocmd_cee_get_stats(bfad, iocmd, payload_len);
148d61039c625f Krishna Gudipati 2011-06-24 2929 break;
148d61039c625f Krishna Gudipati 2011-06-24 2930 case IOCMD_CEE_RESET_STATS:
148d61039c625f Krishna Gudipati 2011-06-24 2931 rc = bfad_iocmd_cee_reset_stats(bfad, iocmd);
148d61039c625f Krishna Gudipati 2011-06-24 2932 break;
51e569aa1f0c10 Krishna Gudipati 2011-06-24 2933 case IOCMD_SFP_MEDIA:
51e569aa1f0c10 Krishna Gudipati 2011-06-24 2934 rc = bfad_iocmd_sfp_media(bfad, iocmd);
51e569aa1f0c10 Krishna Gudipati 2011-06-24 2935 break;
51e569aa1f0c10 Krishna Gudipati 2011-06-24 2936 case IOCMD_SFP_SPEED:
51e569aa1f0c10 Krishna Gudipati 2011-06-24 2937 rc = bfad_iocmd_sfp_speed(bfad, iocmd);
51e569aa1f0c10 Krishna Gudipati 2011-06-24 2938 break;
5a54b1d576d188 Krishna Gudipati 2011-06-24 2939 case IOCMD_FLASH_GET_ATTR:
5a54b1d576d188 Krishna Gudipati 2011-06-24 2940 rc = bfad_iocmd_flash_get_attr(bfad, iocmd);
5a54b1d576d188 Krishna Gudipati 2011-06-24 2941 break;
5a54b1d576d188 Krishna Gudipati 2011-06-24 2942 case IOCMD_FLASH_ERASE_PART:
5a54b1d576d188 Krishna Gudipati 2011-06-24 2943 rc = bfad_iocmd_flash_erase_part(bfad, iocmd);
5a54b1d576d188 Krishna Gudipati 2011-06-24 2944 break;
5a54b1d576d188 Krishna Gudipati 2011-06-24 2945 case IOCMD_FLASH_UPDATE_PART:
5a54b1d576d188 Krishna Gudipati 2011-06-24 2946 rc = bfad_iocmd_flash_update_part(bfad, iocmd, payload_len);
5a54b1d576d188 Krishna Gudipati 2011-06-24 2947 break;
5a54b1d576d188 Krishna Gudipati 2011-06-24 2948 case IOCMD_FLASH_READ_PART:
5a54b1d576d188 Krishna Gudipati 2011-06-24 2949 rc = bfad_iocmd_flash_read_part(bfad, iocmd, payload_len);
5a54b1d576d188 Krishna Gudipati 2011-06-24 2950 break;
3d7fc66dcd8d51 Krishna Gudipati 2011-06-24 2951 case IOCMD_DIAG_TEMP:
3d7fc66dcd8d51 Krishna Gudipati 2011-06-24 2952 rc = bfad_iocmd_diag_temp(bfad, iocmd);
3d7fc66dcd8d51 Krishna Gudipati 2011-06-24 2953 break;
3d7fc66dcd8d51 Krishna Gudipati 2011-06-24 2954 case IOCMD_DIAG_MEMTEST:
3d7fc66dcd8d51 Krishna Gudipati 2011-06-24 2955 rc = bfad_iocmd_diag_memtest(bfad, iocmd);
3d7fc66dcd8d51 Krishna Gudipati 2011-06-24 2956 break;
3d7fc66dcd8d51 Krishna Gudipati 2011-06-24 2957 case IOCMD_DIAG_LOOPBACK:
3d7fc66dcd8d51 Krishna Gudipati 2011-06-24 2958 rc = bfad_iocmd_diag_loopback(bfad, iocmd);
3d7fc66dcd8d51 Krishna Gudipati 2011-06-24 2959 break;
3d7fc66dcd8d51 Krishna Gudipati 2011-06-24 2960 case IOCMD_DIAG_FWPING:
3d7fc66dcd8d51 Krishna Gudipati 2011-06-24 2961 rc = bfad_iocmd_diag_fwping(bfad, iocmd);
3d7fc66dcd8d51 Krishna Gudipati 2011-06-24 2962 break;
3d7fc66dcd8d51 Krishna Gudipati 2011-06-24 2963 case IOCMD_DIAG_QUEUETEST:
3d7fc66dcd8d51 Krishna Gudipati 2011-06-24 2964 rc = bfad_iocmd_diag_queuetest(bfad, iocmd);
3d7fc66dcd8d51 Krishna Gudipati 2011-06-24 2965 break;
3d7fc66dcd8d51 Krishna Gudipati 2011-06-24 2966 case IOCMD_DIAG_SFP:
3d7fc66dcd8d51 Krishna Gudipati 2011-06-24 2967 rc = bfad_iocmd_diag_sfp(bfad, iocmd);
3d7fc66dcd8d51 Krishna Gudipati 2011-06-24 2968 break;
3d7fc66dcd8d51 Krishna Gudipati 2011-06-24 2969 case IOCMD_DIAG_LED:
3d7fc66dcd8d51 Krishna Gudipati 2011-06-24 2970 rc = bfad_iocmd_diag_led(bfad, iocmd);
3d7fc66dcd8d51 Krishna Gudipati 2011-06-24 2971 break;
3d7fc66dcd8d51 Krishna Gudipati 2011-06-24 2972 case IOCMD_DIAG_BEACON_LPORT:
3d7fc66dcd8d51 Krishna Gudipati 2011-06-24 2973 rc = bfad_iocmd_diag_beacon_lport(bfad, iocmd);
3d7fc66dcd8d51 Krishna Gudipati 2011-06-24 2974 break;
3d7fc66dcd8d51 Krishna Gudipati 2011-06-24 2975 case IOCMD_DIAG_LB_STAT:
3d7fc66dcd8d51 Krishna Gudipati 2011-06-24 2976 rc = bfad_iocmd_diag_lb_stat(bfad, iocmd);
3d7fc66dcd8d51 Krishna Gudipati 2011-06-24 2977 break;
e353546e447feb Krishna Gudipati 2012-09-21 2978 case IOCMD_DIAG_DPORT_ENABLE:
1a898a794d5913 Vijaya Mohan Guvva 2013-05-13 2979 rc = bfad_iocmd_diag_dport_enable(bfad, iocmd);
1a898a794d5913 Vijaya Mohan Guvva 2013-05-13 2980 break;
e353546e447feb Krishna Gudipati 2012-09-21 2981 case IOCMD_DIAG_DPORT_DISABLE:
1a898a794d5913 Vijaya Mohan Guvva 2013-05-13 2982 rc = bfad_iocmd_diag_dport_disable(bfad, iocmd);
1a898a794d5913 Vijaya Mohan Guvva 2013-05-13 2983 break;
1a898a794d5913 Vijaya Mohan Guvva 2013-05-13 2984 case IOCMD_DIAG_DPORT_SHOW:
1a898a794d5913 Vijaya Mohan Guvva 2013-05-13 2985 rc = bfad_iocmd_diag_dport_show(bfad, iocmd);
e353546e447feb Krishna Gudipati 2012-09-21 2986 break;
1a898a794d5913 Vijaya Mohan Guvva 2013-05-13 2987 case IOCMD_DIAG_DPORT_START:
1a898a794d5913 Vijaya Mohan Guvva 2013-05-13 2988 rc = bfad_iocmd_diag_dport_start(bfad, iocmd);
e353546e447feb Krishna Gudipati 2012-09-21 2989 break;
3350d98d6d072f Krishna Gudipati 2011-06-24 2990 case IOCMD_PHY_GET_ATTR:
3350d98d6d072f Krishna Gudipati 2011-06-24 2991 rc = bfad_iocmd_phy_get_attr(bfad, iocmd);
3350d98d6d072f Krishna Gudipati 2011-06-24 2992 break;
3350d98d6d072f Krishna Gudipati 2011-06-24 2993 case IOCMD_PHY_GET_STATS:
3350d98d6d072f Krishna Gudipati 2011-06-24 2994 rc = bfad_iocmd_phy_get_stats(bfad, iocmd);
3350d98d6d072f Krishna Gudipati 2011-06-24 2995 break;
3350d98d6d072f Krishna Gudipati 2011-06-24 2996 case IOCMD_PHY_UPDATE_FW:
3350d98d6d072f Krishna Gudipati 2011-06-24 2997 rc = bfad_iocmd_phy_update(bfad, iocmd, payload_len);
3350d98d6d072f Krishna Gudipati 2011-06-24 2998 break;
3350d98d6d072f Krishna Gudipati 2011-06-24 2999 case IOCMD_PHY_READ_FW:
3350d98d6d072f Krishna Gudipati 2011-06-24 3000 rc = bfad_iocmd_phy_read(bfad, iocmd, payload_len);
3350d98d6d072f Krishna Gudipati 2011-06-24 3001 break;
61e62e21afe469 Krishna Gudipati 2011-06-24 3002 case IOCMD_VHBA_QUERY:
61e62e21afe469 Krishna Gudipati 2011-06-24 3003 rc = bfad_iocmd_vhba_query(bfad, iocmd);
61e62e21afe469 Krishna Gudipati 2011-06-24 3004 break;
61e62e21afe469 Krishna Gudipati 2011-06-24 3005 case IOCMD_DEBUG_PORTLOG:
61e62e21afe469 Krishna Gudipati 2011-06-24 3006 rc = bfad_iocmd_porglog_get(bfad, iocmd);
61e62e21afe469 Krishna Gudipati 2011-06-24 3007 break;
f2ee76017b30c8 Krishna Gudipati 2011-07-20 3008 case IOCMD_DEBUG_FW_CORE:
f2ee76017b30c8 Krishna Gudipati 2011-07-20 3009 rc = bfad_iocmd_debug_fw_core(bfad, iocmd, payload_len);
f2ee76017b30c8 Krishna Gudipati 2011-07-20 3010 break;
f2ee76017b30c8 Krishna Gudipati 2011-07-20 3011 case IOCMD_DEBUG_FW_STATE_CLR:
f2ee76017b30c8 Krishna Gudipati 2011-07-20 3012 case IOCMD_DEBUG_PORTLOG_CLR:
f2ee76017b30c8 Krishna Gudipati 2011-07-20 3013 case IOCMD_DEBUG_START_DTRC:
f2ee76017b30c8 Krishna Gudipati 2011-07-20 3014 case IOCMD_DEBUG_STOP_DTRC:
f2ee76017b30c8 Krishna Gudipati 2011-07-20 3015 rc = bfad_iocmd_debug_ctl(bfad, iocmd, cmd);
f2ee76017b30c8 Krishna Gudipati 2011-07-20 3016 break;
f2ee76017b30c8 Krishna Gudipati 2011-07-20 3017 case IOCMD_DEBUG_PORTLOG_CTL:
f2ee76017b30c8 Krishna Gudipati 2011-07-20 3018 rc = bfad_iocmd_porglog_ctl(bfad, iocmd);
f2ee76017b30c8 Krishna Gudipati 2011-07-20 3019 break;
42a8e6e298f395 Krishna Gudipati 2011-07-20 3020 case IOCMD_FCPIM_PROFILE_ON:
42a8e6e298f395 Krishna Gudipati 2011-07-20 3021 case IOCMD_FCPIM_PROFILE_OFF:
42a8e6e298f395 Krishna Gudipati 2011-07-20 3022 rc = bfad_iocmd_fcpim_cfg_profile(bfad, iocmd, cmd);
42a8e6e298f395 Krishna Gudipati 2011-07-20 3023 break;
42a8e6e298f395 Krishna Gudipati 2011-07-20 3024 case IOCMD_ITNIM_GET_IOPROFILE:
42a8e6e298f395 Krishna Gudipati 2011-07-20 3025 rc = bfad_iocmd_itnim_get_ioprofile(bfad, iocmd);
42a8e6e298f395 Krishna Gudipati 2011-07-20 3026 break;
37ea0558b87abb Krishna Gudipati 2011-07-20 3027 case IOCMD_FCPORT_GET_STATS:
37ea0558b87abb Krishna Gudipati 2011-07-20 3028 rc = bfad_iocmd_fcport_get_stats(bfad, iocmd);
37ea0558b87abb Krishna Gudipati 2011-07-20 3029 break;
37ea0558b87abb Krishna Gudipati 2011-07-20 3030 case IOCMD_FCPORT_RESET_STATS:
37ea0558b87abb Krishna Gudipati 2011-07-20 3031 rc = bfad_iocmd_fcport_reset_stats(bfad, iocmd);
37ea0558b87abb Krishna Gudipati 2011-07-20 3032 break;
a46bd300e191d5 Krishna Gudipati 2011-07-20 3033 case IOCMD_BOOT_CFG:
a46bd300e191d5 Krishna Gudipati 2011-07-20 3034 rc = bfad_iocmd_boot_cfg(bfad, iocmd);
a46bd300e191d5 Krishna Gudipati 2011-07-20 3035 break;
a46bd300e191d5 Krishna Gudipati 2011-07-20 3036 case IOCMD_BOOT_QUERY:
a46bd300e191d5 Krishna Gudipati 2011-07-20 3037 rc = bfad_iocmd_boot_query(bfad, iocmd);
a46bd300e191d5 Krishna Gudipati 2011-07-20 3038 break;
a46bd300e191d5 Krishna Gudipati 2011-07-20 3039 case IOCMD_PREBOOT_QUERY:
a46bd300e191d5 Krishna Gudipati 2011-07-20 3040 rc = bfad_iocmd_preboot_query(bfad, iocmd);
a46bd300e191d5 Krishna Gudipati 2011-07-20 3041 break;
a46bd300e191d5 Krishna Gudipati 2011-07-20 3042 case IOCMD_ETHBOOT_CFG:
a46bd300e191d5 Krishna Gudipati 2011-07-20 3043 rc = bfad_iocmd_ethboot_cfg(bfad, iocmd);
a46bd300e191d5 Krishna Gudipati 2011-07-20 3044 break;
a46bd300e191d5 Krishna Gudipati 2011-07-20 3045 case IOCMD_ETHBOOT_QUERY:
a46bd300e191d5 Krishna Gudipati 2011-07-20 3046 rc = bfad_iocmd_ethboot_query(bfad, iocmd);
a46bd300e191d5 Krishna Gudipati 2011-07-20 3047 break;
45191236b17987 Krishna Gudipati 2011-07-20 3048 case IOCMD_TRUNK_ENABLE:
45191236b17987 Krishna Gudipati 2011-07-20 3049 case IOCMD_TRUNK_DISABLE:
45191236b17987 Krishna Gudipati 2011-07-20 3050 rc = bfad_iocmd_cfg_trunk(bfad, iocmd, cmd);
45191236b17987 Krishna Gudipati 2011-07-20 3051 break;
45191236b17987 Krishna Gudipati 2011-07-20 3052 case IOCMD_TRUNK_GET_ATTR:
45191236b17987 Krishna Gudipati 2011-07-20 3053 rc = bfad_iocmd_trunk_get_attr(bfad, iocmd);
45191236b17987 Krishna Gudipati 2011-07-20 3054 break;
3ec4f2c8bff256 Krishna Gudipati 2011-07-20 3055 case IOCMD_QOS_ENABLE:
3ec4f2c8bff256 Krishna Gudipati 2011-07-20 3056 case IOCMD_QOS_DISABLE:
3ec4f2c8bff256 Krishna Gudipati 2011-07-20 3057 rc = bfad_iocmd_qos(bfad, iocmd, cmd);
3ec4f2c8bff256 Krishna Gudipati 2011-07-20 3058 break;
3ec4f2c8bff256 Krishna Gudipati 2011-07-20 3059 case IOCMD_QOS_GET_ATTR:
3ec4f2c8bff256 Krishna Gudipati 2011-07-20 3060 rc = bfad_iocmd_qos_get_attr(bfad, iocmd);
3ec4f2c8bff256 Krishna Gudipati 2011-07-20 3061 break;
3ec4f2c8bff256 Krishna Gudipati 2011-07-20 3062 case IOCMD_QOS_GET_VC_ATTR:
3ec4f2c8bff256 Krishna Gudipati 2011-07-20 3063 rc = bfad_iocmd_qos_get_vc_attr(bfad, iocmd);
3ec4f2c8bff256 Krishna Gudipati 2011-07-20 3064 break;
3ec4f2c8bff256 Krishna Gudipati 2011-07-20 3065 case IOCMD_QOS_GET_STATS:
3ec4f2c8bff256 Krishna Gudipati 2011-07-20 3066 rc = bfad_iocmd_qos_get_stats(bfad, iocmd);
3ec4f2c8bff256 Krishna Gudipati 2011-07-20 3067 break;
3ec4f2c8bff256 Krishna Gudipati 2011-07-20 3068 case IOCMD_QOS_RESET_STATS:
3ec4f2c8bff256 Krishna Gudipati 2011-07-20 3069 rc = bfad_iocmd_qos_reset_stats(bfad, iocmd);
3ec4f2c8bff256 Krishna Gudipati 2011-07-20 3070 break;
6894f013a71b1b Krishna Gudipati 2012-09-21 3071 case IOCMD_QOS_SET_BW:
6894f013a71b1b Krishna Gudipati 2012-09-21 3072 rc = bfad_iocmd_qos_set_bw(bfad, iocmd);
6894f013a71b1b Krishna Gudipati 2012-09-21 3073 break;
c0350bf57445b9 Krishna Gudipati 2011-07-20 3074 case IOCMD_VF_GET_STATS:
c0350bf57445b9 Krishna Gudipati 2011-07-20 3075 rc = bfad_iocmd_vf_get_stats(bfad, iocmd);
c0350bf57445b9 Krishna Gudipati 2011-07-20 3076 break;
c0350bf57445b9 Krishna Gudipati 2011-07-20 3077 case IOCMD_VF_RESET_STATS:
c0350bf57445b9 Krishna Gudipati 2011-07-20 3078 rc = bfad_iocmd_vf_clr_stats(bfad, iocmd);
c0350bf57445b9 Krishna Gudipati 2011-07-20 3079 break;
4c5d22bf7bdea6 Krishna Gudipati 2011-07-20 3080 case IOCMD_FCPIM_LUNMASK_ENABLE:
4c5d22bf7bdea6 Krishna Gudipati 2011-07-20 3081 case IOCMD_FCPIM_LUNMASK_DISABLE:
4c5d22bf7bdea6 Krishna Gudipati 2011-07-20 3082 case IOCMD_FCPIM_LUNMASK_CLEAR:
4c5d22bf7bdea6 Krishna Gudipati 2011-07-20 3083 rc = bfad_iocmd_lunmask(bfad, iocmd, cmd);
4c5d22bf7bdea6 Krishna Gudipati 2011-07-20 3084 break;
4c5d22bf7bdea6 Krishna Gudipati 2011-07-20 3085 case IOCMD_FCPIM_LUNMASK_QUERY:
4c5d22bf7bdea6 Krishna Gudipati 2011-07-20 3086 rc = bfad_iocmd_fcpim_lunmask_query(bfad, iocmd);
4c5d22bf7bdea6 Krishna Gudipati 2011-07-20 3087 break;
4c5d22bf7bdea6 Krishna Gudipati 2011-07-20 3088 case IOCMD_FCPIM_LUNMASK_ADD:
4c5d22bf7bdea6 Krishna Gudipati 2011-07-20 3089 case IOCMD_FCPIM_LUNMASK_DELETE:
4c5d22bf7bdea6 Krishna Gudipati 2011-07-20 3090 rc = bfad_iocmd_fcpim_cfg_lunmask(bfad, iocmd, cmd);
4c5d22bf7bdea6 Krishna Gudipati 2011-07-20 3091 break;
7ace27ae28a5fa Krishna Gudipati 2012-09-21 3092 case IOCMD_FCPIM_THROTTLE_QUERY:
7ace27ae28a5fa Krishna Gudipati 2012-09-21 3093 rc = bfad_iocmd_fcpim_throttle_query(bfad, iocmd);
7ace27ae28a5fa Krishna Gudipati 2012-09-21 3094 break;
7ace27ae28a5fa Krishna Gudipati 2012-09-21 3095 case IOCMD_FCPIM_THROTTLE_SET:
7ace27ae28a5fa Krishna Gudipati 2012-09-21 3096 rc = bfad_iocmd_fcpim_throttle_set(bfad, iocmd);
7ace27ae28a5fa Krishna Gudipati 2012-09-21 3097 break;
e6826c96ced7ea Krishna Gudipati 2012-09-21 3098 /* TFRU */
e6826c96ced7ea Krishna Gudipati 2012-09-21 3099 case IOCMD_TFRU_READ:
e6826c96ced7ea Krishna Gudipati 2012-09-21 3100 rc = bfad_iocmd_tfru_read(bfad, iocmd);
e6826c96ced7ea Krishna Gudipati 2012-09-21 3101 break;
e6826c96ced7ea Krishna Gudipati 2012-09-21 3102 case IOCMD_TFRU_WRITE:
e6826c96ced7ea Krishna Gudipati 2012-09-21 3103 rc = bfad_iocmd_tfru_write(bfad, iocmd);
e6826c96ced7ea Krishna Gudipati 2012-09-21 3104 break;
e6826c96ced7ea Krishna Gudipati 2012-09-21 3105 /* FRU */
e6826c96ced7ea Krishna Gudipati 2012-09-21 3106 case IOCMD_FRUVPD_READ:
e6826c96ced7ea Krishna Gudipati 2012-09-21 3107 rc = bfad_iocmd_fruvpd_read(bfad, iocmd);
e6826c96ced7ea Krishna Gudipati 2012-09-21 3108 break;
e6826c96ced7ea Krishna Gudipati 2012-09-21 3109 case IOCMD_FRUVPD_UPDATE:
e6826c96ced7ea Krishna Gudipati 2012-09-21 3110 rc = bfad_iocmd_fruvpd_update(bfad, iocmd);
e6826c96ced7ea Krishna Gudipati 2012-09-21 3111 break;
e6826c96ced7ea Krishna Gudipati 2012-09-21 3112 case IOCMD_FRUVPD_GET_MAX_SIZE:
e6826c96ced7ea Krishna Gudipati 2012-09-21 3113 rc = bfad_iocmd_fruvpd_get_max_size(bfad, iocmd);
e6826c96ced7ea Krishna Gudipati 2012-09-21 3114 break;
b85daafe46eeb0 Krishna Gudipati 2011-06-13 3115 default:
9afbcfab74d260 Krishna Gudipati 2011-07-20 3116 rc = -EINVAL;
b85daafe46eeb0 Krishna Gudipati 2011-06-13 3117 break;
b85daafe46eeb0 Krishna Gudipati 2011-06-13 3118 }
9afbcfab74d260 Krishna Gudipati 2011-07-20 3119 return rc;
b85daafe46eeb0 Krishna Gudipati 2011-06-13 3120 }
b85daafe46eeb0 Krishna Gudipati 2011-06-13 3121
:::::: The code at line 2748 was first introduced by commit
:::::: b85daafe46eeb0a9ad32c4b2c3a4e09ffcae9599 [SCSI] bfa: Add BSG interface to support ELS, CT and vendor commands.
:::::: TO: Krishna Gudipati <kgudipat@...cade.com>
:::::: CC: James Bottomley <JBottomley@...allels.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (36250 bytes)
Powered by blists - more mailing lists