Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2369505imm; Mon, 24 Sep 2018 03:14:15 -0700 (PDT) X-Google-Smtp-Source: ACcGV627ZvXQar9yoP4BuWWE2AVQoQxc0GRpi1Y43Y9LvN6K4op62/2e4Re4m8fB+KAFy7AxUgL9 X-Received: by 2002:a63:c912:: with SMTP id o18-v6mr8589206pgg.331.1537784055098; Mon, 24 Sep 2018 03:14:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537784055; cv=none; d=google.com; s=arc-20160816; b=0o3JVhbzk6VZqFmElDRRGBzroIa7CEo8//Q+p8p8yFUBkxU5G/BdcdiTmKT/0UPxZM RHKvcLN8Q544TUxDlAN9bp5uhVoZEvXhTlEnfkbKUdCMaC/2DsffUta/2xmZaY/uyYz2 VwUem6UswrvNIkSPZswtr0fo9N9JiG4Nfi6nAwEidbxFbUbChBQMn9jpIWFAmvqA105E jTK0M8RPwev991YAwtdsXhyQ2k4/25cE8VzCydxJcY8hF8G7yWSaV9DZ199s7UVNAja/ RWN8SHuSO3khJZ1agKT6cFmoHcpPb/Kca1aHQoiEesQHA9qc/s4lRRJmp6ODpxOLDE6X /iZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=imbjK81jVRpEHkR4I0gKczalGuY2afrY9ylxpTqoEdU=; b=zRD0Cu+5a5mXc9zZiFJ59rgyyE0pcegcdIyRMj9q/JTXbnli+W51rfQmaN0fp4s+AX ji3E6kVc9xXwM00BU8JTOB5/zBXcvhYsNEQp6cnqij5UUdNugVJNL23pRlsI7iZCtQaf Jnod8KbXuezOoVyigyStVn5nASDfvI/39+ZGu1WSuetpxFajPhzV9UKs/k7qb2cEAShh FzNvhvB2XSdTWiVjkl5BiB0pRn1HKLAWzEhqAxveqjR3jlicgTd9UC0AsaTXtb8PaLTD QH8ZWSbaWWviUfDo37P+Lx5pFT3Ly56OtpzMghAi3b0+p/067GmLPf7Naxuol39o/WVQ BVSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=bquvQUQK; 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 l64-v6si31392885pge.420.2018.09.24.03.13.59; Mon, 24 Sep 2018 03:14:15 -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; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=bquvQUQK; 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 S1728269AbeIXQNX (ORCPT + 99 others); Mon, 24 Sep 2018 12:13:23 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:39520 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725992AbeIXQNX (ORCPT ); Mon, 24 Sep 2018 12:13:23 -0400 Received: by mail-wm1-f68.google.com with SMTP id q8-v6so9403232wmq.4 for ; Mon, 24 Sep 2018 03:12:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=imbjK81jVRpEHkR4I0gKczalGuY2afrY9ylxpTqoEdU=; b=bquvQUQKF23S/krIlBtPBfSlm4C5X4X74objq3j8i5yfNZUeE2CQv0sE2IIBIrY6TC b6Bp4MyssApejL0e+XFuVMLyYzz+AIBbk949QfIW95JixLqhLtDjFKgfIDQXlf4IFVwB fmVQKRTClquTOg8ms5HaP43OSDhFifMG328kfAB5/PjZGTNCiQn3+F/vWiJkqIBVUSuY Uc6B/fSpWiCZ8hq50FzshYxVA3Ddia3H98ZoCIASubyP8x/3yL8LTy8ckzgqEiTytm73 DudsnN6Pd4ESStRlgCftCpORiXzQz50OpdkJFDReH9B4Kd6Ckl0x3m6lC31BZhcCE0jX OAVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=imbjK81jVRpEHkR4I0gKczalGuY2afrY9ylxpTqoEdU=; b=gLMMcFYv/gL4pnwyfIrNbzKKDrxM7PsgyE6717PG2CjwY6BCClyf39WXDZ7YzpShWM BPwa0be0uQaaJPINZaRVeF4Cs4rnl2k90d1O52l5kmkEkI+idy1TlinGqQbIpRovzhnf V7gRi+Wc0ugD1adL2BfiedpZq96yX1l55V//OO5kEoRBq0hf+KgxA8jotaN/MUwM7mfX 9GrEjKgWyK20+NPRBuAXgaazPpLo7/x7YNWFQPjyOzZ1CpmxE9fu+eCVgJQMVLhjT6df r/D0D96b/bBpsMkdmKmO1kSvLZrVGRhrwCdMJgs9ia+SHQUOumjNXoaqS6b/feMEMlcM Uv4Q== X-Gm-Message-State: APzg51B2M0GQHkpJwN2qMRXvNr0q0wb9UJULJ7VfWM0Z7liF16+e+YDD 9xcLN8eTvP9naHesd+LD61ORFg== X-Received: by 2002:a1c:d141:: with SMTP id i62-v6mr6188892wmg.113.1537783922357; Mon, 24 Sep 2018 03:12:02 -0700 (PDT) Received: from brgl-bgdev.baylibre.local (AStLambert-681-1-2-33.w90-86.abo.wanadoo.fr. [90.86.1.33]) by smtp.gmail.com with ESMTPSA id o12-v6sm3291728wrj.58.2018.09.24.03.12.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Sep 2018 03:12:01 -0700 (PDT) From: Bartosz Golaszewski To: Michael Turquette , Stephen Boyd , Greg Kroah-Hartman , "Rafael J . Wysocki" , Arend van Spriel , Ulf Hansson , Bjorn Helgaas , Vivek Gautam , Robin Murphy , Joe Perches , Heikki Krogerus , Andrew Morton , Mike Rapoport , Michal Hocko , Al Viro , Jonathan Corbet , Roman Gushchin , Huang Ying , Kees Cook , Bjorn Andersson , Arnd Bergmann , Andy Shevchenko Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Bartosz Golaszewski Subject: [PATCH v3 0/4] devres: provide and use devm_kstrdup_const() Date: Mon, 24 Sep 2018 12:11:46 +0200 Message-Id: <20180924101150.23349-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.18.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series implements devm_kstrdup_const() together with some prerequisite changes and uses it in pmc-atom driver. v1 -> v2: - fixed the changelog in the patch implementing devm_kstrdup_const() - fixed the kernel doc - moved is_kernel_rodata() to asm-generic/sections.h - fixed constness v2 -> v3: - rebased on top of 4.19-rc5 as there were some conflicts in the pmc-atom driver - collected Reviewed-by tags Bartosz Golaszewski (4): devres: constify p in devm_kfree() mm: move is_kernel_rodata() to asm-generic/sections.h devres: provide devm_kstrdup_const() clk: pmc-atom: use devm_kstrdup_const() drivers/base/devres.c | 43 ++++++++++++++++++++++++++++++++-- drivers/clk/x86/clk-pmc-atom.c | 19 ++++----------- include/asm-generic/sections.h | 14 +++++++++++ include/linux/device.h | 5 +++- mm/util.c | 7 ------ 5 files changed, 63 insertions(+), 25 deletions(-) -- 2.18.0