From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48766C433EF for ; Wed, 23 Mar 2022 03:35:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241536AbiCWDgw (ORCPT ); Tue, 22 Mar 2022 23:36:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236272AbiCWDgt (ORCPT ); Tue, 22 Mar 2022 23:36:49 -0400 Received: from fornost.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 788FF7087E; Tue, 22 Mar 2022 20:35:19 -0700 (PDT) Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1nWrmB-0003Nm-JV; Wed, 23 Mar 2022 14:35:12 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Wed, 23 Mar 2022 15:35:10 +1200 Date: Wed, 23 Mar 2022 15:35:10 +1200 From: Herbert Xu To: Guenter Roeck , Linus Torvalds , Linux Kernel Mailing List Cc: Harsha , Linux Crypto Mailing List , Matthew Wilcox , Andrew Morton Subject: [PATCH] cacheflush.h: Add forward declaration for struct folio Message-ID: References: <20220322131327.GA747088@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220322131327.GA747088@roeck-us.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 22, 2022 at 06:13:27AM -0700, Guenter Roeck wrote: > On Wed, Mar 09, 2022 at 03:20:01PM +1200, Herbert Xu wrote: > > This patch turns the new SHA driver into a tristate and also allows > > compile testing. > > > > Signed-off-by: Herbert Xu > > This results in: > > Building s390:allmodconfig ... failed > -------------- > Error log: > In file included from drivers/crypto/xilinx/zynqmp-sha.c:6: > include/linux/cacheflush.h:12:46: error: 'struct folio' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] > 12 | static inline void flush_dcache_folio(struct folio *folio) This should be fixed in cacheflush.h: ---8<--- The struct folio is not declared in cacheflush.h so we need to provide a forward declaration as otherwise users of this header file may get warnings. Reported-by: Guenter Roeck Fixes: 522a0032af00 ("Add linux/cacheflush.h") Signed-off-by: Herbert Xu diff --git a/include/linux/cacheflush.h b/include/linux/cacheflush.h index fef8b607f97e..a6189d21f2ba 100644 --- a/include/linux/cacheflush.h +++ b/include/linux/cacheflush.h @@ -4,6 +4,8 @@ #include +struct folio; + #if ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE #ifndef ARCH_IMPLEMENTS_FLUSH_DCACHE_FOLIO void flush_dcache_folio(struct folio *folio); -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt