public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Max Kellermann <max@duempel.org>
To: linux-media@vger.kernel.org, shuahkh@osg.samsung.com,
	mchehab@osg.samsung.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 05/12] [media] dvb_frontend: merge duplicate dvb_tuner_ops.release implementations
Date: Wed, 10 Aug 2016 13:56:10 +0200	[thread overview]
Message-ID: <20160810115610.GA4143@swift.blarg.de> (raw)
In-Reply-To: <201608100642.lXQqbCz6%fengguang.wu@intel.com>

On 2016/08/10 01:01, kbuild test robot <lkp@intel.com> wrote:
> url:    https://github.com/0day-ci/linux/commits/Max-Kellermann/rc-main-clear-rc_map-name-in-ir_free_table/20160810-054811
> base:   git://linuxtv.org/media_tree.git master
> config: i386-randconfig-n0-201632 (attached as .config)
> compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
> reproduce:
>         # save the attached .config to linux build tree
>         make ARCH=i386 
> 
> All errors (new ones prefixed by >>):
> 
> >> drivers/built-in.o:(.rodata+0x55f58): undefined reference to `dvb_tuner_simple_release'
>    drivers/built-in.o:(.rodata+0x56038): undefined reference to `dvb_tuner_simple_release'
>    drivers/built-in.o:(.rodata+0x56618): undefined reference to `dvb_tuner_simple_release'
>    drivers/built-in.o:(.rodata+0x566f8): undefined reference to `dvb_tuner_simple_release'
>    drivers/built-in.o:(.rodata+0x57998): undefined reference to `dvb_tuner_simple_release'

This configuration breaks because there is no dependency from those
tuners to dvb_frontend.c (where dvb_tuner_simple_release).  However,
without dvb_frontend.c, there is no user of such a tuner, and this
configuration doesn't make sense.

Before I spend time on fixing this, I'd like to know if this patch has
a chance to be merged, or if you generally reject my idea of folding
duplicate code.

Two solutions come to my mind:

1.) add a dependency

2.) move dvb_tuner_simple_release() to a new library, which all tuner
    implementations depend on (which may some day have more common
    tuner code)

Opinions?

Max


  reply	other threads:[~2016-08-10 20:11 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-09 21:32 [PATCH 01/12] [media] rc-main: clear rc_map.name in ir_free_table() Max Kellermann
2016-08-09 21:32 ` [PATCH 02/12] [media] dvbdev: split dvb_unregister_device() Max Kellermann
2016-08-09 21:32 ` [PATCH 03/12] [media] dvb-core/en50221: use dvb_remove_device() Max Kellermann
2016-08-09 21:32 ` [PATCH 04/12] [media] dvb: make DVB frontend *_ops instances "const" Max Kellermann
2016-08-09 21:32 ` [PATCH 05/12] [media] dvb_frontend: merge duplicate dvb_tuner_ops.release implementations Max Kellermann
2016-08-09 23:01   ` kbuild test robot
2016-08-10 11:56     ` Max Kellermann [this message]
2016-08-09 23:19   ` kbuild test robot
2016-08-09 21:32 ` [PATCH 06/12] [media] dvb_frontend: tuner_ops.release returns void Max Kellermann
2016-08-09 21:32 ` [PATCH 07/12] [media] dvb_frontend: merge the two dvb_frontend_detach() versions Max Kellermann
2016-08-09 21:32 ` [PATCH 08/12] [media] dvb_frontend: add "detach" callback Max Kellermann
2016-08-09 21:32 ` [PATCH 09/12] [media] stb0899: move code to " Max Kellermann
2016-08-09 21:32 ` [PATCH 10/12] [media] dvb_frontend: move kref to struct dvb_frontend Max Kellermann
2016-08-09 21:32 ` [PATCH 11/12] [media] media-entity: clear media_gobj.mdev in _destroy() Max Kellermann
2016-08-09 21:33 ` [PATCH 12/12] drivers/media/media-device: fix double free bug in _unregister() Max Kellermann
2016-11-14 23:41 ` [PATCH 01/12] [media] rc-main: clear rc_map.name in ir_free_table() Shuah Khan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160810115610.GA4143@swift.blarg.de \
    --to=max@duempel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@osg.samsung.com \
    --cc=shuahkh@osg.samsung.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox