bd63bcac | 16-Aug-2024 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda forma
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda formatting also changed, so we have made changes to the organization default style format to better handle lambda formatting.
See I5e08687e696dd240402a2780158664b7113def0e for updated style. See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.
Change-Id: I0f105c3310e87172c65a09a8787a2db5a4041cc0 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
8c051121 | 10-May-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: Icbc50d46e84ee7ef756705e2b19741439a325074 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
22579ca4 | 07-Nov-2022 |
Harvey Wu <Harvey.Wu@quantatw.com> |
fix cppcheck warning
- Fix warnings: [noExplicitConstructor] ipmi/manualcmds.hpp:20:5: style: Class 'ZoneControlIpmiHandler' has a constructor with 1 argument that is not explicit.
[red
fix cppcheck warning
- Fix warnings: [noExplicitConstructor] ipmi/manualcmds.hpp:20:5: style: Class 'ZoneControlIpmiHandler' has a constructor with 1 argument that is not explicit.
[redundantInitialization] dbus/dbusutil.cpp:96:15: style: Redundant initialization for 'layer'. The initialized value is overwritten before it is read.
[uninitMemberVar] pid/pidcontroller.hpp:23:5: warning: Member variable 'PIDController::_pid_info' is not initialized in the constructor.
[memsetClassFloat] pid/util.cpp:29:10: portability: Using memset() on struct which contains a floating point number.
[constParameter] ipmi/manualcmds.cpp:108:72: style: Parameter 'dataLen' can be declared as pointer to const
Signed-off-by: Harvey Wu <Harvey.Wu@quantatw.com> Change-Id: Ib368c6e3a609e446529573cd0b9fa03858232db1
show more ...
|
a1ae4fa1 | 28-Oct-2022 |
Harvey.Wu <Harvey.Wu@quantatw.com> |
fix compile warning when meson build
- Fix compile warning: [-Werror=unused-variable], [-Werror=sign-compare] and deprecated INSTANTIATE_TEST_CASE_P
Signed-off-by: Harvey.Wu <Harvey.Wu@quantatw
fix compile warning when meson build
- Fix compile warning: [-Werror=unused-variable], [-Werror=sign-compare] and deprecated INSTANTIATE_TEST_CASE_P
Signed-off-by: Harvey.Wu <Harvey.Wu@quantatw.com> Change-Id: If8713f0b938cd5306bbe19a9078731db0c3667dc
show more ...
|
b228bc30 | 22-Jul-2022 |
Patrick Williams <patrick@stwcx.xyz> |
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are for: * bus_t * exception_t * manager_t * match_t * message_t * object_t * slot_t
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ie36d234f4580029a7832a0cd179f3bb78a1a403f
show more ...
|
e7507a8b | 02-Sep-2021 |
Patrick Williams <patrick@stwcx.xyz> |
exception: switch to public sdbus exception
SdBusError was intended to be a private error type inside sdbusplus. Switch all catch locations to use the general sdbusplus::exception type.
Signed-off-
exception: switch to public sdbus exception
SdBusError was intended to be a private error type inside sdbusplus. Switch all catch locations to use the general sdbusplus::exception type.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I16eeca31de290221c7a9184ee0c48cc923466832
show more ...
|
ad971e1b | 28-Sep-2020 |
Patrick Venture <venture@google.com> |
bugfix: add virtual destructor to zoneinterface
ZoneInterface is a virtual abstract class and needs a virtual destructor.
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I4159a88327d
bugfix: add virtual destructor to zoneinterface
ZoneInterface is a virtual abstract class and needs a virtual destructor.
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I4159a88327d04bc344e484263f4c1d2875d81713
show more ...
|
09334bbe | 16-Aug-2020 |
Patrick Venture <venture@google.com> |
ipmi: add zone controller interface
Implementations of this interface can make the library mode testable and work in environments other than dbus.
The main entry point to the IPMI handler now expec
ipmi: add zone controller interface
Implementations of this interface can make the library mode testable and work in environments other than dbus.
The main entry point to the IPMI handler now expects to receive a handler pointer. The handler itself is implemented to process IPMI requests and responses in the expected way. The default object receives a dbus implementation for the zone controls.
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I6d7be871bdc5cce3c3cc53c16d80b501aaaafc7d
show more ...
|
d82d0b7d | 16-Aug-2020 |
Patrick Venture <venture@google.com> |
ipmi: split dbus get property into separate file
This is a step towards handling getting/setting dbus properties as an implementation of an interface, de-coupling from dbus.
Signed-off-by: Patrick
ipmi: split dbus get property into separate file
This is a step towards handling getting/setting dbus properties as an implementation of an interface, de-coupling from dbus.
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I81a2c5100833235811d4b7e59152d70585c7abaf
show more ...
|
9bf5cef4 | 16-Aug-2020 |
Patrick Venture <venture@google.com> |
ipmi: split library constructor
Split out the library constuctor so that the code can be built into separate library modules.
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I70ac51a
ipmi: split library constructor
Split out the library constuctor so that the code can be built into separate library modules.
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I70ac51aaea200d4634f9220a642b0e2bef6748bd
show more ...
|
1277543a | 04-Aug-2020 |
Patrick Venture <venture@google.com> |
ipmi/manualcmds: fixup style for enum
Fixup the style for the enum.
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I7eaf9337373a1f0a7d6fd0422d38364370249cf0 |
a83a3ecc | 04-Aug-2020 |
Patrick Venture <venture@google.com> |
update clang-format from Latest in docs
Updates the clang-format file and then applies it.
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: Ia9faf13ce171f90bf07547efd781139bee23e8c7 |
37b247ab | 03-Aug-2020 |
Patrick Venture <venture@google.com> |
ipmi/manualcmds: cleanup return codes
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I5525518e41d9f74d022fb8a1981d3792a4e825b5 |
36ab6f6e | 03-Aug-2020 |
Patrick Venture <venture@google.com> |
move ipmi handler into namespace
Add a namespace for the ipmi code to enable re-use through linking into other libraries that may have similar object names.
Signed-off-by: Patrick Venture <venture@
move ipmi handler into namespace
Add a namespace for the ipmi code to enable re-use through linking into other libraries that may have similar object names.
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I002b9bf84d5bc6cbe06b9dc8f41cb4532ec50927
show more ...
|
323f1d9c | 03-Jun-2020 |
William A. Kennington III <wak@google.com> |
Rename sdbusplus::message::variant -> std::variant
This was removed from sdbusplus and now breaks the build without conversion.
Change-Id: I084ede89ca200d3f9bc38d451e54d511418f7cda Signed-off-by: W
Rename sdbusplus::message::variant -> std::variant
This was removed from sdbusplus and now breaks the build without conversion.
Change-Id: I084ede89ca200d3f9bc38d451e54d511418f7cda Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
331143ce | 07-Feb-2019 |
William A. Kennington III <wak@google.com> |
Convert host-ipmid -> libipmid
phosphor-host-ipmid now exposes a library along with headers for interfacing with the ipmi daemon. Compile and link against the new library.
Change-Id: I747c3a585d646
Convert host-ipmid -> libipmid
phosphor-host-ipmid now exposes a library along with headers for interfacing with the ipmi daemon. Compile and link against the new library.
Change-Id: I747c3a585d646c7ff54efb14968c8f04daafe071 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
1f802f5e | 08-Feb-2019 |
James Feist <james.feist@linux.intel.com> |
Move all variant usage to std
This just a style change, remove variant_ns in favor of std.
Tested-by: it built
Change-Id: Id5a075e8b73a7724cbc5153fb7dfcf369e79c483 Signed-off-by: James Feist <jame
Move all variant usage to std
This just a style change, remove variant_ns in favor of std.
Tested-by: it built
Change-Id: Id5a075e8b73a7724cbc5153fb7dfcf369e79c483 Signed-off-by: James Feist <james.feist@linux.intel.com>
show more ...
|
9fa90c19 | 11-Jan-2019 |
James Feist <james.feist@linux.intel.com> |
Change all default_bus back to new_system bus
new_default now returns a reference to a single bus, phosphor-pid-control uses multiple busses so we do not want that. This was the way it was implement
Change all default_bus back to new_system bus
new_default now returns a reference to a single bus, phosphor-pid-control uses multiple busses so we do not want that. This was the way it was implemented prior to https://github.com/openbmc/sdbusplus/commit/8ca6025eed193c252149b2908c3d5e37b00b0107
Tested-by: swampd ran normally
These errors go away:
Jan 28 18:28:45 swampd[1760]: terminate called after throwing an instance of 'sdbusplus::exception::SdBusError' Jan 28 18:28:45 swampd[1760]: what(): sd_bus_request_name: org.freedesktop.DBus.Error.InconsistentMessage: Bad message
Change-Id: I708cd5e6c45509f27d4fe783c0b0cfb52ff10336 Signed-off-by: James Feist <james.feist@linux.intel.com>
show more ...
|
7af157b1 | 30-Oct-2018 |
Patrick Venture <venture@google.com> |
style: function names should be lower camel
Fix function names to be lower camel.
Change-Id: I145e1f4c03d7740bc1525dcffbdce2f78fd61075 Signed-off-by: Patrick Venture <venture@google.com> |
d8a9a19e | 15-Oct-2018 |
Patrick Venture <venture@google.com> |
ipmi: drop is_method_error call
Drop is_method_error() call that is extraneous.
Change-Id: I2ae8b2adb9576321df0cf10310c4242fad0801aa Signed-off-by: Patrick Venture <venture@google.com> |
07c3a80e | 19-Sep-2018 |
Patrick Venture <venture@google.com> |
ipmi: add iana header for openbmc oen
Add the iana header that exposes the openbmc oen.
Change-Id: I232b23967853c305202d29adadfaa4a088f01e38 Signed-off-by: Patrick Venture <venture@google.com> |
8f179144 | 10-Sep-2018 |
Patrick Venture <venture@google.com> |
ipmi: add back call to is_method_error
Before reading the message, check if there's an error. The bus call will fail dramatically but differently than the message.
Change-Id: I3ab54cc4a4590e0cf5f3
ipmi: add back call to is_method_error
Before reading the message, check if there's an error. The bus call will fail dramatically but differently than the message.
Change-Id: I3ab54cc4a4590e0cf5f3eb15dcbf045a7b8bd075 Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
acecf6b8 | 06-Sep-2018 |
Patrick Venture <venture@google.com> |
ipmi: catch SdBusErrors on bus call failures
Now sdbusplus call and call_noreply can throw an SdBusError exception. This code changes from checking .is_method_error() to catching the exception.
Iss
ipmi: catch SdBusErrors on bus call failures
Now sdbusplus call and call_noreply can throw an SdBusError exception. This code changes from checking .is_method_error() to catching the exception.
Issue: 4 Change-Id: I07bbe5dbbd91d72ca75eeb14861d56aae5f3afed Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
da4a5dd1 | 31-Aug-2018 |
Patrick Venture <venture@google.com> |
add .clang-format
Change-Id: I6627b5569c2e0f730be7331403218b823a2c622f Signed-off-by: Patrick Venture <venture@google.com> |
ba003434 | 27-Jul-2018 |
Patrick Venture <venture@google.com> |
ipmi: enable oem ipmi command for fan control
This enables building the OEM IPMI handler for fan control. This includes the ability to set it in manual mode, or check if it's in fail-sade mode.
Te
ipmi: enable oem ipmi command for fan control
This enables building the OEM IPMI handler for fan control. This includes the ability to set it in manual mode, or check if it's in fail-sade mode.
Tested: Verified that using host-side tool I was able to get and set the mode for a zone, as well as check if a zone had fallen into failsade mode. Change-Id: I995407c089610692c7f6442f6e22f76689f4da1c Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|