From patchwork Thu Aug 13 03:25:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 247650 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp924997ilo; Wed, 12 Aug 2020 20:26:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgHDm5Umk8k/ImgXeweJZ1ha1ialevQ92uaSwyNAhEwosVX5Sm8jg0j3sC4LTQKnB0EO5r X-Received: by 2002:a25:b196:: with SMTP id h22mr4104918ybj.350.1597289194180; Wed, 12 Aug 2020 20:26:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597289194; cv=none; d=google.com; s=arc-20160816; b=VAUdzTh6kRM1/f46CYyvdNlLmfsZZ8Hm4YpOEdEWT3Q6HYPrl+U5tecjolIjUcKavq 5RTZjQumF0iBUCEhNBciKQC0F6VcyoGReVp7SgW4SQA9BjpinIf/SjEtCN43GsFGiFs+ Pif+ei2oh41InBgoYjuh/Y5fJn6CTuJx2dm90Fy5xcbvrvjConxhvyEeNdiPfiA86pyR Shhb3oNz4zC5OH2H4zpaZ28JKhxq6H6FOrJlmq2L2JRCXiNRGww0jXCP9vrozyfMsVM4 /WC7PMDv1rVnldePeMiCN0FC0e26mAUDKAb6AZRi/NdAalOfmzuZe+LmzBgi/O82uXux eWmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=A5uJbNu7KhMXozinpokK4dHKz2PI9j6DphdzziNCjIw=; b=Vu21y3A6Ggymzd6y8B64XweBkgwbpkCn7soNr7ZhEtMxpVmRlUUb1SrDDuYzZokWME eF1tRXdnpcrEwqO3JdrgtDYpBPMITaFDMY7Zqhq3XDvfBSRGgkfRPHqXkC18lFMXVP4c hYePm4ptv4wu/w20fF7VuVUotsXViJfbGMQpI0lOqYcwZRW7h3fvjP3e2WIcKGPt1QQW 57kHcWMe2rVoDBiuxKQEqN1gpiX8dhqobZ3+N2p8Ku9UcES1iAKD4JslgGMVz026TbJi lhfnVHdkz2Bw4o2Vb+kK7qY2O0/LWJoyQ+2fREhM4nfmfktIUtk5s1UQ0jiDGoaPb42M NNFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CVXlmHiU; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id a13si3913015ybp.29.2020.08.12.20.26.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 Aug 2020 20:26:34 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CVXlmHiU; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:44294 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k63sv-0004ki-Jv for patch@linaro.org; Wed, 12 Aug 2020 23:26:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k63s8-0004jL-Tg for qemu-devel@nongnu.org; Wed, 12 Aug 2020 23:25:44 -0400 Received: from mail-pj1-x1041.google.com ([2607:f8b0:4864:20::1041]:38613) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k63s7-0008UC-BS for qemu-devel@nongnu.org; Wed, 12 Aug 2020 23:25:44 -0400 Received: by mail-pj1-x1041.google.com with SMTP id ep8so2101180pjb.3 for ; Wed, 12 Aug 2020 20:25:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=A5uJbNu7KhMXozinpokK4dHKz2PI9j6DphdzziNCjIw=; b=CVXlmHiUSZ1o1UuKBH6qTEGG55bIak/MLaxqN37o8tl6g8s+ko0r0O7tUjD6K3bg17 yQ+DD57GuaG9ZeZguoQlU+omlTAColokyF1nxH+fpWg2/99AcoqkNdJfuYtqqgok8k/k MgclWTev6z01uRLRtQjn//ZE9CM7WMqPNMcLd4/9CJbPI14pQxUiqiLxhA3xr3gdYiSz fXWas2osKONBpp8rLmJL+zLmTGG+BXnLewYLLBjju1g0aVZTF1WRj07HfnMlW4V0AR09 wya7FUE+pv3nBRJLW1wQdwhaoPGYuIxcw4WQdwlE8e9yt+z6+eoWb+WWntKyJ0RrmjXt cfvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=A5uJbNu7KhMXozinpokK4dHKz2PI9j6DphdzziNCjIw=; b=JjwnQSjpDPrmb8eqwVWLEkzaz3FnZe+mYoXIXRqbtQMtPcUoJorAlvv3ausxtQfvFT U5dHj8Acv9NIQWETLaYTI5A2z981OyqmLHxN/tzJregEjHGsYY2thzNQmgrPrLeoCQqA OybAiL+0962BtM8/rwDyv5IgWqXRCOxS28gxrZFcMffDwq25h3DNzWsEh4lG1r1+XBVO F24xbyP3TdjACyLqlhD6eP0+QmIUONCoQsi29HlubcQ6FfGV+tuz/CvzF2cKCQl8Ps3P MdYEllpCeioSlccHbJV+sH5jWwJLbNurwCGiXkMHXlXXKNvdyHForRdcaNZEy3cqi94b PGqw== X-Gm-Message-State: AOAM532fQd4fRAlhho/8g3ry/7ClT9S+Up71QGMmyGgTeaa+L1oloGYv 8K/DOePsu54H8sfgRaIn0MZT8IzSPwA= X-Received: by 2002:a17:902:82c2:: with SMTP id u2mr2176851plz.239.1597289141727; Wed, 12 Aug 2020 20:25:41 -0700 (PDT) Received: from localhost.localdomain ([71.212.141.89]) by smtp.gmail.com with ESMTPSA id m19sm3633164pgd.21.2020.08.12.20.25.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Aug 2020 20:25:41 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 01/17] crypto: Move QCryptoCipher typedef to qemu/typedefs.h Date: Wed, 12 Aug 2020 20:25:21 -0700 Message-Id: <20200813032537.2888593-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200813032537.2888593-1-richard.henderson@linaro.org> References: <20200813032537.2888593-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1041; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1041.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: berrange@redhat.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This allows header files to declare pointers without pulling in the entire crypto subsystem. Signed-off-by: Richard Henderson --- include/crypto/cipher.h | 2 -- include/qemu/typedefs.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) -- 2.25.1 Reviewed-by: Philippe Mathieu-Daudé diff --git a/include/crypto/cipher.h b/include/crypto/cipher.h index 5928e5ecc7..95a0412911 100644 --- a/include/crypto/cipher.h +++ b/include/crypto/cipher.h @@ -23,8 +23,6 @@ #include "qapi/qapi-types-crypto.h" -typedef struct QCryptoCipher QCryptoCipher; - /* See also "QCryptoCipherAlgorithm" and "QCryptoCipherMode" * enums defined in qapi/crypto.json */ diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h index 427027a970..45b9c57717 100644 --- a/include/qemu/typedefs.h +++ b/include/qemu/typedefs.h @@ -95,6 +95,7 @@ typedef struct PostcopyDiscardState PostcopyDiscardState; typedef struct Property Property; typedef struct PropertyInfo PropertyInfo; typedef struct QBool QBool; +typedef struct QCryptoCipher QCryptoCipher; typedef struct QDict QDict; typedef struct QEMUBH QEMUBH; typedef struct QemuConsole QemuConsole;