Received: by 2002:ab2:5d18:0:b0:1ef:7a0f:c32d with SMTP id j24csp79667lqk; Sat, 9 Mar 2024 01:11:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVi8lI+cyk1fgz3zDym0x1Avk9W8yDOnI/XlZpoQA0QJGyqgdK0fmFaRB2DpeUo4Oz84y1yv87vWbkouOr0HeW4cg2wk3T+qa7IGddUKA== X-Google-Smtp-Source: AGHT+IEB4iKYv65iPQmRdHPKdziWSlCat8N07TlNdJ1sC/1W7Whx8JtrFkMV669p8/o3Waqd8Ksb X-Received: by 2002:a05:6a20:1b18:b0:1a1:56aa:1c62 with SMTP id ch24-20020a056a201b1800b001a156aa1c62mr1002402pzb.49.1709975481386; Sat, 09 Mar 2024 01:11:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709975481; cv=pass; d=google.com; s=arc-20160816; b=A5Guy2dc71w1zydgPskcRWyadICulanUoyvFLXwR/PpNdtdu5bOU3UvbNpFZPPLgJk kIcklWHav/F3S8Tx4DBdMAPCj+almlvGHDkXUJuF+77gTtvHg+y+2r3/PlSVKcYM7ioR oNg7qGXkexh28wNrmF0TFhXYS1ZAtrWlWH6AoNRlHB1UuBk6faupS68bHOJiB3Cus8wF +t3DMYWWbtoSyujnP9HNIW+UlmgcYd2rU8G4LNNixNIEBwowUStJyNDHmJMPaG5cS8NA GJgoGMqu4jPEFzXf+EI9kpcg+6Yn3DD8FzfIFomaYv9hQWBFyyoikcahITK8bUiFKxHR K3ug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=eqNmT55jTcvWbN7b37y3AhUIsk2g7VRwP9WuKg2uzU8=; fh=IIyq10C7OJx90tc9Kb72tpaLW/GwXUIvHzKDJgdxZu4=; b=RCLZ01ePnqwBip9wTXJWfuspN+WLh192Qk64txsEw3w/cZVBJJthrzoDy4IT4BadnN gEhU25qpjvB+4FVc+idZuaHIPehhtM1MngVPNys1KXsDIF/QDTm0z3t1ZF9aJ/pdxJEt 7Y9HJb330zK8IBpMoNOpen4tgghH4yU60EJOAB0bldVVpT4S74BesK1m1Y9erxajmGSj JfSmSZPgIli9vJwWi2CpidF430oKps7Y6BKPqGnetNMpcpPSW0k1djfU9qItQleVc9kk UWswx6/z8F4rglDaUPQBsxmhXQF5TY/8V06vdZ0jx66hSyO14F396H2aillLRmQzYR4q yl8A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Kdyp2x0q; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-crypto+bounces-2597-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2597-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id lb15-20020a17090b4a4f00b0029bbd2d93f6si2071288pjb.109.2024.03.09.01.11.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 01:11:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-2597-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Kdyp2x0q; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-crypto+bounces-2597-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2597-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 9AD6BB20E7E for ; Sat, 9 Mar 2024 09:11:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C1CDF23DB; Sat, 9 Mar 2024 09:11:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Kdyp2x0q" X-Original-To: linux-crypto@vger.kernel.org Received: from mail-oi1-f172.google.com (mail-oi1-f172.google.com [209.85.167.172]) (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 0937F25753 for ; Sat, 9 Mar 2024 09:11:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709975473; cv=none; b=SITNVoqxmclh0j1aIuuRSFkZsyZKS8LNBcP+3PHndHKtpTUhthyjUhwgeH1DP9kVkSTwbxoPbZeIwC/Iml4w//rYXexaMmPGMFVDgQFuXSg9xpP20ZVepq7uDvJkGy6FnFtN4G+Hq++XbZBoGuOWt78BbYTbd0RAIxZIoKoetss= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709975473; c=relaxed/simple; bh=K3WtC2amZZCVq3xeoEFYG11teftFq7BcqSEOPIPEFdY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=dnP8f7sj/HCFOdjPVrO+Orx8Cc7MSQ68Dqlid0T1arNWxgatHLP0WoRhczRTYsY0C+QKeuICW9eJDgE3+PRXKWNixD4a5X5QLdmXvGp35NVILLugSp8Z3dwLmcBZENaplgv6hMoSsQHgw7DyOVhelvQUOhdb4wXrmKFBqSFDYlg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Kdyp2x0q; arc=none smtp.client-ip=209.85.167.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oi1-f172.google.com with SMTP id 5614622812f47-3bbbc6e51d0so995148b6e.3 for ; Sat, 09 Mar 2024 01:11:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709975471; x=1710580271; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eqNmT55jTcvWbN7b37y3AhUIsk2g7VRwP9WuKg2uzU8=; b=Kdyp2x0qCPRDgryXUCZUtPgeG09hqjNokyi214gXeI0f0NGkQsTlbr4LR604PH5Dxl Cbf9HRN7HxM1JpG0m6Y4slbH+l/AIglG7tHCaAGOymZ9I1QtMpq+Oy2pxy+wD9pvEVnI /vAxeDJ7rEc58a1gGKsHhGM3MT6GV9LBJk0a8vpGtdrwsGhMWBYTjWgS9CYswW4nGSBw bhE8Mq8TwTXg6V/AUgBC3vf8y7SwSEfrictwVFj3VO+0IVKUXB1q5iQA3X46VsBqVjbX ZbdCEkn2tHTX/HQxpV4JOrIhOErLoPKXc5R1v4ieCqJX7Iw9x8NoH4QJM6JiDWi/2G16 23KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709975471; x=1710580271; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eqNmT55jTcvWbN7b37y3AhUIsk2g7VRwP9WuKg2uzU8=; b=mIQeNhvtwz+ze+D560jmujLfqMMvy9yuIlKYyNpyzrkN/ec+CxPt1GOP50WDarLfkf BQvmdPYkFeFMm0LHfku+rv2tJdtgFDljpx+Ztjy1Lz6eeDtu26s/pLYvY8RWm8AJa4Gi uTk5qLM/gXVHataVXXc3gUqyXypuh7N+B3C3wSStsCH2lIEp6hf2Fr62UhCdBe3k8Op5 vSPXVO2XnNsWh9J+Lpf4EDAQCmGhSa+sqGveV+73ucIK+HUfAFzbgespNTKWBNuOip43 nAf9vAMCSL88IHcFZr7TZgHBG314GLq3nK3mIAGp4IvRqwbTCX8EczAnPp3VV+JrG0X0 9x2A== X-Forwarded-Encrypted: i=1; AJvYcCXIiKgfx6pygu0tMs1RmF5JtDRU2euD1yvI6HLlvVlny6GpQfihYvWd6tdZqTESIigZTqtbDFaFjuhA8JcSBWzhQV1slT1s6VwLdhdW X-Gm-Message-State: AOJu0YyUp2sh3/F9X6+p9ezuR/wQ70mKDGk0VWh93lX1yQSBLhQN8v0Q 1MTraJBNtc4nbpDpZVeDxNheb1vgxhH05pqGVcoaFi3n8aozsSdR X-Received: by 2002:a05:6808:2204:b0:3c2:1db6:2513 with SMTP id bd4-20020a056808220400b003c21db62513mr1696818oib.56.1709975470849; Sat, 09 Mar 2024 01:11:10 -0800 (PST) Received: from localhost.localdomain ([2407:7000:8942:5500:aaa1:59ff:fe57:eb97]) by smtp.gmail.com with ESMTPSA id p5-20020a637f45000000b005dc1edf7371sm889096pgn.9.2024.03.09.01.11.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 01:11:10 -0800 (PST) From: Barry Song <21cnbao@gmail.com> To: lkp@intel.com, chenhuacai@kernel.org, kernel@xen0n.name Cc: herbert@gondor.apana.org.au, linux-crypto@vger.kernel.org, oe-kbuild-all@lists.linux.dev, v-songbaohua@oppo.com, loongarch@lists.linux.dev Subject: Re: [herbert-cryptodev-2.6:master 80/80] crypto/scompress.c:174:38: warning: unused variable 'dst_page' Date: Sat, 9 Mar 2024 22:10:57 +1300 Message-Id: <20240309091057.7954-1-21cnbao@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <202403091614.NeUw5zcv-lkp@intel.com> References: <202403091614.NeUw5zcv-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit > tree: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master > head: 77292bb8ca69c808741aadbd29207605296e24af > commit: 77292bb8ca69c808741aadbd29207605296e24af [80/80] crypto: scomp - remove memcpy if sg_nents is 1 and pages are lowmem > config: loongarch-defconfig (https://download.01.org/0day-ci/archive/20240309/202403091614.NeUw5zcv-lkp@intel.com/config) > compiler: loongarch64-linux-gcc (GCC) 13.2.0 > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240309/202403091614.NeUw5zcv-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/202403091614.NeUw5zcv-lkp@intel.com/ > > All warnings (new ones prefixed by >>): > > In file included from crypto/scompress.c:12: > include/crypto/scatterwalk.h: In function 'scatterwalk_pagedone': > include/crypto/scatterwalk.h:76:30: warning: variable 'page' set but not used [-Wunused-but-set-variable] > 76 | struct page *page; > | ^~~~ > crypto/scompress.c: In function 'scomp_acomp_comp_decomp': > >> crypto/scompress.c:174:38: warning: unused variable 'dst_page' [-Wunused-variable] > 174 | struct page *dst_page = sg_page(req->dst); > | ^~~~~~~~ > > > vim +/dst_page +174 crypto/scompress.c > > 112 > 113 static int scomp_acomp_comp_decomp(struct acomp_req *req, int dir) > 114 { > 115 struct crypto_acomp *tfm = crypto_acomp_reqtfm(req); > 116 void **tfm_ctx = acomp_tfm_ctx(tfm); > [snipped] > 171 } else { > 172 int nr_pages = DIV_ROUND_UP(req->dst->offset + req->dlen, PAGE_SIZE); > 173 int i; > > 174 struct page *dst_page = sg_page(req->dst); > 175 > 176 for (i = 0; i < nr_pages; i++) > 177 flush_dcache_page(dst_page + i); + Huacai, Xuerui loongarch code needs a fix, it should have removed the below two macros: diff --git a/arch/loongarch/include/asm/cacheflush.h b/arch/loongarch/include/asm/cacheflush.h index 80bd74106985..f8754d08a31a 100644 --- a/arch/loongarch/include/asm/cacheflush.h +++ b/arch/loongarch/include/asm/cacheflush.h @@ -37,8 +37,6 @@ void local_flush_icache_range(unsigned long start, unsigned long end); #define flush_icache_range local_flush_icache_range #define flush_icache_user_range local_flush_icache_range -#define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 0 - #define flush_cache_all() do { } while (0) #define flush_cache_mm(mm) do { } while (0) #define flush_cache_dup_mm(mm) do { } while (0) @@ -47,7 +45,6 @@ void local_flush_icache_range(unsigned long start, unsigned long end); #define flush_cache_vmap(start, end) do { } while (0) #define flush_cache_vunmap(start, end) do { } while (0) #define flush_icache_user_page(vma, page, addr, len) do { } while (0) -#define flush_dcache_page(page) do { } while (0) #define flush_dcache_mmap_lock(mapping) do { } while (0) #define flush_dcache_mmap_unlock(mapping) do { } while (0) as include/asm-generic/cacheflush.h already has the below, #ifndef ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE static inline void flush_dcache_page(struct page *page) { } #define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 0 #endif > 178 } > 179 } > 180 out: > 181 spin_unlock(&scratch->lock); > 182 return ret; > 183 } > 184 > > -- > 0-DAY CI Kernel Test Service > https://github.com/intel/lkp-tests/wiki Thanks Barry