Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1946754ybn; Thu, 26 Sep 2019 04:46:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqwNy8/qrgUilpHAlWtMU5AgbFKuXPPg5bhF331BhKpPp0TLQQCGsajl9D+mcT8AttB5OCxS X-Received: by 2002:a17:906:b316:: with SMTP id n22mr2646140ejz.54.1569498396961; Thu, 26 Sep 2019 04:46:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569498396; cv=none; d=google.com; s=arc-20160816; b=oyV75O/MESpv5KV3qGT7DkKywWa8+J/9UCrQ+8z9Gwll4GXH7lvNdio4mCrjXkNscy JKm6PHs5g45sUIr4Gx6yEGXqGYjydGH+s2h9QtJZXdWrELd7P+ICXP5gW951vNsCJ5RD HulDh2YvjmOMAGTVku4RGWZIIVK0O4IU9CEzbkLP6hJ1xfBoT1n+UGou/WrhY8mxitH9 tB7B2xUs94pnUf1HfQnmf2bPtfgeh67SgKsyYwtApyOuoESFinfEunmW9awN9RNS9st2 zcKYNpWw6uZNq/i1JT5gqrpS1RtGHzwgCcvHu4Lh6SbeT+0/naziwhpRLvDJw2vHGQqh O9PQ== 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; bh=4NJdVMhLCeR2qiK+ps5K2jQQOjDIRz/+T2QEFlJumLo=; b=1AxUL2iob6vjdSJMu4F87V0mBOlFowJUqW/1MXGvfaG/BDQlze515sEBPKJidvbFEJ MCPBaI39swXrGmIBM2VK76ZBTFpAWUhy2riylfjZWkDFKnFLmxFZtcHqV0/GEaBYYt1Q ZP/O61go7/phgTi/Anv1HSyQFOWGFB/xlRnuNI+a4qaCtiQPS/pVh5p/lCZwrOWmexc2 l2G7WOAPAkyIFJw8aWVEJDMwtHkLLO6mXcvAePv8Z5UEq1PxkuewH52kzPX0uhcuM4cd 2EaUhmRsr7ZXlp9GrgNxmp7R2KHo/mpOHB/C6ziS4oJQOwNX/a2VslEhriwRQW6nqdvP xWew== 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 y10si838292ejw.76.2019.09.26.04.46.13; Thu, 26 Sep 2019 04:46:36 -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 S1726817AbfIZLn3 (ORCPT + 99 others); Thu, 26 Sep 2019 07:43:29 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:44858 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725914AbfIZLn3 (ORCPT ); Thu, 26 Sep 2019 07:43:29 -0400 Received: by mail-ot1-f65.google.com with SMTP id 21so1668439otj.11; Thu, 26 Sep 2019 04:43:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4NJdVMhLCeR2qiK+ps5K2jQQOjDIRz/+T2QEFlJumLo=; b=ID9IoPJJTSGf5si0CLomZFSVVrRwR+mdL0qANNE3/Batj1CZJiqlbl7ViKb7S1YmAk Cp4J1i7oaVpKqmksPFEyjoPfo/ufSXidJtiT+KG+K1TfDIkaBbzKuC2f11Tfsw5caR6/ Lxv6WVUmchDpw7ztr785bfYMItHvVQyGult5jH12UMOzyxFgCYr32sBvj7X2g9xyWyzb xU5NbiYGcT/7l6n2+lYBm1TVgByJv/X9AVZm+H7luChUScDpumgL3GXTj9CjR9gmYgO+ v6ydzZlF96RYc75sABGbNMa3k19JUrS91dLCV6eKlCUgVZHIKGhzufyNKAAHGUcLe5VE jFcw== X-Gm-Message-State: APjAAAWAiQVGhlmdUOlCMuOxLlfmbmom7R1eR78/oIc8m9jVnmrgwwPo b7CzxspEMssWShNIF+NnibKTNEzFF5aNwZXGVqvTSVQt X-Received: by 2002:a9d:193:: with SMTP id e19mr2139993ote.107.1569498208192; Thu, 26 Sep 2019 04:43:28 -0700 (PDT) MIME-Version: 1.0 References: <20190926101312.32218-1-geert@linux-m68k.org> In-Reply-To: From: Geert Uytterhoeven Date: Thu, 26 Sep 2019 13:43:16 +0200 Message-ID: Subject: Re: [PATCH -next] fbdev: c2p: Fix link failure on non-inlining To: Masahiro Yamada Cc: Andrew Morton , Bartlomiej Zolnierkiewicz , Nick Desaulniers , dri-devel , Linux Fbdev development list , Linux Kernel Mailing List 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 Yamada-san, On Thu, Sep 26, 2019 at 12:45 PM Masahiro Yamada wrote: > On Thu, Sep 26, 2019 at 7:13 PM Geert Uytterhoeven wrote: > > When the compiler decides not to inline the Chunky-to-Planar core > > functions, the build fails with: > > > > c2p_planar.c:(.text+0xd6): undefined reference to `c2p_unsupported' > > c2p_planar.c:(.text+0x1dc): undefined reference to `c2p_unsupported' > > c2p_iplan2.c:(.text+0xc4): undefined reference to `c2p_unsupported' > > c2p_iplan2.c:(.text+0x150): undefined reference to `c2p_unsupported' > > > > Fix this by marking the functions __always_inline. > > > > Reported-by: noreply@ellerman.id.au > > Signed-off-by: Geert Uytterhoeven > > --- > > Fixes: 025f072e5823947c ("compiler: enable CONFIG_OPTIMIZE_INLINING forcibly") > > > > As this is a patch in akpm's tree, the commit ID in the Fixes tag is not > > stable. > > BTW, that Fixes tag is incorrect. > > Irrespective of 025f072e5823947c, you could manually enable > CONFIG_OPTIMIZE_INLINING from menuconfig etc. Merely enabling that doesn't help. You also need CONFIG_CC_OPTIMIZE_FOR_SIZE=y, while the default is CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y. Which is why my all{mod,yes}config builds never caught that :-( > So, this build error would have been found much earlier > if somebody had been running randconfig tests on m68k. It's been a while I did that... BTW, does randconfig randomize choices these days? I remember it didn't use to do that. > It is impossible to detect this error on other architectures > because the driver config options are guarded by > 'depends on ATARI' or 'depends on AMIGA'. > > The correct tag is: > > Fixes: 9012d011660e ("compiler: allow all arches to enable > CONFIG_OPTIMIZE_INLINING") > > The commit id is stable. Thanks, will update. > As an additional work, > depends on (AMIGA || COMPILE_TEST) > would be nice unless this driver contains m68k-specific code. The Amiga and Atari frame buffer drivers need , and the Atari driver contains inline asm. The C2P code could be put behind its own Kconfig symbol, I guess. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds