public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: linux-kernel@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	"Rafael J. Wysocki" <rafael@kernel.org>
Subject: [PATCH 5/6] driver core: physical_location.h remove extern from function prototypes
Date: Fri, 24 Mar 2023 13:27:10 +0100	[thread overview]
Message-ID: <20230324122711.2664537-5-gregkh@linuxfoundation.org> (raw)
In-Reply-To: <20230324122711.2664537-1-gregkh@linuxfoundation.org>

The kernel coding style does not require 'extern' in function prototypes
in .h files, so remove them from drivers/base/physical_location.h as
they are not needed.

Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 drivers/base/physical_location.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/base/physical_location.h b/drivers/base/physical_location.h
index 82cde9f1b161..3f3f61307998 100644
--- a/drivers/base/physical_location.h
+++ b/drivers/base/physical_location.h
@@ -8,7 +8,7 @@
 #include <linux/device.h>
 
 #ifdef CONFIG_ACPI
-extern bool dev_add_physical_location(struct device *dev);
+bool dev_add_physical_location(struct device *dev);
 extern const struct attribute_group dev_attr_physical_location_group;
 #else
 static inline bool dev_add_physical_location(struct device *dev) { return false; };
-- 
2.40.0


  parent reply	other threads:[~2023-03-24 12:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-24 12:27 [PATCH 1/6] driver core: device.h: remove extern from function prototypes Greg Kroah-Hartman
2023-03-24 12:27 ` [PATCH 2/6] driver core: bus.h: " Greg Kroah-Hartman
2023-03-24 12:27 ` [PATCH 3/6] driver core: driver.h: " Greg Kroah-Hartman
2023-03-24 12:27 ` [PATCH 4/6] driver core: base.h: " Greg Kroah-Hartman
2023-03-24 12:27 ` Greg Kroah-Hartman [this message]
2023-03-24 12:27 ` [PATCH 6/6] kobject.h " Greg Kroah-Hartman
2023-03-24 13:35 ` [PATCH 1/6] driver core: device.h: " Rafael J. Wysocki
2023-03-24 13:41   ` Greg Kroah-Hartman

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=20230324122711.2664537-5-gregkh@linuxfoundation.org \
    --to=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rafael@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox