All of lore.kernel.org
 help / color / mirror / Atom feed
From: akpm@linux-foundation.org
To: mm-commits@vger.kernel.org
Cc: joe@perches.com, geert@linux-m68k.org, greg@kroah.com
Subject: + deviceh-add-missing-inline-to-ifndef-config_printk-dev_vprintk_emit.patch added to -mm tree
Date: Wed, 26 Sep 2012 15:15:23 -0700	[thread overview]
Message-ID: <20120926221524.1E664200057@hpza10.eem.corp.google.com> (raw)


The patch titled
     Subject: device.h: add missing inline to #ifndef CONFIG_PRINTK dev_vprintk_emit()
has been added to the -mm tree.  Its filename is
     deviceh-add-missing-inline-to-ifndef-config_printk-dev_vprintk_emit.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Joe Perches <joe@perches.com>
Subject: device.h: add missing inline to #ifndef CONFIG_PRINTK dev_vprintk_emit()

Also add __printf() verification for format string.

Signed-off-by: Joe Perches <joe@perches.com>
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 include/linux/device.h |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff -puN include/linux/device.h~deviceh-add-missing-inline-to-ifndef-config_printk-dev_vprintk_emit include/linux/device.h
--- a/include/linux/device.h~deviceh-add-missing-inline-to-ifndef-config_printk-dev_vprintk_emit
+++ a/include/linux/device.h
@@ -902,8 +902,9 @@ extern const char *dev_driver_string(con
 
 #ifdef CONFIG_PRINTK
 
-extern int dev_vprintk_emit(int level, const struct device *dev,
-			    const char *fmt, va_list args);
+extern __printf(3, 0)
+int dev_vprintk_emit(int level, const struct device *dev,
+		     const char *fmt, va_list args);
 extern __printf(3, 4)
 int dev_printk_emit(int level, const struct device *dev, const char *fmt, ...);
 
@@ -927,8 +928,9 @@ int _dev_info(const struct device *dev, 
 
 #else
 
-static int dev_vprintk_emit(int level, const struct device *dev,
-			    const char *fmt, va_list args)
+static inline __printf(3, 0)
+int dev_vprintk_emit(int level, const struct device *dev,
+		     const char *fmt, va_list args)
 { return 0; }
 static inline __printf(3, 4)
 int dev_printk_emit(int level, const struct device *dev, const char *fmt, ...)
_

Patches currently in -mm which might be from joe@perches.com are

linux-next.patch
deviceh-add-missing-inline-to-ifndef-config_printk-dev_vprintk_emit.patch
maintainers-update-gianfar_ptp-after-renaming.patch
checkpatch-check-utf-8-content-from-a-commit-log-when-its-missing-from-charset.patch
checkpatch-update-suggested-printk-conversions.patch
checkpatch-check-networking-specific-block-comment-style.patch
codingstyle-add-networking-specific-block-comment-style.patch


                 reply	other threads:[~2012-09-26 22:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20120926221524.1E664200057@hpza10.eem.corp.google.com \
    --to=akpm@linux-foundation.org \
    --cc=geert@linux-m68k.org \
    --cc=greg@kroah.com \
    --cc=joe@perches.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mm-commits@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.