From: Takashi Iwai <tiwai@suse.de>
To: Randy Dunlap <rdunlap@xenotime.net>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>,
linux-kernel@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>,
David Airlie <airlied@linux.ie>
Subject: Re: [PATCH] vga_switcheroo.h: fix pci_dev warning
Date: Mon, 18 Jun 2012 11:04:40 +0200 [thread overview]
Message-ID: <s5hmx41ng7r.wl%tiwai@suse.de> (raw)
In-Reply-To: <4FDB9109.7070001@xenotime.net>
At Fri, 15 Jun 2012 12:46:17 -0700,
Randy Dunlap wrote:
>
> From: Randy Dunlap <rdunlap@xenotime.net>
>
> Fix warnings on some architectures/configs (not on x86):
>
> include/linux/vga_switcheroo.h:28:30: warning: 'struct pci_dev' declared inside parameter list [enabled by default]
> include/linux/vga_switcheroo.h:28:30: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
>
> Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
> Cc: Takashi Iwai <tiwai@suse.de>
Acked-by: Takashi Iwai <tiwai@suse.de>
And while we are at it, another trivial fix I stumbled on.
thanks,
Takashi
---
From: Takashi Iwai <tiwai@suse.de>
Subject: [PATCH] vga_switcheroo: Avoid double inclusion
Add a proper ifndef thingy to protect from the double inclusion.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
include/linux/vga_switcheroo.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/include/linux/vga_switcheroo.h b/include/linux/vga_switcheroo.h
index 60da41f..539acd3 100644
--- a/include/linux/vga_switcheroo.h
+++ b/include/linux/vga_switcheroo.h
@@ -7,6 +7,9 @@
* vga_switcheroo.h - Support for laptop with dual GPU using one set of outputs
*/
+#ifndef _LINUX_VGA_SWITCHEROO_H
+#define _LINUX_VGA_SWITCHEROO_H
+
#include <linux/fb.h>
enum vga_switcheroo_state {
@@ -71,3 +74,5 @@ static inline int vga_switcheroo_get_client_state(struct pci_dev *dev) { return
#endif
+
+#endif /* _LINUX_VGA_SWITCHEROO_H */
--
1.7.10.4
prev parent reply other threads:[~2012-06-18 9:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-10 9:24 Build regressions/improvements in v3.5-rc2 Geert Uytterhoeven
2012-06-10 9:25 ` Geert Uytterhoeven
2012-06-15 19:46 ` [PATCH] vga_switcheroo.h: fix pci_dev warning Randy Dunlap
2012-06-18 9:04 ` Takashi Iwai [this message]
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=s5hmx41ng7r.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=airlied@linux.ie \
--cc=akpm@linux-foundation.org \
--cc=geert@linux-m68k.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rdunlap@xenotime.net \
/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
all inboxes | Powered by JetHome®