Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rescounter: remove __must_check from res_counter_charge_nofail()

Since we will succeed with the allocation no matter what, there isn't a
need to use __must_check with it. It can very well be optional.

Signed-off-by: Glauber Costa <glommer@parallels.com>
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ying Han <yinghan@google.com>
Reviewed-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Glauber Costa and committed by
Linus Torvalds
04eac7ff 2f3479b1

+1 -1
+1 -1
include/linux/res_counter.h
··· 119 119 unsigned long val, bool force); 120 120 int __must_check res_counter_charge(struct res_counter *counter, 121 121 unsigned long val, struct res_counter **limit_fail_at); 122 - int __must_check res_counter_charge_nofail(struct res_counter *counter, 122 + int res_counter_charge_nofail(struct res_counter *counter, 123 123 unsigned long val, struct res_counter **limit_fail_at); 124 124 125 125 /*