Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp262233iol; Thu, 9 Jun 2022 03:28:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzc4V1fTnVE/JnBxjlQyunVcXOGC4tVF7/OrbTeDj0DHkmGoPQ5rK6IdGvYn0rLWDhSp3Pd X-Received: by 2002:a17:906:b881:b0:709:80e9:8c0b with SMTP id hb1-20020a170906b88100b0070980e98c0bmr34521299ejb.110.1654770497837; Thu, 09 Jun 2022 03:28:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654770497; cv=none; d=google.com; s=arc-20160816; b=IWLvUa/MdENnza35BtwCOUe0sJCV+zxwUbzAFVlyUpi7Qar6vhoGryOjeUc9W6zAew RAJvEjMSX2Xw68UXihza6GjBB/H7wU3FnIV96DnlqLioMIwWDP7YDWl5hvgecsqb3ZEQ hJiBA0cAmpEnei9eSl9oAbgjOXGi+ySErxpx9z2MI/udWOGeoNop1wvqOSjTBXtwo40Y r8SyDn+VyPWNSZ2KJIHB+hTLMWAJzvJdTWVsq+epyYE86MhMkB6q+/Oa6FEaCPXUp4qA h1S+uXiqLEmPrmGi6Rqj/txqg3Ks3auRKUueHa99sCfQv4aLl7I62BqGWll4fDU/Y9mK FKmw== 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; bh=eye2lcsnCn5rZXGM4kYswt5FHYcTRt1oAfJcL+S7cto=; b=dLUJ45jN6zxlumHObl0n+dLJFNyITw633KAE5HpFaUIhLkP7+3fTJieCP5o62l3/hC 3caFmLNTg2MHIUhxHIKiJ6wXGqtXdIfvmG116tQzkX3AWL405v4tygNO2iKnQJtstTI7 N9IafCxfJ2TJxb/jveXjs9AssCSN/l//TeajYJyxHtiUBzHMXSaSXC25ffVVlSevDPyN jwY8hrqi2nWyJKSL+68RiU7CrZ60OtCRa4e8ab14gsZiFMJ0P5GbXlNbY++pTwaiTpHp gb9Jd1ufWIqq4dV8zSjtEYBuMza8qMs5CFFJRFKUoIoUjibEMDc5pf0WjWFHG0RHEzSJ 6FQA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n13-20020aa7c44d000000b0042dd005675esi469789edr.410.2022.06.09.03.27.37; Thu, 09 Jun 2022 03:28:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234332AbiFIKQJ (ORCPT + 99 others); Thu, 9 Jun 2022 06:16:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241879AbiFIKQF (ORCPT ); Thu, 9 Jun 2022 06:16:05 -0400 Received: from fornost.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2039DB36EE; Thu, 9 Jun 2022 03:16:01 -0700 (PDT) Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1nzFCF-004yZH-QF; Thu, 09 Jun 2022 20:15:25 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Thu, 09 Jun 2022 18:15:24 +0800 Date: Thu, 9 Jun 2022 18:15:24 +0800 From: Herbert Xu To: Christophe JAILLET Cc: "David S. Miller" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-crypto@vger.kernel.org Subject: Re: [PATCH] crypto: x86/camellia - Replace kernel.h with the necessary inclusions Message-ID: References: <65634fb748cc0ce2cc5bafaf904cb5f76bd4edc4.1654414362.git.christophe.jaillet@wanadoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <65634fb748cc0ce2cc5bafaf904cb5f76bd4edc4.1654414362.git.christophe.jaillet@wanadoo.fr> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,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-crypto@vger.kernel.org On Sun, Jun 05, 2022 at 09:32:53AM +0200, Christophe JAILLET wrote: > When kernel.h is used in the headers it adds a lot into dependency hell, > especially when there are circular dependencies are involved. > > Replace kernel.h inclusion with the list of what is really being used. > > Signed-off-by: Christophe JAILLET > --- > arch/x86/crypto/camellia.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/x86/crypto/camellia.h b/arch/x86/crypto/camellia.h > index 1dcea79e8f8e..547fb7e30928 100644 > --- a/arch/x86/crypto/camellia.h > +++ b/arch/x86/crypto/camellia.h > @@ -4,7 +4,7 @@ > > #include > #include > -#include > +#include > > #define CAMELLIA_MIN_KEY_SIZE 16 > #define CAMELLIA_MAX_KEY_SIZE 32 This is not sufficient. For example, asmlinkage isn't explicitly defined by any of these header files so it would be relying on an implicit inclusion which is prone to breakage. Did you audit the entire file? Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt