Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4007077pxb; Tue, 25 Jan 2022 01:12:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJyqxXYi+h+2Tfn/kqN24+vvJlO7bJTcnoTevc3cEuC7Ye7BoV1qXK/4pE4BMvOeI6IG+KCe X-Received: by 2002:a63:1607:: with SMTP id w7mr14770290pgl.526.1643101945359; Tue, 25 Jan 2022 01:12:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643101945; cv=none; d=google.com; s=arc-20160816; b=OkHbmX1C/2kccQIIzzQQ/GqnHiTCauBKizWR78jEcJYCuEFg+zZerua2SduOOIC9e8 PShKa3j7kS2GFchV1gWchG+38yRqTwqLqTCXOyDp9qai0bcjJTqKMS72TCc7jAB4ui3+ toZk6FgyaznQ3gDI6noHzmkBayP5nQQrj3EodgcV8NqsxgqvipyOVZk43KuQ5ryPKbMC 6ZcNmZi2fcaCRvXhUbofYL05Loq6n9OBtDOzOOgYRoDCXP53CMXoP1sYsMXtpxcq6Kzb fwZLmVaLso5Cj0q/P2GL1PpGoQmXcP4WtpXBhhSKXynHVai0Xc4zjEhFFXoxUm8BG69d WGqw== 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=abBK9VVUqL6UXjuLUzWwVweR3OtIvZP20Nia7ymSDqE=; b=NIdNAHUYJPn6wJxfyWAiL40LZ7854Trqpc3s7FYFejlOirP+ytDv1HLDsDCNsZoLzu wgfd2hZxml6Bec2KKHLl+v7htcN5G//NmpgojyFqzrpBfYziZC8yZNcnK4th+9cCJpe9 wh1B0E85m0fMuSXkUpTxnoJGqyo4poUKbVsZfb9d1/LTyJKuKGX10aI9i/AH+EDOSIko eAyR5sDoygx0WSCtKHd0EqOBYBvfgrbN+xt9Rv6UVpUdiKXqd3LGjfaW3jWZVu74EtmS qgXrLL0iHDO+0BWk0+mhZoNfC4yBQXLXPz1TdQ2jBMyoIBLMI4929J1kIwLsGbnlSsn8 xXCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="m8brp/KA"; 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 l5si15611354pgq.400.2022.01.25.01.12.12; Tue, 25 Jan 2022 01:12:25 -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="m8brp/KA"; 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 S1443086AbiAYHM7 (ORCPT + 99 others); Tue, 25 Jan 2022 02:12:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442600AbiAYHJy (ORCPT ); Tue, 25 Jan 2022 02:09:54 -0500 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05765C061747 for ; Mon, 24 Jan 2022 22:05:25 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id w14so7773816edd.10 for ; Mon, 24 Jan 2022 22:05:24 -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=abBK9VVUqL6UXjuLUzWwVweR3OtIvZP20Nia7ymSDqE=; b=m8brp/KA6L4kEtPy7NYPdztwrNSthgERntr1drcocg6YTINq/qeRvhzDEHxQ6tnhCJ FLuAtoTIKUjRLU6O7dVBAewX/90a7jDupC77e7YK1TRAuKpkYve2SUWLUSiMAFxG/uxF r7VuB5TSBUGkPK7P44njHJNjstoo6Vu6Cifwr1F/LFau7ckMsijIYypqeh/EWQ/qhvJX CXtDrw4/sv+ntsT+6TLBAGpaM5JEPnlwCoGHCfLppNLnYjQXsA/oM3M1xbu+bWdZ16/+ CytXv5huuxwJxFf+lLDZpc845kYOEWp2VYS2oO9KH1eFvRNKDcMDtn6vxFpowJaxsWyJ 7osQ== 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=abBK9VVUqL6UXjuLUzWwVweR3OtIvZP20Nia7ymSDqE=; b=mh2ApQGgYkCReFJUNSZaBv+OpamZOtd2lh1CQqvN7/hSUY/n+LEIt71iIO8orcGlMI FAAl0tvYb89FdqU8Yj0mbGYP5+93zWkNpfyJ0N0reF0aAjGjfJsKQaX7KPwLr5GsTYXR CpWVqVwwM/9ZBIZwGKC6HDtN/slJcdZldbAAOTZ37ncFW4+615ckZKEekkbLZWw9t9Aw PcGz3lUGdqlanAPbKdVj2tG7QJrbfXM9jro7ZmXEUm1ghn0DteX5m4Yd8ewCttIAmRTv owIP7zv3JqmXwBXVX08QjhMyLucwFFqUXwukShFagcWhbslCCnG9wpEivw+xFWiBvxEF f+pw== X-Gm-Message-State: AOAM53336v3AB7T2N8gUNJnaulsgasewrbNExkuG/xoW7NSkjFGRSUip IqJiY3riTpJbnZOSmXZYFMGY9oRg53Up9B1IXyM= X-Received: by 2002:a05:6402:5246:: with SMTP id t6mr11526651edd.35.1643090723501; Mon, 24 Jan 2022 22:05:23 -0800 (PST) MIME-Version: 1.0 References: <202201250941.1xbLnDRA-lkp@intel.com> In-Reply-To: From: Hao Lee Date: Tue, 25 Jan 2022 14:05:12 +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 11:01 AM Hao Lee wrote: > > 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. Andrew has handled it. 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