From patchwork Tue Aug 28 09:33:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10578095 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9FA16920 for ; Tue, 28 Aug 2018 09:40:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 901D7299F4 for ; Tue, 28 Aug 2018 09:40:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 839A529A0C; Tue, 28 Aug 2018 09:40:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3486B299F4 for ; Tue, 28 Aug 2018 09:40:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727201AbeH1NbO (ORCPT ); Tue, 28 Aug 2018 09:31:14 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:34452 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727169AbeH1NbO (ORCPT ); Tue, 28 Aug 2018 09:31:14 -0400 Received: by mail-wr1-f66.google.com with SMTP id g33-v6so936096wrd.1 for ; Tue, 28 Aug 2018 02:40:25 -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=ExI13v1fJqqBjr18SDJMb+h91Mx/RUyY7N4pHJEIe+U=; b=aGS7c8/sWgPucAXuByklIY7H6PxlaOy5dXUXvzraR46pvE1SGdgY7map7lOePJqY8e H4YHI8zVpUPfcIWZgUNxnr9GOChT2mMujMCd9a6BxBHeUsIFJ3uvPFmKNcmQznXO5Dyd DT1lKtveROdAoyAlsA1Ctl7hE1hd1P4nmQ4CRJt8rPjHoSeR8Jly9bAUkPIwaF7E3J+f JiOm2xhpXseoEUY0P9qAksb1wzvLn2Gag/EzucnwLO3M/h4XWcWo+XDX4T8HDDOjjK7x QEILVxDygb9T925HKprjiFKpGLKps9rP2w4LXVtLTXeNuRYzsgdMDwzp85AaDkeBp5Ze pM3w== 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=ExI13v1fJqqBjr18SDJMb+h91Mx/RUyY7N4pHJEIe+U=; b=JnQjDmtCndcOuhKNLQpheiiuV6/0m4dtsZ39DOORFTeunvUeZhRwxm4oTt/uiBwTwM OwHdVYlobCXH3E9GoDnlFARZopGtrsSGBB+BYzU+9tUPPY76GmZCmeJhOxF4vAWaDxG9 9ahEKKgThDx41IH7dXLNQAA4W9fumSc4AmylleAtlkNcy3FD+AncfNc34rJe4Uvu1uQh Vt8KAkQSZGnqetZsKXVY/uil1dYs5E8rs15BShsPMGdYw/IUYlQedSSrHVDeob2C2qCy T69KI6Kx/SpkxnhGz0SS8Zprab0Wgq1WGIqpjAe8yfQmyerIhBeE1eTZI8mF6MMiqkVV MOsQ== X-Gm-Message-State: APzg51CNu9UYzUW4LhSyE5a1G0JbREefLfOspGBT2Q/FBRohdVGYomBz r7hTof7LAsMRxzzCrEHXCeBadw== X-Google-Smtp-Source: ANB0VdYa5AF38DRseFlTuOWHQN7gTWlFUJ1y07mwmkWFARomcv5Lg5daORMRcRAwRjs0rUdd744RVQ== X-Received: by 2002:adf:9b9b:: with SMTP id d27-v6mr568289wrc.240.1535448844824; Tue, 28 Aug 2018 02:34:04 -0700 (PDT) Received: from brgl-bgdev.home ([2a01:cb1d:af:5b00:e837:b8d5:48c1:571b]) by smtp.gmail.com with ESMTPSA id l18-v6sm952276wru.75.2018.08.28.02.34.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Aug 2018 02:34:04 -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 Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Bartosz Golaszewski Subject: [PATCH v2 0/4] devres: provide and use devm_kstrdup_const() Date: Tue, 28 Aug 2018 11:33:28 +0200 Message-Id: <20180828093332.20674-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.18.0 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 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(-)