Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp743683imm; Thu, 13 Sep 2018 07:07:58 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY50UohUHgC9XgTg64mOGjsCA6T9OFi3W4i18D3JqR5QAxbwqJ132FO20AwsABPbTG5Lphd X-Received: by 2002:a63:9b09:: with SMTP id r9-v6mr7380745pgd.324.1536847678861; Thu, 13 Sep 2018 07:07:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536847678; cv=none; d=google.com; s=arc-20160816; b=fvCdxlZtmkNsvPu/B5mdKE8zuzJdPqZ1GlWzFDHP51IyvutBsH/Be31HrMFhZfKKWr 8GLrApdWttjO6XgWB6wH8ddQWCHN3Za+Gf9zzRdbda2f8LPKip2timFkRTsJaB7P8NGJ ki05b/KMlYUSqC3vOOhKUi+SOOlzyQJTN6fi4y70VhQXiUqwK4JJGMtmrnCASsGp+0Iy DggIf7WYOo6R4q3PtkyGB/KaYAOQUh+Ye5r3SlsCyIPfIOhfLQQeEa1VsYbk4GU9rMLl qSqnMNJZZtE5I9wK4l2NP7XznJUGH/0vgxEYrHhjuHFoMMOudYQrnrw8ejKARtYq79ij b2kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=XKHSvNHxMV0jVGArKCZmK6YP7AiL8yn4feko/3ZV/VY=; b=odPwoSpvToD2G2Il94JQpjFbbFIAjI/yD4VR6FDfbfIB1JWUop1SD6rpmyNJOa98JQ HhSGeQVaAXia375Ghs90HomNrXoqCJYo69UM27pL2Rf91kQy70TyeyjffEGWvTb+wTsv jozRBk6tNxYyABsjq8x+E1WNGSwW3TxLRb25tbUP747w3KclJnVyjgTDDbDqmNV9WRCe tGNpWS5qcdNHyG0q28L3wvhiuyVA9IEmkOD/aD2kX/6eO7KPS1C/ZPMXiqmYF90lG7xx g+gwZprPEA+psixe6BbjnsDGDLoDhWEOZlucBb9LbE9+Nt8t0EmaaN8PEBd1cD8uJMzM sr9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q4-v6si4357100pgh.412.2018.09.13.07.07.42; Thu, 13 Sep 2018 07:07:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732298AbeIMTQ4 (ORCPT + 99 others); Thu, 13 Sep 2018 15:16:56 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:35768 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732292AbeIMTQ4 (ORCPT ); Thu, 13 Sep 2018 15:16:56 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 7D9C0C9B; Thu, 13 Sep 2018 14:07:15 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , "H. Nikolaus Schaller" , Lucas De Marchi , Lucas De Marchi , Michal Marek , Jessica Yu , Chih-Wei Huang , Masahiro Yamada Subject: [PATCH 4.18 193/197] kbuild: make missing $DEPMOD a Warning instead of an Error Date: Thu, 13 Sep 2018 15:32:22 +0200 Message-Id: <20180913131849.279884033@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180913131841.568116777@linuxfoundation.org> References: <20180913131841.568116777@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Randy Dunlap commit 914b087ff9e0e9a399a4927fa30793064afc0178 upstream. When $DEPMOD is not found, only print a warning instead of exiting with an error message and error status: Warning: 'make modules_install' requires /sbin/depmod. Please install it. This is probably in the kmod package. Change the Error to a Warning because "not all build hosts for cross compiling Linux are Linux systems and are able to provide a working port of depmod, especially at the file patch /sbin/depmod." I.e., "make modules_install" may be used to copy/install the loadable modules files to a target directory on a build system and then transferred to an embedded device where /sbin/depmod is run instead of it being run on the build system. Fixes: 934193a654c1 ("kbuild: verify that $DEPMOD is installed") Signed-off-by: Randy Dunlap Reported-by: H. Nikolaus Schaller Cc: stable@vger.kernel.org Cc: Lucas De Marchi Cc: Lucas De Marchi Cc: Michal Marek Cc: Jessica Yu Cc: Chih-Wei Huang Signed-off-by: Masahiro Yamada Signed-off-by: Greg Kroah-Hartman --- scripts/depmod.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/scripts/depmod.sh +++ b/scripts/depmod.sh @@ -15,9 +15,9 @@ if ! test -r System.map ; then fi if [ -z $(command -v $DEPMOD) ]; then - echo "'make modules_install' requires $DEPMOD. Please install it." >&2 + echo "Warning: 'make modules_install' requires $DEPMOD. Please install it." >&2 echo "This is probably in the kmod package." >&2 - exit 1 + exit 0 fi # older versions of depmod require the version string to start with three