Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp891941lql; Tue, 12 Mar 2024 00:32:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV1uyhkBUwwjmcjOlKX/Q0Z9eusyprZDQ1bjBny0cDWPcp6nuDhXV2i3cV/10kYwoump4/+CCKgomGA09jR6W8ES8TFJQp0PziqBgQGWg== X-Google-Smtp-Source: AGHT+IGvmvlvD3cZTPI5DL1b9f6ncR/BiN1KB4r7YazG8msxuTCyLjLFqtfCTIskwSdKIIXrGVXl X-Received: by 2002:a9d:6b0a:0:b0:6e5:3c4f:c854 with SMTP id g10-20020a9d6b0a000000b006e53c4fc854mr971359otp.28.1710228728139; Tue, 12 Mar 2024 00:32:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710228728; cv=pass; d=google.com; s=arc-20160816; b=gPYMOse7GbJp0wtRwVRYvxNQt6yemfQfY1i1CJFoedbLTAmCtZdHZsQAwb1n1IbPzk kzgqK2wqHWCyJK38q6s46eRPSzunl4jMD+3AyrKC1h65oG4g5TaDKbO73vUYxo3bPM1b n9K63uybQ+QVMrVwHkXrhBDQxBgzeaKhwMMHjDl6NLn8kw5TMxMXjhBW83lArZ+InjIA lY2dVUHrr8H2ATVtzg+TUdjhsc4vLG9CzFcsLPRlhKjYci/IeHEE6s3+U2H2G7C6UGbl Jp3nT84ZAbKoz7nWIz4o4lXQKnB/60mLC2gp88NVQW/iI+WQBAW+5IFJ5FF+JANJ7i9t Hj/Q== 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:message-id:date:subject:cc:to :from; bh=+ST7P/D4yNmfnOKf+NBR5cVYno0XxD2TDT7eXLuaJwQ=; fh=7dNTOkFOFk0heWEMFrlHBKdnyd+Z5iJpcUc9kD+H+0c=; b=rgsyw5InunMXXmO4tAwZFIiLvi/vHlGd9V6xw3IKEx6riEsB3rDNN5ZgIjto8qz/0k ZCQEL/3ngJLYZfbkKpS7CkdJZZDyUUdz8JtQ8t8KaIbCfPPwlkCxOkn9QYFiZ3d7ezuC VSpCfyKYWNXnPwrwb6ffo9qrkLYhodUWxfK7FyytPnZjt+gUpSFzbTIQ7Z/DdfhzRaqE 6deVThDPV1M3owSilB6/vVB8Sw1NDlC/743ZjuTK0Nbqphl1gz6gGB/G3lRRI6GsVVku 2MH+zjVKaAqEQdl8kL0UZaMJw4zej+CQaKG7/x6SIV+hC7rCL4QsDuqwARH2sD85EMoj WCKA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-99912-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99912-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id c126-20020a633584000000b005e44b47f272si6662126pga.410.2024.03.12.00.32.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 00:32:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99912-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; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-99912-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99912-linux.lists.archive=gmail.com@vger.kernel.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id BCA82B215C9 for ; Tue, 12 Mar 2024 07:32:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 81FA569965; Tue, 12 Mar 2024 07:31:55 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0166C69944; Tue, 12 Mar 2024 07:31:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710228715; cv=none; b=npWPN8fC/e4NVRFhNidgnr2zTNojRwR2PoEKWdtSHtnQGdDyNLmnqo8d9iWDGBhFDt95fXQnoJCXX/UZXCoeUEoVQlgcUraHnXyCw+VjJ01VRM57n6RiUFLg4qL2clQBhVIRmlAx9c4sP+RJasugQDbRCYSsjBWMcNXTIPZHc0I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710228715; c=relaxed/simple; bh=C/YtlJq6MD68YVbA5nvbcQYlt9pBdSBOZia86ZjMxUg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=A1Pu8I4M9Zi61P1Rix2vhyIaZoqpqUP4Z/6FGKs9ivrCDprmfmVESd8iFuDMzyooDFfoZ0xZQNijkSlvBAi5NnJkaKOArfGic1/QxMH1FhcoRr50gbryg+9xZz9ne0dZVhqg8EoqVRPLjqEnu1CUU92HHFsAsok34AzTRa45pBA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA9E6C433C7; Tue, 12 Mar 2024 07:31:50 +0000 (UTC) From: Huacai Chen To: Arnd Bergmann , Huacai Chen Cc: loongarch@lists.linux.dev, linux-arch@vger.kernel.org, Xuefeng Li , Guo Ren , Xuerui Wang , Jiaxun Yang , linux-kernel@vger.kernel.org, loongson-kernel@lists.loongnix.cn, Huacai Chen , kernel test robot , Barry Song <21cnbao@gmail.com> Subject: [PATCH] LoongArch: Remove superfluous flush_dcache_page() definition Date: Tue, 12 Mar 2024 15:31:31 +0800 Message-ID: <20240312073131.2278318-1-chenhuacai@loongson.cn> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit LoongArch doesn't have cache aliases, so flush_dcache_page() is a no-op. There is a generic implementation for this case in include/asm-generic/ cacheflush.h. So remove the superfluous flush_dcache_page() definition, which also silences such build warnings: 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); | Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202403091614.NeUw5zcv-lkp@intel.com/ Suggested-by: Barry Song <21cnbao@gmail.com> Signed-off-by: Huacai Chen --- arch/loongarch/include/asm/cacheflush.h | 3 --- 1 file changed, 3 deletions(-) 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) -- 2.43.0