# Re: \[PATCH 4/5\] dev: Add dev\_vprintk\_emit and dev\_printk\_emit

- From: Geert Uytterhoeven \<geert@linux-m68k.org\>
- Date: 2012-09-25 21:05:06 
- List: netdev
- Page: https://ratatoskr.run/netdev/2012/09/3928779
- Thread: https://ratatoskr.run/netdev/2012/08/3914549/t.md

```text
On Sun, Aug 26, 2012 at 1:25 PM, Joe Perches [ref] wrote:
> --- a/include/linux/device.h
> +++ b/include/linux/device.h
> @@ -914,6 +918,13 @@ int _dev_info(const struct device *dev, const char *fmt, ...);
>
>  #else
>
> +static int dev_vprintk_emit(int level, const struct device *dev,

Missing "inline", cfr. http://kisskb.ellerman.id.au/kisskb/buildresult/7271354/

include/linux/device.h:930:12: error: 'dev_vprintk_emit' defined but
not used [-Werror=unused-function]
cc1: all warnings being treated as errors
make[2]: *** [arch/sh/kernel/dma-nommu.o] Error 1

> +                           const char *fmt, va_list args)
> +{ return 0; }

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
```
