Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp232586ybh; Tue, 17 Mar 2020 22:06:25 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuVCqmJ6V2Y43pvK1UG02KI6XTq9KBe1Q31/ttIC7JeIJValavc3Fr/XqxOCORx02pGWF0S X-Received: by 2002:a9d:2c64:: with SMTP id f91mr2485724otb.17.1584507984919; Tue, 17 Mar 2020 22:06:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584507984; cv=none; d=google.com; s=arc-20160816; b=dilHiMr0uTrilo3RBJoErvZoQ468/jtnL97MXDWaMa2RBkrSAD747yLM66xNdwGVAJ gdIPgAL0WFeTdMmYDPIyHMUDzpHXgJPxi6QbBg3YdPmNZpTlZLP8XDNZc2yFQJZ/daBd 2VoSuiV2vHcZq0UEiHdbWlej3629tIBFS9I7CiZsfjLQ8G1jGEOHjIgfYQ2cnpPrjui3 nJGDezRhhPw8SzJ9x9E+XE95R/cPR8EKb9A36paya9MAcrAp1h0khiTnXd/XOOOtCSKr qds8K42vXFqfJE7TEKpcU+DIKhpJYdF7SOCeIIPmtgPnBicOEVxZK0j7Q7Cg4EGvrdzT ogGA== 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:message-id:subject:cc:to:from:date :dkim-signature; bh=a0Igh+jSKEF6zxhXQjcomWCOxKBmvP3PF7F1474RlJE=; b=joaC0N0+o9INAk0wf41M0IvaiAsUKqj76pfTl2U1T2nzMdTQ+eWsSO98Q1Z0ZedSG3 9h8w2shTjzsIst4XDpGbVBnH+xRt5Qo+qmYSMV9kvbH8EezvVS9XNGybakCTyi3cEsZq agkT6y0N3XFO/dC+viH3n/wXgA4DiMBcxSrwNtfG+O2z3AxvSK05UTOuuhJRNNrNCDIU i0QbgRl7TDfTotqNfvAmWr2AhnbXr8hcA1N5pfF4h24zahVZzuy7Pe0N4V8l65lfcDvu oNxE9g/8BfxACp1qClG0Bx7j36SiB52w+OKxIsOSnjhFOqzJfLJt6/JBnxMDfNmcxa5e DjxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CyUKijUR; 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 v9si1771139otn.120.2020.03.17.22.06.10; Tue, 17 Mar 2020 22:06:24 -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=@kernel.org header.s=default header.b=CyUKijUR; 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 S1726869AbgCRFCk (ORCPT + 99 others); Wed, 18 Mar 2020 01:02:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:48770 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726227AbgCRFCk (ORCPT ); Wed, 18 Mar 2020 01:02:40 -0400 Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3DC6920753; Wed, 18 Mar 2020 05:02:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584507759; bh=2ai/f+HExg/ApogpjE3zkT/L3aUSunYoWnzd+8Jg+RI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=CyUKijURxIrw7Y5hqK8b4MyGIuvBKQqzc0ShkeQnzfNeUP+XVtWHVxC/N+AMH+Nn4 GrLlIg00R1sq2wptyRayLS6n0qP5J/MrmjaDlNXo63NeqLC558t0oP3tzKGcAbGiYX kd4pXRH6BdsYja5CQLpelJmQ4875uf4js+qHEwBc= Date: Tue, 17 Mar 2020 22:02:38 -0700 From: Andrew Morton To: Christophe Leroy Cc: Mike Kravetz , Nishanth Aravamudan , Nick Piggin , Adam Litke , Andi Kleen , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org Subject: Re: [PATCH] mm/hugetlb: Fix build failure with HUGETLB_PAGE but not HUGEBTLBFS Message-Id: <20200317220238.8344f8423327c8ae178fc63a@linux-foundation.org> In-Reply-To: <7e8c3a3c9a587b9cd8a2f146df32a421b961f3a2.1584432148.git.christophe.leroy@c-s.fr> References: <7e8c3a3c9a587b9cd8a2f146df32a421b961f3a2.1584432148.git.christophe.leroy@c-s.fr> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 17 Mar 2020 08:04:14 +0000 (UTC) Christophe Leroy wrote: > When CONFIG_HUGETLB_PAGE is set but not CONFIG_HUGETLBFS, the > following build failure is encoutered: > > In file included from arch/powerpc/mm/fault.c:33:0: > ./include/linux/hugetlb.h: In function 'hstate_inode': > ./include/linux/hugetlb.h:477:9: error: implicit declaration of function 'HUGETLBFS_SB' [-Werror=implicit-function-declaration] > return HUGETLBFS_SB(i->i_sb)->hstate; > ^ > ./include/linux/hugetlb.h:477:30: error: invalid type argument of '->' (have 'int') > return HUGETLBFS_SB(i->i_sb)->hstate; > ^ > > Gate hstate_inode() with CONFIG_HUGETLBFS instead of CONFIG_HUGETLB_PAGE. > > Reported-by: kbuild test robot > Link: https://patchwork.ozlabs.org/patch/1255548/#2386036 > Fixes: a137e1cc6d6e ("hugetlbfs: per mount huge page sizes") A 12 year old build error? If accurate, that has to be a world record. > Cc: stable@vger.kernel.org I think I'll remove this. Obviously nobody is suffering from this problem!