Re: [PATCH 6/7] staging: wilc1000: Change ac based on acm status
Hi Aditya, [auto build test ERROR on staging/staging-testing] [also build test ERROR on v4.12-rc7 next-20170626] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Aditya-Shankar/staging-wilc1000-Add-support-for-AC-classification/20170627-015835 config: sparc64-allyesconfig (attached as .config) compiler: sparc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=sparc64 All errors (new ones prefixed by >>): drivers/staging/wilc1000/wilc_wlan.c: In function 'ac_change': >> drivers/staging/wilc1000/wilc_wlan.c:457:11: error: 'struct wilc' has no >> member named 'txq' if (wilc->txq[*ac].acm == 0) ^~ vim +457 drivers/staging/wilc1000/wilc_wlan.c 451 pkt_count[AC_VO_Q] = (reg & 0xfe00) >> VO_AC_COUNT_POS; 452 } 453 454 static inline u8 ac_change(struct wilc *wilc, u8 *ac) 455 { 456 do { > 457 if (wilc->txq[*ac].acm == 0) 458 return 0; 459 (*ac)++; 460 } while (*ac < NQUEUES); --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[PATCH 6/7] staging: wilc1000: Change ac based on acm status
Add a new function to check and alter the ac if needed based on the acm status for a particular queue. Signed-off-by: Aditya Shankar --- drivers/staging/wilc1000/wilc_wlan.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c index b3e1136..e323fd4 100644 --- a/drivers/staging/wilc1000/wilc_wlan.c +++ b/drivers/staging/wilc1000/wilc_wlan.c @@ -451,6 +451,16 @@ static inline void ac_pkt_count(u32 reg, u8 *pkt_count) pkt_count[AC_VO_Q] = (reg & 0xfe00) >> VO_AC_COUNT_POS; } +static inline u8 ac_change(struct wilc *wilc, u8 *ac) +{ + do { + if (wilc->txq[*ac].acm == 0) + return 0; + (*ac)++; + } while (*ac < NQUEUES); + return 1; +} + int wilc_wlan_txq_add_net_pkt(struct net_device *dev, void *priv, u8 *buffer, u32 buffer_size, wilc_tx_complete_func_t func) { -- 2.7.4 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel