Staging: rtl8712: Fix coding style warnings
cover Staging: rtl8712: Fix coding style warnings
This set of patch fixes following warnings reported by checkpatch.pl:
-Prefer eth_broadcast_addr() over memset()
-Prefer ether_addr_equal() or ether_addr_equal_unaligned() over memcmp() -Block comments use * on subsequent lines
-Block comments use a trailing */ on a separate line -Comparisons should place the constant on the right side of the test
v2: Fixed API suggested by : Larry Finger [email protected]
Improved patch description suggested by Julia [email protected]
Punit Vara (4):
Staging: rtl8712: Fix warning prefer eth_broadcast_addr() over
memset()
Staging: rtl8712: Use ether_addr_equal() over memcmp()
Staging: rtl8712: Coding style warnings fix for block comments
Staging: rtl8712: fix warning for placing constant on the right side
of test
drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 47 ++++++++++++++------------- 1 file changed, 25 insertions(+), 22 deletions(-)
--
2.5.3
PATCH RESEND 1/4 Staging: rtl8712: Fix warning prefer eth_broadcast_addr() over memset()
This patch is to the rtl871x_ioctl_linux.c that fixes up following warning by checkpatch.pl:
-Prefer eth_broadcast_addr() over memset()
--- drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/rtl8712/rtl871x_ioctl_linux.c +1 -2
@@ -1811,8 +1811,7 @@ static int r871x_wx_set_enc_ext(struct net_device *dev,if (param ==NULL )return -ENOMEM ; param->cmd =IEEE_CMD_SET_ENCRYPTION ; -memset (param->sta_addr,0xff ,ETH_ALEN ); - +eth_broadcast_addr (param->sta_addr);strncpy ((char *)param->u.crypt.alg, alg_name,IEEE_CRYPT_ALG_NAME_LEN );if (pext->ext_flags &IW_ENCODE_EXT_GROUP_KEY ) param->u.crypt.set_tx =0 ;
Signature · 1 line
2.5.3
PATCH v2 2/4 Staging: rtl8712: Use ether_addr_equal() over memcmp()
In reply to Punit VaraThis patch is to the rtl871x_ioctl_linux.c file that fixes up following warning reported by checkpatch.pl :
-Prefer ether_addr_equal() or ether_addr_equal_unaligned() over memcmp()
bssid and pnetwork->network.MacAddress both are 6 byte array which aligned with u16
--- drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8712/rtl871x_ioctl_linux.c +1 -1
@@ -2008,7 +2008,7 @@ static int r871x_get_ap_info(struct net_device *dev,return -EINVAL ; }netdev_info (dev,"r8712u: BSSID:%pM\n" , bssid); -if (!memcmp (bssid, pnetwork->network.MacAddress,ETH_ALEN )) { +if (ether_addr_equal (bssid, pnetwork->network.MacAddress)) {/* BSSID match, then check if supporting wpa/wpa2 */ pbuf =r8712_get_wpa_ie (&pnetwork->network.IEs[12 ], &wpa_ielen, pnetwork->network.IELength-12 );
Signature · 1 line
2.5.3
PATCH RESEND 3/4 Staging: rtl8712: Coding style warnings fix for block comments
In reply to Punit VaraThis patch is to the rtl871x_ioctl_linux.c file that fixes up following warnings reported by checkpatch.pl :
-Block comments use * on subsequent lines -Block comments use a trailing */ on a separate line
--- drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-)
drivers/staging/rtl8712/rtl871x_ioctl_linux.c +15 -11
@@ -797,13 +797,13 @@ static int r871x_wx_set_pmkid(struct net_device *dev,int intReturn = false;/* -There are the BSSID information in the bssid.sa_data array. -If cmd is IW_PMKSA_FLUSH, it means the wpa_supplicant wants to clear -all the PMKID information. If cmd is IW_PMKSA_ADD, it means the -wpa_supplicant wants to add a PMKID/BSSID to driver. -If cmd is IW_PMKSA_REMOVE, it means the wpa_supplicant wants to -remove a PMKID/BSSID from driver. -*/ +* There are the BSSID information in the bssid.sa_data array. +* If cmd is IW_PMKSA_FLUSH, it means the wpa_supplicant wants to clear +* all the PMKID information. If cmd is IW_PMKSA_ADD, it means the +* wpa_supplicant wants to add a PMKID/BSSID to driver. +* If cmd is IW_PMKSA_REMOVE, it means the wpa_supplicant wants to +* remove a PMKID/BSSID from driver. +*/ if (pPMK ==NULL )return -EINVAL ;memcpy (strIssueBssid, pPMK->bssid.sa_data,ETH_ALEN );
@@ -818,7 +818,8 @@ static int r871x_wx_set_pmkid(struct net_device *dev,if (!memcmp (psecuritypriv->PMKIDList[j].Bssid, strIssueBssid,ETH_ALEN )) {/* BSSID is matched, the same AP => rewrite -* with new PMKID. */ +* with new PMKID. +*/ netdev_info (dev,"r8712u: %s: BSSID exists in the PMKList.\n" , __func__); memcpy(psecuritypriv->PMKIDList[j].PMKID,
@@ -850,7 +851,8 @@ static int r871x_wx_set_pmkid(struct net_device *dev,if (!memcmp (psecuritypriv->PMKIDList[j].Bssid, strIssueBssid,ETH_ALEN )) {/* BSSID is matched, the same AP => Remove -* this PMKID information and reset it. */ +* this PMKID information and reset it. +*/ eth_zero_addr (psecuritypriv->PMKIDList[j].Bssid); psecuritypriv->PMKIDList[j].bUsed = false;break ;
@@ -1587,7 +1589,8 @@ static int r8711_wx_set_enc(struct net_device *dev, }else { wep.KeyLength =0 ;if (keyindex_provided ==1 ) {/* set key_id only, no given -* KeyMaterial(erq->length==0).*/ +* KeyMaterial(erq->length==0). +*/ padapter->securitypriv.PrivacyKeyIndex = key;switch (padapter->securitypriv.DefKeylen[key]) {case 5 :
@@ -2240,7 +2243,8 @@ static iw_handler r8711_handlers[] = { r8711_wx_set_wap,/* SIOCSIWAP */ r8711_wx_get_wap,/* SIOCGIWAP */ r871x_wx_set_mlme,/* request MLME operation; -* uses struct iw_mlme */ +* uses struct iw_mlme +*/ dummy,/* SIOCGIWAPLIST -- deprecated */ r8711_wx_set_scan,/* SIOCSIWSCAN */ r8711_wx_get_scan, /* SIOCGIWSCAN */
Signature · 1 line
2.5.3
PATCH v2 4/4 Staging: rtl8712: fix warning for placing constant on the right side of test
In reply to Punit VaraPut constant on the right side of a test.Problem found using checkpatch:
Warning:Comparisons should place the constant on the right side of the test
--- drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
drivers/staging/rtl8712/rtl871x_ioctl_linux.c +8 -8
@@ -959,7 +959,7 @@ static int r871x_wx_set_priv(struct net_device *dev,if (IS_ERR (ext))return PTR_ERR (ext); -if (0 ==strcasecmp (ext,"RSSI" )) { +if (strcasecmp (ext,"RSSI" ) ==0 ) {/*Return received signal strength indicator in -db for */ /* current AP */ /*<ssid> Rssi xx */
@@ -976,7 +976,7 @@ static int r871x_wx_set_priv(struct net_device *dev, }else {sprintf (ext,"OK" ); } - }else if (0 ==strcasecmp (ext,"LINKSPEED" )) { + }else if (strcasecmp (ext,"LINKSPEED" ) ==0 ) {/*Return link speed in MBPS */ /*LinkSpeed xx */ union iwreq_data wrqd;
@@ -984,30 +984,30 @@ static int r871x_wx_set_priv(struct net_device *dev,int mbps; ret_inner =r8711_wx_get_rate (dev, info, &wrqd, extra); -if (0 != ret_inner) +if (ret_inner !=0 ) mbps =0 ;else mbps = wrqd.bitrate.value /1000000 ;sprintf (ext,"LINKSPEED %d" , mbps); - }else if (0 ==strcasecmp (ext,"MACADDR" )) { + }else if (strcasecmp (ext,"MACADDR" ) ==0 ) {/*Return mac address of the station */ /* Macaddr = xx:xx:xx:xx:xx:xx */ sprintf (ext,"MACADDR = %pM" , dev->dev_addr); - }else if (0 ==strcasecmp (ext,"SCAN-ACTIVE" )) { + }else if (strcasecmp (ext,"SCAN-ACTIVE" ) ==0 ) {/*Set scan type to active */ /*OK if successful */ struct mlme_priv *pmlmepriv = &padapter->mlmepriv; pmlmepriv->passive_mode =1 ;sprintf (ext,"OK" ); - }else if (0 ==strcasecmp (ext,"SCAN-PASSIVE" )) { + }else if (strcasecmp (ext,"SCAN-PASSIVE" ) ==0 ) {/*Set scan type to passive */ /*OK if successful */ struct mlme_priv *pmlmepriv = &padapter->mlmepriv; pmlmepriv->passive_mode =0 ;sprintf (ext,"OK" ); - }else if (0 ==strncmp (ext,"DCE-E" ,5 )) { + }else if (strncmp (ext,"DCE-E" ,5 ) ==0 ) {/*Set scan type to passive */ /*OK if successful */ r8712_disconnectCtrlEx_cmd(padapter
@@ -1017,7 +1017,7 @@ static int r871x_wx_set_priv(struct net_device *dev, , 5000 /*u32 firstStageTO */ );sprintf (ext,"OK" ); - }else if (0 ==strncmp (ext,"DCE-D" ,5 )) { + }else if (strncmp (ext,"DCE-D" ,5 ) ==0 ) {/*Set scan type to passive */ /*OK if successfu */ r8712_disconnectCtrlEx_cmd(padapter
Signature · 1 line
2.5.3
Greg KH
maintainerRe: [PATCH v2 4/4] Staging: rtl8712: fix warning for placing constant on the right side of test
Quoted 8 lines · Punit Vara
Put constant on the right side of a test.Problem found using checkpatch:
Warning:Comparisons should place the constant on the right side of the test
Signed-off-by Punit Vara <[email protected]>--- drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
Didn't apply to my tree :(
Re: [PATCH v2 4/4] Staging: rtl8712: fix warning for placing constant on the right side of test
Quoted 11 lines · Greg KH
Quoted 8 lines · Punit Vara
Put constant on the right side of a test.Problem found using checkpatch:
Warning:Comparisons should place the constant on the right side of the test
Signed-off-by Punit Vara <[email protected]>--- drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)Didn't apply to my tree :(
In this case what should I do ? Should I do git reset , git pull and then do changes on latest tree ?
One more thing I would like suggestion how can start switching this driver to LIB80211 ,MAC80211 ? Which is the first file I should focus ? Simultaneously I am trying to understand the flow of driver . I would like to know the start point from where I can start doing small changes.
Re: [PATCH v2 4/4] Staging: rtl8712: fix warning for placing constant on the right side of test
Hi,
Quoted 6 lines · punit vara
Quoted 5 lines · Greg KH
Quoted 4 lines · Punit Vara
Put constant on the right side of a test.Problem found using checkpatch:
Warning:Comparisons should place the constant on the right side of the test
Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
Signed-off-by Punit Vara <[email protected]>--- drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)Didn't apply to my tree :(
In this case what should I do ? Should I do git reset , git pull and then do changes on latest tree ?
Greg is probably trying to apply this series to the staging-next branch of his staging tree[0]
so you need to clone that one, or add it as an additional remote[1] to your clone of the kernel tree (much better option IMHO). After this you need to rebase[2] your changes onto the stating-next branch, fix up all conflicts in your code, and resend the patch.
I hope this helps
Tillmann
[0] https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
[1] https://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes
[2] https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
Re: [PATCH v2 4/4] Staging: rtl8712: fix warning for placing constant on the right side of test
Quoted 1 line · Tillmann Heidsieck
Hi,
[...]
Quoted 7 lines
Greg is probably trying to apply this series to the staging-next branch of his staging tree[0]
so you need to clone that one, or add it as an additional remote[1] to your clone of the kernel tree (much better option IMHO). After this you need to rebase[2] your changes onto the stating-next branch, fix up all conflicts in your code, and resend the patch.
Quoted 7 lines
I hope this helps
Tillmann
[0] https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
[1] https://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes
[2] https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
ups, got bitten by my missing c'n'p prowess
[2] https://www.kernel.org/pub/software/scm/git/docs/git-rebase.html
Greg KH
maintainerRe: [PATCH v2 4/4] Staging: rtl8712: fix warning for placing constant on the right side of test
In reply to punit varaQuoted 6 lines · punit vara
Quoted 5 lines · Greg KH
Quoted 4 lines · Punit Vara
Put constant on the right side of a test.Problem found using checkpatch:
Warning:Comparisons should place the constant on the right side of the test
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Signed-off-by Punit Vara <[email protected]>--- drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)Didn't apply to my tree :(
In this case what should I do ? Should I do git reset , git pull and then do changes on latest tree ?
That depends on your workflow, how about pulling and then rebase your branch on mine? That's the easiest workflow to use.
Quoted 5 lines
One more thing I would like suggestion how can start switching this driver to LIB80211 ,MAC80211 ? Which is the first file I should focus ? Simultaneously I am trying to understand the flow of driver . I would like to know the start point from where I can start doing small changes.
If you don't understand the wireless stack, I suggest you do some research on it first, converting a driver to the in-kernel stack is a _very_ difficult thing and not something that someone without any experience in this area is going to be able to do easily.
good luck!
greg k-h
Re: [PATCH v2 4/4] Staging: rtl8712: fix warning for placing constant on the right side of test
Quoted 11 lines · Greg KH
Quoted 5 lines · punit vara
One more thing I would like suggestion how can start switching this driver to LIB80211 ,MAC80211 ? Which is the first file I should focus ? Simultaneously I am trying to understand the flow of driver . I would like to know the start point from where I can start doing small changes.
If you don't understand the wireless stack, I suggest you do some research on it first, converting a driver to the in-kernel stack is a _very_ difficult thing and not something that someone without any experience in this area is going to be able to do easily.
I second this suggestion. Your skill level is not nearly sufficient for this sort of task. Note that there is a group working on driver rtl8192su, which should be able to replace rtl8712u. The participants are very highly skilled wireless developers; however, they are having trouble. The internals of the Realtek chips are not revealed to anyone in any form other than the code they release.
Larry
Re: [PATCH v2 4/4] Staging: rtl8712: fix warning for placing constant on the right side of test
Quoted 17 lines · Larry Finger
Quoted 10 lines · Greg KH
Quoted 6 lines · punit vara
One more thing I would like suggestion how can start switching this driver to LIB80211 ,MAC80211 ? Which is the first file I should focus ? Simultaneously I am trying to understand the flow of driver . I would like to know the start point from where I can start doing small changes.
Quoted 4 lines
If you don't understand the wireless stack, I suggest you do some research on it first, converting a driver to the in-kernel stack is a _very_ difficult thing and not something that someone without any experience in this area is going to be able to do easily.
Quoted 10 lines
I second this suggestion. Your skill level is not nearly sufficient for this sort of task. Note that there is a group working on driver rtl8192su, which should be able to replace rtl8712u. The participants are very highly skilled wireless developers; however, they are having trouble. The internals of the Realtek chips are not revealed to anyone in any form other than the code they release.
Larry
Thank you Larry ,Tillman , Greg for your valuable suggestions. I am interested to learn wireless stack .I have already read wireless wiki documentation , sort of rtl8712 code , cfg80112 APIs . Yeah I agree with you Greg and Larry that its _very_ difficult to thing to convert driver in kernel and also rtl8712 has more files compare to others. Anyway however difficult or tough it may be but I have to go through it once to become highly skilled or good engineer . I would give it a try even if I will fail I believe at least 1% of my knowledge will be improved . More suggestions are welcome.
I have did
git remote add gregkh
http://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
git pull gregkh
git rebase my_local_branch
I have got some conflicts .I can solve them but they are too many . I am trying to solve it . After that I will soon resend this patch.
Thanks
Re: [PATCH v2 4/4] Staging: rtl8712: fix warning for placing constant on the right side of test
Quoted 45 lines · punit vara
Quoted 17 lines · Larry Finger
Quoted 10 lines · Greg KH
Quoted 6 lines · punit vara
One more thing I would like suggestion how can start switching this driver to LIB80211 ,MAC80211 ? Which is the first file I should focus ? Simultaneously I am trying to understand the flow of driver . I would like to know the start point from where I can start doing small changes.
Quoted 4 lines
If you don't understand the wireless stack, I suggest you do some research on it first, converting a driver to the in-kernel stack is a _very_ difficult thing and not something that someone without any experience in this area is going to be able to do easily.
Quoted 10 lines
I second this suggestion. Your skill level is not nearly sufficient for this sort of task. Note that there is a group working on driver rtl8192su, which should be able to replace rtl8712u. The participants are very highly skilled wireless developers; however, they are having trouble. The internals of the Realtek chips are not revealed to anyone in any form other than the code they release.
Larry
Thank you Larry ,Tillman , Greg for your valuable suggestions. I am interested to learn wireless stack .I have already read wireless wiki documentation , sort of rtl8712 code , cfg80112 APIs . Yeah I agree with you Greg and Larry that its _very_ difficult to thing to convert driver in kernel and also rtl8712 has more files compare to others. Anyway however difficult or tough it may be but I have to go through it once to become highly skilled or good engineer . I would give it a try even if I will fail I believe at least 1% of my knowledge will be improved . More suggestions are welcome.
I have did
git remote add gregkh
http://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
Quoted 8 lines
git pull gregkh
git rebase
my_local_branchI have got some conflicts .I can solve them but they are too many . I am trying to solve it . After that I will soon resend this patch.
Thanks
@Greg KH
I am working on linux-next .I have tried to rebase my local branch on your staging tree but I am getting too many conflict .and I have tried to clone your staging tree separately but due slow internet I am unable to clone it fully . Is there any other way I can get your staging tree by downloading ?
Greg KH
maintainerRe: [PATCH v2 4/4] Staging: rtl8712: fix warning for placing constant on the right side of test
Quoted 53 lines · punit vara
Quoted 52 lines · punit vara
Quoted 17 lines · Larry Finger
Quoted 10 lines · Greg KH
Quoted 6 lines · punit vara
One more thing I would like suggestion how can start switching this driver to LIB80211 ,MAC80211 ? Which is the first file I should focus ? Simultaneously I am trying to understand the flow of driver . I would like to know the start point from where I can start doing small changes.
Quoted 4 lines
If you don't understand the wireless stack, I suggest you do some research on it first, converting a driver to the in-kernel stack is a _very_ difficult thing and not something that someone without any experience in this area is going to be able to do easily.
Quoted 10 lines
I second this suggestion. Your skill level is not nearly sufficient for this sort of task. Note that there is a group working on driver rtl8192su, which should be able to replace rtl8712u. The participants are very highly skilled wireless developers; however, they are having trouble. The internals of the Realtek chips are not revealed to anyone in any form other than the code they release.
Larry
Thank you Larry ,Tillman , Greg for your valuable suggestions. I am interested to learn wireless stack .I have already read wireless wiki documentation , sort of rtl8712 code , cfg80112 APIs . Yeah I agree with you Greg and Larry that its _very_ difficult to thing to convert driver in kernel and also rtl8712 has more files compare to others. Anyway however difficult or tough it may be but I have to go through it once to become highly skilled or good engineer . I would give it a try even if I will fail I believe at least 1% of my knowledge will be improved . More suggestions are welcome.
I have did
git remote add gregkh
http://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.gitgit pull gregkh
git rebase
my_local_branchI have got some conflicts .I can solve them but they are too many . I am trying to solve it . After that I will soon resend this patch.
Quoted 8 lines
Quoted 1 line
Thanks
@Greg KH
I am working on linux-next .I have tried to rebase my local branch on your staging tree but I am getting too many conflict .and I have tried to clone your staging tree separately but due slow internet I am unable to clone it fully . Is there any other way I can get your staging tree by downloading ?
git.kernel.org is the only location, sorry.
Try starting with a "clean" version of Linus's tree and just add a branch for my tree, it should be quite a small download.
greg k-h
Re: [PATCH v2 4/4] Staging: rtl8712: fix warning for placing constant on the right side of test
In reply to punit varaQuoted 5 lines · punit vara
I am working on linux-next .I have tried to rebase my local branch on your staging tree but I am getting too many conflict .and I have tried to clone your staging tree separately but due slow internet I am unable to clone it fully . Is there any other way I can get your staging tree by downloading ?
For a while, I had the worst internet of any kernel dev. I can help. :)
Do you have any complete kernel git repository? If you download it one time then you just do a git fetch and git checkout after that. Never do a git pull.
Downloading the linux kernel git repository the first time over bad internet is a huge headache because if you lose the connection then you have to restart. See if someone can post a .tar.gz of the kernel .git directory on a webpage for you then you can download it bit by bit using wget. Unpack it and do a git reset --hard.
regards,
dan carpenter
Re: [PATCH v2 4/4] Staging: rtl8712: fix warning for placing constant on the right side of test
Quoted 13 lines · Dan Carpenter
Quoted 5 lines · punit vara
I am working on linux-next .I have tried to rebase my local branch on your staging tree but I am getting too many conflict .and I have tried to clone your staging tree separately but due slow internet I am unable to clone it fully . Is there any other way I can get your staging tree by downloading ?
For a while, I had the worst internet of any kernel dev. I can help. :)
Do you have any complete kernel git repository? If you download it one time then you just do a
git fetchandgit checkoutafter that. Never do agit pull.
Quoted 10 lines
Downloading the linux kernel git repository the first time over bad internet is a huge headache because if you lose the connection then you have to restart. See if someone can post a .tar.gz of the kernel .git directory on a webpage for you then you can download it bit by bit using wget. Unpack it and do a
git reset --hard.regards,
dan carpenterQuoted 1 line
git branch -a
master
* my_local_branch
old-local-1
remotes/gregkh/master
remotes/gregkh/staging-linus
remotes/gregkh/staging-next
remotes/gregkh/staging-testing
remotes/gregkh/test
remotes/linux-next/akpm
remotes/linux-next/akpm-base
remotes/linux-next/master
remotes/linux-next/stable
remotes/origin/HEAD -> origin/master
remotes/origin/master
Quoted 1 line
Quoted 1 line
git remote -v
gregkh http://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
(fetch)
gregkh http://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
(push)
linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
(fetch)
linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
(push)
origin https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
(fetch)
origin https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
(push)
Above is my situation I have performed >> commands in terminal.
Quoted 5 lines
Quoted 5 lines
git checkout origin/master
git checkout -b experimental origin/master
git fetch gregkh
Am I doing the right thing to get staging changes in my experimental branch ?
Re: [PATCH v2 4/4] Staging: rtl8712: fix warning for placing constant on the right side of test
First fetch the changes, then check them out.
$ git fetch git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-next $ git checkout FETCH_HEAD
regards,
dan carpenter
Re: [PATCH v2 4/4] Staging: rtl8712: fix warning for placing constant on the right side of test
Quoted 8 lines · Dan Carpenter
First fetch the changes, then check them out.
$ git fetch git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-next $ git checkout FETCH_HEADregards,
dan carpenter
Thank you very much Dan.
Problem is solved :-)
@Greg I haven't found any warnings in your tree .You might applied this patch before. So I am forward to create other patches