lkml.org 
[lkml]   [2014]   [Apr]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/8] idr: fix overflow bug for the max-high layer
On Sat, Apr 19, 2014 at 01:08:46AM +0800, Lai Jiangshan wrote:
> On Sat, Apr 19, 2014 at 12:29 AM, Tejun Heo <tj@kernel.org> wrote:
> > Hello,
>
> Hi,
>
> Should I resend the patch with your updated changelog?
> Or something else I need to do?

Yeah, please resend with the description updated.

> >> static void test5(void)
> >> {
> >> int id;
> >> DEFINE_IDR(test_idr);
> >> #define TEST5_START ((1<<27)+42) /* use the highest layer */
> >>
> >> printk(KERN_INFO "Start test5\n");
> >> id = idr_alloc(&test_idr, (void *)1, TEST5_START, 0, GFP_KERNEL);
> >> BUG_ON(id != TEST5_START);
> >> TEST_BUG_ON(idr_replace(&test_idr, (void *)2, TEST5_START) != (void *)1);
> >> idr_destroy(&test_idr);
> >> printk(KERN_INFO "End of test5\n");
> >> }
>
> Does the above testing code need to be kept in the changelog.

Yeah, why not? It makes what's failing very clear.

Thanks.

--
tejun


\
 
 \ /
  Last update: 2014-04-18 19:41    [W:0.062 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site