Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jVZit-00024X-Hw for mharc-qemu-trivial@gnu.org; Mon, 04 May 2020 07:57:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51886) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVZie-0001r4-AC; Mon, 04 May 2020 07:57:08 -0400 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]:35673) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jVZid-0001G2-Cm; Mon, 04 May 2020 07:57:08 -0400 Received: by mail-wm1-x342.google.com with SMTP id r26so8716515wmh.0; Mon, 04 May 2020 04:57:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=obSCKk2me/00cEpyiCftGc/OOp6WIYGJzAVVhOdRcgM=; b=Dn19oVHRhyI9z8SLrPicRhninDKG8BnO9a0o/KM9ulRZdhfRSNjJSm0Rc+j61SaZTE o0o5XLi4KhPXAyEDkz0l0JXLN/neIM+mUbHue4v2oCsmxr6szKEABQ1Tl9+ArDy4to0Z LafyZ3+HAYn5wellh+HdsKZqBzKoCeXac3HAtt26sXDMzSicHMq+9NJDfCfCPNaOoG8I 0D1yHcIQO+YiHHTrzChP4knCLUNbCaN2lYJTh4/qQwnxCtkcrRqa7Z8URQ8AHuO5q2re nXxyCPI6C/6bz7XZ7YYAo17GuUNx5Wwd32G7Q4G1vCsqlYOV9m/BOghU+b5+2dsh0xdP mLdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=obSCKk2me/00cEpyiCftGc/OOp6WIYGJzAVVhOdRcgM=; b=phl18hdeLjBNdpSuewW1E/y4xof2fM3AAIiIsu438/E6/knqHaycEmaZRIsl5Zfk/g bEcbUbDOfX3XfKjxKxIZPrHjdwt8hqSsC0kgmKtJFF6Qn08E63gUHVL6Cs1vQQRy7+n8 6P68zhkbWkWkMAuj/wo+H/f3Z8AvEtNg5xUSiI8ks2fyo+tpVZoGwXeuYIYiTtDP0Qkd KgQIMKk0gZ3mzLg8xj1iJjPU1EKS6owMSCYFjoOuNNJqjdpe1GqJaAFY6Z4GoFl3pzz/ Dj8jepHcQ1Z3pVJWiYZ0xD6OWZkG3HVH8mDwFeJxQXmR6PS5tfJEyEAb94JLYlEYIgM7 cAew== X-Gm-Message-State: AGi0PuYNgHAmOjSbzR1OiOBd3dMxyuh370bONttgecpqOCFU4B44HThK n/jqTL4S+VSSyELaim9xf2wdjh07 X-Google-Smtp-Source: APiQypI+rAq8eJ5GbY9KHUvJk/iDG3foPZfD8mGwmlHLDVneOMhV7voMAqRB7qOnNxNLTeynmHBomg== X-Received: by 2002:a1c:bad4:: with SMTP id k203mr14006080wmf.15.1588593421110; Mon, 04 May 2020 04:57:01 -0700 (PDT) Received: from x1w.redhat.com (26.red-88-21-207.staticip.rima-tde.net. [88.21.207.26]) by smtp.gmail.com with ESMTPSA id n12sm5660984wrj.95.2020.05.04.04.57.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 May 2020 04:57:00 -0700 (PDT) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Michael Tokarev , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , qemu-trivial@nongnu.org, Eduardo Habkost , Laurent Vivier , Markus Armbruster , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v2 2/3] io/task: Move 'qom/object.h' header to source Date: Mon, 4 May 2020 13:56:55 +0200 Message-Id: <20200504115656.6045-3-f4bug@amsat.org> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200504115656.6045-1-f4bug@amsat.org> References: <20200504115656.6045-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::342; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-x342.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: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-trivial@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 May 2020 11:57:08 -0000 We need "qom/object.h" to call object_ref()/object_unref(), and to test the TYPE_DUMMY. Signed-off-by: Philippe Mathieu-Daudé --- v2: Add missing header in tests/test-io-task.c (patchew) --- include/io/task.h | 2 -- io/task.c | 1 + tests/test-io-task.c | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/io/task.h b/include/io/task.h index 1abbfb8b65..6818dfedd0 100644 --- a/include/io/task.h +++ b/include/io/task.h @@ -21,8 +21,6 @@ #ifndef QIO_TASK_H #define QIO_TASK_H -#include "qom/object.h" - typedef struct QIOTask QIOTask; typedef void (*QIOTaskFunc)(QIOTask *task, diff --git a/io/task.c b/io/task.c index 1ae7b86488..53c0bed686 100644 --- a/io/task.c +++ b/io/task.c @@ -22,6 +22,7 @@ #include "io/task.h" #include "qapi/error.h" #include "qemu/thread.h" +#include "qom/object.h" #include "trace.h" struct QIOTaskThreadData { diff --git a/tests/test-io-task.c b/tests/test-io-task.c index aa8b653bfa..c8a3813d49 100644 --- a/tests/test-io-task.c +++ b/tests/test-io-task.c @@ -20,6 +20,7 @@ #include "qemu/osdep.h" +#include "qom/object.h" #include "io/task.h" #include "qapi/error.h" #include "qemu/module.h" -- 2.21.3