Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1899091ybn; Thu, 26 Sep 2019 04:01:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqygpQuxFQr07bFQ7RcKO4ZVGoIOBYErxPU5Q/3p+I8PaTT3pVn96XFgjfJnNPu9CrWn0glg X-Received: by 2002:a17:906:fad6:: with SMTP id lu22mr2403507ejb.98.1569495687162; Thu, 26 Sep 2019 04:01:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569495687; cv=none; d=google.com; s=arc-20160816; b=wfMuhtEd7Q9kT2Cs9VxD7ouWGKxbgQRANoS0gbT9OWRzLegebZtC3lB7KWJP1r1WWm NZ6kUEaBhATeANB1MQpgP7IQQu35ZHsqd7IhOcP2y0t4Tr8gNMkNyCyXZB+D2njUhdBK p8lmghj1JznCU245oLKKYGHhWTdR6TNWNStFCU7CPtsj0b3h8mzA/9I6JCR7GpTzpZHX fyMRxKxWhYv8IPR/znQUHEpZgk43xmvHBPv4Da3d6K+JQ41uUbMQOBiBBrdBDhS3pHbY UtncvZ6aeFLpAw8qp6shRHa1+A4qq38HWhExE/aVx8jPPcxeNfpWI/rdUerPh9X+EMW7 BWzA== 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=2bqFCD9HY4bOSAdbvQuBhAL+OdjKk61eDEgGU6Vtqck=; b=b/9XWXbw8iM6os5CkGXv1e+UZuN8XfIfMx9QKOHDEzRCNfYtBC4JHkMucCugVekEj6 Uv2rarPnV8PZFi4CPncX6WEbKm2UXLqQ7sNGoNMdz0u56ZHbW3R+k1pFi15SZjDglaXR EH7vQecBEX3dN9Hjp+PVP5HvlN2kT/WKh+HWd9DsRYQwnZiahkiU2NUfA3I3BnzRlwfz Xa+HvPhnvS8xdF95BmIxeIc5RHLo1gV8KtbDdvdgxkzNK1wWBAJ2t4vmyURifxEQBXvv JIZS1fchfQZ5fElPC92e+rhvKUD5a5/wnS+NRorr2Er5vP2vriw8H56IRRf4vLStFYKa NzeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="MGH/PDa0"; 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 f17si1081055ede.380.2019.09.26.04.01.03; Thu, 26 Sep 2019 04:01:27 -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=@nifty.com header.s=dec2015msa header.b="MGH/PDa0"; 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 S1726054AbfIZKp4 (ORCPT + 99 others); Thu, 26 Sep 2019 06:45:56 -0400 Received: from conssluserg-02.nifty.com ([210.131.2.81]:61224 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725813AbfIZKp4 (ORCPT ); Thu, 26 Sep 2019 06:45:56 -0400 Received: from mail-vk1-f179.google.com (mail-vk1-f179.google.com [209.85.221.179]) (authenticated) by conssluserg-02.nifty.com with ESMTP id x8QAjhr9003477; Thu, 26 Sep 2019 19:45:43 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com x8QAjhr9003477 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1569494744; bh=2bqFCD9HY4bOSAdbvQuBhAL+OdjKk61eDEgGU6Vtqck=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=MGH/PDa0fPS4hDwlv5O/+6Pv/I+M0Ihx7N+qCcjMpIu4hvGN7nL80VD8z6Re9ijAJ yMOj5tPD6gG17+vUCK+9uxHTUYzsGiaW5HrzHbHVGcNlzQEz/IIxU/LAn6MRFmgOiX sPx6wE4YMa6SgxQPoow1CA7QvEi/lmgNb+552BfSu2CyavfAsd8gf1KAD+giQxc6Z/ y3vEjpc/AcJ5ICRI+cHesOhcmHkEtfe+hU2rbzlLhqA4GZZsaGcgdxRq0T2dJIUd+S y43pK4BH9uj6pfZoEIaymNW1eyoOdbIcsgpZgLamCn4iVKhKQSZkox/fmV/fg7N1H4 TEjp/yp/Ct50Q== X-Nifty-SrcIP: [209.85.221.179] Received: by mail-vk1-f179.google.com with SMTP id d66so337950vka.2; Thu, 26 Sep 2019 03:45:43 -0700 (PDT) X-Gm-Message-State: APjAAAVzIHx64jZ5aNo4tTjfLe72+XgiZN/u/Hzg6UBTVYSGBMgdWQEj Fx31NRgp8p0ngFpMjdr/BYLStDDXDyT6VvujWec= X-Received: by 2002:a1f:60c2:: with SMTP id u185mr1298856vkb.0.1569494742579; Thu, 26 Sep 2019 03:45:42 -0700 (PDT) MIME-Version: 1.0 References: <20190926101312.32218-1-geert@linux-m68k.org> In-Reply-To: <20190926101312.32218-1-geert@linux-m68k.org> From: Masahiro Yamada Date: Thu, 26 Sep 2019 19:45:06 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH -next] fbdev: c2p: Fix link failure on non-inlining To: Geert Uytterhoeven Cc: Andrew Morton , Bartlomiej Zolnierkiewicz , Nick Desaulniers , dri-devel , linux-fbdev@vger.kernel.org, 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 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. So, this build error would have been found much earlier if somebody had been running randconfig tests on m68k. 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. As an additional work, depends on (AMIGA || COMPILE_TEST) would be nice unless this driver contains m68k-specific code. -- Best Regards Masahiro Yamada