Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1702886

Re: [01/11] rtlwifi: rtl8192de: constify pci_device_id.

From Kalle Valo <kvalo@codeaurora.org>
Newsgroups linux.kernel
Subject Re: [01/11] rtlwifi: rtl8192de: constify pci_device_id.
Date 2017-08-03 12:10 +0200
Message-ID <ualeQ-6Uy-39@gated-at.bofh.it> (permalink)
References <u4iMG-8w3-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Arvind Yadav <arvind.yadav.cs@gmail.com> wrote:

> pci_device_id are not supposed to change at runtime. All functions
> working with pci_device_id provided by <linux/pci.h> work with
> const pci_device_id. So mark the non-const structs as const.
> 
> File size before:
>    text	   data	    bss	    dec	    hex	filename
>    2833	    945	     12	   3790	    ece realtek/rtlwifi/rtl8192de/sw.o
> 
> File size After adding 'const':
>    text	   data	    bss	    dec	    hex	filename
>    2929	    849	     12	   3790	    ece realtek/rtlwifi/rtl8192de/sw.o
> 
> Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
> Acked-by: Larry Finger <Larry.Finger@lwfinger.net>

7 patches applied to wireless-drivers-next.git, thanks.

d86d8dbdebcc rtlwifi: rtl8192de: constify pci_device_id.
67f512e6707f rtlwifi: rtl8192se: constify pci_device_id.
468952f14714 rtlwifi: rtl8821ae: constify pci_device_id.
e9a214def6ce rtlwifi: rtl8723ae: constify pci_device_id.
8c6f0f5bf1e1 rtlwifi: rtl8723be: constify pci_device_id.
4dc2efc132a7 rtlwifi: rtl8188ee: constify pci_device_id.
d20d893d7a74 rtlwifi: rtl8192ee: constify pci_device_id.

-- 
https://patchwork.kernel.org/patch/9845899/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [01/11] rtlwifi: rtl8192de: constify pci_device_id. Kalle Valo <kvalo@codeaurora.org> - 2017-08-03 12:10 +0200

csiph-web