Re: [PATCH] ext4: fix -Wstringop-truncation warnings

2020-12-16 Thread Wenlin Kang
On 2020/12/16 下午12:20, Theodore Y. Ts'o wrote: [Please note this e-mail is from an EXTERNAL e-mail address] On Thu, Nov 12, 2020 at 05:33:24PM +0800, Kang Wenlin wrote: From: Wenlin Kang The strncpy() function may create a unterminated string, use strscpy_pad() instead. This fixe

Re: [PATCH] kdb: Fix bound check compiler warning

2019-05-08 Thread Wenlin Kang
On 5/8/19 4:16 PM, Daniel Thompson wrote: On Wed, May 08, 2019 at 09:52:39AM +0800, Wenlin Kang wrote: The strncpy() function may leave the destination string buffer unterminated, better use strlcpy() instead. This fixes the following warning with gcc 8.2: kernel/debug/kdb/kdb_io.c: In

Re: [PATCH] pci: restrict 64-bit pci device to assign resource from behind of max_pfn

2015-10-16 Thread Wenlin Kang
On 2015年10月15日 22:05, Bjorn Helgaas wrote: Hi Wenlin, On Thu, Oct 15, 2015 at 06:46:44PM +0800, Wenlin Kang wrote: This patch restricts 64-bit pci device to assign resource from behind of max_pfn when kernel config enables CONFIG_64BIT. On some system that pci device requires assignment of

Re: [PATCH] pci: restrict 64-bit pci device to assign resource from behind of max_pfn

2015-10-15 Thread Wenlin Kang
On 2015年10月15日 19:32, kbuild test robot wrote: Hi Wenlin, [auto build test ERROR on pci/next -- if it's inappropriate base, please suggest rules for selecting the more suitable base] url: https://github.com/0day-ci/linux/commits/Wenlin-Kang/pci-restrict-64-bit-pci-device-to-a

[PATCH] pci: restrict 64-bit pci device to assign resource from behind of max_pfn

2015-10-15 Thread Wenlin Kang
, so this patch extends this window of pci resource on 64-bit system that both 32 and 64-bit pci device exist or only 64-bit device exists, makes it more likely that we can assign resource to more or all devices. Signed-off-by: wlkang Signed-off-by: Wenlin Kang --- drivers/pci/setup-res.c | 12

Re: [PATCH] mtd: blktrans: change blktrans_getgeo rerurn value

2015-05-21 Thread Wenlin Kang
On 2015年05月21日 16:05, Brian Norris wrote: On Thu, May 21, 2015 at 09:56:21AM +0200, Richard Weinberger wrote: On Wed, May 20, 2015 at 9:33 PM, Brian Norris wrote: On Wed, May 13, 2015 at 02:29:16PM +0800, Wenlin Kang wrote: Modify function blktrans_getgeo()'s return value to -ENXIO whe

Re: [PATCH] mtd: blktrans: change blktrans_getgeo rerurn value

2015-05-21 Thread Wenlin Kang
On 2015年05月21日 15:37, Brian Norris wrote: On Thu, May 21, 2015 at 02:49:38PM +0800, Wenlin Kang wrote: On 2015年05月21日 03:47, nick wrote: On 2015-05-20 03:33 PM, Brian Norris wrote: On Wed, May 13, 2015 at 02:29:16PM +0800, Wenlin Kang wrote: Modify function blktrans_getgeo()'s return

[PATCH] mtd: blktrans: change blktrans_getgeo return value

2015-05-21 Thread Wenlin Kang
ome application, if return 0, it will make some application get the wrong information. Signed-off-by: Wenlin Kang --- drivers/mtd/mtd_blkdevs.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c index 2b0c5287..2012216 100644

Re: [PATCH] mtd: blktrans: change blktrans_getgeo rerurn value

2015-05-20 Thread Wenlin Kang
On 2015年05月21日 03:47, nick wrote: On 2015-05-20 03:33 PM, Brian Norris wrote: Hi Wenlin, In the subject: s/rerurn/return/ Thanks for pointing out this, I will modify it. On Wed, May 13, 2015 at 02:29:16PM +0800, Wenlin Kang wrote: Modify function blktrans_getgeo()'s return val

[PATCH] mtd: blktrans: change blktrans_getgeo rerurn value

2015-05-12 Thread Wenlin Kang
pplication, if return 0, it will make some application get the wrong information. Signed-off-by: Wenlin Kang --- drivers/mtd/mtd_blkdevs.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c index 2b0c5287..f8bb16e 100644