Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp4018763ybh; Tue, 17 Mar 2020 10:40:17 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs0gRl/uoKKT4ENdI0hoOxRV05/pbX8raoH6hfmAVYZAelcaRzceaUkFUsoNxfz0CrLtlT7 X-Received: by 2002:a9d:618e:: with SMTP id g14mr316718otk.314.1584466817253; Tue, 17 Mar 2020 10:40:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584466817; cv=none; d=google.com; s=arc-20160816; b=IgFKKyRQsXr+GbL5SYLwJaRvJU6UvcgITW676DQKA/m5WS9xrTJJ/poXaE7YU4TGM4 4Gfevx1PU88Tqga4Jd/Hj1zry4vP3A2OW+AmGqzL58A1Sv3asPCzuDzzaE260HN+PUte bdoSj9v/oggal5KI+zY3e/JtCtTD3KgotrU1NHuW3ymxnj8SzP1f99l8W4q6pQhnYW9V GTEnMWXOMMvW161MysiB4tj0BsctmlmxnDvT1e1XR6D+/efb3SK2PFYT2cdMSpdc6fLt 3wDB+7YgIsXcbyLTnw5zlpqaN4hjOnROE4LanaoxqdyF5aInhuBYODYWW+QGIjD4Vw1P CnjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=HhYQtNzT7W8ofZ1VIhf3mFuaTo9RNACqiUJRCIPqvIw=; b=Adjh2SKBURjWTMiSp3hhgfcxz8thf+02lq1xV7ZCBElszI36jFLeKeS8YAmMXO62Zq ejnMzl/uXpkQgptE4PlXLWJ3g+A4O8yX1Hji7FxObwEcTr9yxZhdVqfpAVEjG8k32EC0 JwnPfN2I0hy0UoyjDgXHMRtShFg28fbb/wdn5G3jIKNUQBk1NWfq7ojuG1avDyHsEujP Tim1ly9SC4Nder7dB74e/ItDRmN6NVomcJ+nvHbV4cFP6FNG0Q8AbvkYY3/lMjg8ghAK GKLUJdQXx6jaDUc6HZwSB0iMxfiNAvT64ITZTu6GRDkvyzcKbGVcxwq6ETUQ1JSGn9vZ Im4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=lMYrLx5Q; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p6si1927317oth.259.2020.03.17.10.40.04; Tue, 17 Mar 2020 10:40:17 -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; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=lMYrLx5Q; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726754AbgCQRib (ORCPT + 99 others); Tue, 17 Mar 2020 13:38:31 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:38624 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726704AbgCQRia (ORCPT ); Tue, 17 Mar 2020 13:38:30 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 02HHHqVk056217; Tue, 17 Mar 2020 17:38:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id; s=corp-2020-01-29; bh=HhYQtNzT7W8ofZ1VIhf3mFuaTo9RNACqiUJRCIPqvIw=; b=lMYrLx5QWiZ+xiLWVnB/bSb6CnfNPhPAbqlPt4I+93thcy4JFREQZV+KJm/EUJTbewk8 dyjRdONeiG9pWWmQjOtsW+OkFv8qyqJU3oeM5TPBPf4EMKv/nYRfTbrm2/4M+1Ib4UDr FPm1wJkMB2AcVfxw455pwwi/PDXs9Rea0H4bWDt0tK3AFhZBF1XlosVYYDhY23m+iQnS y7K0z4Dvu9sV1IZX6evOOfEswKHvZrVsJIqPB0B/JR7HJJd6dP3orqOHm2Bhi5dMY/uH DLazI99Wrpa1t+Q+k5vLXbXfrh+o+yztN1rcq5BGUOK7gl2OLgyOtbS9ROrsnM0Db8B4 ag== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2120.oracle.com with ESMTP id 2yrqwn671a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 17 Mar 2020 17:38:00 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 02HHJjBa102500; Tue, 17 Mar 2020 17:35:59 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3020.oracle.com with ESMTP id 2ys92dmrug-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 17 Mar 2020 17:35:59 +0000 Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 02HHZrdG015128; Tue, 17 Mar 2020 17:35:53 GMT Received: from dhcp-10-175-196-233.vpn.oracle.com (/10.175.196.233) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 17 Mar 2020 10:35:53 -0700 From: Alan Maguire To: jdike@addtoit.com, richard@nod.at, anton.ivanov@cambridgegreys.com, alex.dewar@gmx.co.uk, erelx.geron@intel.com, johannes.berg@intel.com, arnd@arndb.de, linux-um@lists.infradead.org Cc: linux-kernel@vger.kernel.org, brendanhiggins@google.com, Alan Maguire Subject: [PATCH] arch/um: falloc.h needs to be directly included for older libc Date: Tue, 17 Mar 2020 17:35:34 +0000 Message-Id: <1584466534-13248-1-git-send-email-alan.maguire@oracle.com> X-Mailer: git-send-email 1.8.3.1 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9563 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxlogscore=686 mlxscore=0 spamscore=0 bulkscore=0 adultscore=82 suspectscore=3 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2003170069 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9563 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 lowpriorityscore=0 mlxlogscore=748 mlxscore=0 bulkscore=0 phishscore=0 spamscore=0 suspectscore=3 malwarescore=0 priorityscore=1501 clxscore=1011 adultscore=45 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2003170069 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When building UML with glibc 2.17 installed, compilation of arch/um/os-Linux/file.c fails due to failure to find FALLOC_FL_PUNCH_HOLE and FALLOC_FL_KEEP_SIZE definitions. It appears that /usr/include/bits/fcntl-linux.h (indirectly included by /usr/include/fcntl.h) does not include falloc.h with an older glibc, whereas a more up-to-date version does. Adding the direct include to file.c resolves the issue and does not cause problems for more recent glibc. Fixes: 50109b5a03b4 ("um: Add support for DISCARD in the UBD Driver") Cc: Brendan Higgins Signed-off-by: Alan Maguire --- arch/um/os-Linux/file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/um/os-Linux/file.c b/arch/um/os-Linux/file.c index fbda105..5c819f8 100644 --- a/arch/um/os-Linux/file.c +++ b/arch/um/os-Linux/file.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include -- 1.8.3.1