Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1879026ybn; Thu, 26 Sep 2019 03:39:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7oKSUCaDdCV2Hy/Qq6WXO8DXgkqlXP0E9JL9p+0lylAS2LDiSDPavPZRxYCjyn4OpMbBI X-Received: by 2002:a50:b6aa:: with SMTP id d39mr2725625ede.16.1569494381537; Thu, 26 Sep 2019 03:39:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569494381; cv=none; d=google.com; s=arc-20160816; b=P8pJ+XMlZkUhMwkuRTzRMFWJMN6W6xy8y+1DpTe1ZOTSgQ3E5+K+TuDm6+J77bgrVF aQyia9CC3/dvJmEadOJ15IHbap37DkaUhohgB5JuHtanJyAbxgK7knsAYeL5Se4VQ7Ad Pe4VNK+YXbsPZsqqKZe/03Ec35nqAHHnKNHL9qmTTI+yZ+J3icHfJNiQXVqnm+d/S/6g tUsHXU4Iiw9Z3BbLHyvp5ddPiDf1I4hTQUb9ZVuWCUDam891/P1Uimx0IHZZsoRCOiZX lAMC53ceZsX0ASRy8aQ0o7cgdCKwiqRiVvZT/+LSqvCfEDYOzopEHYTWFft7JqPlnWry NCYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=/R7o543mmTdBLuKlvhe6gXF5p2WZ76TDOOKVt2wZf/c=; b=SEcel03AtO0vLuKFeKIWfAdnQRhIBGrhhaRsGq3NlQO2ev7U+sjYRaY1mTrtGUO18d Xb78isL436y6owvbiX5MPjqdp8qTC9gpkVmniYjH32sqO5wWk7IAMXw9IAaLjIlyu+vN h5OyimDjYd81RZ1p5/4kO+ghYRZGrbC+Z3V0chv3Y3D9+tSEmaTpF2dLPro9Yq/L3wAi QVvqEhy1+WC+BWv+q4Lo7uTMJvDvy7feO1dmDuCueNR7l2Iw5QNyB9n62kTPZIB9PoAp PReIkadp0GjBMmzLTRjW7YPGW0xBCQoz/Z9aU7nt6aM4CsMMNsQhIr9t+rP+LhB9fMYc f4yQ== 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 d15si1014011edq.430.2019.09.26.03.39.17; Thu, 26 Sep 2019 03:39:41 -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 S1726596AbfIZKNR (ORCPT + 99 others); Thu, 26 Sep 2019 06:13:17 -0400 Received: from albert.telenet-ops.be ([195.130.137.90]:50882 "EHLO albert.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726260AbfIZKNR (ORCPT ); Thu, 26 Sep 2019 06:13:17 -0400 Received: from ramsan ([84.194.98.4]) by albert.telenet-ops.be with bizsmtp id 6ADF2100505gfCL06ADF4l; Thu, 26 Sep 2019 12:13:15 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1iDQlu-0001q2-Ar; Thu, 26 Sep 2019 12:13:14 +0200 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1iDQlu-0008ON-8M; Thu, 26 Sep 2019 12:13:14 +0200 From: Geert Uytterhoeven To: Masahiro Yamada , Andrew Morton , Bartlomiej Zolnierkiewicz Cc: Nick Desaulniers , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH -next] fbdev: c2p: Fix link failure on non-inlining Date: Thu, 26 Sep 2019 12:13:12 +0200 Message-Id: <20190926101312.32218-1-geert@linux-m68k.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. --- drivers/video/fbdev/c2p_core.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/video/fbdev/c2p_core.h b/drivers/video/fbdev/c2p_core.h index e1035a865fb945f0..45a6d895a7d7208e 100644 --- a/drivers/video/fbdev/c2p_core.h +++ b/drivers/video/fbdev/c2p_core.h @@ -29,7 +29,7 @@ static inline void _transp(u32 d[], unsigned int i1, unsigned int i2, extern void c2p_unsupported(void); -static inline u32 get_mask(unsigned int n) +static __always_inline u32 get_mask(unsigned int n) { switch (n) { case 1: @@ -57,7 +57,7 @@ static inline u32 get_mask(unsigned int n) * Transpose operations on 8 32-bit words */ -static inline void transp8(u32 d[], unsigned int n, unsigned int m) +static __always_inline void transp8(u32 d[], unsigned int n, unsigned int m) { u32 mask = get_mask(n); @@ -99,7 +99,7 @@ static inline void transp8(u32 d[], unsigned int n, unsigned int m) * Transpose operations on 4 32-bit words */ -static inline void transp4(u32 d[], unsigned int n, unsigned int m) +static __always_inline void transp4(u32 d[], unsigned int n, unsigned int m) { u32 mask = get_mask(n); @@ -126,7 +126,7 @@ static inline void transp4(u32 d[], unsigned int n, unsigned int m) * Transpose operations on 4 32-bit words (reverse order) */ -static inline void transp4x(u32 d[], unsigned int n, unsigned int m) +static __always_inline void transp4x(u32 d[], unsigned int n, unsigned int m) { u32 mask = get_mask(n); -- 2.17.1