From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964780AbbJPUcK (ORCPT ); Fri, 16 Oct 2015 16:32:10 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:63278 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932668AbbJPUcI (ORCPT ); Fri, 16 Oct 2015 16:32:08 -0400 From: Arnd Bergmann To: Mauro Carvalho Chehab , linux-media@vger.kernel.org Cc: Sergey Kozlov , linux-kernel@vger.kernel.org Subject: [PATCH] [media] lnbh25: fix lnbh25_attach inline wrapper Date: Fri, 16 Oct 2015 22:32:02 +0200 Message-ID: <10110482.QkOJ1nlAsE@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:FetRe7ZF5mJwFYYr/18aTzoDQSGKFZSUave7wt89ywD0S1WKIAI BYrcVu4fJSILQwvTBG4PfoAfC1ciIw03F6Op2YMpfdc+khftFoL8OVOt16ARqKFPIDEKhqn Mg3n7rd2R33n2mtMdAO6UbtGKKYA/Rp5I84BAdUaZ3+o3mbu4UfFU4BuI6zTWlcYkMAnRCO XEW6+NSQiSMLrn7kHS8Ug== X-UI-Out-Filterresults: notjunk:1;V01:K0:3v9a6GjbpMo=:KV/m9kNJyE32ImG/h55Upi nLIc9f3Pl89JEoHuNVeL/+CSm9tkuJu93TtPdMNEjNT6+v4/Up0gyUvAky81NynfYpcn0pKhv Ce/sSzc1fJv9jXHw2rbkbSV5wO6r0LoeEXMol5r6yFItxIlQlsHSjNDo8mpGoVzxUlc8+owwP X0T6j22OlMMOFSzUTos7GeD16S0pM7gf9CNeLAWuSzf3xGdbzV7WEG66Vq0xqG8IPlqAf2c95 IjSSzmy1atZT2/lrqVYWm55OX0CAi7OCj6XHQGnKwdFGQov1mkt8RxO+rkx6gHlH4Nl7J4JwN gTWtHbBBQCXruELQP82ipaAj6C276V7Si3igCEimKuzQ/4BRrsrPuIcNZOk9qqEZKlc+3ZOqS 7OIUelaYn0cyLxd+0baC97TTHoM3DyViXceWhTfHL9tBzt3er6MLL8MalCnet2z7q4Ko/FdlJ 5mnSlrce1TyAIOzW9uojqpfgTLkV1NvoejJ65gQ+uDCWx1xi0Tthx8zIj3WAhnb8q6jOrMTLT 5kaXzrj6e4m7ZwxrwHEsPX5Rp6NiwaxyX5HL3YuN4GSAvYyDIEC/ysnZ4V4IILfj7bEwsqIb0 OAk7KIF/lMwksbyGbhOh1Ae61rxhiA0EZxIOzPDBXFWgog3ng2vbhwtWcQ0eOu38VfswkHNGN B6LXvYBkby09FTysFOmghp0qfbK/S+KiGcokIQDwPyEshSY25FIp5uzaME1ioZRdFVlufDBny TjQ0IxAq7IBZv6u3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The 'static inline' version of lnbh25_attach() has an incorrect prototype which results in a build error when CONFIG_DVB_LNBH25 is disabled: In file included from /git/arm-soc/drivers/media/pci/netup_unidvb/netup_unidvb_core.c:36:0: /git/arm-soc/drivers/media/dvb-frontends/lnbh25.h:46:86: error: unknown type name 'dvb_frontend' This changes the code to have the correct prototype. Signed-off-by: Arnd Bergmann Fixes: e025273b86fb ("[media] lnbh25: LNBH25 SEC controller driver") --- Found on ARM randconfig builds diff --git a/drivers/media/dvb-frontends/lnbh25.h b/drivers/media/dvb-frontends/lnbh25.h index 69f30e21f6b3..1f329ef05acc 100644 --- a/drivers/media/dvb-frontends/lnbh25.h +++ b/drivers/media/dvb-frontends/lnbh25.h @@ -43,7 +43,7 @@ struct dvb_frontend *lnbh25_attach( struct lnbh25_config *cfg, struct i2c_adapter *i2c); #else -static inline dvb_frontend *lnbh25_attach( +static inline struct dvb_frontend *lnbh25_attach( struct dvb_frontend *fe, struct lnbh25_config *cfg, struct i2c_adapter *i2c)