Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3994626pxb; Tue, 25 Jan 2022 00:57:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJydHnEb+nvX6ka98t0r3h6yvlpI/lXapGnwwDKeQrlbej6X15eXkj4b3Rq1Neh3ea8IUbKf X-Received: by 2002:a05:6a00:88b:b0:4c5:b37f:75a2 with SMTP id q11-20020a056a00088b00b004c5b37f75a2mr17433051pfj.0.1643101053193; Tue, 25 Jan 2022 00:57:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643101053; cv=none; d=google.com; s=arc-20160816; b=Z+v7K9UkIhVvpehi58YeCdcN6gNU0LMiFPNdgzPda3BVFcOMpxfO9fLVfsa+L4uxxE m6w3qYqiCQBj9PD2qIZSDjn5CEOxVlm9VWQDR2Q78PsUfwCJh/KV1Wb82jUknbUakkqO CW34f+7gxqkGWEJ13O4jLeNv3qMnEHmzEFhLTzwX0pfgSIAhsPwonXF/DvRd28rfnWcl Ewr4xlcv58KN40dNLtj8KIy0cFGLzU6syWrvnYznvjIil/QkwpjoUsM7woby2Bfqm2SD /Gh+VepoXKbTYaLZX6UuPlT5TaVoQ6UMjcgZi3RO2ALoZs4yQkO3OEfBTripYL7CQzL9 quFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=5Cf7HaBEW8ZShSggL6tkumxi9Mw0DTtg8YdgRM/NCJ4=; b=X7gja1BRMmWjNU81yax+NchJF8ya48p0YrYwD2h1ktLXxFaoIgfR+BAa1xdHcJ/FZo mO2R8QhBgyOiX//X8vZy8484XxH5lQdb0TEU/ifao+DDCfxLo+aDudgQIYJ5Hc9t/YWK jS3thXPfBu5/KILnE6R3iXh3ekkFFH3yqqrwUzprk/v/LInFxmWBXqEk1ld/shGb8X6A oq0Pl1qnXxMY9SGC9akJT64x99trwqmEgXHNIRuT4ttbIFFJLLL2lbF9ylx6ubCyhhVO dDibLiIocwRJicdnBKKqfAG4b8e0k+gmYps5/hdDQ7DASQewHAdr1yt7lP6RuTX6il6t p0Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qH+SaFIl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x10si14370224plo.113.2022.01.25.00.57.21; Tue, 25 Jan 2022 00:57:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qH+SaFIl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1390509AbiAYEuf (ORCPT + 99 others); Mon, 24 Jan 2022 23:50:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S252182AbiAYE0P (ORCPT ); Mon, 24 Jan 2022 23:26:15 -0500 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D297C036BD6 for ; Mon, 24 Jan 2022 19:01:15 -0800 (PST) Received: by mail-ej1-x62b.google.com with SMTP id d10so26955248eje.10 for ; Mon, 24 Jan 2022 19:01:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5Cf7HaBEW8ZShSggL6tkumxi9Mw0DTtg8YdgRM/NCJ4=; b=qH+SaFIlivJarF0Hk+Y1uD0uJ6o8VVf/6A6TljK3Wf/aT1RSc0qz12Ul8rbpNOSIaN CFBTLvJb5/oudP2kwX0FPcRlgjNiErQX2PlDJGY/gEjXLUIm7TbFUZbGzuscDTHi5m5T bK2werne4qU1oOtBm5x8LK0xJ9dNNK7gA0fAxvoLs6A/O27YqQSKzCMrEfT4uh+F7Rv4 zi8l4rsuyVwSfbTqN3eWuLJ0npYuff5lAFWVWXecjRD8wkHwm47qPTVvXwc2Q16tUNJH pfrRbX9enPGE1+4ZlQyb29VC/CzhvhshFhqos0wtB3WjCy4H26M0o/TYQ0kynJbCDo7C EIxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5Cf7HaBEW8ZShSggL6tkumxi9Mw0DTtg8YdgRM/NCJ4=; b=vYbUx7ZS/RsmWamMLHzWG7CLc5IXJk6v8O/XKhdzpP384EiiDOtNySWYakL965zXn4 Lf4rGTJsemebnazGwcqIy5s8xkBw6OQ0UYbF32oLWjERmFPsLBMC8VsRWfGbwDGiSTcJ YIbZTpwwdvPhSWsorjk7wGaMzgL8RcQR/LvpoZgr7urqDlxav3+NFLm7UnJWF758KBUB dum9evgxyqgsv2ju814JceSJEbyG4DoOCHnJ7MgV1AtvFD7x0eirVFL3tmexQ1MezgDR xkr/Don8brT9vDgplbkgqP3NYotXr2wgIaD+k4DkHzc09ymoDp8KoxlHwT/rnK5NWZ5X w8pw== X-Gm-Message-State: AOAM532TrNeFpad2T92dATHd24Fa1PRnJtBYuKeQ/JpOGY6/U3a8s+ku B4JcS60nKatrEIjtHuYQbuwXcCsVhPXyw+zSbubf+CvyLfg= X-Received: by 2002:a17:906:2715:: with SMTP id z21mr14573052ejc.393.1643079674133; Mon, 24 Jan 2022 19:01:14 -0800 (PST) MIME-Version: 1.0 References: <202201250941.1xbLnDRA-lkp@intel.com> In-Reply-To: <202201250941.1xbLnDRA-lkp@intel.com> From: Hao Lee Date: Tue, 25 Jan 2022 11:01:02 +0800 Message-ID: Subject: Re: fs/proc/base.c:1767:14-18: WARNING: casting value returned by memory allocation function to (char *) is useless. To: kernel test robot Cc: kbuild-all@lists.01.org, LKML , Alexey Dobriyan , Andrew Morton Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 25, 2022 at 10:36 AM kernel test robot wrote: > > tree: https://github.com/0day-ci/linux/commits/UPDATE-20220123-215907/Hao-Lee/proc-use-kmalloc-instead-of-__get_free_page-to-alloc-path-buffer/20220123-181005 > head: 98106e76de95ae9aefa914ec056448a5571155dc > commit: 98106e76de95ae9aefa914ec056448a5571155dc proc: alloc PATH_MAX bytes for /proc/${pid}/fd/ symlinks > date: 35 hours ago > config: i386-randconfig-c001-20220124 (https://download.01.org/0day-ci/archive/20220125/202201250941.1xbLnDRA-lkp@intel.com/config) > compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > > cocci warnings: (new ones prefixed by >>) > >> fs/proc/base.c:1767:14-18: WARNING: casting value returned by memory allocation function to (char *) is useless. Hello, Alexey, This patch has been added to the -mm tree, how do we deal with this problem... Thanks. > > Please review and possibly fold the followup patch. > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org