Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7577311rwd; Tue, 20 Jun 2023 03:20:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7/alMdYFRxpEgUqATPetPk222pQ++DeJe9xWtaUPMb3WxqIBdL+JAvk7Ota3jY5BCOPr0t X-Received: by 2002:a05:6a20:8e01:b0:118:e60:35 with SMTP id y1-20020a056a208e0100b001180e600035mr9699053pzj.5.1687256430758; Tue, 20 Jun 2023 03:20:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687256430; cv=none; d=google.com; s=arc-20160816; b=l9GCasYYFBlMKh67VSht4Kujbv9t/IJ0LTvHKlrlNeE7HqBiU+mXQLFcNOP5A9gHWI arvp3w+rATyY78Elj1F2oXwYPv8DmiA8hxhO0DJPirxKMMpKmHSbJMJKy7q8Vq9Er7g3 zMiKi0H9vE1lJdPilYW/0wkU2tTcoYs8Nl0Y9NgWXis3RyIH7dHBWSsnmVegmihUb5YK VK0mj+mM2Q+yJMsYRkGs/fwJyGaZuZk17sMFa7GYVwly5I6/3qQVFiNRt0X3EPnpTJmn M/d3e970qYOrMzhtnyU3cDbjnD7D9BJH1//N9xMlIIf4YakOLkGEO+YlJLQU2ddKEJbp v29g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PgACL7YdFtwvad2P/FOiLgvbz5cd3qlhZWCHlbvIQcU=; b=OHt51oUdWsDo04ltURY73BCRbwEg8KXVxIcCqSijQOCDaha5IuOlJdfsdFYtdztJkZ NpAhyFxXTVrkSysDnITi60U5D2G57dBliqRRGHN/eDWBbwDudCYiwgoUmxFuOle1Jcbl 5Cq4GOj4P74TlwApH6+2bXlMH4p4R+N0IrmKJrpYfpEp0FfnCMmBqQcXf+xyhb6FaOKI CJZs3NZillx5K8y3j4AjY3Ay/BsdXHdN+1UHyb8dqgxqUj+LQw/3YPGzsRDwhKTVVPc9 dxotK5HI/lBGzbFlfZrlp4zaSqhqiKvRtXaD4F0vSgtlHlmc0ed0SFd0I+w9AxF6faC5 g8nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OD1xY3oD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a7-20020a170902ecc700b001adb600d5e9si1652487plh.640.2023.06.20.03.20.16; Tue, 20 Jun 2023 03:20:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OD1xY3oD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231567AbjFTKLu (ORCPT + 99 others); Tue, 20 Jun 2023 06:11:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231334AbjFTKLr (ORCPT ); Tue, 20 Jun 2023 06:11:47 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D667132; Tue, 20 Jun 2023 03:11:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687255902; x=1718791902; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=t6aBv/t9yUrGliuBhpX5NCpuckz6oBkr9Qm3pAgcp78=; b=OD1xY3oD+OHPyaZRsjIdybhXuAFXbLO5NE1O8UU1HM8vbpm+Rr7WdBx/ yxEu1giciQ3nb5FFmcDotRWECz/Cdh+1Bp4wVxp0wuUvEt7t3n6lSGP8B 1maci7ZGEJTm1Pr7W1Sl0eNKJC7PzEKWQhOKebzL1FKRxlTHayITBRsKq e9Z7KKk0rLsudnwq17RLfc9MdJ7rREcNnPKyBl9WZCAmsLAmevCgqjJdg 9BVikt3RZZznA37eY+gohfOzh7g9Ub3sa6Zc1L5dN0aoxhYXo9x+ICLnf PV1LhiF4u49ZlIaOr7HouSqfUB8mSU/kplXn0TdOEVpw7BCaemi43WDEb g==; X-IronPort-AV: E=McAfee;i="6600,9927,10746"; a="339431023" X-IronPort-AV: E=Sophos;i="6.00,256,1681196400"; d="scan'208";a="339431023" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jun 2023 03:11:14 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10746"; a="748013955" X-IronPort-AV: E=Sophos;i="6.00,256,1681196400"; d="scan'208";a="748013955" Received: from lkp-server01.sh.intel.com (HELO 783282924a45) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 20 Jun 2023 03:11:11 -0700 Received: from kbuild by 783282924a45 with local (Exim 4.96) (envelope-from ) id 1qBYKM-0005nY-20; Tue, 20 Jun 2023 10:11:10 +0000 Date: Tue, 20 Jun 2023 18:10:35 +0800 From: kernel test robot To: Md Sadre Alam , mani@kernel.org, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, linux-mtd@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, quic_srichara@quicinc.com, quic_mdalam@quicinc.com Subject: Re: [PATCH v4 1/5] mtd: rawnand: qcom: Implement exec_op() Message-ID: <202306201734.SmmrhWYJ-lkp@intel.com> References: <20230615073143.25079-1-quic_mdalam@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230615073143.25079-1-quic_mdalam@quicinc.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Md, kernel test robot noticed the following build warnings: [auto build test WARNING on mtd/nand/next] [also build test WARNING on linus/master v6.4-rc7 next-20230620] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Md-Sadre-Alam/mtd-rawnand-qcom-Add-support-for-reset-readid-status-exec_op/20230615-153448 base: https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next patch link: https://lore.kernel.org/r/20230615073143.25079-1-quic_mdalam%40quicinc.com patch subject: [PATCH v4 1/5] mtd: rawnand: qcom: Implement exec_op() config: arm-allmodconfig (https://download.01.org/0day-ci/archive/20230620/202306201734.SmmrhWYJ-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 12.3.0 reproduce: (https://download.01.org/0day-ci/archive/20230620/202306201734.SmmrhWYJ-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202306201734.SmmrhWYJ-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/mtd/nand/raw/qcom_nandc.c: In function 'qcom_parse_instructions': >> drivers/mtd/nand/raw/qcom_nandc.c:2944:38: warning: variable 'naddrs' set but not used [-Wunused-but-set-variable] 2944 | unsigned int offset, naddrs; | ^~~~~~ drivers/mtd/nand/raw/qcom_nandc.c: At top level: drivers/mtd/nand/raw/qcom_nandc.c:2932:13: warning: 'qcom_parse_instructions' defined but not used [-Wunused-function] 2932 | static void qcom_parse_instructions(struct nand_chip *chip, | ^~~~~~~~~~~~~~~~~~~~~~~ vim +/naddrs +2944 drivers/mtd/nand/raw/qcom_nandc.c 2930 2931 /* NAND framework ->exec_op() hooks and related helpers */ 2932 static void qcom_parse_instructions(struct nand_chip *chip, 2933 const struct nand_subop *subop, 2934 struct qcom_op *q_op) 2935 { 2936 struct qcom_nand_controller *nandc = get_qcom_nand_controller(chip); 2937 const struct nand_op_instr *instr = NULL; 2938 unsigned int op_id; 2939 int i; 2940 2941 memset(q_op, 0, sizeof(*q_op)); 2942 2943 for (op_id = 0; op_id < subop->ninstrs; op_id++) { > 2944 unsigned int offset, naddrs; 2945 const u8 *addrs; 2946 2947 instr = &subop->instrs[op_id]; 2948 2949 switch (instr->type) { 2950 case NAND_OP_CMD_INSTR: 2951 q_op->cmd_reg = qcom_op_cmd_mapping(nandc, instr->ctx.cmd.opcode, q_op); 2952 q_op->rdy_delay_ns = instr->delay_ns; 2953 break; 2954 2955 case NAND_OP_ADDR_INSTR: 2956 offset = nand_subop_get_addr_start_off(subop, op_id); 2957 naddrs = nand_subop_get_num_addr_cyc(subop, op_id); 2958 addrs = &instr->ctx.addr.addrs[offset]; 2959 for (i = 0; i < MAX_ADDRESS_CYCLE; i++) { 2960 if (i < 4) 2961 q_op->addr1_reg |= (u32)addrs[i] << i * 8; 2962 else 2963 q_op->addr2_reg |= addrs[i]; 2964 } 2965 q_op->rdy_delay_ns = instr->delay_ns; 2966 break; 2967 2968 case NAND_OP_DATA_IN_INSTR: 2969 q_op->data_instr = instr; 2970 q_op->data_instr_idx = op_id; 2971 q_op->rdy_delay_ns = instr->delay_ns; 2972 fallthrough; 2973 case NAND_OP_DATA_OUT_INSTR: 2974 q_op->rdy_delay_ns = instr->delay_ns; 2975 break; 2976 2977 case NAND_OP_WAITRDY_INSTR: 2978 q_op->rdy_timeout_ms = instr->ctx.waitrdy.timeout_ms; 2979 q_op->rdy_delay_ns = instr->delay_ns; 2980 break; 2981 } 2982 } 2983 } 2984 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki