linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
  • * [PATCH, RESEND^2] ssb: mark ssb_bus_register as __maybe_unused
           [not found] ` <8760ywd5fe.fsf@kamboji.qca.qualcomm.com>
           [not found]   ` <4037550.DMaVTE01Aq@wuerfel>
    @ 2016-01-18 19:39   ` Arnd Bergmann
      2016-01-19 13:03     ` Kalle Valo
      2016-01-19 19:26     ` [RESEND^2] " Kalle Valo
      1 sibling, 2 replies; 7+ messages in thread
    From: Arnd Bergmann @ 2016-01-18 19:39 UTC (permalink / raw)
      To: linux-arm-kernel
      Cc: Kalle Valo, linux-mips, Hauke Mehrtens, Rafał Miłecki,
    	linux-kernel, Michael Buesch, netdev, linux-wireless
    
    The SoC variant of the ssb code is now optional like the other
    ones, which means we can build the framwork without any
    front-end, but that results in a warning:
    
    drivers/ssb/main.c:616:12: warning: 'ssb_bus_register' defined but not used [-Wunused-function]
    
    This annotates the ssb_bus_register function as __maybe_unused to
    shut up the warning. A configuration like this will not work on
    any hardware of course, but we still want this to silently build
    without warnings if the configuration is allowed in the first
    place.
    
    Signed-off-by: Arnd Bergmann <arnd@arndb.de>
    Fixes: 845da6e58e19 ("ssb: add Kconfig entry for compiling SoC related code")
    Acked-by: Michael Buesch <m@bues.ch>
    ---
    Resent to linux-wireless as requested
    
    diff --git a/drivers/ssb/main.c b/drivers/ssb/main.c
    index cde5ff7529eb..d1a750760cf3 100644
    --- a/drivers/ssb/main.c
    +++ b/drivers/ssb/main.c
    @@ -613,9 +613,10 @@ out:
     	return err;
     }
     
    -static int ssb_bus_register(struct ssb_bus *bus,
    -			    ssb_invariants_func_t get_invariants,
    -			    unsigned long baseaddr)
    +static int __maybe_unused
    +ssb_bus_register(struct ssb_bus *bus,
    +		 ssb_invariants_func_t get_invariants,
    +		 unsigned long baseaddr)
     {
     	int err;
     
    
    ^ permalink raw reply related	[flat|nested] 7+ messages in thread

  • end of thread, other threads:[~2016-01-19 19:26 UTC | newest]
    
    Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <8128014.DbbgBtKY3z@wuerfel>
         [not found] ` <8760ywd5fe.fsf@kamboji.qca.qualcomm.com>
         [not found]   ` <4037550.DMaVTE01Aq@wuerfel>
         [not found]     ` <87bn8l7miw.fsf@kamboji.qca.qualcomm.com>
         [not found]       ` <CACna6ryvDFHqwJ3ExURcyFT2ZaT9fS9v36wCnJfze5BLnE88og@mail.gmail.com>
         [not found]         ` <87y4bn5m4q.fsf@kamboji.qca.qualcomm.com>
    2016-01-18 16:53           ` ssb: Set linux-wireless as MAINTAINERS list Michael Büsch
    2016-01-18 19:09             ` Rafał Miłecki
    2016-01-19 13:04               ` Kalle Valo
    2016-01-19 19:25             ` Kalle Valo
    2016-01-18 19:39   ` [PATCH, RESEND^2] ssb: mark ssb_bus_register as __maybe_unused Arnd Bergmann
    2016-01-19 13:03     ` Kalle Valo
    2016-01-19 19:26     ` [RESEND^2] " Kalle Valo
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox;
    as well as URLs for NNTP newsgroup(s).