* your option) any later version.
*/
+#include <linux/cred.h>
#include <linux/dcache.h>
#include <linux/fs.h>
#include <linux/init.h>
static unsigned int kdbus_strnhash(const char *str, size_t len)
{
- unsigned long hash = init_name_hash();
+ unsigned long hash = init_name_hash(0);
while (len--)
hash = partial_name_hash(*str++, hash);
}
for (i = 0; i < cred->group_info->ngroups; i++) {
- kgid_t gid = GROUP_AT(cred->group_info, i);
+ kgid_t gid = cred->group_info->gid[i];
if (gid_eq(gid, a->gid)) {
highest = a->access;