public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix build with ./configure-bootstrap
@ 2009-07-07  7:13 Stefan Seyfried
  2009-07-07 17:21 ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Seyfried @ 2009-07-07  7:13 UTC (permalink / raw)
  To: BlueZ devel list

hciops.c: In function ‘hciops_exit’:
hciops.c:728: error: call to function ‘btd_adapter_cleanup_ops’
              without a real prototype
---
 plugins/hciops.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/hciops.c b/plugins/hciops.c
index 659f754..6baed76 100644
--- a/plugins/hciops.c
+++ b/plugins/hciops.c
@@ -725,7 +725,7 @@ static int hciops_init(void)
 }
 static void hciops_exit(void)
 {
-	btd_adapter_cleanup_ops(&hci_ops);
+	btd_adapter_cleanup_ops();
 }
 
 BLUETOOTH_PLUGIN_DEFINE(hciops, VERSION,
-- 
1.6.3.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] Fix build with ./configure-bootstrap
  2009-07-07  7:13 [PATCH] Fix build with ./configure-bootstrap Stefan Seyfried
@ 2009-07-07 17:21 ` Marcel Holtmann
  2009-07-07 21:39   ` Stefan Seyfried
  0 siblings, 1 reply; 4+ messages in thread
From: Marcel Holtmann @ 2009-07-07 17:21 UTC (permalink / raw)
  To: Stefan Seyfried; +Cc: BlueZ devel list

Hi Stefan,

> hciops.c: In function ‘hciops_exit’:
> hciops.c:728: error: call to function ‘btd_adapter_cleanup_ops’
>               without a real prototype
> ---
>  plugins/hciops.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/plugins/hciops.c b/plugins/hciops.c
> index 659f754..6baed76 100644
> --- a/plugins/hciops.c
> +++ b/plugins/hciops.c
> @@ -725,7 +725,7 @@ static int hciops_init(void)
>  }
>  static void hciops_exit(void)
>  {
> -	btd_adapter_cleanup_ops(&hci_ops);
> +	btd_adapter_cleanup_ops();
>  }
>  
>  BLUETOOTH_PLUGIN_DEFINE(hciops, VERSION,

the subject is not matching the patch and I have no idea what is going
on here. I leave this to Johan or Alok to look at.

Regards

Marcel



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Fix build with ./configure-bootstrap
  2009-07-07 17:21 ` Marcel Holtmann
@ 2009-07-07 21:39   ` Stefan Seyfried
  2009-07-07 22:54     ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Seyfried @ 2009-07-07 21:39 UTC (permalink / raw)
  To: BlueZ devel list

On Tue, 07 Jul 2009 10:21:52 -0700
Marcel Holtmann <marcel@holtmann.org> wrote:

> Hi Stefan,
> 
> > hciops.c: In function ‘hciops_exit’:
> > hciops.c:728: error: call to function ‘btd_adapter_cleanup_ops’
> >               without a real prototype
> > ---
> >  plugins/hciops.c |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> > 
> > diff --git a/plugins/hciops.c b/plugins/hciops.c
> > index 659f754..6baed76 100644
> > --- a/plugins/hciops.c
> > +++ b/plugins/hciops.c
> > @@ -725,7 +725,7 @@ static int hciops_init(void)
> >  }
> >  static void hciops_exit(void)
> >  {
> > -	btd_adapter_cleanup_ops(&hci_ops);
> > +	btd_adapter_cleanup_ops();
> >  }
> >  
> >  BLUETOOTH_PLUGIN_DEFINE(hciops, VERSION,
> 
> the subject is not matching the patch and I have no idea what is going
> on here. I leave this to Johan or Alok to look at.

The build fails, because of this warning:

make[3]: Entering directory `/local/seife/src/git-repos/bluez-git/plugins'
  CC     libbuiltin_la-service.lo
  CC     libbuiltin_la-hciops.lo
cc1: warnings being treated as errors
hciops.c: In function ‘hciops_exit’:
hciops.c:728: error: call to function ‘btd_adapter_cleanup_ops’ without a real prototype
../src/adapter.h:174: note: ‘btd_adapter_cleanup_ops’ was declared here

The hci_ops are not used by btd_adapter_cleanup_ops (it takes no
parameter), so I guessed that the above would be a valid fix.

It is certainly a good idea to have this reviewed by someone who
actually knows the code (I don't ;)

Best regards,

	Stefan
-- 
Stefan Seyfried
R&D Preload Department             |              "Any ideas, John?"
SUSE LINUX Products GmbH, Nürnberg | "Well, surrounding them's out."

This footer brought to you by insane German lawmakers:
SUSE Linux Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Fix build with ./configure-bootstrap
  2009-07-07 21:39   ` Stefan Seyfried
@ 2009-07-07 22:54     ` Marcel Holtmann
  0 siblings, 0 replies; 4+ messages in thread
From: Marcel Holtmann @ 2009-07-07 22:54 UTC (permalink / raw)
  To: Stefan Seyfried; +Cc: BlueZ devel list

Hi Stefan,

> > > hciops.c: In function ‘hciops_exit’:
> > > hciops.c:728: error: call to function ‘btd_adapter_cleanup_ops’
> > >               without a real prototype
> > > ---
> > >  plugins/hciops.c |    2 +-
> > >  1 files changed, 1 insertions(+), 1 deletions(-)
> > > 
> > > diff --git a/plugins/hciops.c b/plugins/hciops.c
> > > index 659f754..6baed76 100644
> > > --- a/plugins/hciops.c
> > > +++ b/plugins/hciops.c
> > > @@ -725,7 +725,7 @@ static int hciops_init(void)
> > >  }
> > >  static void hciops_exit(void)
> > >  {
> > > -	btd_adapter_cleanup_ops(&hci_ops);
> > > +	btd_adapter_cleanup_ops();
> > >  }
> > >  
> > >  BLUETOOTH_PLUGIN_DEFINE(hciops, VERSION,
> > 
> > the subject is not matching the patch and I have no idea what is going
> > on here. I leave this to Johan or Alok to look at.
> 
> The build fails, because of this warning:
> 
> make[3]: Entering directory `/local/seife/src/git-repos/bluez-git/plugins'
>   CC     libbuiltin_la-service.lo
>   CC     libbuiltin_la-hciops.lo
> cc1: warnings being treated as errors
> hciops.c: In function ‘hciops_exit’:
> hciops.c:728: error: call to function ‘btd_adapter_cleanup_ops’ without a real prototype
> ../src/adapter.h:174: note: ‘btd_adapter_cleanup_ops’ was declared here
> 
> The hci_ops are not used by btd_adapter_cleanup_ops (it takes no
> parameter), so I guessed that the above would be a valid fix.
> 
> It is certainly a good idea to have this reviewed by someone who
> actually knows the code (I don't ;)

we fixed it now with bluez-4.45 release, but your patch was actually
wrong. The problems with the prototype with no argument list. Bad C
programming and bad that it slipped through our review.

Regards

Marcel



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-07-07 22:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-07  7:13 [PATCH] Fix build with ./configure-bootstrap Stefan Seyfried
2009-07-07 17:21 ` Marcel Holtmann
2009-07-07 21:39   ` Stefan Seyfried
2009-07-07 22:54     ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox