Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp623880imu; Tue, 11 Dec 2018 05:04:43 -0800 (PST) X-Google-Smtp-Source: AFSGD/W48zA/yzHjp1+WYvdN3RahRSLk3ipMnJVjLxHRxvUyB2rxobEljXTNQs1Iy91Q5+OK93Yr X-Received: by 2002:a62:1e87:: with SMTP id e129mr16090457pfe.221.1544533483142; Tue, 11 Dec 2018 05:04:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544533483; cv=none; d=google.com; s=arc-20160816; b=oY+xBcrSEUjvQRnFoe0ai8lgjhw8WqVttIQo8QIf5xKFxhJK+NH3GbQVHGbWbIu4vl 3S4kKSQ8osckB44nzEE2UpAC3B5Xiu9NLI7t1jIg4KpxRUiNT1yYKq7F7zs7XmlGH0EE oQ0cdrEvQ0e/Ap36QU2Aqp78NTpszRIbFV2JGa8BMaubPhR5z8pqZ1V408j1g8EKYYSH +xgkPlIJ+WH/WBDwalmwmp22OcHK2iOYZ0ZI1nJwlKbz9zVuG7IuG8n3eJWH1YRcIHd6 4kHhgoHLaPDWQjBNrI5X0VR9ITMdU2rORzoeVDM74TFR56k4HCXsoea6XFvznkmP1VFT ZB3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=No9xOhJADUYQeHm2q3q2ynI3sayEoRJ+pXaBMGBljCY=; b=iwOazI6+xuqKsKu0l1f8VeI+p4v3ba3GYkeZ/+7EEQbwIX+5k5Wt8MfJKJK82ap8me vq9zAsZWZPXQ9lPzC0FYfOSptD53hAcqKQOSao6rmBa0AjLoSSBFXMLaifpYRPhkdtN/ DfuoxG8iV71am/hrsIJ7kWbQ7iXxaNFRRHi8Qt5gQ2ep7Hmz/k0WZsX3bpIisTpWjBoS SP5FhEQjYfMAcKfg1/r0/g6tXueyQX4FMUNEOsEpJolVjEsTNx7nCB/dsIck28YWuGTI RbQt1Ec9mH6HJMRe3NQCDEIGb/4MTF+E2uHAU5p0uuKhvNN0gtH+8817O7/ZssYksIIO jCeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=lb+FixOr; 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 72si12261021pla.218.2018.12.11.05.04.26; Tue, 11 Dec 2018 05:04:43 -0800 (PST) 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=@nifty.com header.s=dec2015msa header.b=lb+FixOr; 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 S1726543AbeLKNBv (ORCPT + 99 others); Tue, 11 Dec 2018 08:01:51 -0500 Received: from conssluserg-03.nifty.com ([210.131.2.82]:35098 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726531AbeLKNBu (ORCPT ); Tue, 11 Dec 2018 08:01:50 -0500 Received: from mail-vs1-f42.google.com (mail-vs1-f42.google.com [209.85.217.42]) (authenticated) by conssluserg-03.nifty.com with ESMTP id wBBD1ksO004846; Tue, 11 Dec 2018 22:01:47 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com wBBD1ksO004846 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1544533307; bh=No9xOhJADUYQeHm2q3q2ynI3sayEoRJ+pXaBMGBljCY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=lb+FixOrBgg97ttnpnivs5864b9r2MhlESMWaRu/vJ5TpGvgnZQEFx2xyLjcMYXDI TUQrJleNlffuVgth39BJ9HXSv24btz4yTALdIvlUqrAjsQRMDEiVGnBohqkqmV0ZlC 62S41MTqd3RYiqhoxo8+aVzmLqSbh3tnb2npehRIzSECxntBWQX8LC/TPZv302vZWh fg2BmgoFZd+ktOcmAPqglkJjl3ZozzT0w0gpyVjnEfC0tz8meDhmLoxWmqPNFjK0OA BW1VGdQBhZFaiJ+n/hMuh3K07uCA8b26XDIAH4AZ/ktPwxo8UoSmAYim1JwlTz1wca vlAqIe1aVXchg== X-Nifty-SrcIP: [209.85.217.42] Received: by mail-vs1-f42.google.com with SMTP id n10so8776923vso.13; Tue, 11 Dec 2018 05:01:47 -0800 (PST) X-Gm-Message-State: AA+aEWY4Y/GFpmqFW29jjHCK4RRP2uUxGitxYphWo6FuaAoplgwz+MB9 xiM+Kecz2WxIJ8w5c29tCoOVios27/Cz9VjHGsA= X-Received: by 2002:a67:485:: with SMTP id 127mr7388150vse.54.1544533305718; Tue, 11 Dec 2018 05:01:45 -0800 (PST) MIME-Version: 1.0 References: <1544009286-15705-1-git-send-email-yamada.masahiro@socionext.com> <1544009286-15705-2-git-send-email-yamada.masahiro@socionext.com> <20181206180459.GA19166@ravnborg.org> In-Reply-To: <20181206180459.GA19166@ravnborg.org> From: Masahiro Yamada Date: Tue, 11 Dec 2018 22:01:09 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/3] kbuild: generate asm-generic wrappers if mandatory headers are missing To: Sam Ravnborg Cc: Linux Kbuild mailing list , "open list:DOCUMENTATION" , Linux Kernel Mailing List , Jonathan Corbet , Michal Marek Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sam, On Fri, Dec 7, 2018 at 3:06 AM Sam Ravnborg wrote: > > On Wed, Dec 05, 2018 at 08:28:05PM +0900, Masahiro Yamada wrote: > > Some time ago, Sam pointed out a certain degree of overwrap between > > generic-y and mandatory-y. (https://lkml.org/lkml/2017/7/10/121) > > > > I a bit tweaked the meaning of mandatory-y; now it defines the minimum > > set of ASM headers that all architectures must have. > > > > If arch does not have specific implementation of a mandatory header, > > Kbuild will let it fallback to the asm-generic one by automatically > > generating a wrapper. This will allow to drop lots of redundant > > generic-y defines. > > > > Previously, "mandatory" was used in the context of UAPI, but I guess > > this can be extended to kernel space ASM headers. > > > > Suggested-by: Sam Ravnborg > > Signed-off-by: Masahiro Yamada > > Nice work! > > For the full series: > Acked-by: Sam Ravnborg > > Have you considered to warn if generic-y contains a header listed > in mandatory-y - to prevent that they sneak back in. > And to catch when we lift a header from available to mandatory. Yes, I also thought of this, and probably we should do it. -- Best Regards Masahiro Yamada