Skip to content

Commit b6566b4

Browse files
rddunlapbzolnier
authored andcommitted
fbdev/via: fix defined but not used warning
Fix a build warning in viafbdev.c when CONFIG_PROC_FS is not enabled by marking the unused function as __maybe_unused. ../drivers/video/fbdev/via/viafbdev.c:1471:12: warning: 'viafb_sup_odev_proc_show' defined but not used [-Wunused-function] Signed-off-by: Randy Dunlap <[email protected]> Cc: Florian Tobias Schandinat <[email protected]> Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
1 parent 4bcd8c9 commit b6566b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/video/fbdev/via/viafbdev.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
2020
*/
2121

22+
#include <linux/compiler.h>
2223
#include <linux/module.h>
2324
#include <linux/seq_file.h>
2425
#include <linux/slab.h>
@@ -1468,7 +1469,7 @@ static const struct file_operations viafb_vt1636_proc_fops = {
14681469

14691470
#endif /* CONFIG_FB_VIA_DIRECT_PROCFS */
14701471

1471-
static int viafb_sup_odev_proc_show(struct seq_file *m, void *v)
1472+
static int __maybe_unused viafb_sup_odev_proc_show(struct seq_file *m, void *v)
14721473
{
14731474
via_odev_to_seq(m, supported_odev_map[
14741475
viaparinfo->shared->chip_info.gfx_chip_name]);

0 commit comments

Comments
 (0)