Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3860304rwb; Sat, 17 Dec 2022 00:25:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf6z1z7sCSIpmyYAyST3K7SicxPcvfd+8CVvMJUW6jrXxFrQKO3VyFhl/o0WQzyuQS2tm/wD X-Received: by 2002:a17:902:e2c2:b0:18f:51cf:669 with SMTP id l2-20020a170902e2c200b0018f51cf0669mr23687233plc.62.1671265552982; Sat, 17 Dec 2022 00:25:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671265552; cv=none; d=google.com; s=arc-20160816; b=Fqa/cG0mzXw9wYskP6khwOhDpPtqxrf6NDoE+GdoBh50Ru4P/fEn5kNSviJiJaIvsD tp7bgtsx49oQ2a1dXVTmAEUIo9QRgLZ6SQeofjgp5bSibHMgROpl5pwzlqpHnYkKnplB sseAzSPZkw7pe1ie8qO7fFoIZRjYzlH6M2QlLZG438mJK8hi7c4GpJDTvqgKu5WcjxS4 v5EZXOfo0akOZuYKK1oOUHebFl2Ub4iezKtubEmQcLtlB6m04nADmNA8PLLwzPQ87xrc Dltz396PBe8+V+5RnRiFQgY8xm3sVMLgdYKzqZWQFF0vz8sn77oYCJIouzu6zHhulAdf Qezw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature:dkim-filter; bh=ZYycTl7T8nH4SIgrrOiw66f272R2d0kq/iv5kqpNuaA=; b=jl3m2fn8zV/GLqdNtngGHJ42GUvEAEykcuP+e6U/fGR4iRrKT0b/0lqdD3EOSbIK+L SUMacylqi5KzZBMzEebxcXjKAsGnn4bKmJpkS5sISC7+4dWgWwk0WOc9mUhCeuzfn/kc H2/y8W9hbEAgpQUlvhIIIsefuB3xJ0fRNy2carD5lciZfO/xe6m8p6S8BYpLAFpb7F+c RiWl+I0U5ydqyO6AQqaFRyZw35HB8bYmX1rHS+mrJkUqBM+ofGtTcUnUg0HwsAgIOftA VK6s6p8S0hS8u6lbkilFROTGHlN2KX27UzFwB44WrgHEF1UYaZU4t2sqjQ2sQwAQ0jwj Zy9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=ITgCGqH4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n10-20020a170902e54a00b001898d8881d1si5031843plf.598.2022.12.17.00.25.42; Sat, 17 Dec 2022 00:25:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=ITgCGqH4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229962AbiLQIAh (ORCPT + 71 others); Sat, 17 Dec 2022 03:00:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbiLQIAe (ORCPT ); Sat, 17 Dec 2022 03:00:34 -0500 Received: from conssluserg-02.nifty.com (conssluserg-02.nifty.com [210.131.2.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2426C7F; Sat, 17 Dec 2022 00:00:32 -0800 (PST) Received: from mail-oo1-f52.google.com (mail-oo1-f52.google.com [209.85.161.52]) (authenticated) by conssluserg-02.nifty.com with ESMTP id 2BH80IA4012632; Sat, 17 Dec 2022 17:00:19 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com 2BH80IA4012632 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1671264019; bh=ZYycTl7T8nH4SIgrrOiw66f272R2d0kq/iv5kqpNuaA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ITgCGqH4ENtV2LTVdBPOio2glFcENszaYlHdkhPnQe+pjg/+VvydvdifhBzp5e6XZ SWm7jy8LxIrnkVzYobfgYJJlkttUMDdp2U0QvwmFBVLOzgW+WAVkt/HziTIzi3QRXA LGJtNMA1nYINWoaVY25VsgC5bp2r+058StL9YSsJ/zeuZ6mbUrLn/P2k5s7eQUtDuP /Vf/N9G/5zMiUL0C6qdk+D7uuYrgbe7v7fn7Lceny7AWo9OWEyLqTQ9OtRVnVkFE0K EOKqyWNDcmJSmyiyBvR1+2xsx3x5FBrlrvkxRUh53culY/GZJu/gx3C0IC0J/P7Jps mEgc1+h+vgtyQ== X-Nifty-SrcIP: [209.85.161.52] Received: by mail-oo1-f52.google.com with SMTP id q2-20020a4a8e02000000b004a0236114ecso708667ook.11; Sat, 17 Dec 2022 00:00:19 -0800 (PST) X-Gm-Message-State: ANoB5pnyK03PRW10NVmJVuGmGyN3tn/CEBzUkvDYsJnHnWCx4gAxZZLd UhntAGu5jB0ucJRw6FH01clj6p4QzQ+D3JoUPH0= X-Received: by 2002:a4a:ac0e:0:b0:4a0:31ba:82bb with SMTP id p14-20020a4aac0e000000b004a031ba82bbmr26006944oon.96.1671264018138; Sat, 17 Dec 2022 00:00:18 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Masahiro Yamada Date: Sat, 17 Dec 2022 16:59:41 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kbuild: Fix compilation error To: Rong Tao Cc: linux-kbuild@vger.kernel.org, Rong Tao , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , open list , "open list:BPF [MISC]" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Dec 17, 2022 at 4:07 PM Rong Tao wrote: > > From: Rong Tao > > In the absence of a CONFIG_FUNCTION_ALIGNMENT defined, Does it happen in the mainline kernel? CONFIG_FUNCTION_ALIGNMENT is always defined as far as I understood arch/Kconfig. > -falign-functions=3D > will be given a null value, which results in a compilation error, as > follows: > > $ make -C samples/bpf/ > ... > CC /home/sdb/Git/linux/samples/bpf/syscall_nrs.s > gcc: error: missing argument to =E2=80=98-falign-functions=3D=E2=80= =99 > make[2]: *** [scripts/Makefile.build:118: /home/sdb/Git/linux/samples > /bpf/syscall_nrs.s] Error 1 > make[1]: *** [Makefile:1996: /home/sdb/Git/linux/samples/bpf] Error 2 > make[1]: Leaving directory '/home/sdb/Git/linux' > make: *** [Makefile:269: all] Error 2 > > Signed-off-by: Rong Tao > --- > Makefile | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/Makefile b/Makefile > index 6aa709df6bde..57cce4c8f8a2 100644 > --- a/Makefile > +++ b/Makefile > @@ -1006,9 +1006,11 @@ KBUILD_CFLAGS +=3D $(CC_FLAGS_CFI) > export CC_FLAGS_CFI > endif > > +ifdef CONFIG_FUNCTION_ALIGNMENT > ifneq ($(CONFIG_FUNCTION_ALIGNMENT),0) > KBUILD_CFLAGS +=3D -falign-functions=3D$(CONFIG_FUNCTION_ALIGNMENT) > endif > +endif > > # arch Makefile may override CC so keep this after arch Makefile is incl= uded > NOSTDINC_FLAGS +=3D -nostdinc > -- > 2.38.1 > --=20 Best Regards Masahiro Yamada