From patchwork Wed May 16 20:55:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 914933 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=vivier.eu Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40mRcH0xCnz9s1B for ; Thu, 17 May 2018 06:58:39 +1000 (AEST) Received: from localhost ([::1]:40127 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJ3VM-0001Gk-P0 for incoming@patchwork.ozlabs.org; Wed, 16 May 2018 16:58:36 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52529) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJ3TI-000054-06 for qemu-devel@nongnu.org; Wed, 16 May 2018 16:56:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJ3TE-0003uD-TW for qemu-devel@nongnu.org; Wed, 16 May 2018 16:56:28 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:36607) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJ3TE-0003ss-Iz for qemu-devel@nongnu.org; Wed, 16 May 2018 16:56:24 -0400 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.183]) with ESMTPSA (Nemesis) id 0M8hqV-1eOazK1ow7-00wAev; Wed, 16 May 2018 22:55:53 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Wed, 16 May 2018 22:55:35 +0200 Message-Id: <20180516205543.29305-1-laurent@vivier.eu> X-Mailer: git-send-email 2.14.3 MIME-Version: 1.0 X-Provags-ID: V03:K1:ghcY8GTglclzIJafjG67pOleJNhnIxWIYoh0cubcjZQHSUQgm38 HlKCNeVQFAv2Q2n3fBbpUomJZzI+FCoQ22MQvzsKFnZkbv23CPUOhExC9w9wYg8Msz2Zqkl fJFgNH1O2XwLnNTBKtXCwLKFhQB83AAPR61lkBN6fPm0ojFYT2BN8b5mV3iwRI/nW7lFa+2 LuKrzZzAFBztMH5doo2/Q== X-UI-Out-Filterresults: notjunk:1; V01:K0:f+QXadQJqeo=:ExU+0QvCqXMssl1VILYBak GPbJ7PUizqlrI4sioD+tm9KEwV/xe23Gg/QZvXmSyXnClPNo1TPyXqj/O6KxjM7ux5QEVWjKF HkWZTz6xyGJt9NmgoyZ0yMgDs4IAbcyMxKt3S1k0O3Y1DkNlHAjW7CjUoJ61x1gPRkXNK5kNV +B+Tpv1oNx9nYEYcVw+jGxqteID1JV9F7Q1PkJx+Uy4bMeYziYqfLcqA0tGrd8mpsVBhU2JVV M/6KbONCWJQee2Y991zq3/ijEeLVppQZ+bhgM9g2Ir0eMCZpkZH7uCpb8ZsVEz756juxudgI7 UTHbtl0WbFwppSUT3K63ZIGOlRN8boatfODQWRuF0wkwA+btPJl/Soari7xn++MlLFQvcwP7t RiouqALGq7EAnbeHMnZfnIrkh8VOOBukfexlFsglxO1JD+xmQiBnNJ1/Umy05+iprxJuxJUJz Qw8TjE2CMmqbk9P2LgHG8qGEKas16I1WI83uX0fpWaV5KibyEApHg7TaTNQ9HVY48L3JyRDVd JzhT8uLL6gT07cBWaTmJQPxhDTsoMKasH/nYaes5szP1J4w3EFBl+0K47zzzuYLMlNIX6czRb 0GZGJOjwyZKZmARMcJaXg2mE8GEW8hB628MTsRbfhcf0jLtYZJcr/3tC2LoRvzY98qXY9gC6p PyP8ZA/C3l5ZNbTaw9bVhr4WAUmgVHugEA/Y3DOjCEWrcsh+tX7g3Tc6UY8GIfjgwRUaZeBO2 3L/ecsstQMO/LJLH X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.13 Subject: [Qemu-devel] [PATCH v2 0/8] linux-user: move socket.h definitions to CPU directories X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Riku Voipio , Mark Cave-Ayland , Laurent Vivier , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?b?w6k=?= , Yongbok Kim , Richard Henderson Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Splitting out socket.h definitions helps to read the code and to fix the bugs... No code change, except for the last one that ports definitions from linux for sparc as the values are not the correct ones. v2: - move generic socket.h to generic/sockbits.h and include this file from arch without specific values - for ppc, only define the values that differ and include generic/sockbits.h - update ARCH_HAS_SOCKET_TYPES use to be like in the kernel - define TARGET_SO_REUSEPORT Laurent Vivier (8): linux-user: move mips socket.h definitions to mips/sockbits.h linux-user: move alpha socket.h definitions to alpha/sockbits.h linux-user: move sparc/sparc64 socket.h definitions to sparc/sockbits.h linux-user: move socket.h generic definitions to generic/sockbits.h linux-user: move ppc socket.h definitions to ppc/sockbits.h linux-user: update ARCH_HAS_SOCKET_TYPES use linux-user: copy sparc/sockbits.h definitions from linux linux-user: define TARGET_SO_REUSEPORT linux-user/aarch64/sockbits.h | 1 + linux-user/alpha/sockbits.h | 83 +++++++++ linux-user/arm/sockbits.h | 1 + linux-user/cris/sockbits.h | 1 + linux-user/generic/sockbits.h | 60 +++++++ linux-user/hppa/sockbits.h | 33 +--- linux-user/i386/sockbits.h | 1 + linux-user/m68k/sockbits.h | 1 + linux-user/microblaze/sockbits.h | 1 + linux-user/mips/sockbits.h | 110 ++++++++++++ linux-user/mips64/sockbits.h | 1 + linux-user/nios2/sockbits.h | 1 + linux-user/openrisc/sockbits.h | 1 + linux-user/ppc/sockbits.h | 20 +++ linux-user/riscv/sockbits.h | 1 + linux-user/s390x/sockbits.h | 1 + linux-user/sh4/sockbits.h | 1 + linux-user/socket.h | 377 ++++----------------------------------- linux-user/sparc/sockbits.h | 111 ++++++++++++ linux-user/sparc64/sockbits.h | 1 + linux-user/tilegx/sockbits.h | 1 + linux-user/x86_64/sockbits.h | 1 + linux-user/xtensa/sockbits.h | 1 + 23 files changed, 439 insertions(+), 371 deletions(-) create mode 100644 linux-user/aarch64/sockbits.h create mode 100644 linux-user/alpha/sockbits.h create mode 100644 linux-user/arm/sockbits.h create mode 100644 linux-user/cris/sockbits.h create mode 100644 linux-user/generic/sockbits.h create mode 100644 linux-user/i386/sockbits.h create mode 100644 linux-user/m68k/sockbits.h create mode 100644 linux-user/microblaze/sockbits.h create mode 100644 linux-user/mips/sockbits.h create mode 100644 linux-user/mips64/sockbits.h create mode 100644 linux-user/nios2/sockbits.h create mode 100644 linux-user/openrisc/sockbits.h create mode 100644 linux-user/ppc/sockbits.h create mode 100644 linux-user/riscv/sockbits.h create mode 100644 linux-user/s390x/sockbits.h create mode 100644 linux-user/sh4/sockbits.h create mode 100644 linux-user/sparc/sockbits.h create mode 100644 linux-user/sparc64/sockbits.h create mode 100644 linux-user/tilegx/sockbits.h create mode 100644 linux-user/x86_64/sockbits.h create mode 100644 linux-user/xtensa/sockbits.h