From: Mawanda Henry <mawandahenrynaco@gmail.com>
To: mawanda111@gmail.com
Cc: xdeguillard@vmware.com, moltmann@vmware.com,
pv-drivers@vmware.com, arnd@arndb.de, gregkh@linuxfoundation.org,
linux-kernel@vger.kernel.org
Subject: [PATCH] drivers/misc: SPDX-licensing
Date: Wed, 20 Jun 2018 20:05:24 +0300 [thread overview]
Message-ID: <20180620170524.GA18126@sesnaco> (raw)
Attach SPDX license header. Concatinate int on unsigned
Signed-off-by: Mawanda Henry <mawandahenrynaco@gmail.com>
---
drivers/misc/vmw_balloon.c | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/drivers/misc/vmw_balloon.c b/drivers/misc/vmw_balloon.c
index 9047c0a..762429d 100644
--- a/drivers/misc/vmw_balloon.c
+++ b/drivers/misc/vmw_balloon.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* VMware Balloon driver.
*
@@ -247,7 +248,7 @@ struct vmballoon_stats {
unsigned int doorbell_unset;
};
-#define STATS_INC(stat) (stat)++
+#define STATS_INC(stat) ((stat)++)
#else
#define STATS_INC(stat)
#endif
@@ -275,7 +276,7 @@ struct vmballoon {
struct vmballoon_page_size page_sizes[VMW_BALLOON_NUM_PAGE_SIZES];
/* supported page sizes. 1 == 4k pages only, 2 == 4k and 2m pages */
- unsigned supported_page_sizes;
+ unsigned int supported_page_sizes;
/* balloon size in pages */
unsigned int size;
@@ -559,7 +560,7 @@ static void vmballoon_free_page(struct page *page, bool is_2m_page)
static void vmballoon_pop(struct vmballoon *b)
{
struct page *page, *next;
- unsigned is_2m_pages;
+ unsigned int is_2m_pages;
for (is_2m_pages = 0; is_2m_pages < VMW_BALLOON_NUM_PAGE_SIZES;
is_2m_pages++) {
@@ -796,7 +797,7 @@ static void vmballoon_add_batched_page(struct vmballoon *b, int idx,
*/
static void vmballoon_inflate(struct vmballoon *b)
{
- unsigned rate;
+ unsigned int rate;
unsigned int allocations = 0;
unsigned int num_pages = 0;
int error = 0;
@@ -936,7 +937,7 @@ static void vmballoon_inflate(struct vmballoon *b)
*/
static void vmballoon_deflate(struct vmballoon *b)
{
- unsigned is_2m_pages;
+ unsigned int is_2m_pages;
pr_debug("%s - size: %d, target %d\n", __func__, b->size, b->target);
@@ -1234,7 +1235,7 @@ static int __init vmballoon_debugfs_init(struct vmballoon *b)
{
int error;
- b->dbg_entry = debugfs_create_file("vmmemctl", S_IRUGO, NULL, b,
+ b->dbg_entry = debugfs_create_file("vmmemctl", 0444, NULL, b,
&vmballoon_debug_fops);
if (IS_ERR(b->dbg_entry)) {
error = PTR_ERR(b->dbg_entry);
@@ -1266,7 +1267,7 @@ static inline void vmballoon_debugfs_exit(struct vmballoon *b)
static int __init vmballoon_init(void)
{
int error;
- unsigned is_2m_pages;
+ unsigned int is_2m_pages;
/*
* Check if we are running on VMware's hypervisor and bail out
* if we are not.
--
2.7.4
next reply other threads:[~2018-06-20 17:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-20 17:05 Mawanda Henry [this message]
2018-06-20 20:39 ` [PATCH] drivers/misc: SPDX-licensing Greg KH
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=20180620170524.GA18126@sesnaco \
--to=mawandahenrynaco@gmail.com \
--cc=arnd@arndb.de \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mawanda111@gmail.com \
--cc=moltmann@vmware.com \
--cc=pv-drivers@vmware.com \
--cc=xdeguillard@vmware.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 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.