staging: ath6kl: Including a header file to fix a compilation error
PATCH 1/1 staging: ath6kl: Including a header file to fix a compilation error
The commit fixes a compilation error that was encountered while using a specific kernel configuration file. The problem was the use of some fuunctions defined in <linux/semaphore.h> without including the header file explicitly. It was probably working before because of the dependency getting implicitly satisfied via some other header file. Also, eliminating the inclusion of the same header file more than once. The code needs additional cleanup and may be addressed by a subsequent commit.
--- .../staging/ath6kl/miscdrv/ar3kps/ar3kpsconfig.h | 4 ---- drivers/staging/ath6kl/os/linux/cfg80211.c | 2 -- .../staging/ath6kl/os/linux/include/ar6000_drv.h | 8 -------- .../staging/ath6kl/os/linux/include/osapi_linux.h | 1 + drivers/staging/ath6kl/os/linux/netbuf.c | 2 -- 5 files changed, 1 insertions(+), 16 deletions(-)
drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsconfig.h +0 -4
@@ -36,15 +36,11 @@#include <linux/fs.h> #include <linux/errno.h> -#include <linux/string.h> #include <linux/signal.h> -#include <linux/timer.h> #include <linux/ioctl.h> -#include <linux/skbuff.h> #include <linux/firmware.h> -#include <linux/wait.h> #include <net/bluetooth/bluetooth.h>
drivers/staging/ath6kl/os/linux/cfg80211.c +0 -2
@@ -21,8 +21,6 @@// Author(s): ="Atheros" //------------------------------------------------------------------------------ -#include <linux/kernel.h> -#include <linux/netdevice.h> #include <linux/wireless.h> #include <linux/ieee80211.h> #include <net/cfg80211.h>
drivers/staging/ath6kl/os/linux/include/ar6000_drv.h +0 -8
@@ -24,22 +24,14 @@#ifndef _AR6000_H_#define _AR6000_H_ -#include <linux/version.h> - - -#include <generated/autoconf.h> #include <linux/init.h> -#include <linux/kernel.h> #include <linux/sched.h> #include <linux/spinlock.h> -#include <linux/skbuff.h> #include <linux/if_ether.h> -#include <linux/netdevice.h> #include <linux/etherdevice.h> #include <net/iw_handler.h> #include <linux/if_arp.h> #include <linux/ip.h> -#include <linux/semaphore.h> #include <linux/wireless.h> #ifdef ATH6K_CONFIG_CFG80211 #include <net/cfg80211.h>
drivers/staging/ath6kl/os/linux/include/osapi_linux.h +1 -0
@@ -39,6 +39,7 @@#include <linux/timer.h> #include <linux/delay.h> #include <linux/wait.h> +#include <linux/semaphore.h> #include <linux/cache.h>
drivers/staging/ath6kl/os/linux/netbuf.c +0 -2
@@ -20,8 +20,6 @@// // Author(s): ="Atheros" //------------------------------------------------------------------------------ -#include <linux/kernel.h> -#include <linux/skbuff.h> #include <a_config.h> #include "athdefs.h" #include "a_types.h"
Signature · 1 line
1.6.3.3
Quoted 1 line · Vipin Mehta
The commit fixes a compilation error that was encountered while using a specific kernel configuration file. The problem was the use of some fuunctions defined in <
linux/semaphore.h> without including the header file explicitly. It was probably working before because of the dependency getting implicitly satisfied via some other header file. Also, eliminating the inclusion of the same header file more than once. The code needs additional cleanup and may be addressed by a subsequent commit.
Keep the commit log lines to less than about 70 lines or so.
Luis
You meant 70 characters. Right ?
Quoted 21 lines
-----Original Message-----
From: Luis R. Rodriguez [mailto:[email protected]]
Sent: Thursday, September 16, 2010 5:11 PM
To: Vipin Mehta
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH] staging: ath6kl: Including a header file to fix a compilation errorQuoted 1 line · Vipin Mehta
The commit fixes a compilation error that was encountered while using a
specific kernel configuration file. The problem was the use of some fuunctions defined in <
linux/semaphore.h> without including the header file explicitly. It was probably working before because of the dependency getting implicitly satisfied via some other header file. Also, eliminating the inclusion of the same header file more than once. The code needs additional cleanup and may be addressed by a subsequent commit.Keep the commit log lines to less than about 70 lines or so.
Luis
A: No.
Q: Should I include quotations after my reply?
http://daringfireball.net/2007/07/on_top
Quoted 1 line · Vipin Mehta
You meant 70 characters. Right ?
72 characters please.
Quoted 1 line · Vipin Mehta
The commit fixes a compilation error that was encountered while using a specific kernel configuration file. The problem was the use of some fuunctions defined in <
linux/semaphore.h> without including the header file explicitly. It was probably working before because of the dependency getting implicitly satisfied via some other header file. Also, eliminating the inclusion of the same header file more than once. The code needs additional cleanup and may be addressed by a subsequent commit.
Um, please wrap your lines at 72 columns.
Quoted 2 lines
Signed-off-by Vipin Mehta <[email protected]>
Did you forget to report who pointed out the problem to you? That needs to go in a:
line.
Care to redo this?
thanks,
greg k-h