Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1335625imc; Mon, 11 Mar 2019 11:24:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqzN+wRq8IRnUjGuQ1xjCOltxIUvs3ZoY10Jcvd6Rb9nvxc78KZ5kIOsiUoPZjppYuhsk6D1 X-Received: by 2002:a63:4a62:: with SMTP id j34mr29213313pgl.97.1552328650291; Mon, 11 Mar 2019 11:24:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552328650; cv=none; d=google.com; s=arc-20160816; b=1FCwcLYTtinQiPcp+gGU5XGG3SqR15Mw7gq9PpmJALNZPsc5MqePzc+FTfgZFh4rK5 z0MAA88YdRf6iBWQUztLNiIhyLNnYDS6vZ56rWmB/Hu8QWmsz5oVZrpBvb46F6ftCSpH icolcjfZm0Rk/tjOXT0TikOdOF7lqxSPYN+q1G8ytnm3urx8wfszYnOdHzGEdRO0Gkvq noyml8dAeR9z8uGxeL9p3S7zSHM/rYe41NIUUNAyT8xkUhW5amlBldsVwvCq5gqI1SsR wH8dUhGXUIo+60FOe8mOk06nHndd9yJRalbHN0SRAMtCDCCWPwXpEvlkKpT6LqzXChxm KWBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=or5zAMEfZVbOUVQziBt0HlFPINzhCT4Iblq8yhcJOrU=; b=tEbZtGNtMvZp39MvQMfYnYARfGtGg8UnsMz2MHOV/3/0cUxDxOPIf+KPjL2jLQyrQL 2xASM2ev8a+a4fQSvFYRK9DmTgJpdKGnIWeRD5XP7+MuBD8vGCR1laQ+qCq1ymvuEZWR Y0IDnZ/F25LTV5fh5Xb8Uae2gyESUXtsuhty+WhstJoFpEe04EwQa/XsSWTnmdU7p6dG fw078zXqR4fbd4ehAtRIUZCW1NIsxO4w6KxC+xCTt8Xp9k8DZEs5IeCh0t6+BxZBTBHI 05Yv7Rgbnn9G+47b0m8cZIxASwgPlSxz9+OO26bHiJ+UPUNkpjKWvvcJ+PoU4vmUOsEs bypw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e68si5429768pgc.552.2019.03.11.11.23.54; Mon, 11 Mar 2019 11:24:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728038AbfCKSXe (ORCPT + 99 others); Mon, 11 Mar 2019 14:23:34 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:40112 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727824AbfCKSXe (ORCPT ); Mon, 11 Mar 2019 14:23:34 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 37689144CAF82; Mon, 11 Mar 2019 11:23:33 -0700 (PDT) Date: Mon, 11 Mar 2019 11:23:32 -0700 (PDT) Message-Id: <20190311.112332.2212718467104899802.davem@davemloft.net> To: arnd@arndb.de Cc: deepa.kernel@gmail.com, willemb@google.com, linux-alpha@vger.kernel.org, linux-arch@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, sparclinux@vger.kernel.org, labbott@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] y2038: fix socket.h header inclusion From: David Miller In-Reply-To: <20190311153857.563743-1-arnd@arndb.de> References: <20190311153857.563743-1-arnd@arndb.de> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 11 Mar 2019 11:23:33 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann Date: Mon, 11 Mar 2019 16:38:17 +0100 > Referencing the __kernel_long_t type caused some user space applications > to stop compiling when they had not already included linux/posix_types.h, > e.g. > > s/multicast.c -o ext/sockets/multicast.lo > In file included from /builddir/build/BUILD/php-7.3.3/main/php.h:468, > from /builddir/build/BUILD/php-7.3.3/ext/sockets/sockets.c:27: > /builddir/build/BUILD/php-7.3.3/ext/sockets/sockets.c: In function 'zm_startup_sockets': > /builddir/build/BUILD/php-7.3.3/ext/sockets/sockets.c:776:40: error: '__kernel_long_t' undeclared (first use in this function) > 776 | REGISTER_LONG_CONSTANT("SO_SNDTIMEO", SO_SNDTIMEO, CONST_CS | CONST_PERSISTENT); > > It is safe to include that header here, since it only contains kernel > internal types that do not conflict with other user space types. > > It's still possible that some related build failures remain, but those > are likely to be for code that is not already y2038 safe. > > Reported-by: Laura Abbott > Fixes: a9beb86ae6e5 ("sock: Add SO_RCVTIMEO_NEW and SO_SNDTIMEO_NEW") > Signed-off-by: Arnd Bergmann Applied, thanks.