Skip to content

Commit 2a492d6

Browse files
riteshharjanimaddy-kerneldev
authored andcommitted
powerpc/64s/slb: Make preload_add return type as void
We dropped preload_new_slb_context() & slb_setup_new_exec() in a previous patch. That means we don't really need preload_add() return type anymore. So let's make its return type as void. Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/88b07223e93b0fc56c1119f6889b7d9c83e20109.1761834163.git.ritesh.list@gmail.com
1 parent 3d44be2 commit 2a492d6

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

  • arch/powerpc/mm/book3s64

arch/powerpc/mm/book3s64/slb.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ static bool preload_hit(struct thread_info *ti, unsigned long esid)
294294
return false;
295295
}
296296

297-
static bool preload_add(struct thread_info *ti, unsigned long ea)
297+
static void preload_add(struct thread_info *ti, unsigned long ea)
298298
{
299299
unsigned char idx;
300300
unsigned long esid;
@@ -308,16 +308,14 @@ static bool preload_add(struct thread_info *ti, unsigned long ea)
308308
esid = ea >> SID_SHIFT;
309309

310310
if (preload_hit(ti, esid))
311-
return false;
311+
return;
312312

313313
idx = (ti->slb_preload_tail + ti->slb_preload_nr) % SLB_PRELOAD_NR;
314314
ti->slb_preload_esid[idx] = esid;
315315
if (ti->slb_preload_nr == SLB_PRELOAD_NR)
316316
ti->slb_preload_tail = (ti->slb_preload_tail + 1) % SLB_PRELOAD_NR;
317317
else
318318
ti->slb_preload_nr++;
319-
320-
return true;
321319
}
322320

323321
static void preload_age(struct thread_info *ti)

0 commit comments

Comments
 (0)