Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp593169lqi; Thu, 7 Mar 2024 06:26:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUXIbmjBPoWyo/u2tyYOslMpAnhBB0kEOb8tD8wIYADLN7lw1SAkf6DJhgdYKomIOU1Gf9WLh+0GVkzBkpQMKk98+SRF8npWNOm8djNHA== X-Google-Smtp-Source: AGHT+IFAXYz6VsnZcURURfNAC0jPlgHh9YyCGX3Ihb5dY8dFQvePGe7Gfa14ZM3psyQOGfHF/l+w X-Received: by 2002:a17:90b:4d8d:b0:29a:83da:efd1 with SMTP id oj13-20020a17090b4d8d00b0029a83daefd1mr15171460pjb.6.1709821590779; Thu, 07 Mar 2024 06:26:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709821590; cv=pass; d=google.com; s=arc-20160816; b=dUXUWXrOqp/TdWB4VfH0B0kdY0G2abiVxYU585igRYXCjxIyeXn9JkGGINIaZaDH+4 rdl523eB5r5OkhBwkuptJHgBv9VrIb/AFUFrZGXqgYhLO4Fj4iRegur9nT8KoKn6Kv1r OIHh+RM3OM6D7NV8p7pQwdvURtPXCgk52V28nsIz8QlkvJ8c1dz38B+YEbVZbjAxBTZS 4yrab+3Ul4JQ0JhQiXrH9GGd3dXii1j7NbdybaDRdLV4VyY36doj/Z8+fsoIbZwULACx 0GevaOPyaT4XCtTqDl+ie2j2p2R/2V9iVc1kji6Ajwrvi0qOrUMKi72jex3CUCvP4al4 Ysuw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:subject:cc:to:from :date:dkim-signature; bh=KLkEU65YERPzZDXp5EuRPV0oeNk1pD4FHKA6c0/zoZU=; fh=gIOipQBul+WviIGtB3sVHNJbEEEOpiWX+6UzjjHWN/U=; b=0Scd3RRiRih0qfDCkAaS449f9G451v77qFuY1LK4CELCeLVGJOqX2xlpAg1ssDUteC 9LiSgZ97Y2GtQrWkDyzXnLp89WgLXt1tfk6bIWz0vKYM4WTqUqsEZKvxktCnmWS7VVH6 pw9xzHMywPUhuiWTL4n7q7PKiLhmKCnQ8g6ZzTbrW3hLe8XCs/ci2m6QBjWeIRg5lIj4 Xbxe2Uli/kTOFYDL+ZQg3ZTTrlJVL717J3AaplbenmnMppk/wgAdOeGozwKcEkMLHOV/ lJy7RaJxCuRF1yXYX9mca4QsMKn6gakp3LKac6eJJinLFck17pw/qYJd8MQUUWiz2SAJ RJrw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RaW2xz0W; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-crypto+bounces-2557-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2557-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id bo21-20020a17090b091500b0029b92eb63c5si1048167pjb.143.2024.03.07.06.26.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 06:26:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-2557-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RaW2xz0W; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-crypto+bounces-2557-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2557-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 6599F286F78 for ; Thu, 7 Mar 2024 14:26:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 87B831D699; Thu, 7 Mar 2024 14:24:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="RaW2xz0W" X-Original-To: linux-crypto@vger.kernel.org Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 60A7E12E1C4 for ; Thu, 7 Mar 2024 14:24:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709821474; cv=none; b=tNztL1hb22m+NdEBnhOI5aiO/tJ4WmAV3T1aOzAV8SheSrTllBPHz7dxXyRypBCsDUgs0faTqCsCNy67yOPgqLA84l5Xmo/LRyhhj7/qHZYMTp5YhtbiMTIgflsW8MUe0EicETBJLpBkCaz7iiw/9CFx1WCBrEc+UvCaAR5Wsf0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709821474; c=relaxed/simple; bh=XfdgPqsryEimkaX+ec7UD2N0XK3t6eWPFGrc88DKSis=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=OFalocsW1yPoo7WioJ6xFbmraysGbzAAeQrIRfLNKN1JprvA5lCpNnhzUKwQ1l5toyJCvfYYADKZShR+vGYTzOOyhFzdlMt8SmwnPYjZcheuvpmDNHa7vfhUl170DkekkqXjZKdhGwh9UFV7zqIq/SRlj9aZ9Ysczi5WmpTQgaQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=RaW2xz0W; arc=none smtp.client-ip=209.85.128.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-412f1ccf8d8so9073765e9.1 for ; Thu, 07 Mar 2024 06:24:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709821471; x=1710426271; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=KLkEU65YERPzZDXp5EuRPV0oeNk1pD4FHKA6c0/zoZU=; b=RaW2xz0WwSzhWE1m2APTCZnHb6eDF7qaLL7eM9pmJZhisPLxUXNwjl6lZTbCHjbCoW DLsWBlgsZRE9Azd70ApjYI2OdL2olcWf4cZ3wmZ4JhLZxTcqaKENFej3b9MK+9Nd8brP hMCkrjgLbBHYutoSn93c/3rtGCjtcSUp6lInHukw6MuWBWt4EFwGkYwpiHuMa6xm05du aWMj6kRrpGpnkx91cGwPNiM6/0LWG5pEx0f7TJby7QRowqxnfgIYJC1+yJIgWlLItqXk 86FSu9Nq/GMJJtwJp7eJ/inYpi0UBjI+C1yXEeryoltOHVb5fET5xF+XIfdV0eTSBumk G5Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709821471; x=1710426271; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:from:date:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KLkEU65YERPzZDXp5EuRPV0oeNk1pD4FHKA6c0/zoZU=; b=lnB9BNIN2PYWKhzZAa6QpeFO553knm6eRrO3pWt/UdRjJEWiu2IPLoy6CrtzTOZSwy B2HY546PSTa+uUjbqOnSc/P94mKlCP1J7ar2KZKtPpa6KrZzQUOftTt1id+ddG01pw4Q vSmvvUeXOEnabxUp7x/DwZ4acTiTN7Z/MAh0WfHE0xN/p4JZSKZSaNiyyFG1G/SskTAR OChyZBJNjF5Q4UmurRwMxpWOWm+UWgllsot+yCI2tXX2lxD13twFhTf/BVH8wB0TeAPY Yy4c/07r9n9HjI8Q/VDdeNdxBnyI+dv+WAWoZVKupeUuxfUkSldjcM7FAC2fcgpZuGLR M5WQ== X-Forwarded-Encrypted: i=1; AJvYcCUyBAVlZvyDXBeeFXccAtrzCpA5b7Gre6BbK2izYAjFNoYJeRtWOProcNYyTs18+Zh+kr8EwaMdRPvrO1QNWCouyZDmc4+zHUgpj6Bs X-Gm-Message-State: AOJu0YwDA8UhJX8Pbp31Byr647/cz+8ID/TDMrx2ZFP2FYuvQXW6HAqk 1jAlos0zbwb61h5cxJPW5hDxYBf4oLEDEEmzz8x72p+Ok+QvClHrPAq1jlWRX5M= X-Received: by 2002:a05:600c:474a:b0:412:bf52:9ac2 with SMTP id w10-20020a05600c474a00b00412bf529ac2mr14481024wmo.14.1709821470461; Thu, 07 Mar 2024 06:24:30 -0800 (PST) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id bq27-20020a5d5a1b000000b0033e6879817esm1363499wrb.58.2024.03.07.06.24.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 06:24:30 -0800 (PST) Date: Thu, 7 Mar 2024 17:24:26 +0300 From: Dan Carpenter To: oe-kbuild@lists.linux.dev, Pavitrakumar M , herbert@gondor.apana.org.au, linux-crypto@vger.kernel.org Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev, Ruud.Derwig@synopsys.com, manjunath.hadli@vayavyalabs.com, Pavitrakumar M Subject: Re: [PATCH 4/4] Enable Driver compilation in crypto Kconfig and Makefile file Message-ID: Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240305112831.3380896-5-pavitrakumarm@vayavyalabs.com> Hi Pavitrakumar, kernel test robot noticed the following build warnings: https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Pavitrakumar-M/Add-SPAcc-driver-to-Linux-kernel/20240305-193337 base: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master patch link: https://lore.kernel.org/r/20240305112831.3380896-5-pavitrakumarm%40vayavyalabs.com patch subject: [PATCH 4/4] Enable Driver compilation in crypto Kconfig and Makefile file config: m68k-randconfig-r081-20240307 (https://download.01.org/0day-ci/archive/20240307/202403072256.em3Fk3At-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 13.2.0 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 | Reported-by: Dan Carpenter | Closes: https://lore.kernel.org/r/202403072256.em3Fk3At-lkp@intel.com/ New smatch warnings: drivers/crypto/dwc-spacc/spacc_ahash.c:1057 spacc_hash_digest() error: uninitialized symbol 'total_len'. Old smatch warnings: drivers/crypto/dwc-spacc/spacc_ahash.c:271 spacc_hash_init_dma() error: uninitialized symbol 'sgl_buffer'. vim +/total_len +1057 drivers/crypto/dwc-spacc/spacc_ahash.c 6ad822cec22644 Pavitrakumar M 2024-03-05 981 6ad822cec22644 Pavitrakumar M 2024-03-05 982 static int spacc_hash_digest(struct ahash_request *req) 6ad822cec22644 Pavitrakumar M 2024-03-05 983 { 6ad822cec22644 Pavitrakumar M 2024-03-05 984 int final = 0; 6ad822cec22644 Pavitrakumar M 2024-03-05 985 int rc, total_len; 6ad822cec22644 Pavitrakumar M 2024-03-05 986 struct crypto_ahash *reqtfm = crypto_ahash_reqtfm(req); 6ad822cec22644 Pavitrakumar M 2024-03-05 987 struct spacc_crypto_ctx *tctx = crypto_ahash_ctx(reqtfm); 6ad822cec22644 Pavitrakumar M 2024-03-05 988 struct spacc_crypto_reqctx *ctx = ahash_request_ctx(req); 6ad822cec22644 Pavitrakumar M 2024-03-05 989 struct spacc_priv *priv = dev_get_drvdata(tctx->dev); 6ad822cec22644 Pavitrakumar M 2024-03-05 990 6ad822cec22644 Pavitrakumar M 2024-03-05 991 if (tctx->flag_ppp) { 6ad822cec22644 Pavitrakumar M 2024-03-05 992 /* from finup */ 6ad822cec22644 Pavitrakumar M 2024-03-05 993 ctx->single_shot = 0; 6ad822cec22644 Pavitrakumar M 2024-03-05 994 ctx->final_part_pck = 1; 6ad822cec22644 Pavitrakumar M 2024-03-05 995 final = 2; 6ad822cec22644 Pavitrakumar M 2024-03-05 996 } else { 6ad822cec22644 Pavitrakumar M 2024-03-05 997 /* direct single shot digest call */ 6ad822cec22644 Pavitrakumar M 2024-03-05 998 ctx->single_shot = 1; 6ad822cec22644 Pavitrakumar M 2024-03-05 999 ctx->rem_len = 0; 6ad822cec22644 Pavitrakumar M 2024-03-05 1000 ctx->total_nents = sg_nents(req->src); 6ad822cec22644 Pavitrakumar M 2024-03-05 1001 } 6ad822cec22644 Pavitrakumar M 2024-03-05 1002 6ad822cec22644 Pavitrakumar M 2024-03-05 1003 if (tctx->handle < 0 || !tctx->ctx_valid || 6ad822cec22644 Pavitrakumar M 2024-03-05 1004 req->nbytes > priv->max_msg_len) 6ad822cec22644 Pavitrakumar M 2024-03-05 1005 goto fallback; "total_len" not intialized for these gotos 6ad822cec22644 Pavitrakumar M 2024-03-05 1006 6ad822cec22644 Pavitrakumar M 2024-03-05 1007 rc = spacc_hash_init_dma(tctx->dev, req, final); 6ad822cec22644 Pavitrakumar M 2024-03-05 1008 if (rc < 0) 6ad822cec22644 Pavitrakumar M 2024-03-05 1009 goto fallback; 6ad822cec22644 Pavitrakumar M 2024-03-05 1010 6ad822cec22644 Pavitrakumar M 2024-03-05 1011 if (rc == 0) 6ad822cec22644 Pavitrakumar M 2024-03-05 1012 return 0; 6ad822cec22644 Pavitrakumar M 2024-03-05 1013 6ad822cec22644 Pavitrakumar M 2024-03-05 1014 if (final) { 6ad822cec22644 Pavitrakumar M 2024-03-05 1015 if (ctx->total_nents) { 6ad822cec22644 Pavitrakumar M 2024-03-05 1016 /* INIT-UPDATE-UPDATE-FINUP/FINAL */ 6ad822cec22644 Pavitrakumar M 2024-03-05 1017 total_len = tctx->ppp_sgl[0].length; 6ad822cec22644 Pavitrakumar M 2024-03-05 1018 } else if (req->src->length == 0 && ctx->total_nents == 0) { 6ad822cec22644 Pavitrakumar M 2024-03-05 1019 /* zero msg handling */ 6ad822cec22644 Pavitrakumar M 2024-03-05 1020 total_len = 0; 6ad822cec22644 Pavitrakumar M 2024-03-05 1021 } else { 6ad822cec22644 Pavitrakumar M 2024-03-05 1022 /* handle INIT-FINUP sequence, process req->nbytes */ 6ad822cec22644 Pavitrakumar M 2024-03-05 1023 total_len = req->nbytes; 6ad822cec22644 Pavitrakumar M 2024-03-05 1024 } 6ad822cec22644 Pavitrakumar M 2024-03-05 1025 6ad822cec22644 Pavitrakumar M 2024-03-05 1026 rc = spacc_packet_enqueue_ddt(&priv->spacc, ctx->acb.new_handle, 6ad822cec22644 Pavitrakumar M 2024-03-05 1027 &ctx->src, &ctx->dst, total_len, 6ad822cec22644 Pavitrakumar M 2024-03-05 1028 0, total_len, 0, 0, 0); 6ad822cec22644 Pavitrakumar M 2024-03-05 1029 } else { 6ad822cec22644 Pavitrakumar M 2024-03-05 1030 rc = spacc_packet_enqueue_ddt(&priv->spacc, ctx->acb.new_handle, 6ad822cec22644 Pavitrakumar M 2024-03-05 1031 &ctx->src, &ctx->dst, req->nbytes, 6ad822cec22644 Pavitrakumar M 2024-03-05 1032 0, req->nbytes, 0, 0, 0); 6ad822cec22644 Pavitrakumar M 2024-03-05 1033 } 6ad822cec22644 Pavitrakumar M 2024-03-05 1034 6ad822cec22644 Pavitrakumar M 2024-03-05 1035 if (rc < 0) { 6ad822cec22644 Pavitrakumar M 2024-03-05 1036 spacc_hash_cleanup_dma(tctx->dev, req); 6ad822cec22644 Pavitrakumar M 2024-03-05 1037 spacc_close(&priv->spacc, ctx->acb.new_handle); 6ad822cec22644 Pavitrakumar M 2024-03-05 1038 6ad822cec22644 Pavitrakumar M 2024-03-05 1039 if (rc != -EBUSY) { 6ad822cec22644 Pavitrakumar M 2024-03-05 1040 pr_debug("Failed to enqueue job, ERR: %d\n", rc); 6ad822cec22644 Pavitrakumar M 2024-03-05 1041 return rc; 6ad822cec22644 Pavitrakumar M 2024-03-05 1042 } 6ad822cec22644 Pavitrakumar M 2024-03-05 1043 6ad822cec22644 Pavitrakumar M 2024-03-05 1044 if (!(req->base.flags & CRYPTO_TFM_REQ_MAY_BACKLOG)) 6ad822cec22644 Pavitrakumar M 2024-03-05 1045 return -EBUSY; 6ad822cec22644 Pavitrakumar M 2024-03-05 1046 6ad822cec22644 Pavitrakumar M 2024-03-05 1047 goto fallback; 6ad822cec22644 Pavitrakumar M 2024-03-05 1048 } 6ad822cec22644 Pavitrakumar M 2024-03-05 1049 6ad822cec22644 Pavitrakumar M 2024-03-05 1050 return -EINPROGRESS; 6ad822cec22644 Pavitrakumar M 2024-03-05 1051 6ad822cec22644 Pavitrakumar M 2024-03-05 1052 fallback: 6ad822cec22644 Pavitrakumar M 2024-03-05 1053 /* Start from scratch as init is not called before digest */ 6ad822cec22644 Pavitrakumar M 2024-03-05 1054 ctx->fb.hash_req.base = req->base; 6ad822cec22644 Pavitrakumar M 2024-03-05 1055 ahash_request_set_tfm(&ctx->fb.hash_req, tctx->fb.hash); 6ad822cec22644 Pavitrakumar M 2024-03-05 1056 6ad822cec22644 Pavitrakumar M 2024-03-05 @1057 ctx->fb.hash_req.nbytes = total_len; ^^^^^^^^^ 6ad822cec22644 Pavitrakumar M 2024-03-05 1058 ctx->fb.hash_req.src = req->src; 6ad822cec22644 Pavitrakumar M 2024-03-05 1059 ctx->fb.hash_req.result = req->result; 6ad822cec22644 Pavitrakumar M 2024-03-05 1060 6ad822cec22644 Pavitrakumar M 2024-03-05 1061 return crypto_ahash_digest(&ctx->fb.hash_req); 6ad822cec22644 Pavitrakumar M 2024-03-05 1062 } -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki