Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5608399imu; Mon, 26 Nov 2018 02:57:14 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vqt9Tmr6bBdbZNZvd6nb9IVDmwQWcBBMkYg25f17kaXDQGD+j5VLvyG2CUmmQ/RyhzRWv8 X-Received: by 2002:a63:8f45:: with SMTP id r5mr23989067pgn.222.1543229834639; Mon, 26 Nov 2018 02:57:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543229834; cv=none; d=google.com; s=arc-20160816; b=mC82kTJx5a3UtHkUDv60Bs1yuFrjmgMHZpyIiJEhl2rz4T7pilWKrMdnZh66simpMl NDLQtydgU5sbhS1Bl84V9OcSMCa3w4jVz4/+2MZlNqWG9qh/Ws5LtM+rwtEQDDnERNIM MU8+vCyNY+8CkNVhDYEnBUsp8qhHgZa4OU0WihLNo7DiBl8/0cg5L+uBddYo5r6G3l6r Hz+7YdH+Xl1Sos0OF7coFi/S5TFRkHo8O8+RPD7HIeUnVIMp6AcEiMaJQS9F1QVTHD3m bPeNM+5d37DJPSv5juapusxbCvGVd52bE+AEu+csyh99Z+OMdACS+rgHZIqh54K4Gvi/ Rb6Q== 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:dkim-signature; bh=5C01A1o5sWREbXlTYDJX31YTQcubOi32B04vfxQD4L4=; b=AYHfn6SRqgc6cW7FelqgF2pOmYZTyBbI3TWlJMajD5+cmT8we4EeZdjnqwTRdQzjRo rUMJJwfxPVSsT3p9SM9w7agXd+cH2RSHcJvPOHRm3STEoSrq46F/gx5lIEMac2fIuBKO s6OF0zBxLQECyPmJGonwGkkEb7wLaSXtHTL5G7D3HEaVIH5jBd36URtg9NAW1u44smAd pvKO+15k+Oop0uvV/UOEIpwE1s1VSAlgB2pw6SkAdJjW1xp4tra3TPiZbFFXQX/EjNan s5P0nrVjRA6N4nX/HZlLlE7AgFjuEXWWx2Jy4w/IClbQCB9HB3UBv2irugXIxKk4e3/w gehQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gCuHkt10; 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 v9si39061107pfl.45.2018.11.26.02.56.59; Mon, 26 Nov 2018 02:57:14 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=gCuHkt10; 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 S1727992AbeKZVtL (ORCPT + 99 others); Mon, 26 Nov 2018 16:49:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:58030 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726923AbeKZVtL (ORCPT ); Mon, 26 Nov 2018 16:49:11 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CAA9721104; Mon, 26 Nov 2018 10:55:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543229727; bh=WlbhJfDy7HUy5af5PwmeD+kL0nto/3BKbuVK5P5MNoU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gCuHkt10I9Rg894gYM9CZ6254FKqIuE9MDHSWqxKdSkzSbAV7HILqF0vOZA2LMQXX mxz/4zgMfgBa1W0R5+O9daqkV8Tr2NLoUnJyOyziuD9RlPx+/YfcuGMcWOe+vGdT9b FqrtN5XY37v+hZtp46Y+53FklPgJz6GX9faIwFPU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Behan Webster , Matthias Kaehlcke , Masahiro Yamada , Nathan Chancellor Subject: [PATCH 4.4 13/70] kbuild: use -Oz instead of -Os when using clang Date: Mon, 26 Nov 2018 11:50:28 +0100 Message-Id: <20181126105048.162761399@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181126105046.722096341@linuxfoundation.org> References: <20181126105046.722096341@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.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Behan Webster commit 6748cb3c299de1ffbe56733647b01dbcc398c419 upstream. This generates smaller resulting object code when compiled with clang. Signed-off-by: Behan Webster Signed-off-by: Matthias Kaehlcke Signed-off-by: Masahiro Yamada [nc: Adjust context due to lack of commit a76bcf557ef4 in linux-4.4.y] Signed-off-by: Nathan Chancellor Signed-off-by: Greg Kroah-Hartman --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/Makefile +++ b/Makefile @@ -628,7 +628,7 @@ KBUILD_CFLAGS += $(call cc-disable-warni KBUILD_CFLAGS += $(call cc-disable-warning, attribute-alias) ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE -KBUILD_CFLAGS += -Os +KBUILD_CFLAGS += $(call cc-option,-Oz,-Os) else ifdef CONFIG_PROFILE_ALL_BRANCHES KBUILD_CFLAGS += -O2